xunge/DecIR huggingface dataset:
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fwrite(char *, size_t, int, int /*<<< orphan*/ *);
void set_comm_name(char *buf, size_t buf_sz) {
  FILE *f = fopen("/proc/self/comm", "w");
  fwrite(buf, buf_sz, 1, f);
  fclose(f);
}


x86 assembly (clang, -O0):
<set_comm_name>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeb9(%rip),%rdi
lea    0xec2(%rip),%rsi
call   1040 <fopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rcx
mov    $0x1,%edx
call   1050 <fwrite@plt>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_comm_name>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%r15
lea    0xebe(%rip),%rdi
lea    0xec7(%rip),%rsi
call   1040 <fopen@plt>
mov    %rax,%rbx
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0x1,%edx
mov    %rax,%rcx
call   1050 <fwrite@plt>
mov    %rbx,%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <fclose@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"/proc/self/comm\00"
@.str.1 = [2 x i8] c"w\00"
define void @set_comm_name(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i32*
store i8* %0, i8** %3
store i64 %1, i64* %4
%6 = call i32* @fopen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %6, i32** %5
%7 = load i8*, i8** %3
%8 = load i64, i64* %4
%9 = load i32*, i32** %5
%10 = call i32 @fwrite(i8* %7, i64 %8, i32 1, i32* %9)
%11 = load i32*, i32** %5
%12 = call i32 @fclose(i32* %11)
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"/proc/self/comm\00"
@.str.1 = [2 x i8] c"w\00"
define void @set_comm_name(i8* nocapture %0, i64 %1) {
%3 = tail call i32* @fopen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @fwrite(i8* %0, i64 %1, i32 1, i32* %3)
%5 = tail call i32 @fclose(i32* %3)
ret void
}
unsigned short qnext(unsigned short q) {
  unsigned short qnext;
  qnext = q >> 2;
  qnext = qnext >> 1;
  qnext = qnext << 2;
  return qnext;
}


x86 assembly (clang, -O0):
<qnext>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
movzwl -0x2(%rbp),%eax
sar    $0x2,%eax
mov    %ax,-0x4(%rbp)
movzwl -0x4(%rbp),%eax
sar    $0x1,%eax
mov    %ax,-0x4(%rbp)
movzwl -0x4(%rbp),%eax
shl    $0x2,%eax
mov    %ax,-0x4(%rbp)
movzwl -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<qnext>:
mov    %edi,%eax
shr    %eax
and    $0xfffffffc,%eax
ret

LLVM IR (-O0):
define zeroext i16 @qnext(i16 zeroext %0) {
%2 = alloca i16
%3 = alloca i16
store i16 %0, i16* %2
%4 = load i16, i16* %2
%5 = zext i16 %4 to i32
%6 = ashr i32 %5, 2
%7 = trunc i32 %6 to i16
store i16 %7, i16* %3
%8 = load i16, i16* %3
%9 = zext i16 %8 to i32
%10 = ashr i32 %9, 1
%11 = trunc i32 %10 to i16
store i16 %11, i16* %3
%12 = load i16, i16* %3
%13 = zext i16 %12 to i32
%14 = shl i32 %13, 2
%15 = trunc i32 %14 to i16
store i16 %15, i16* %3
%16 = load i16, i16* %3
ret i16 %16
}

LLVM IR (-O2):
define zeroext i16 @qnext(i16 zeroext %0) {
%2 = lshr i16 %0, 1
%3 = and i16 %2, 32764
ret i16 %3
}
/* Variables and functions */
int /*<<< orphan*/ ccuConfigureSlice(int /*<<< orphan*/, int /*<<< orphan*/,
                                     int, int, int, int, int,
                                     int /*<<< orphan*/, int /*<<< orphan*/,
                                     int);
int /*<<< orphan*/ ccuEnable(int);
int /*<<< orphan*/ ccuEvent0(int, int, int, int);
int /*<<< orphan*/ ccuStartSlices(int);
void configureCCU(void) {
  ccuEnable((0x03 << 8));
  ccuConfigureSlice(0, ccuEvent0(0x0008, 0x01, 0x00, (0x00)), (0x01 << 0),
                    0x00 | (1 << 2) | (1 << 10), 0x0a, 31249, 31249, 0, 0, 1);
  ccuStartSlices((1 << 0));
}


x86 assembly (clang, -O0):
<configureCCU>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    $0x300,%edi
call   1040 <ccuEnable@plt>
mov    $0x8,%edi
mov    $0x1,%esi
xor    %ecx,%ecx
mov    %ecx,%edx
call   1060 <ccuEvent0@plt>
mov    %eax,%esi
xor    %edi,%edi
mov    $0x1,%edx
mov    $0x404,%ecx
mov    $0xa,%r8d
mov    $0x7a11,%r9d
movl   $0x7a11,(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0x10(%rsp)
movl   $0x1,0x18(%rsp)
call   1050 <ccuConfigureSlice@plt>
mov    $0x1,%edi
call   1030 <ccuStartSlices@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<configureCCU>:
push   %rax
mov    $0x300,%edi
call   1040 <ccuEnable@plt>
mov    $0x8,%edi
mov    $0x1,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1060 <ccuEvent0@plt>
xor    %edi,%edi
mov    %eax,%esi
mov    $0x1,%edx
mov    $0x404,%ecx
mov    $0xa,%r8d
mov    $0x7a11,%r9d
push   $0x1
push   $0x0
push   $0x0
push   $0x7a11
call   1050 <ccuConfigureSlice@plt>
add    $0x20,%rsp
mov    $0x1,%edi
pop    %rax
jmp    1030 <ccuStartSlices@plt>

LLVM IR (-O0):
define void @configureCCU() {
%1 = call i32 @ccuEnable(i32 768)
%2 = call i32 @ccuEvent0(i32 8, i32 1, i32 0, i32 0)
%3 = call i32 @ccuConfigureSlice(i32 0, i32 %2, i32 1, i32 1028, i32 10, i32 31249, i32 31249, i32 0, i32 0, i32 1)
%4 = call i32 @ccuStartSlices(i32 1)
ret void
}

LLVM IR (-O2):
define void @configureCCU() {
%1 = tail call i32 @ccuEnable(i32 768)
%2 = tail call i32 @ccuEvent0(i32 8, i32 1, i32 0, i32 0)
%3 = tail call i32 @ccuConfigureSlice(i32 0, i32 %2, i32 1, i32 1028, i32 10, i32 31249, i32 31249, i32 0, i32 0, i32 1)
%4 = tail call i32 @ccuStartSlices(i32 1)
ret void
}
int main(int argc, const char *argv[]) {
  struct nested_struct {
    int c;
    signed char d;
  };
  struct my_struct {
    int a;
    struct nested_struct b[2];
  };
  struct my_struct array[2];
  int a = array[0].a;
  int c = array[0].b[0].c;
  signed char d = array[1].b[1].d;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x40(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x1c(%rbp),%al
mov    %al,-0x49(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.my_struct = type { i32, [2 x %struct.nested_struct] }
%struct.nested_struct = type { i32, i8 }
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [2 x %struct.my_struct]
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = getelementptr inbounds [2 x %struct.my_struct], [2 x %struct.my_struct]* %6, i64 0, i64 0
%11 = getelementptr inbounds %struct.my_struct, %struct.my_struct* %10, i32 0, i32 0
%12 = load i32, i32* %11
store i32 %12, i32* %7
%13 = getelementptr inbounds [2 x %struct.my_struct], [2 x %struct.my_struct]* %6, i64 0, i64 0
%14 = getelementptr inbounds %struct.my_struct, %struct.my_struct* %13, i32 0, i32 1
%15 = getelementptr inbounds [2 x %struct.nested_struct], [2 x %struct.nested_struct]* %14, i64 0, i64 0
%16 = getelementptr inbounds %struct.nested_struct, %struct.nested_struct* %15, i32 0, i32 0
%17 = load i32, i32* %16
store i32 %17, i32* %8
%18 = getelementptr inbounds [2 x %struct.my_struct], [2 x %struct.my_struct]* %6, i64 0, i64 1
%19 = getelementptr inbounds %struct.my_struct, %struct.my_struct* %18, i32 0, i32 1
%20 = getelementptr inbounds [2 x %struct.nested_struct], [2 x %struct.nested_struct]* %19, i64 0, i64 1
%21 = getelementptr inbounds %struct.nested_struct, %struct.nested_struct* %20, i32 0, i32 1
%22 = load i8, i8* %21
store i8 %22, i8* %9
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  int i, sum = 0;
  for (i = 1; i <= 10; i++) {
    sum += i;
  }
  printf("sum = %d\n", sum);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jg     114e <main+0x3e>
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    112d <main+0x1d>
mov    -0xc(%rbp),%esi
lea    0xea8(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x37,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [10 x i8] c"sum = %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %3
store i32 1, i32* %2
br label %4
4: ; preds = %11, %0
%5 = load i32, i32* %2
%6 = icmp sle i32 %5, 10
br i1 %6, label %7, label %14
7: ; preds = %4
%8 = load i32, i32* %2
%9 = load i32, i32* %3
%10 = add nsw i32 %9, %8
store i32 %10, i32* %3
br label %11
11: ; preds = %7
%12 = load i32, i32* %2
%13 = add nsw i32 %12, 1
store i32 %13, i32* %2
br label %4
14: ; preds = %4
%15 = load i32, i32* %3
%16 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %15)
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"sum = %d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 55)
ret i32 0
}
void gdk_window_unfullscreen() {}


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

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

LLVM IR (-O0):
define void @gdk_window_unfullscreen() {
ret void
}

LLVM IR (-O2):
define void @gdk_window_unfullscreen() {
ret void
}
/* Variables and functions */
int fatorial(int);
int /*<<< orphan*/ printf(char *, int);
main() {
  printf("Fatorial de 6 eh: %d\n", fatorial(6));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x6,%edi
call   1040 <fatorial@plt>
mov    %eax,%esi
lea    0xebe(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x6,%edi
call   1040 <fatorial@plt>
lea    0xece(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [22 x i8] c"Fatorial de 6 eh: %d\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @fatorial(i32 6)
%3 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %2)
ret i32 0
}

LLVM IR (-O2):
@.str = [22 x i8] c"Fatorial de 6 eh: %d\0A\00"
define i32 @main() {
%1 = tail call i32 @fatorial(i32 6)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ HandleInterrupt(int);
void INT_P1(void) { HandleInterrupt(1); }


x86 assembly (clang, -O0):
<INT_P1>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
call   1030 <HandleInterrupt@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<INT_P1>:
mov    $0x1,%edi
jmp    1030 <HandleInterrupt@plt>

LLVM IR (-O0):
define void @INT_P1() {
%1 = call i32 @HandleInterrupt(i32 1)
ret void
}

LLVM IR (-O2):
define void @INT_P1() {
%1 = tail call i32 @HandleInterrupt(i32 1)
ret void
}
/* Variables and functions */
int writestring(void *, char *, int);
int putc(int c, void *f) {
  char ch = c;
  return writestring(f, &ch, 1) == 1 ? c : -1;
}


x86 assembly (clang, -O0):
<putc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%eax
mov    %al,-0x11(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x11(%rbp),%rsi
mov    $0x1,%edx
call   1030 <writestring@plt>
cmp    $0x1,%eax
jne    114b <putc+0x3b>
mov    -0x4(%rbp),%eax
mov    %eax,-0x18(%rbp)
jmp    1158 <putc+0x48>
mov    $0xffffffff,%eax
mov    %eax,-0x18(%rbp)
jmp    1158 <putc+0x48>
mov    -0x18(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<putc>:
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%rax
mov    %edi,%ebx
mov    %bl,0xf(%rsp)
lea    0xf(%rsp),%rsi
mov    %rax,%rdi
mov    $0x1,%edx
call   1030 <writestring@plt>
cmp    $0x1,%eax
mov    $0xffffffff,%eax
cmove  %ebx,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @putc(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8
store i32 %0, i32* %3
store i8* %1, i8** %4
%6 = load i32, i32* %3
%7 = trunc i32 %6 to i8
store i8 %7, i8* %5
%8 = load i8*, i8** %4
%9 = call i32 @writestring(i8* %8, i8* %5, i32 1)
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = load i32, i32* %3
br label %14
13: ; preds = %2
br label %14
14: ; preds = %13, %11
%15 = phi i32 [ %12, %11 ], [ -1, %13 ]
ret i32 %15
}

LLVM IR (-O2):
define i32 @putc(i32 %0, i8* %1) {
%3 = alloca i8
%4 = trunc i32 %0 to i8
store i8 %4, i8* %3
%5 = call i32 @writestring(i8* %1, i8* %3, i32 1)
%6 = icmp eq i32 %5, 1
%7 = select i1 %6, i32 %0, i32 -1
ret i32 %7
}
void f_l(void) {
  long x;
  asm("" : "=@ccc"(x));
}


x86 assembly (clang, -O0):
<f_l>:
push   %rbp
mov    %rsp,%rbp
setb   %al
movzbl %al,%eax
mov    %rax,-0x8(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @f_l() {
%1 = alloca i64
%2 = call i64 asm "", "={@ccc},~{dirflag},~{fpsr},~{flags}"()
store i64 %2, i64* %1
ret void
}

LLVM IR (-O2):
define void @f_l() {
%1 = tail call i64 asm "", "={@ccc},~{dirflag},~{fpsr},~{flags}"()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *, int *, int *);
int main() {
  int a, b, c;
  scanf("%d%d%d\n", &a, &b, &c);
  if (a < b && b < c)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1170 <main+0x50>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1170 <main+0x50>
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
jmp    117c <main+0x5c>
lea    0xe96(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xed5(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
call   1040 <scanf@plt>
mov    0x10(%rsp),%eax
cmp    0xc(%rsp),%eax
lea    0xebd(%rip),%rdi
lea    0xeb3(%rip),%rcx
cmovge %rcx,%rdi
cmp    %eax,0x14(%rsp)
cmovge %rcx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [8 x i8] c"%d%d%d\0A\00"
@.str.1 = [5 x i8] c"Yes\0A\00"
@.str.2 = [4 x i8] c"No\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3, i32* %4)
%6 = load i32, i32* %2
%7 = load i32, i32* %3
%8 = icmp slt i32 %6, %7
br i1 %8, label %9, label %15
9: ; preds = %0
%10 = load i32, i32* %3
%11 = load i32, i32* %4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %15
13: ; preds = %9
%14 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %17
15: ; preds = %9, %0
%16 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
br label %17
17: ; preds = %15, %13
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"%d%d%d\0A\00"
@str = [3 x i8] c"No\00"
@str.3 = [4 x i8] c"Yes\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%8 = load i32, i32* %1
%9 = load i32, i32* %2
%10 = icmp slt i32 %8, %9
%11 = load i32, i32* %3
%12 = icmp slt i32 %9, %11
%13 = select i1 %10, i1 %12, i1 false
%14 = select i1 %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @str, i64 0, i64 0)
%15 = call i32 @puts(i8* dereferenceable(1) %14)
ret i32 0
}
void gtk_text_iter_set_line() {}


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

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

LLVM IR (-O0):
define void @gtk_text_iter_set_line() {
ret void
}

LLVM IR (-O2):
define void @gtk_text_iter_set_line() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ done_testing();
int /*<<< orphan*/ finish_sym();
int /*<<< orphan*/ init_sym();
int /*<<< orphan*/ init_test();
int /*<<< orphan*/ test_asym();
int /*<<< orphan*/ test_basics();
int /*<<< orphan*/ test_dup();
int /*<<< orphan*/ test_loc();
int /*<<< orphan*/ test_sym();
int main(void) {
  init_test();
  init_sym();
  test_basics();
  test_sym();
  test_asym();
  test_loc();
  test_dup();
  finish_sym();
  done_testing();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   10b0 <init_test@plt>
mov    $0x0,%al
call   1090 <init_sym@plt>
mov    $0x0,%al
call   10a0 <test_basics@plt>
mov    $0x0,%al
call   1040 <test_sym@plt>
mov    $0x0,%al
call   1050 <test_asym@plt>
mov    $0x0,%al
call   1070 <test_loc@plt>
mov    $0x0,%al
call   1030 <test_dup@plt>
mov    $0x0,%al
call   1080 <finish_sym@plt>
mov    $0x0,%al
call   1060 <done_testing@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   10b0 <init_test@plt>
xor    %eax,%eax
call   1090 <init_sym@plt>
xor    %eax,%eax
call   10a0 <test_basics@plt>
xor    %eax,%eax
call   1040 <test_sym@plt>
xor    %eax,%eax
call   1050 <test_asym@plt>
xor    %eax,%eax
call   1070 <test_loc@plt>
xor    %eax,%eax
call   1030 <test_dup@plt>
xor    %eax,%eax
call   1080 <finish_sym@plt>
xor    %eax,%eax
call   1060 <done_testing@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 (...) @init_test()
%2 = call i32 (...) @init_sym()
%3 = call i32 (...) @test_basics()
%4 = call i32 (...) @test_sym()
%5 = call i32 (...) @test_asym()
%6 = call i32 (...) @test_loc()
%7 = call i32 (...) @test_dup()
%8 = call i32 (...) @finish_sym()
%9 = call i32 (...) @done_testing()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @init_test()
%2 = tail call i32 (...) @init_sym()
%3 = tail call i32 (...) @test_basics()
%4 = tail call i32 (...) @test_sym()
%5 = tail call i32 (...) @test_asym()
%6 = tail call i32 (...) @test_loc()
%7 = tail call i32 (...) @test_dup()
%8 = tail call i32 (...) @finish_sym()
%9 = tail call i32 (...) @done_testing()
ret i32 0
}
/* Variables and functions */
float fastsqrt1(float);
float fastsqrt2(float x) {
  float v = fastsqrt1(x);
  v = 0.5f * (v + x / v);
  return v;
}


x86 assembly (clang, -O0):
<fastsqrt2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <fastsqrt1@plt>
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm1
movss  -0x4(%rbp),%xmm0
divss  -0x8(%rbp),%xmm0
addss  %xmm0,%xmm1
movss  0xeb9(%rip),%xmm0
mulss  %xmm1,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fastsqrt2>:
push   %rax
movss  %xmm0,0x4(%rsp)
call   1030 <fastsqrt1@plt>
movss  0x4(%rsp),%xmm1
divss  %xmm0,%xmm1
addss  %xmm1,%xmm0
mulss  0xece(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @fastsqrt2(float %0) {
%2 = alloca float
%3 = alloca float
store float %0, float* %2
%4 = load float, float* %2
%5 = call float @fastsqrt1(float %4)
store float %5, float* %3
%6 = load float, float* %3
%7 = load float, float* %2
%8 = load float, float* %3
%9 = fdiv float %7, %8
%10 = fadd float %6, %9
%11 = fmul float 5.000000e-01, %10
store float %11, float* %3
%12 = load float, float* %3
ret float %12
}

LLVM IR (-O2):
define float @fastsqrt2(float %0) {
%2 = tail call float @fastsqrt1(float %0)
%3 = fdiv float %0, %2
%4 = fadd float %2, %3
%5 = fmul float %4, 5.000000e-01
ret float %5
}
int check_opencl() { return 0; }


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

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

LLVM IR (-O0):
define i32 @check_opencl() {
ret i32 0
}

LLVM IR (-O2):
define i32 @check_opencl() {
ret i32 0
}
/* Variables and functions */
scalar_t__ pr_random();
float random_range(double range) {
  return ((double)pr_random() / (double)714025) * range;
}


x86 assembly (clang, -O0):
<random_range>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    $0x0,%al
call   1030 <pr_random@plt>
cvtsi2sd %rax,%xmm0
movsd  0xecf(%rip),%xmm1
divsd  %xmm1,%xmm0
mulsd  -0x8(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<random_range>:
push   %rax
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1030 <pr_random@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
divsd  0xed3(%rip),%xmm0
mulsd  (%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @random_range(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = call i64 (...) @pr_random()
%4 = sitofp i64 %3 to double
%5 = fdiv double %4, 7.140250e+05
%6 = load double, double* %2
%7 = fmul double %5, %6
%8 = fptrunc double %7 to float
ret float %8
}

LLVM IR (-O2):
define float @random_range(double %0) {
%2 = tail call i64 (...) @pr_random()
%3 = sitofp i64 %2 to double
%4 = fdiv double %3, 7.140250e+05
%5 = fmul double %4, %0
%6 = fptrunc double %5 to float
ret float %6
}
/* Variables and functions */
int (*three(int (*f)(int), int (*g)(int)))(int) { return NULL; }


x86 assembly (clang, -O0):
<three>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define noalias i32 (i32)* @three(i32 (i32)* nocapture readnone %0, i32 (i32)* nocapture readnone %1) {
ret i32 (i32)* null
}
/* Type definitions */
typedef scalar_t__ uint32_t;

/* Variables and functions */
scalar_t__ internal_fiat_p256_nonzero(uintptr_t);
void fiat_p256_nonzero(uint32_t *out1, const uint32_t arg1[8]) {
  *out1 = (uint32_t)internal_fiat_p256_nonzero((uintptr_t)arg1);
}


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

x86 assembly (clang, -O2):
<fiat_p256_nonzero>:
push   %rbx
mov    %rdi,%rbx
mov    %rsi,%rdi
call   1030 <internal_fiat_p256_nonzero@plt>
mov    %rax,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @fiat_p256_nonzero(i64* %0, i64* %1) {
%3 = alloca i64*
%4 = alloca i64*
store i64* %0, i64** %3
store i64* %1, i64** %4
%5 = load i64*, i64** %4
%6 = ptrtoint i64* %5 to i64
%7 = call i64 @internal_fiat_p256_nonzero(i64 %6)
%8 = load i64*, i64** %3
store i64 %7, i64* %8
ret void
}

LLVM IR (-O2):
define void @fiat_p256_nonzero(i64* nocapture writeonly %0, i64* %1) {
%3 = ptrtoint i64* %1 to i64
%4 = tail call i64 @internal_fiat_p256_nonzero(i64 %3)
store i64 %4, i64* %0
ret void
}
void nseel_asm_equal_exact_end(void) {}


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

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

LLVM IR (-O0):
define void @nseel_asm_equal_exact_end() {
ret void
}

LLVM IR (-O2):
define void @nseel_asm_equal_exact_end() {
ret void
}
/* Forward declarations */
typedef struct TYPE_4__ TYPE_2__;
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  scalar_t__ same_screen;
};
struct TYPE_4__ {
  TYPE_1__ xbutton;
};
typedef TYPE_2__ XEvent;

/* Variables and functions */
int get_XEvent_xbutton_same_screen(void *_p) {
  return (int)((XEvent *)_p)->xbutton.same_screen;
}


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

x86 assembly (clang, -O2):
<get_XEvent_xbutton_same_screen>:
mov    (%rdi),%eax
ret

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

LLVM IR (-O2):
define i32 @get_XEvent_xbutton_same_screen(i8* nocapture %0) {
%2 = bitcast i8* %0 to i64*
%3 = load i64, i64* %2
%4 = trunc i64 %3 to i32
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ pstrcpy(char *, int, char const *);
scalar_t__ strlen(char *);
char *pstrcat(char *buf, int buf_size, const char *s) {
  int len = (int)strlen(buf);
  if (len < buf_size)
    pstrcpy(buf + len, buf_size - len, s);
  return buf;
}


x86 assembly (clang, -O0):
<pstrcat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1165 <pstrcat+0x45>
mov    -0x8(%rbp),%rdi
movslq -0x1c(%rbp),%rax
add    %rax,%rdi
mov    -0xc(%rbp),%esi
sub    -0x1c(%rbp),%esi
mov    -0x18(%rbp),%rdx
call   1030 <pstrcpy@plt>
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pstrcat>:
push   %rbp
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %esi,%ebp
mov    %rdi,%rbx
call   1040 <strlen@plt>
cmp    %ebp,%eax
jge    1147 <pstrcat+0x27>
movslq %eax,%rdi
add    %rbx,%rdi
sub    %eax,%ebp
mov    %ebp,%esi
mov    %r14,%rdx
call   1030 <pstrcpy@plt>
mov    %rbx,%rax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i8* @pstrcat(i8* %0, i32 %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
store i8* %2, i8** %6
%8 = load i8*, i8** %4
%9 = call i64 @strlen(i8* %8)
%10 = trunc i64 %9 to i32
store i32 %10, i32* %7
%11 = load i32, i32* %7
%12 = load i32, i32* %5
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %24
14: ; preds = %3
%15 = load i8*, i8** %4
%16 = load i32, i32* %7
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, i8* %15, i64 %17
%19 = load i32, i32* %5
%20 = load i32, i32* %7
%21 = sub nsw i32 %19, %20
%22 = load i8*, i8** %6
%23 = call i32 @pstrcpy(i8* %18, i32 %21, i8* %22)
br label %24
24: ; preds = %14, %3
%25 = load i8*, i8** %4
ret i8* %25
}

LLVM IR (-O2):
define i8* @pstrcat(i8* returned %0, i32 %1, i8* %2) {
%4 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%5 = trunc i64 %4 to i32
%6 = icmp slt i32 %5, %1
br i1 %6, label %7, label %13
7: ; preds = %3
%8 = shl i64 %4, 32
%9 = ashr exact i64 %8, 32
%10 = getelementptr inbounds i8, i8* %0, i64 %9
%11 = sub nsw i32 %1, %5
%12 = tail call i32 @pstrcpy(i8* %10, i32 %11, i8* %2)
br label %13
13: ; preds = %7, %3
ret i8* %0
}
/* Variables and functions */
int /*<<< orphan*/ HplMsp430GeneralIOP__5__IO__makeInput();
void Msp430GpioC__12__HplGeneralIO__makeInput(void) {
  HplMsp430GeneralIOP__5__IO__makeInput();
}


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

x86 assembly (clang, -O2):
<Msp430GpioC__12__HplGeneralIO__makeInput>:
xor    %eax,%eax
jmp    1030 <HplMsp430GeneralIOP__5__IO__makeInput@plt>

LLVM IR (-O0):
define void @Msp430GpioC__12__HplGeneralIO__makeInput() {
%1 = call i32 (...) @HplMsp430GeneralIOP__5__IO__makeInput()
ret void
}

LLVM IR (-O2):
define void @Msp430GpioC__12__HplGeneralIO__makeInput() {
%1 = tail call i32 (...) @HplMsp430GeneralIOP__5__IO__makeInput()
ret void
}
/* Type definitions */
struct timeval {
  scalar_t__ tv_usec;
  scalar_t__ tv_sec;
};

/* Variables and functions */
double elapsed_ms(struct timeval td) {
  return (double)td.tv_sec * 1000 + (double)td.tv_usec / 1000;
}


x86 assembly (clang, -O0):
<elapsed_ms>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x8(%rbp)
cvtsi2sdq -0x8(%rbp),%xmm0
cvtsi2sdq -0x10(%rbp),%xmm1
movsd  0xee0(%rip),%xmm2
divsd  %xmm2,%xmm1
movsd  0xed4(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<elapsed_ms>:
cvtsi2sd %rsi,%xmm0
cvtsi2sd %rdi,%xmm1
movsd  0xeee(%rip),%xmm2
divsd  %xmm2,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
%struct.timeval = type { i64, i64 }
define double @elapsed_ms(i64 %0, i64 %1) {
%3 = alloca %struct.timeval
%4 = bitcast %struct.timeval* %3 to { i64, i64 }*
%5 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %4, i32 0, i32 0
store i64 %0, i64* %5
%6 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %4, i32 0, i32 1
store i64 %1, i64* %6
%7 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i32 0, i32 1
%8 = load i64, i64* %7
%9 = sitofp i64 %8 to double
%10 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i32 0, i32 0
%11 = load i64, i64* %10
%12 = sitofp i64 %11 to double
%13 = fdiv double %12, 1.000000e+03
%14 = call double @llvm.fmuladd.f64(double %9, double 1.000000e+03, double %13)
ret double %14
}

LLVM IR (-O2):
define double @elapsed_ms(i64 %0, i64 %1) {
%3 = sitofp i64 %1 to double
%4 = sitofp i64 %0 to double
%5 = fdiv double %4, 1.000000e+03
%6 = tail call double @llvm.fmuladd.f64(double %3, double 1.000000e+03, double %5)
ret double %6
}
void VMR3AtErrorDeregister(void) {}


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

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

LLVM IR (-O0):
define void @VMR3AtErrorDeregister() {
ret void
}

LLVM IR (-O2):
define void @VMR3AtErrorDeregister() {
ret void
}
int fun_0_in_so() { return 20; }


x86 assembly (clang, -O0):
<fun_0_in_so>:
push   %rbp
mov    %rsp,%rbp
mov    $0x14,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<fun_0_in_so>:
mov    $0x14,%eax
ret

LLVM IR (-O0):
define i32 @fun_0_in_so() {
ret i32 20
}

LLVM IR (-O2):
define i32 @fun_0_in_so() {
ret i32 20
}
void rb_destroy(struct rb_tree *tree) { return; }


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

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

LLVM IR (-O0):
%struct.rb_tree = type opaque
define void @rb_destroy(%struct.rb_tree* %0) {
%2 = alloca %struct.rb_tree*
store %struct.rb_tree* %0, %struct.rb_tree** %2
ret void
}

LLVM IR (-O2):
%struct.rb_tree = type opaque
define void @rb_destroy(%struct.rb_tree* nocapture %0) {
ret void
}
unsigned int test_10(unsigned int a, unsigned int b) {
  return (a << 1) | ((a >> 31) ^ 1);
}


x86 assembly (clang, -O0):
<test_10>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
shl    $0x1,%eax
mov    -0x4(%rbp),%ecx
shr    $0x1f,%ecx
xor    $0x1,%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_10>:
mov    %edi,%eax
not    %eax
shrd   $0x1f,%edi,%eax
ret

LLVM IR (-O0):
define i32 @test_10(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = shl i32 %5, 1
%7 = load i32, i32* %3
%8 = lshr i32 %7, 31
%9 = xor i32 %8, 1
%10 = or i32 %6, %9
ret i32 %10
}

LLVM IR (-O2):
define i32 @test_10(i32 %0, i32 %1) {
%3 = xor i32 %0, -1
%4 = tail call i32 @llvm.fshl.i32(i32 %0, i32 %3, i32 1)
ret i32 %4
}
void turnRightAuton() {}


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

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

LLVM IR (-O0):
define void @turnRightAuton() {
ret void
}

LLVM IR (-O2):
define void @turnRightAuton() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
main() { printf("test\n"); }


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"test\0A\00"
define i32 @main() {
%1 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [5 x i8] c"test\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Type definitions */
struct stat {
  int st_mode;
};

/* Variables and functions */
int S_IFREG;
int stat(char *, struct stat *);
bool file_exists(char *filename) {
  struct stat statbuf;
  int retval = stat(filename, &statbuf);
  if (!retval)
    if (S_IFREG & statbuf.st_mode)
      return true;
  return false;
}


x86 assembly (clang, -O0):
<file_exists>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1030 <stat@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jne    115c <file_exists+0x4c>
mov    0x2eab(%rip),%rax
mov    (%rax),%eax
and    -0x18(%rbp),%eax
cmp    $0x0,%eax
je     1157 <file_exists+0x47>
movl   $0x1,-0x4(%rbp)
jmp    1163 <file_exists+0x53>
jmp    115c <file_exists+0x4c>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<file_exists>:
push   %rax
mov    %rsp,%rsi
call   1030 <stat@plt>
test   %eax,%eax
jne    1132 <file_exists+0x22>
mov    0x2ec4(%rip),%rcx
mov    (%rsp),%edx
mov    $0x1,%eax
test   %edx,(%rcx)
je     1132 <file_exists+0x22>
pop    %rcx
ret
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.stat = type { i32 }
@S_IFREG = global i32 0
define i32 @file_exists(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca %struct.stat
%5 = alloca i32
store i8* %0, i8** %3
%6 = load i8*, i8** %3
%7 = call i32 @stat(i8* %6, %struct.stat* %4)
store i32 %7, i32* %5
%8 = load i32, i32* %5
%9 = icmp ne i32 %8, 0
br i1 %9, label %18, label %10
10: ; preds = %1
%11 = load i32, i32* @S_IFREG
%12 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 0
%13 = load i32, i32* %12
%14 = and i32 %11, %13
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %10
store i32 1, i32* %2
br label %19
17: ; preds = %10
br label %18
18: ; preds = %17, %1
store i32 0, i32* %2
br label %19
19: ; preds = %18, %16
%20 = load i32, i32* %2
ret i32 %20
}

LLVM IR (-O2):
%struct.stat = type { i32 }
@S_IFREG = global i32 0
define i32 @file_exists(i8* nocapture %0) {
%2 = alloca %struct.stat
%3 = bitcast %struct.stat* %2 to i8*
%4 = call i32 @stat(i8* %0, %struct.stat* %2)
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %12
6: ; preds = %1
%7 = load i32, i32* @S_IFREG
%8 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 0
%9 = load i32, i32* %8
%10 = and i32 %9, %7
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %6, %1
br label %13
13: ; preds = %6, %12
%14 = phi i32 [ 0, %12 ], [ 1, %6 ]
ret i32 %14
}
int ddc_resume(struct i2c_client *cl) { return 0; }


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

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

LLVM IR (-O0):
%struct.i2c_client = type opaque
define i32 @ddc_resume(%struct.i2c_client* %0) {
%2 = alloca %struct.i2c_client*
store %struct.i2c_client* %0, %struct.i2c_client** %2
ret i32 0
}

LLVM IR (-O2):
%struct.i2c_client = type opaque
define i32 @ddc_resume(%struct.i2c_client* nocapture readnone %0) {
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *);
void createFile(char *string) {
  FILE *fp = fopen("mmap.temp", "w");
  fprintf(fp, "%s", string);
  fclose(fp);
}


x86 assembly (clang, -O0):
<createFile>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xebd(%rip),%rdi
lea    0xec0(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xeaa(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<createFile>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
lea    0xec2(%rip),%rdi
lea    0xec5(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    %rax,%rsi
call   1040 <fputs@plt>
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <fclose@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"mmap.temp\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [3 x i8] c"%s\00"
define void @createFile(i8* %0) {
%2 = alloca i8*
%3 = alloca i32*
store i8* %0, i8** %2
%4 = call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %4, i32** %3
%5 = load i32*, i32** %3
%6 = load i8*, i8** %2
%7 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %6)
%8 = load i32*, i32** %3
%9 = call i32 @fclose(i32* %8)
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"mmap.temp\00"
@.str.1 = [2 x i8] c"w\00"
define void @createFile(i8* nocapture %0) {
%2 = tail call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @fputs(i8* %0, i32* %2)
%4 = tail call i32 @fclose(i32* %2)
ret void
}
/* Variables and functions */
int strncmp(char const *, char const *, int);
int strCompare(const void *pKey1, int n1, const void *pKey2, int n2) {
  if (n1 != n2)
    return 1;
  return strncmp((const char *)pKey1, (const char *)pKey2, n1);
}


x86 assembly (clang, -O0):
<strCompare>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x24(%rbp),%eax
je     113e <strCompare+0x2e>
movl   $0x1,-0x4(%rbp)
jmp    1151 <strCompare+0x41>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <strncmp@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strCompare>:
cmp    %ecx,%esi
jne    1120 <strCompare+0x10>
mov    %esi,%eax
mov    %rdx,%rsi
mov    %eax,%edx
jmp    1030 <strncmp@plt>
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @strCompare(i8* %0, i32 %1, i8* %2, i32 %3) {
%5 = icmp eq i32 %1, %3
br i1 %5, label %6, label %8
6: ; preds = %4
%7 = tail call i32 @strncmp(i8* %0, i8* %2, i32 %1)
br label %8
8: ; preds = %4, %6
%9 = phi i32 [ %7, %6 ], [ 1, %4 ]
ret i32 %9
}
void I_NoAppServicesLobbyMgrRefresh(void) {}


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

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

LLVM IR (-O0):
define void @I_NoAppServicesLobbyMgrRefresh() {
ret void
}

LLVM IR (-O2):
define void @I_NoAppServicesLobbyMgrRefresh() {
ret void
}
long long sszz() { return 0xffffffff00000000LL; }


x86 assembly (clang, -O0):
<sszz>:
push   %rbp
mov    %rsp,%rbp
movabs $0xffffffff00000000,%rax
ff ff ff
pop    %rbp
ret

x86 assembly (clang, -O2):
<sszz>:
movabs $0xffffffff00000000,%rax
ff ff ff
ret

LLVM IR (-O0):
define i64 @sszz() {
ret i64 -4294967296
}

LLVM IR (-O2):
define i64 @sszz() {
ret i64 -4294967296
}
int seccompEnable() { return 0; }


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

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

LLVM IR (-O0):
define i32 @seccompEnable() {
ret i32 0
}

LLVM IR (-O2):
define i32 @seccompEnable() {
ret i32 0
}
/* Type definitions */
typedef int int64_t;

/* Variables and functions */
int64_t clip(int64_t x) { return x > 1048576 ? 1048576 : x; }


x86 assembly (clang, -O0):
<clip>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x100000,-0x4(%rbp)
jle    1121 <clip+0x21>
mov    $0x100000,%eax
mov    %eax,-0x8(%rbp)
jmp    1127 <clip+0x27>
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<clip>:
cmp    $0x100000,%edi
mov    $0x100000,%eax
cmovl  %edi,%eax
ret

LLVM IR (-O0):
define i32 @clip(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sgt i32 %3, 1048576
br i1 %4, label %5, label %6
5: ; preds = %1
br label %8
6: ; preds = %1
%7 = load i32, i32* %2
br label %8
8: ; preds = %6, %5
%9 = phi i32 [ 1048576, %5 ], [ %7, %6 ]
ret i32 %9
}

LLVM IR (-O2):
define i32 @clip(i32 %0) {
%2 = icmp slt i32 %0, 1048576
%3 = select i1 %2, i32 %0, i32 1048576
ret i32 %3
}
double dv_double(double a, double b) { return a / b; }


x86 assembly (clang, -O0):
<dv_double>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
divsd  -0x10(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<dv_double>:
divsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @dv_double(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = load double, double* %3
%6 = load double, double* %4
%7 = fdiv double %5, %6
ret double %7
}

LLVM IR (-O2):
define double @dv_double(double %0, double %1) {
%3 = fdiv double %0, %1
ret double %3
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isdigit(int);
void t_isdigit_0xb4() {
  Assert_real((isdigit(180) == 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_isdigit.c",
              905, ("isdigit should be 0 for 0xb4"));
}


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

x86 assembly (clang, -O2):
<t_isdigit_0xb4>:
push   %rax
mov    $0xb4,%edi
call   1030 <isdigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x389,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [168 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_isdigit.c\00"
@.str.1 = [29 x i8] c"isdigit should be 0 for 0xb4\00"
define void @t_isdigit_0xb4() {
%1 = call i64 @isdigit(i32 180)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 905, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 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_isdigit.c\00"
@.str.1 = [29 x i8] c"isdigit should be 0 for 0xb4\00"
define void @t_isdigit_0xb4() {
%1 = tail call i64 @isdigit(i32 180)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 905, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
unsigned setbits(unsigned x, int p, int n, unsigned y) {
  unsigned mask = ~(~0 << n) << (p - n + 1);
  x = x & ~mask;
  y = (y & ~(~0 << n)) << (p - n + 1);
  x = x | y;
  return x;
}


x86 assembly (clang, -O0):
<setbits>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    -0xc(%rbp),%ecx
mov    $0xffffffff,%eax
shl    %cl,%eax
xor    $0xffffffff,%eax
mov    -0x8(%rbp),%ecx
sub    -0xc(%rbp),%ecx
add    $0x1,%ecx
shl    %cl,%eax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x14(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x10(%rbp),%eax
mov    -0xc(%rbp),%ecx
mov    $0xffffffff,%edx
shl    %cl,%edx
mov    %edx,%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
mov    -0x8(%rbp),%ecx
sub    -0xc(%rbp),%ecx
add    $0x1,%ecx
shl    %cl,%eax
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%eax
or     -0x10(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<setbits>:
mov    %ecx,%r8d
mov    %edx,%ecx
mov    $0xffffffff,%eax
shl    %cl,%eax
not    %eax
sub    %edx,%esi
lea    0x1(%rsi),%ecx
mov    %eax,%edx
shl    %cl,%edx
not    %edx
and    %edi,%edx
and    %r8d,%eax
shl    %cl,%eax
or     %edx,%eax
ret

LLVM IR (-O0):
define i32 @setbits(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%10 = load i32, i32* %7
%11 = shl i32 -1, %10
%12 = xor i32 %11, -1
%13 = load i32, i32* %6
%14 = load i32, i32* %7
%15 = sub nsw i32 %13, %14
%16 = add nsw i32 %15, 1
%17 = shl i32 %12, %16
store i32 %17, i32* %9
%18 = load i32, i32* %5
%19 = load i32, i32* %9
%20 = xor i32 %19, -1
%21 = and i32 %18, %20
store i32 %21, i32* %5
%22 = load i32, i32* %8
%23 = load i32, i32* %7
%24 = shl i32 -1, %23
%25 = xor i32 %24, -1
%26 = and i32 %22, %25
%27 = load i32, i32* %6
%28 = load i32, i32* %7
%29 = sub nsw i32 %27, %28
%30 = add nsw i32 %29, 1
%31 = shl i32 %26, %30
store i32 %31, i32* %8
%32 = load i32, i32* %5
%33 = load i32, i32* %8
%34 = or i32 %32, %33
store i32 %34, i32* %5
%35 = load i32, i32* %5
ret i32 %35
}

LLVM IR (-O2):
define i32 @setbits(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = shl nsw i32 -1, %2
%6 = xor i32 %5, -1
%7 = sub nsw i32 %1, %2
%8 = add nsw i32 %7, 1
%9 = shl i32 %6, %8
%10 = xor i32 %9, -1
%11 = and i32 %10, %0
%12 = and i32 %6, %3
%13 = shl i32 %12, %8
%14 = or i32 %11, %13
ret i32 %14
}