xunge/DecIR huggingface dataset:
void hostap_crypt_null_deinit(void *priv) {}


x86 assembly (clang, -O0):
<hostap_crypt_null_deinit>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<hostap_crypt_null_deinit>:
ret

LLVM IR (-O0):
define void @hostap_crypt_null_deinit(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
ret void
}

LLVM IR (-O2):
define void @hostap_crypt_null_deinit(i8* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
__attribute__((always_)) void print_boolean(bool v) { printf("%d", v); }


x86 assembly (clang, -O0):
<print_boolean>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xedb(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_boolean>:
mov    %edi,%esi
lea    0xee7(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
define void @print_boolean(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %3)
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define void @print_boolean(i32 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %0)
ret void
}
void test7() {
  enum { A = 1, B } a;
  switch (a) {
  case A:
    break;
  }
  switch (a) {
  case B:
  case A:
    break;
  }
  switch (a) {
  case A:
  case B:
  case 3:
    break;
  }
  switch (a) {
  case A:
  case B:
  case 3 ... 4:
    break;
  }
  switch (a) {
  case 1 ... 2:
    break;
  }
  switch (a) {
  case 0 ... 2:
    break;
  }
  switch (a) {
  case 1 ... 3:
    break;
  }
  switch (a) {
  case 0 ... 3:
    break;
  }
}


x86 assembly (clang, -O0):
<test7>:
push   %rbp
mov    %rsp,%rbp
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
jne    111a <test7+0x1a>
jmp    1115 <test7+0x15>
jmp    111a <test7+0x1a>
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
sub    $0x1,%eax
ja     1133 <test7+0x33>
jmp    112e <test7+0x2e>
jmp    1133 <test7+0x33>
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
sub    $0x2,%eax
ja     114c <test7+0x4c>
jmp    1147 <test7+0x47>
jmp    114c <test7+0x4c>
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
add    $0xffffffff,%eax
sub    $0x2,%eax
jb     1177 <test7+0x77>
jmp    1163 <test7+0x63>
mov    -0x8(%rbp),%eax
add    $0xfffffffd,%eax
sub    $0x2,%eax
jb     117c <test7+0x7c>
jmp    1181 <test7+0x81>
jmp    117c <test7+0x7c>
jmp    1181 <test7+0x81>
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
sub    $0x1,%eax
ja     119a <test7+0x9a>
jmp    1195 <test7+0x95>
jmp    119a <test7+0x9a>
mov    -0x4(%rbp),%eax
sub    $0x2,%eax
ja     11b0 <test7+0xb0>
jmp    11ab <test7+0xab>
jmp    11b0 <test7+0xb0>
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
sub    $0x2,%eax
ja     11c9 <test7+0xc9>
jmp    11c4 <test7+0xc4>
jmp    11c9 <test7+0xc9>
mov    -0x4(%rbp),%eax
sub    $0x3,%eax
ja     11df <test7+0xdf>
jmp    11da <test7+0xda>
jmp    11df <test7+0xdf>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test7>:
ret

LLVM IR (-O0):
define void @test7() {
%1 = alloca i32
%2 = load i32, i32* %1
switch i32 %2, label %4 [
i32 1, label %3
]
3: ; preds = %0
br label %4
4: ; preds = %0, %3
%5 = load i32, i32* %1
switch i32 %5, label %7 [
i32 2, label %6
i32 1, label %6
]
6: ; preds = %4, %4
br label %7
7: ; preds = %4, %6
%8 = load i32, i32* %1
switch i32 %8, label %10 [
i32 1, label %9
i32 2, label %9
i32 3, label %9
]
9: ; preds = %7, %7, %7
br label %10
10: ; preds = %7, %9
%11 = load i32, i32* %1
switch i32 %11, label %14 [
i32 1, label %12
i32 2, label %12
i32 3, label %13
i32 4, label %13
]
12: ; preds = %10, %10
br label %13
13: ; preds = %10, %10, %12
br label %14
14: ; preds = %10, %13
%15 = load i32, i32* %1
switch i32 %15, label %17 [
i32 1, label %16
i32 2, label %16
]
16: ; preds = %14, %14
br label %17
17: ; preds = %14, %16
%18 = load i32, i32* %1
switch i32 %18, label %20 [
i32 0, label %19
i32 1, label %19
i32 2, label %19
]
19: ; preds = %17, %17, %17
br label %20
20: ; preds = %17, %19
%21 = load i32, i32* %1
switch i32 %21, label %23 [
i32 1, label %22
i32 2, label %22
i32 3, label %22
]
22: ; preds = %20, %20, %20
br label %23
23: ; preds = %20, %22
%24 = load i32, i32* %1
switch i32 %24, label %26 [
i32 0, label %25
i32 1, label %25
i32 2, label %25
i32 3, label %25
]
25: ; preds = %23, %23, %23, %23
br label %26
26: ; preds = %23, %25
ret void
}

LLVM IR (-O2):
define void @test7() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ b(char *);
void a(int x) {
  char arry[x];
  arry[0] = 10;
  b(arry);
}


x86 assembly (clang, -O0):
<a>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x10(%rbp)
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdi
sub    %rcx,%rdi
mov    %rdi,%rsp
mov    %rax,-0x18(%rbp)
movb   $0xa,(%rdi)
call   1030 <b@plt>
mov    -0x10(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<a>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,%eax
mov    %rsp,%rcx
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
mov    %rcx,%rdi
sub    %rax,%rdi
mov    %rdi,%rsp
neg    %rax
movb   $0xa,(%rcx,%rax,1)
call   1030 <b@plt>
mov    %rbp,%rsp
pop    %rbp
ret

LLVM IR (-O0):
define void @a(i32 %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i64
store i32 %0, i32* %2
%5 = load i32, i32* %2
%6 = zext i32 %5 to i64
%7 = call i8* @llvm.stacksave()
store i8* %7, i8** %3
%8 = alloca i8, i64 %6
store i64 %6, i64* %4
%9 = getelementptr inbounds i8, i8* %8, i64 0
store i8 10, i8* %9
%10 = call i32 @b(i8* %8)
%11 = load i8*, i8** %3
ret void
}

LLVM IR (-O2):
define void @a(i32 %0) {
%2 = zext i32 %0 to i64
%3 = alloca i8, i64 %2
store i8 10, i8* %3
%4 = call i32 @b(i8* %3)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ jmp_buf;

/* Variables and functions */
int /*<<< orphan*/ longjmp(int /*<<< orphan*/, int);
int __attribute__((no)) uses_longjmp(int **other_array, int num, jmp_buf env) {
  int internal_array[100] = {0};
  *other_array = &internal_array[0];
  if (num % 2)
    longjmp(env, num);
  else
    return num % 8;
}


x86 assembly (clang, -O0):
<uses_longjmp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1a0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
lea    -0x1a0(%rbp),%rdi
xor    %esi,%esi
mov    $0x190,%edx
call   1030 <memset@plt>
lea    -0x1a0(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1175 <uses_longjmp+0x55>
mov    -0x10(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1040 <longjmp@plt>
mov    -0xc(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
add    $0x1a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<uses_longjmp>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x198,%rsp
mov    %edx,%r14d
mov    %esi,%ebx
mov    %rdi,%rbp
mov    %rsp,%r15
mov    $0x190,%edx
mov    %r15,%rdi
xor    %esi,%esi
call   1030 <memset@plt>
mov    %r15,0x0(%rbp)
test   $0x1,%bl
jne    116d <uses_longjmp+0x4d>
lea    0x7(%rbx),%eax
test   %ebx,%ebx
cmovns %ebx,%eax
and    $0xfffffff8,%eax
sub    %eax,%ebx
mov    %ebx,%eax
add    $0x198,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %r14d,%edi
mov    %ebx,%esi
call   1040 <longjmp@plt>

LLVM IR (-O0):
define i32 @uses_longjmp(i32** %0, i32 %1, i32 %2) {
%4 = alloca i32**
%5 = alloca i32
%6 = alloca i32
%7 = alloca [100 x i32]
store i32** %0, i32*** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%8 = bitcast [100 x i32]* %7 to i8*
%9 = getelementptr inbounds [100 x i32], [100 x i32]* %7, i64 0, i64 0
%10 = load i32**, i32*** %4
store i32* %9, i32** %10
%11 = load i32, i32* %5
%12 = srem i32 %11, 2
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %3
%15 = load i32, i32* %6
%16 = load i32, i32* %5
%17 = call i32 @longjmp(i32 %15, i32 %16)
unreachable
18: ; preds = %3
%19 = load i32, i32* %5
%20 = srem i32 %19, 8
ret i32 %20
}

LLVM IR (-O2):
define i32 @uses_longjmp(i32** nocapture writeonly %0, i32 %1, i32 %2) {
%4 = alloca [100 x i32]
%5 = bitcast [100 x i32]* %4 to i8*
%6 = getelementptr inbounds [100 x i32], [100 x i32]* %4, i64 0, i64 0
store i32* %6, i32** %0
%7 = and i32 %1, 1
%8 = icmp eq i32 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %3
%10 = call i32 @longjmp(i32 %2, i32 %1)
unreachable
11: ; preds = %3
%12 = srem i32 %1, 8
ret i32 %12
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  unsigned long green_mult;
};
typedef TYPE_1__ XStandardColormap;

/* Variables and functions */
void set_XStandardColormap_green_mult(void *_p, unsigned long _v) {
  ((XStandardColormap *)_p)->green_mult = (unsigned long)_v;
}


x86 assembly (clang, -O0):
<set_XStandardColormap_green_mult>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_XStandardColormap_green_mult>:
mov    %rsi,(%rdi)
ret

LLVM IR (-O0):
%struct.TYPE_2__ = type { i64 }
define void @set_XStandardColormap_green_mult(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %3
store i64 %1, i64* %4
%5 = load i64, i64* %4
%6 = load i8*, i8** %3
%7 = bitcast i8* %6 to %struct.TYPE_2__*
%8 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %7, i32 0, i32 0
store i64 %5, i64* %8
ret void
}

LLVM IR (-O2):
define void @set_XStandardColormap_green_mult(i8* nocapture writeonly %0, i64 %1) {
%3 = bitcast i8* %0 to i64*
store i64 %1, i64* %3
ret void
}
int myHashCodeDefault(void *a) { return (int)a; }


x86 assembly (clang, -O0):
<myHashCodeDefault>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<myHashCodeDefault>:
mov    %rdi,%rax
ret

LLVM IR (-O0):
define i32 @myHashCodeDefault(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = ptrtoint i8* %3 to i32
ret i32 %4
}

LLVM IR (-O2):
define i32 @myHashCodeDefault(i8* %0) {
%2 = ptrtoint i8* %0 to i64
%3 = trunc i64 %2 to i32
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void mange(int i) { printf("le philosophe %d mange... \n", i); }


x86 assembly (clang, -O0):
<mange>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xedb(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mange>:
mov    %edi,%esi
lea    0xee7(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [28 x i8] c"le philosophe %d mange... \0A\00"
define void @mange(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 %3)
ret void
}

LLVM IR (-O2):
@.str = [28 x i8] c"le philosophe %d mange... \0A\00"
define void @mange(i32 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 %0)
ret void
}
void put_pixel_le(char *px, int color) {
  px[0] = (color >> 24) & 0xFF;
  px[1] = (color >> 16) & 0xFF;
  px[2] = (color >> 8) & 0xFF;
  px[3] = color & 0xFF;
}


x86 assembly (clang, -O0):
<put_pixel_le>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
sar    $0x18,%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
mov    -0xc(%rbp),%eax
sar    $0x10,%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,0x1(%rax)
mov    -0xc(%rbp),%eax
sar    $0x8,%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,0x2(%rax)
mov    -0xc(%rbp),%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,0x3(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<put_pixel_le>:
bswap  %esi
mov    %esi,(%rdi)
ret

LLVM IR (-O0):
define void @put_pixel_le(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = ashr i32 %5, 24
%7 = and i32 %6, 255
%8 = trunc i32 %7 to i8
%9 = load i8*, i8** %3
%10 = getelementptr inbounds i8, i8* %9, i64 0
store i8 %8, i8* %10
%11 = load i32, i32* %4
%12 = ashr i32 %11, 16
%13 = and i32 %12, 255
%14 = trunc i32 %13 to i8
%15 = load i8*, i8** %3
%16 = getelementptr inbounds i8, i8* %15, i64 1
store i8 %14, i8* %16
%17 = load i32, i32* %4
%18 = ashr i32 %17, 8
%19 = and i32 %18, 255
%20 = trunc i32 %19 to i8
%21 = load i8*, i8** %3
%22 = getelementptr inbounds i8, i8* %21, i64 2
store i8 %20, i8* %22
%23 = load i32, i32* %4
%24 = and i32 %23, 255
%25 = trunc i32 %24 to i8
%26 = load i8*, i8** %3
%27 = getelementptr inbounds i8, i8* %26, i64 3
store i8 %25, i8* %27
ret void
}

LLVM IR (-O2):
define void @put_pixel_le(i8* nocapture writeonly %0, i32 %1) {
%3 = lshr i32 %1, 24
%4 = trunc i32 %3 to i8
store i8 %4, i8* %0
%5 = lshr i32 %1, 16
%6 = trunc i32 %5 to i8
%7 = getelementptr inbounds i8, i8* %0, i64 1
store i8 %6, i8* %7
%8 = lshr i32 %1, 8
%9 = trunc i32 %8 to i8
%10 = getelementptr inbounds i8, i8* %0, i64 2
store i8 %9, i8* %10
%11 = trunc i32 %1 to i8
%12 = getelementptr inbounds i8, i8* %0, i64 3
store i8 %11, i8* %12
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int endmntent(FILE *filep) {
  if (filep != NULL)
    fclose(filep);
  return 1;
}


x86 assembly (clang, -O0):
<endmntent>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1130 <endmntent+0x20>
mov    -0x8(%rbp),%rdi
call   1030 <fclose@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<endmntent>:
test   %rdi,%rdi
je     111f <endmntent+0xf>
push   %rax
call   1030 <fclose@plt>
add    $0x8,%rsp
mov    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @endmntent(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = icmp ne i32* %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32*, i32** %2
%7 = call i32 @fclose(i32* %6)
br label %8
8: ; preds = %5, %1
ret i32 1
}

LLVM IR (-O2):
define i32 @endmntent(i32* %0) {
%2 = icmp eq i32* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @fclose(i32* %0)
br label %5
5: ; preds = %3, %1
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ _exit(int);
int kill(int pid, int sig) {
  if (pid == 1) {
    _exit(sig);
  }
}


x86 assembly (clang, -O0):
<kill>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    1130 <kill+0x20>
mov    -0xc(%rbp),%edi
call   1030 <_exit@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kill>:
cmp    $0x1,%edi
je     1116 <kill+0x6>
ret
push   %rax
mov    %esi,%edi
call   1030 <_exit@plt>

LLVM IR (-O0):
define i32 @kill(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%6 = load i32, i32* %4
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i32, i32* %5
%10 = call i32 @_exit(i32 %9)
unreachable
11: ; preds = %2
%12 = load i32, i32* %3
ret i32 %12
}

LLVM IR (-O2):
define i32 @kill(i32 %0, i32 %1) {
%3 = icmp eq i32 %0, 1
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call i32 @_exit(i32 %1)
unreachable
6: ; preds = %2
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ initialize();
int /*<<< orphan*/ testit();
int /*<<< orphan*/ testit1();
int main(void) {
  initialize();
  testit();
  testit1();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <initialize@plt>
mov    $0x0,%al
call   1050 <testit@plt>
mov    $0x0,%al
call   1040 <testit1@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <initialize@plt>
xor    %eax,%eax
call   1050 <testit@plt>
xor    %eax,%eax
call   1040 <testit1@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @initialize()
%3 = call i32 (...) @testit()
%4 = call i32 (...) @testit1()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @initialize()
%2 = tail call i32 (...) @testit()
%3 = tail call i32 (...) @testit1()
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ SEEK_END;
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, long, int /*<<< orphan*/);
size_t ftell(int /*<<< orphan*/ *);
size_t getFileLength(FILE *fp) {
  fseek(fp, 0L, SEEK_END);
  size_t fileLen = ftell(fp);
  fseek(fp, 0L, SEEK_SET);
  return (fileLen);
}


x86 assembly (clang, -O0):
<getFileLength>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2eb1(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
call   1040 <fseek@plt>
mov    -0x8(%rbp),%rdi
call   1030 <ftell@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2e7e(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
call   1040 <fseek@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getFileLength>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    0x2eba(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1040 <fseek@plt>
mov    %rbx,%rdi
call   1030 <ftell@plt>
mov    %rax,%r14
mov    0x2e8f(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1040 <fseek@plt>
mov    %r14,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@SEEK_END = global i32 0
@SEEK_SET = global i32 0
define i64 @getFileLength(i32* %0) {
%2 = alloca i32*
%3 = alloca i64
store i32* %0, i32** %2
%4 = load i32*, i32** %2
%5 = load i32, i32* @SEEK_END
%6 = call i32 @fseek(i32* %4, i64 0, i32 %5)
%7 = load i32*, i32** %2
%8 = call i64 @ftell(i32* %7)
store i64 %8, i64* %3
%9 = load i32*, i32** %2
%10 = load i32, i32* @SEEK_SET
%11 = call i32 @fseek(i32* %9, i64 0, i32 %10)
%12 = load i64, i64* %3
ret i64 %12
}

LLVM IR (-O2):
@SEEK_END = global i32 0
@SEEK_SET = global i32 0
define i64 @getFileLength(i32* nocapture %0) {
%2 = load i32, i32* @SEEK_END
%3 = tail call i32 @fseek(i32* %0, i64 0, i32 %2)
%4 = tail call i64 @ftell(i32* %0)
%5 = load i32, i32* @SEEK_SET
%6 = tail call i32 @fseek(i32* %0, i64 0, i32 %5)
ret i64 %4
}
void cam_lam_clear(const int c, const int n) {}


x86 assembly (clang, -O0):
<cam_lam_clear>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<cam_lam_clear>:
ret

LLVM IR (-O0):
define void @cam_lam_clear(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
ret void
}

LLVM IR (-O2):
define void @cam_lam_clear(i32 %0, i32 %1) {
ret void
}
void no_command(const char *command, int command_size) { 0; }


x86 assembly (clang, -O0):
<no_command>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<no_command>:
ret

LLVM IR (-O0):
define void @no_command(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
ret void
}

LLVM IR (-O2):
define void @no_command(i8* nocapture %0, i32 %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  (void)fprintf(stderr, "usage: which [-as] program ...\n");
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e98(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [32 x i8] c"usage: which [-as] program ...\0A\00"
@EXIT_FAILURE = global i32 0
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @EXIT_FAILURE
%4 = call i32 @exit(i32 %3)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [32 x i8] c"usage: which [-as] program ...\0A\00"
@EXIT_FAILURE = global i32 0
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @EXIT_FAILURE
%4 = tail call i32 @exit(i32 %3)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/
__softboundmpx_propagate_metadata_shadow_stack_from(int, int /*<<< orphan*/);
int /*<<< orphan*/ __softboundmpx_store_null_return_metadata();
void *memchr(void const *, int, size_t);
__attribute__((__weak__, __always___)) void *
softboundmpx_memchr(const void *s, int c, size_t n) {
  void *ret_ptr = memchr(s, c, n);
  if (ret_ptr != NULL) {
    __softboundmpx_propagate_metadata_shadow_stack_from(1, 0);
  } else {
    __softboundmpx_store_null_return_metadata();
  }
  return ret_ptr;
}


x86 assembly (clang, -O0):
<softboundmpx_memchr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rdx
call   1040 <memchr@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     1173 <softboundmpx_memchr+0x43>
mov    $0x1,%edi
xor    %esi,%esi
call   1030 <__softboundmpx_propagate_metadata_shadow_stack_from@plt>
jmp    117a <softboundmpx_memchr+0x4a>
mov    $0x0,%al
call   1050 <__softboundmpx_store_null_return_metadata@plt>
mov    -0x20(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<softboundmpx_memchr>:
push   %rbx
call   1040 <memchr@plt>
mov    %rax,%rbx
test   %rax,%rax
je     114c <softboundmpx_memchr+0x1c>
mov    $0x1,%edi
xor    %esi,%esi
call   1030 <__softboundmpx_propagate_metadata_shadow_stack_from@plt>
jmp    1153 <softboundmpx_memchr+0x23>
xor    %eax,%eax
call   1050 <__softboundmpx_store_null_return_metadata@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define weak i8* @softboundmpx_memchr(i8* %0, i32 %1, i64 %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i64
%7 = alloca i8*
store i8* %0, i8** %4
store i32 %1, i32* %5
store i64 %2, i64* %6
%8 = load i8*, i8** %4
%9 = load i32, i32* %5
%10 = load i64, i64* %6
%11 = call i8* @memchr(i8* %8, i32 %9, i64 %10)
store i8* %11, i8** %7
%12 = load i8*, i8** %7
%13 = icmp ne i8* %12, null
br i1 %13, label %14, label %16
14: ; preds = %3
%15 = call i32 @__softboundmpx_propagate_metadata_shadow_stack_from(i32 1, i32 0)
br label %18
16: ; preds = %3
%17 = call i32 (...) @__softboundmpx_store_null_return_metadata()
br label %18
18: ; preds = %16, %14
%19 = load i8*, i8** %7
ret i8* %19
}

LLVM IR (-O2):
define weak i8* @softboundmpx_memchr(i8* %0, i32 %1, i64 %2) {
%4 = tail call i8* @memchr(i8* %0, i32 %1, i64 %2)
%5 = icmp eq i8* %4, null
br i1 %5, label %8, label %6
6: ; preds = %3
%7 = tail call i32 @__softboundmpx_propagate_metadata_shadow_stack_from(i32 1, i32 0)
br label %10
8: ; preds = %3
%9 = tail call i32 (...) @__softboundmpx_store_null_return_metadata()
br label %10
10: ; preds = %8, %6
ret i8* %4
}
/* Variables and functions */
int /*<<< orphan*/ output_0();
void energenie_off() {
  output_0();
  output_0();
}


x86 assembly (clang, -O0):
<energenie_off>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <output_0@plt>
mov    $0x0,%al
call   1030 <output_0@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<energenie_off>:
push   %rax
xor    %eax,%eax
call   1030 <output_0@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <output_0@plt>

LLVM IR (-O0):
define void @energenie_off() {
%1 = call i32 (...) @output_0()
%2 = call i32 (...) @output_0()
ret void
}

LLVM IR (-O2):
define void @energenie_off() {
%1 = tail call i32 (...) @output_0()
%2 = tail call i32 (...) @output_0()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ g5_calculate_force_on_x(double **, double **, double *, int);
void(g5_calculate_force_on_x_)(double (*x)[3], double (*a)[3], double *p,
                               int *ni) {
  g5_calculate_force_on_x(x, a, p, *ni);
}


x86 assembly (clang, -O0):
<g5_calculate_force_on_x_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rax
mov    (%rax),%ecx
call   1030 <g5_calculate_force_on_x@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<g5_calculate_force_on_x_>:
mov    (%rcx),%ecx
jmp    1030 <g5_calculate_force_on_x@plt>

LLVM IR (-O0):
define void @g5_calculate_force_on_x_([3 x double]* %0, [3 x double]* %1, double* %2, i32* %3) {
%5 = alloca [3 x double]*
%6 = alloca [3 x double]*
%7 = alloca double*
%8 = alloca i32*
store [3 x double]* %0, [3 x double]** %5
store [3 x double]* %1, [3 x double]** %6
store double* %2, double** %7
store i32* %3, i32** %8
%9 = load [3 x double]*, [3 x double]** %5
%10 = bitcast [3 x double]* %9 to double**
%11 = load [3 x double]*, [3 x double]** %6
%12 = bitcast [3 x double]* %11 to double**
%13 = load double*, double** %7
%14 = load i32*, i32** %8
%15 = load i32, i32* %14
%16 = call i32 @g5_calculate_force_on_x(double** %10, double** %12, double* %13, i32 %15)
ret void
}

LLVM IR (-O2):
define void @g5_calculate_force_on_x_([3 x double]* %0, [3 x double]* %1, double* %2, i32* nocapture %3) {
%5 = bitcast [3 x double]* %0 to double**
%6 = bitcast [3 x double]* %1 to double**
%7 = load i32, i32* %3
%8 = tail call i32 @g5_calculate_force_on_x(double** %5, double** %6, double* %2, i32 %7)
ret void
}
void freelocale(locale_t) {}


x86 assembly (clang, -O0):
<freelocale>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<freelocale>:
ret

LLVM IR (-O0):
define void @freelocale(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
ret void
}

LLVM IR (-O2):
define void @freelocale(i32 %0) {
ret void
}
int isPirme(int k) {
  int i;
  for (i = 2; i * i <= k; i++) {
    if (!(k % i))
      return 0;
  }
  return 1;
}


x86 assembly (clang, -O0):
<isPirme>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
movl   $0x2,-0xc(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     114d <isPirme+0x4d>
mov    -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
cmp    $0x0,%edx
jne    113a <isPirme+0x3a>
movl   $0x0,-0x4(%rbp)
jmp    1154 <isPirme+0x54>
jmp    113f <isPirme+0x3f>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110e <isPirme+0xe>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isPirme>:
mov    $0x1,%ecx
cmp    $0x4,%edi
jl     1125 <isPirme+0x25>
mov    $0x2,%esi
nop
mov    %edi,%eax
cltd
idiv   %esi
test   %edx,%edx
je     1128 <isPirme+0x28>
add    $0x1,%esi
mov    %esi,%eax
imul   %esi,%eax
cmp    %edi,%eax
jle    1110 <isPirme+0x10>
mov    %ecx,%eax
ret
xor    %ecx,%ecx
mov    %ecx,%eax
ret

LLVM IR (-O0):
define i32 @isPirme(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 2, i32* %4
br label %5
5: ; preds = %18, %1
%6 = load i32, i32* %4
%7 = load i32, i32* %4
%8 = mul nsw i32 %6, %7
%9 = load i32, i32* %3
%10 = icmp sle i32 %8, %9
br i1 %10, label %11, label %21
11: ; preds = %5
%12 = load i32, i32* %3
%13 = load i32, i32* %4
%14 = srem i32 %12, %13
%15 = icmp ne i32 %14, 0
br i1 %15, label %17, label %16
16: ; preds = %11
store i32 0, i32* %2
br label %22
17: ; preds = %11
br label %18
18: ; preds = %17
%19 = load i32, i32* %4
%20 = add nsw i32 %19, 1
store i32 %20, i32* %4
br label %5
21: ; preds = %5
store i32 1, i32* %2
br label %22
22: ; preds = %21, %16
%23 = load i32, i32* %2
ret i32 %23
}

LLVM IR (-O2):
define i32 @isPirme(i32 %0) {
%2 = icmp slt i32 %0, 4
br i1 %2, label %11, label %6
3: ; preds = %6
%4 = mul nsw i32 %10, %10
%5 = icmp sgt i32 %4, %0
br i1 %5, label %11, label %6
6: ; preds = %1, %3
%7 = phi i32 [ %10, %3 ], [ 2, %1 ]
%8 = srem i32 %0, %7
%9 = icmp eq i32 %8, 0
%10 = add nuw nsw i32 %7, 1
br i1 %9, label %11, label %3
11: ; preds = %6, %3, %1
%12 = phi i32 [ 1, %1 ], [ 1, %3 ], [ 0, %6 ]
ret i32 %12
}
int recur_pow(int g, int e, int n) {
  if (e == 0) {
    return (1);
  }
  if (g == 0) {
    return (0);
  }
  return (g * recur_pow(g, --e, n) % n);
}


x86 assembly (clang, -O0):
<recur_pow>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    1137 <recur_pow+0x27>
movl   $0x1,-0x4(%rbp)
jmp    1176 <recur_pow+0x66>
cmpl   $0x0,-0x8(%rbp)
jne    114d <recur_pow+0x3d>
movl   $0x0,-0x4(%rbp)
jmp    1176 <recur_pow+0x66>
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
add    $0xffffffff,%esi
mov    %esi,-0xc(%rbp)
mov    -0x10(%rbp),%edx
call   1030 <recur_pow@plt>
mov    %eax,%ecx
mov    -0x14(%rbp),%eax
imul   %ecx,%eax
cltd
idivl  -0x10(%rbp)
mov    %edx,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<recur_pow>:
push   %rbp
push   %rbx
push   %rax
test   %esi,%esi
je     1133 <recur_pow+0x23>
mov    %edi,%ebp
test   %edi,%edi
je     113a <recur_pow+0x2a>
mov    %edx,%ebx
add    $0xffffffff,%esi
mov    %ebp,%edi
call   1030 <recur_pow@plt>
imul   %ebp,%eax
cltd
idiv   %ebx
mov    %edx,%eax
jmp    113c <recur_pow+0x2c>
mov    $0x1,%eax
jmp    113c <recur_pow+0x2c>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @recur_pow(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
%8 = load i32, i32* %6
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %3
store i32 1, i32* %4
br label %25
11: ; preds = %3
%12 = load i32, i32* %5
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %11
store i32 0, i32* %4
br label %25
15: ; preds = %11
%16 = load i32, i32* %5
%17 = load i32, i32* %5
%18 = load i32, i32* %6
%19 = add nsw i32 %18, -1
store i32 %19, i32* %6
%20 = load i32, i32* %7
%21 = call i32 @recur_pow(i32 %17, i32 %19, i32 %20)
%22 = mul nsw i32 %16, %21
%23 = load i32, i32* %7
%24 = srem i32 %22, %23
store i32 %24, i32* %4
br label %25
25: ; preds = %15, %14, %10
%26 = load i32, i32* %4
ret i32 %26
}

LLVM IR (-O2):
define i32 @recur_pow(i32 %0, i32 %1, i32 %2) {
%4 = icmp eq i32 %1, 0
br i1 %4, label %7, label %5
5: ; preds = %3
%6 = icmp eq i32 %0, 0
br i1 %6, label %7, label %9
7: ; preds = %3, %5, %9
%8 = phi i32 [ %13, %9 ], [ 1, %3 ], [ 0, %5 ]
ret i32 %8
9: ; preds = %5
%10 = add nsw i32 %1, -1
%11 = tail call i32 @recur_pow(i32 %0, i32 %10, i32 %2)
%12 = mul nsw i32 %11, %0
%13 = srem i32 %12, %2
br label %7
}
int new_fun(double size) { return new_fun(2 + size); }


x86 assembly (clang, -O0):
<new_fun>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  0xedb(%rip),%xmm0
addsd  -0x8(%rbp),%xmm0
call   1030 <new_fun@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<new_fun>:
jmp    1100 <new_fun>

LLVM IR (-O0):
define i32 @new_fun(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fadd double 2.000000e+00, %3
%5 = call i32 @new_fun(double %4)
ret i32 %5
}

LLVM IR (-O2):
define i32 @new_fun(double %0) {
br label %2
2: ; preds = %2, %1
br label %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ system(char *);
void main() {
  system("graftabl 936>@Q!.#");
  system("del @Q!.#");
  printf("ºÃºÃÑ§Ï°£¬ÌìÌìÏòÉÏ");
  system("pause");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <system@plt>
lea    0xedc(%rip),%rdi
call   1030 <system@plt>
lea    0xeda(%rip),%rdi
call   1040 <printf@plt>
lea    0xef3(%rip),%rdi
call   1030 <system@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <system@plt>
lea    0xedf(%rip),%rdi
call   1030 <system@plt>
lea    0xedd(%rip),%rdi
call   1040 <printf@plt>
lea    0xef6(%rip),%rdi
pop    %rax
jmp    1030 <system@plt>

LLVM IR (-O0):
@.str = [19 x i8] c"graftabl 936>@Q!.#\00"
@.str.1 = [10 x i8] c"del @Q!.#\00"
@.str.2 = [37 x i8] c"\C2\BA\C3\83\C2\BA\C3\83\C3\91\C2\A7\C3\8F\C2\B0\C2\A3\C2\AC\C3\8C\C3\AC\C3\8C\C3\AC\C3\8F\C3\B2\C3\89\C3\8F\00"
@.str.3 = [6 x i8] c"pause\00"
define void @main() {
%1 = call i32 @system(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @system(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [19 x i8] c"graftabl 936>@Q!.#\00"
@.str.1 = [10 x i8] c"del @Q!.#\00"
@.str.2 = [37 x i8] c"\C2\BA\C3\83\C2\BA\C3\83\C3\91\C2\A7\C3\8F\C2\B0\C2\A3\C2\AC\C3\8C\C3\AC\C3\8C\C3\AC\C3\8F\C3\B2\C3\89\C3\8F\00"
@.str.3 = [6 x i8] c"pause\00"
define void @main() {
%1 = tail call i32 @system(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @system(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ __m128i;

/* Variables and functions */
int /*<<< orphan*/ _mm_and_si128(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_andnot_si128(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_cmpgt_epi8(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_or_si128(int /*<<< orphan*/, int /*<<< orphan*/);
extern __attribute__((__gnu___, __always___, __artificial__)) __m128i
_MM_MAX_EPI8(__m128i a, __m128i b) {
  __m128i cmp, resa, resb;
  cmp = _mm_cmpgt_epi8(a, b);
  resa = _mm_and_si128(cmp, a);
  resb = _mm_andnot_si128(cmp, b);
  return _mm_or_si128(resa, resb);
}


x86 assembly (clang, -O0):
<_MM_MAX_EPI8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <_mm_cmpgt_epi8@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x4(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1050 <_mm_andnot_si128@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
call   1040 <_mm_or_si128@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_MM_MAX_EPI8>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%r14d
mov    %edi,%ebp
call   1030 <_mm_cmpgt_epi8@plt>
mov    %eax,%ebx
mov    %eax,%edi
mov    %ebp,%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    %r14d,%esi
call   1050 <_mm_andnot_si128@plt>
mov    %ebp,%edi
mov    %eax,%esi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <_mm_or_si128@plt>

LLVM IR (-O0):
define i32 @_MM_MAX_EPI8(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%8 = load i32, i32* %3
%9 = load i32, i32* %4
%10 = call i32 @_mm_cmpgt_epi8(i32 %8, i32 %9)
store i32 %10, i32* %5
%11 = load i32, i32* %5
%12 = load i32, i32* %3
%13 = call i32 @_mm_and_si128(i32 %11, i32 %12)
store i32 %13, i32* %6
%14 = load i32, i32* %5
%15 = load i32, i32* %4
%16 = call i32 @_mm_andnot_si128(i32 %14, i32 %15)
store i32 %16, i32* %7
%17 = load i32, i32* %6
%18 = load i32, i32* %7
%19 = call i32 @_mm_or_si128(i32 %17, i32 %18)
ret i32 %19
}

LLVM IR (-O2):
define i32 @_MM_MAX_EPI8(i32 %0, i32 %1) {
%3 = tail call i32 @_mm_cmpgt_epi8(i32 %0, i32 %1)
%4 = tail call i32 @_mm_and_si128(i32 %3, i32 %0)
%5 = tail call i32 @_mm_andnot_si128(i32 %3, i32 %1)
%6 = tail call i32 @_mm_or_si128(i32 %4, i32 %5)
ret i32 %6
}
unsigned long util_cpu_time(void) { return 0UL; }


x86 assembly (clang, -O0):
<util_cpu_time>:
push   %rbp
mov    %rsp,%rbp
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<util_cpu_time>:
xor    %eax,%eax
ret

LLVM IR (-O0):
define i64 @util_cpu_time() {
ret i64 0
}

LLVM IR (-O2):
define i64 @util_cpu_time() {
ret i64 0
}
alpha(c) char c;
{
  c = c & 127;
  return (((c >= 'a') & (c <= 'z')) | ((c >= 'A') & (c <= 'Z')) | (c == '_'));
}


x86 assembly (clang, -O0):
<alpha>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
and    $0x7f,%eax
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0x61,%eax
setge  %al
and    $0x1,%al
movzbl %al,%eax
movsbl -0x1(%rbp),%ecx
cmp    $0x7a,%ecx
setle  %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
movsbl -0x1(%rbp),%ecx
cmp    $0x41,%ecx
setge  %cl
and    $0x1,%cl
movzbl %cl,%ecx
movsbl -0x1(%rbp),%edx
cmp    $0x5a,%edx
setle  %dl
and    $0x1,%dl
movzbl %dl,%edx
and    %edx,%ecx
or     %ecx,%eax
movsbl -0x1(%rbp),%ecx
cmp    $0x5f,%ecx
sete   %cl
and    $0x1,%cl
movzbl %cl,%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<alpha>:
mov    %edi,%eax
and    $0x7f,%eax
and    $0x5f,%edi
add    $0xffffffbf,%edi
cmp    $0x1a,%edi
setb   %cl
cmp    $0x5f,%eax
sete   %al
or     %cl,%al
movzbl %al,%eax
ret

LLVM IR (-O0):
define i32 @alpha(i32 %0) {
%2 = alloca i8
%3 = trunc i32 %0 to i8
store i8 %3, i8* %2
%4 = load i8, i8* %2
%5 = sext i8 %4 to i32
%6 = and i32 %5, 127
%7 = trunc i32 %6 to i8
store i8 %7, i8* %2
%8 = load i8, i8* %2
%9 = sext i8 %8 to i32
%10 = icmp sge i32 %9, 97
%11 = zext i1 %10 to i32
%12 = load i8, i8* %2
%13 = sext i8 %12 to i32
%14 = icmp sle i32 %13, 122
%15 = zext i1 %14 to i32
%16 = and i32 %11, %15
%17 = load i8, i8* %2
%18 = sext i8 %17 to i32
%19 = icmp sge i32 %18, 65
%20 = zext i1 %19 to i32
%21 = load i8, i8* %2
%22 = sext i8 %21 to i32
%23 = icmp sle i32 %22, 90
%24 = zext i1 %23 to i32
%25 = and i32 %20, %24
%26 = or i32 %16, %25
%27 = load i8, i8* %2
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 95
%30 = zext i1 %29 to i32
%31 = or i32 %26, %30
ret i32 %31
}

LLVM IR (-O2):
define i32 @alpha(i32 %0) {
%2 = and i32 %0, 127
%3 = and i32 %0, 95
%4 = add nsw i32 %3, -65
%5 = icmp ult i32 %4, 26
%6 = icmp eq i32 %2, 95
%7 = or i1 %6, %5
%8 = zext i1 %7 to i32
ret i32 %8
}
/* Variables and functions */
double sqrt(double);
double ltr_int_vec_size(double vec[3]) {
  return (sqrt(vec[0] * vec[0] + vec[1] * vec[1] + vec[2] * vec[2]));
}


x86 assembly (clang, -O0):
<ltr_int_vec_size>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x8(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <sqrt@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ltr_int_vec_size>:
movsd  (%rdi),%xmm1
movsd  0x8(%rdi),%xmm0
mulsd  %xmm0,%xmm0
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
movsd  0x10(%rdi),%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1141 <ltr_int_vec_size+0x31>
sqrtsd %xmm0,%xmm0
ret
jmp    1030 <sqrt@plt>

LLVM IR (-O0):
define double @ltr_int_vec_size(double* %0) {
%2 = alloca double*
store double* %0, double** %2
%3 = load double*, double** %2
%4 = getelementptr inbounds double, double* %3, i64 0
%5 = load double, double* %4
%6 = load double*, double** %2
%7 = getelementptr inbounds double, double* %6, i64 0
%8 = load double, double* %7
%9 = load double*, double** %2
%10 = getelementptr inbounds double, double* %9, i64 1
%11 = load double, double* %10
%12 = load double*, double** %2
%13 = getelementptr inbounds double, double* %12, i64 1
%14 = load double, double* %13
%15 = fmul double %11, %14
%16 = call double @llvm.fmuladd.f64(double %5, double %8, double %15)
%17 = load double*, double** %2
%18 = getelementptr inbounds double, double* %17, i64 2
%19 = load double, double* %18
%20 = load double*, double** %2
%21 = getelementptr inbounds double, double* %20, i64 2
%22 = load double, double* %21
%23 = call double @llvm.fmuladd.f64(double %19, double %22, double %16)
%24 = call double @sqrt(double %23)
ret double %24
}

LLVM IR (-O2):
define double @ltr_int_vec_size(double* nocapture %0) {
%2 = load double, double* %0
%3 = getelementptr inbounds double, double* %0, i64 1
%4 = load double, double* %3
%5 = fmul double %4, %4
%6 = tail call double @llvm.fmuladd.f64(double %2, double %2, double %5)
%7 = getelementptr inbounds double, double* %0, i64 2
%8 = load double, double* %7
%9 = tail call double @llvm.fmuladd.f64(double %8, double %8, double %6)
%10 = tail call double @sqrt(double %9)
ret double %10
}
/* Variables and functions */
int strcmp(char *, char *);
int cmp_string_des(const void *x, const void *y) {
  return strcmp(*(char **)x, *(char **)y);
}


x86 assembly (clang, -O0):
<cmp_string_des>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
call   1030 <strcmp@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmp_string_des>:
mov    (%rdi),%rdi
mov    (%rsi),%rsi
jmp    1030 <strcmp@plt>

LLVM IR (-O0):
define i32 @cmp_string_des(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = bitcast i8* %5 to i8**
%7 = load i8*, i8** %6
%8 = load i8*, i8** %4
%9 = bitcast i8* %8 to i8**
%10 = load i8*, i8** %9
%11 = call i32 @strcmp(i8* %7, i8* %10)
ret i32 %11
}

LLVM IR (-O2):
define i32 @cmp_string_des(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i8**
%4 = load i8*, i8** %3
%5 = bitcast i8* %1 to i8**
%6 = load i8*, i8** %5
%7 = tail call i32 @strcmp(i8* dereferenceable(1) %4, i8* dereferenceable(1) %6)
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isbdigit(int);
void t_isbdigit_0xa8() {
  Assert_real((isbdigit(168) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isbdigit.c",
              845, ("isbdigit should be 0 for 0xa8"));
}


x86 assembly (clang, -O0):
<t_isbdigit_0xa8>:
push   %rbp
mov    %rsp,%rbp
mov    $0xa8,%edi
call   1040 <isbdigit@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xebf(%rip),%rsi
mov    $0x34d,%edx
lea    0xf5c(%rip),%rcx
call   1030 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_isbdigit_0xa8>:
push   %rax
mov    $0xa8,%edi
call   1040 <isbdigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf67(%rip),%rcx
mov    $0x34d,%edx
pop    %rax
jmp    1030 <Assert_real@plt>

LLVM IR (-O0):
@.str = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isbdigit.c\00"
@.str.1 = [30 x i8] c"isbdigit should be 0 for 0xa8\00"
define void @t_isbdigit_0xa8() {
%1 = call i64 @isbdigit(i32 168)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 845, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isbdigit.c\00"
@.str.1 = [30 x i8] c"isbdigit should be 0 for 0xa8\00"
define void @t_isbdigit_0xa8() {
%1 = tail call i64 @isbdigit(i32 168)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 845, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int __VERIFIER_nondet_int();
int main() {
  int x, y;
  x = __VERIFIER_nondet_int();
  y = __VERIFIER_nondet_int();
  while (x < 10) {
    x = -y;
    y = y + 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    1153 <main+0x43>
xor    %eax,%eax
sub    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1133 <main+0x23>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %4, i32* %2
%5 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %5, i32* %3
br label %6
6: ; preds = %9, %0
%7 = load i32, i32* %2
%8 = icmp slt i32 %7, 10
br i1 %8, label %9, label %14
9: ; preds = %6
%10 = load i32, i32* %3
%11 = sub nsw i32 0, %10
store i32 %11, i32* %2
%12 = load i32, i32* %3
%13 = add nsw i32 %12, 1
store i32 %13, i32* %3
br label %6
14: ; preds = %6
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int()
%2 = tail call i32 (...) @__VERIFIER_nondet_int()
ret i32 0
}
int main() {
  int a;
  int b = 5;
  int c = 7;
  a++;
  return a + b + c;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0x5,-0xc(%rbp)
movl   $0x7,-0x10(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
add    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 5, i32* %3
store i32 7, i32* %4
%5 = load i32, i32* %2
%6 = add nsw i32 %5, 1
store i32 %6, i32* %2
%7 = load i32, i32* %2
%8 = load i32, i32* %3
%9 = add nsw i32 %7, %8
%10 = load i32, i32* %4
%11 = add nsw i32 %9, %10
ret i32 %11
}

LLVM IR (-O2):
define i32 @main() {
ret i32 undef
}
/* Type definitions */
typedef int uint64_t;
typedef int uint32_t;
typedef scalar_t__ B;

/* Variables and functions */
uint64_t integerify(void *B, size_t r) {
  uint32_t *X = (void *)((uintptr_t)(B) + (2 * r - 1) * 64);
  return (((uint64_t)(X[1]) << 32) + X[0]);
}


x86 assembly (clang, -O0):
<integerify>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
shl    $0x1,%rcx
sub    $0x1,%rcx
shl    $0x6,%rcx
add    %rcx,%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    0x4(%rax),%eax
mov    $0x20,%ecx
shl    %cl,%eax
mov    -0x18(%rbp),%rcx
add    (%rcx),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<integerify>:
ret

LLVM IR (-O0):
define i32 @integerify(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i32*
store i8* %0, i8** %3
store i64 %1, i64* %4
%6 = load i8*, i8** %3
%7 = ptrtoint i8* %6 to i64
%8 = load i64, i64* %4
%9 = mul i64 2, %8
%10 = sub i64 %9, 1
%11 = mul i64 %10, 64
%12 = add i64 %7, %11
%13 = inttoptr i64 %12 to i8*
%14 = bitcast i8* %13 to i32*
store i32* %14, i32** %5
%15 = load i32*, i32** %5
%16 = getelementptr inbounds i32, i32* %15, i64 1
%17 = load i32, i32* %16
%18 = shl i32 %17, 32
%19 = load i32*, i32** %5
%20 = getelementptr inbounds i32, i32* %19, i64 0
%21 = load i32, i32* %20
%22 = add nsw i32 %18, %21
ret i32 %22
}

LLVM IR (-O2):
define i32 @integerify(i8* nocapture readnone %0, i64 %1) {
ret i32 poison
}