xunge/DecIR huggingface dataset:
void io_wait(void) {
  asm volatile("jmp 1f\n\t"
               "1:jmp 2f\n\t"
               "2:");
}


x86 assembly (clang, -O0):
<io_wait>:
push   %rbp
mov    %rsp,%rbp
jmp    1109 <io_wait+0x9>
jmp    110e <io_wait+0xe>
pop    %rbp
ret

x86 assembly (clang, -O2):
<io_wait>:
jmp    1102 <io_wait+0x2>
jmp    1104 <io_wait+0x4>
ret

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

LLVM IR (-O2):
define void @io_wait() {
tail call void asm sideeffect "jmp 1f\0A\091:jmp 2f\0A\092:", "~{dirflag},~{fpsr},~{flags}"()
ret void
}
extern void __attribute__((always_)) gui_ksys_begin_draw_window(void) {
  __asm__ __volatile__("int $0x40" : : "a"(12), "b"(1));
}


x86 assembly (clang, -O0):
<gui_ksys_begin_draw_window>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
mov    $0xc,%eax
mov    $0x1,%ebx
int    $0x40
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<gui_ksys_begin_draw_window>:
push   %rbx
mov    $0xc,%eax
mov    $0x1,%ebx
int    $0x40
pop    %rbx
ret

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

LLVM IR (-O2):
define void @gui_ksys_begin_draw_window() {
tail call void asm sideeffect "int $$0x40", "{ax},{bx},~{dirflag},~{fpsr},~{flags}"(i32 12, i32 1)
ret void
}
void play_stop() {}


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

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

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

LLVM IR (-O2):
define void @play_stop() {
ret void
}
char *proto(void) { return "m=mm"; }


x86 assembly (clang, -O0):
<proto>:
push   %rbp
mov    %rsp,%rbp
lea    0xef5(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<proto>:
lea    0xef9(%rip),%rax
ret

LLVM IR (-O0):
@.str = [5 x i8] c"m=mm\00"
define i8* @proto() {
ret i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [5 x i8] c"m=mm\00"
define i8* @proto() {
ret i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0)
}
int do_250() { return 250; }


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

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

LLVM IR (-O0):
define i32 @do_250() {
ret i32 250
}

LLVM IR (-O2):
define i32 @do_250() {
ret i32 250
}
/* Variables and functions */
int /*<<< orphan*/ ArraysInit();
int /*<<< orphan*/ SerialInit();
int /*<<< orphan*/ Stop();
int /*<<< orphan*/ delay(int);
int /*<<< orphan*/ navigateMaze(int);
int main(void) {
  SerialInit();
  ArraysInit();
  Stop();
  delay(10000);
  navigateMaze(0x00);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <SerialInit@plt>
mov    $0x0,%al
call   1060 <ArraysInit@plt>
mov    $0x0,%al
call   1040 <Stop@plt>
mov    $0x2710,%edi
call   1050 <delay@plt>
xor    %edi,%edi
call   1070 <navigateMaze@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <SerialInit@plt>
xor    %eax,%eax
call   1060 <ArraysInit@plt>
xor    %eax,%eax
call   1040 <Stop@plt>
mov    $0x2710,%edi
call   1050 <delay@plt>
xor    %edi,%edi
call   1070 <navigateMaze@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @SerialInit()
%3 = call i32 (...) @ArraysInit()
%4 = call i32 (...) @Stop()
%5 = call i32 @delay(i32 10000)
%6 = call i32 @navigateMaze(i32 0)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @SerialInit()
%2 = tail call i32 (...) @ArraysInit()
%3 = tail call i32 (...) @Stop()
%4 = tail call i32 @delay(i32 10000)
%5 = tail call i32 @navigateMaze(i32 0)
ret i32 0
}
/* Variables and functions */
char *strpbrk(char const *, char *);
char *skiptoken(const char *s) { return strpbrk(s, " \t\n\r"); }


x86 assembly (clang, -O0):
<skiptoken>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <strpbrk@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<skiptoken>:
lea    0xee9(%rip),%rsi
jmp    1030 <strpbrk@plt>

LLVM IR (-O0):
@.str = [5 x i8] c" \09\0A\0D\00"
define i8* @skiptoken(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i8* @strpbrk(i8* %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
ret i8* %4
}

LLVM IR (-O2):
@.str = [5 x i8] c" \09\0A\0D\00"
define i8* @skiptoken(i8* %0) {
%2 = tail call i8* @strpbrk(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
ret i8* %2
}
/* Variables and functions */
int /*<<< orphan*/ SPI_MODE_3;
int test_aardvark(int, int /*<<< orphan*/);
int test_aardvark_mode3(int fd) { return test_aardvark(fd, SPI_MODE_3); }


x86 assembly (clang, -O0):
<test_aardvark_mode3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    0x2ebb(%rip),%rax
mov    (%rax),%esi
call   1030 <test_aardvark@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_aardvark_mode3>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%esi
jmp    1030 <test_aardvark@plt>

LLVM IR (-O0):
@SPI_MODE_3 = global i32 0
define i32 @test_aardvark_mode3(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* @SPI_MODE_3
%5 = call i32 @test_aardvark(i32 %3, i32 %4)
ret i32 %5
}

LLVM IR (-O2):
@SPI_MODE_3 = global i32 0
define i32 @test_aardvark_mode3(i32 %0) {
%2 = load i32, i32* @SPI_MODE_3
%3 = tail call i32 @test_aardvark(i32 %0, i32 %2)
ret i32 %3
}
/* Variables and functions */
bool nrf52_errata_182(void) { return false; }


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

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

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

LLVM IR (-O2):
define i32 @nrf52_errata_182() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ report(int);
int main() {
  report(0xdeaddead);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0xdeaddead,%edi
call   1030 <report@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xdeaddead,%edi
call   1030 <report@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @report(i32 -559030611)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @report(i32 -559030611)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ current_view();
int /*<<< orphan*/ cursor_down(int /*<<< orphan*/);
void down_action() { cursor_down(current_view()); }


x86 assembly (clang, -O0):
<down_action>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <current_view@plt>
mov    %eax,%edi
call   1040 <cursor_down@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<down_action>:
push   %rax
xor    %eax,%eax
call   1030 <current_view@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <cursor_down@plt>

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

LLVM IR (-O2):
define void @down_action() {
%1 = tail call i32 (...) @current_view()
%2 = tail call i32 @cursor_down(i32 %1)
ret void
}
/* Variables and functions */
scalar_t__ syscall(int);
long lin_hello(void) { return (long)syscall(316); }


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

x86 assembly (clang, -O2):
<lin_hello>:
mov    $0x13c,%edi
jmp    1030 <syscall@plt>

LLVM IR (-O0):
define i64 @lin_hello() {
%1 = call i64 @syscall(i32 316)
ret i64 %1
}

LLVM IR (-O2):
define i64 @lin_hello() {
%1 = tail call i64 @syscall(i32 316)
ret i64 %1
}
int main() {
  int a[2][2] = {{1, 2}, {3, 4}};
  int b[][2] = {1, 2, 3, 4};
  int c[2][2] = {{1}, 2, 3};
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    0xeee(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xeeb(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xed8(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xed5(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xed2(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xecf(%rip),%rax
mov    %rax,-0x38(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
@__const.main.a = [2 x [2 x i32]] [[2 x i32] [i32 1, i32 2], [2 x i32] [i32 3, i32 4]]
@__const.main.b = [2 x [2 x i32]] [[2 x i32] [i32 1, i32 2], [2 x i32] [i32 3, i32 4]]
@__const.main.c = [2 x [2 x i32]] [[2 x i32] [i32 1, i32 0], [2 x i32] [i32 2, i32 3]]
define i32 @main() {
%1 = alloca i32
%2 = alloca [2 x [2 x i32]]
%3 = alloca [2 x [2 x i32]]
%4 = alloca [2 x [2 x i32]]
store i32 0, i32* %1
%5 = bitcast [2 x [2 x i32]]* %2 to i8*
%6 = bitcast [2 x [2 x i32]]* %3 to i8*
%7 = bitcast [2 x [2 x i32]]* %4 to i8*
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void print_vector(int *vector, int size) {
  int i = 0;
  for (; i < size; i++)
    printf("%d\n", vector[i]);
}


x86 assembly (clang, -O0):
<print_vector>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1157 <print_vector+0x47>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1126 <print_vector+0x16>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_vector>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
test   %esi,%esi
jle    1145 <print_vector+0x35>
mov    %rdi,%r15
mov    %esi,%r12d
xor    %ebx,%ebx
lea    0xed5(%rip),%r14
nopl   0x0(%rax,%rax,1)
mov    (%r15,%rbx,4),%esi
mov    %r14,%rdi
call   1030 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%r12
jne    1130 <print_vector+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define void @print_vector(i32* nocapture %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %13
4: ; preds = %2
%5 = zext i32 %1 to i64
br label %6
6: ; preds = %4, %6
%7 = phi i64 [ 0, %4 ], [ %11, %6 ]
%8 = getelementptr inbounds i32, i32* %0, i64 %7
%9 = load i32, i32* %8
%10 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %9)
%11 = add nuw nsw i64 %7, 1
%12 = icmp eq i64 %11, %5
br i1 %12, label %13, label %6
13: ; preds = %6, %2
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ u_int32_t;

/* Variables and functions */
int /*<<< orphan*/ rgb_to_yuv(int /*<<< orphan*/);
int yuv_diff(int /*<<< orphan*/, int /*<<< orphan*/);
int Diff(u_int32_t c1, u_int32_t c2) {
  return yuv_diff(rgb_to_yuv(c1), rgb_to_yuv(c2));
}


x86 assembly (clang, -O0):
<Diff>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <rgb_to_yuv@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <rgb_to_yuv@plt>
mov    -0xc(%rbp),%edi
mov    %eax,%esi
call   1030 <yuv_diff@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Diff>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
call   1040 <rgb_to_yuv@plt>
mov    %eax,%ebp
mov    %ebx,%edi
call   1040 <rgb_to_yuv@plt>
mov    %ebp,%edi
mov    %eax,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <yuv_diff@plt>

LLVM IR (-O0):
define i32 @Diff(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 = call i32 @rgb_to_yuv(i32 %5)
%7 = load i32, i32* %4
%8 = call i32 @rgb_to_yuv(i32 %7)
%9 = call i32 @yuv_diff(i32 %6, i32 %8)
ret i32 %9
}

LLVM IR (-O2):
define i32 @Diff(i32 %0, i32 %1) {
%3 = tail call i32 @rgb_to_yuv(i32 %0)
%4 = tail call i32 @rgb_to_yuv(i32 %1)
%5 = tail call i32 @yuv_diff(i32 %3, i32 %4)
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ system(char *);
int main() {
  int count = 0;
  while (1) {
    sleep(5);
    if (count == 5) {
      system("date");
      count = 0;
    } else {
      count++;
    }
  }
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    $0x5,%edi
call   1040 <sleep@plt>
cmpl   $0x5,-0x8(%rbp)
jne    1162 <main+0x42>
lea    0xeaf(%rip),%rdi
call   1030 <system@plt>
movl   $0x0,-0x8(%rbp)
jmp    116b <main+0x4b>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1136 <main+0x16>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
xor    %ebp,%ebp
lea    0xed4(%rip),%rbx
jmp    1133 <main+0x13>
xchg   %ax,%ax
add    $0x1,%ebp
mov    $0x5,%edi
call   1040 <sleep@plt>
cmp    $0x5,%ebp
jne    1130 <main+0x10>
mov    %rbx,%rdi
call   1030 <system@plt>
xor    %ebp,%ebp
jmp    1133 <main+0x13>

LLVM IR (-O0):
@.str = [5 x i8] c"date\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %3
3: ; preds = %0, %12
%4 = call i32 @sleep(i32 5)
%5 = load i32, i32* %2
%6 = icmp eq i32 %5, 5
br i1 %6, label %7, label %9
7: ; preds = %3
%8 = call i32 @system(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %2
br label %12
9: ; preds = %3
%10 = load i32, i32* %2
%11 = add nsw i32 %10, 1
store i32 %11, i32* %2
br label %12
12: ; preds = %9, %7
br label %3
}

LLVM IR (-O2):
@.str = [5 x i8] c"date\00"
define i32 @main() {
br label %1
1: ; preds = %9, %0
%2 = phi i32 [ 0, %0 ], [ %10, %9 ]
%3 = tail call i32 @sleep(i32 5)
%4 = icmp eq i32 %2, 5
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = tail call i32 @system(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %9
7: ; preds = %1
%8 = add nsw i32 %2, 1
br label %9
9: ; preds = %7, %5
%10 = phi i32 [ 0, %5 ], [ %8, %7 ]
br label %1
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void errorANOTHER() { printf("ERROR!"); }


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

x86 assembly (clang, -O2):
<errorANOTHER>:
lea    0xee9(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"ERROR!\00"
define void @errorANOTHER() {
%1 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"ERROR!\00"
define void @errorANOTHER() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
ret void
}
int main(void) {
  int i;
  {
    i = i % 2;
    if (i == 1) {
      goto ERROR;
    ERROR:;
    } else {
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %edx,-0x8(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    112d <main+0x2d>
jmp    1128 <main+0x28>
jmp    1132 <main+0x32>
jmp    1132 <main+0x32>
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
int isSquare(unsigned int edges[]) {
  int i;
  for (i = 1; i < 4; i++)
    if (edges[i] != edges[0])
      return 0;
  return 1;
}


x86 assembly (clang, -O0):
<isSquare>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
cmpl   $0x4,-0x14(%rbp)
jge    114f <isSquare+0x4f>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x10(%rbp),%rcx
cmp    (%rcx),%eax
je     113c <isSquare+0x3c>
movl   $0x0,-0x4(%rbp)
jmp    1156 <isSquare+0x56>
jmp    1141 <isSquare+0x41>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    110f <isSquare+0xf>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isSquare>:
mov    (%rdi),%ecx
xor    %eax,%eax
cmp    %ecx,0x4(%rdi)
jne    1116 <isSquare+0x16>
cmp    %ecx,0x8(%rdi)
jne    1116 <isSquare+0x16>
xor    %eax,%eax
cmp    %ecx,0xc(%rdi)
sete   %al
ret

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

LLVM IR (-O2):
define i32 @isSquare(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = getelementptr inbounds i32, i32* %0, i64 1
%4 = load i32, i32* %3
%5 = icmp eq i32 %4, %2
br i1 %5, label %6, label %15
6: ; preds = %1
%7 = getelementptr inbounds i32, i32* %0, i64 2
%8 = load i32, i32* %7
%9 = icmp eq i32 %8, %2
br i1 %9, label %10, label %15
10: ; preds = %6
%11 = getelementptr inbounds i32, i32* %0, i64 3
%12 = load i32, i32* %11
%13 = icmp eq i32 %12, %2
%14 = zext i1 %13 to i32
br label %15
15: ; preds = %10, %6, %1
%16 = phi i32 [ 0, %1 ], [ 0, %6 ], [ %14, %10 ]
ret i32 %16
}
/* Type definitions */
struct MD5Context {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ MD5Update(struct MD5Context *, unsigned char *,
                             unsigned int);
void auth_md5_update(struct MD5Context *context, unsigned char *data,
                     unsigned int length) {
  MD5Update(context, data, length);
}


x86 assembly (clang, -O0):
<auth_md5_update>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <MD5Update@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<auth_md5_update>:
jmp    1030 <MD5Update@plt>

LLVM IR (-O0):
%struct.MD5Context = type { i32 }
define void @auth_md5_update(%struct.MD5Context* %0, i8* %1, i32 %2) {
%4 = alloca %struct.MD5Context*
%5 = alloca i8*
%6 = alloca i32
store %struct.MD5Context* %0, %struct.MD5Context** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load %struct.MD5Context*, %struct.MD5Context** %4
%8 = load i8*, i8** %5
%9 = load i32, i32* %6
%10 = call i32 @MD5Update(%struct.MD5Context* %7, i8* %8, i32 %9)
ret void
}

LLVM IR (-O2):
%struct.MD5Context = type { i32 }
define void @auth_md5_update(%struct.MD5Context* %0, i8* %1, i32 %2) {
%4 = tail call i32 @MD5Update(%struct.MD5Context* %0, i8* %1, i32 %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ handle_extension(char **, char *);
char *TeX_search_tfm(char **name) {
  handle_extension(name, ".tfm");
  return *name;
}


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

x86 assembly (clang, -O2):
<TeX_search_tfm>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rsi
call   1030 <handle_extension@plt>
mov    (%rbx),%rax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c".tfm\00"
define i8* @TeX_search_tfm(i8** %0) {
%2 = tail call i32 @handle_extension(i8** %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%3 = load i8*, i8** %0
ret i8* %3
}
/* Type definitions */
struct Cyc_Lexing_lexbuf {
  int dummy;
};

/* Variables and functions */
int Cyc_commands_rec(struct Cyc_Lexing_lexbuf *, int);
int Cyc_commands(struct Cyc_Lexing_lexbuf *lexbuf) {
  int _T0;
  _T0 = Cyc_commands_rec(lexbuf, 14);
  return _T0;
}


x86 assembly (clang, -O0):
<Cyc_commands>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0xe,%esi
call   1030 <Cyc_commands_rec@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Cyc_commands>:
mov    $0xe,%esi
jmp    1030 <Cyc_commands_rec@plt>

LLVM IR (-O0):
%struct.Cyc_Lexing_lexbuf = type { i32 }
define i32 @Cyc_commands(%struct.Cyc_Lexing_lexbuf* %0) {
%2 = alloca %struct.Cyc_Lexing_lexbuf*
%3 = alloca i32
store %struct.Cyc_Lexing_lexbuf* %0, %struct.Cyc_Lexing_lexbuf** %2
%4 = load %struct.Cyc_Lexing_lexbuf*, %struct.Cyc_Lexing_lexbuf** %2
%5 = call i32 @Cyc_commands_rec(%struct.Cyc_Lexing_lexbuf* %4, i32 14)
store i32 %5, i32* %3
%6 = load i32, i32* %3
ret i32 %6
}

LLVM IR (-O2):
%struct.Cyc_Lexing_lexbuf = type { i32 }
define i32 @Cyc_commands(%struct.Cyc_Lexing_lexbuf* %0) {
%2 = tail call i32 @Cyc_commands_rec(%struct.Cyc_Lexing_lexbuf* %0, i32 14)
ret i32 %2
}
unsigned short int f29(unsigned short int x, int y) {
  return (x >> (8 * sizeof(unsigned short) - y)) ^ (x << y);
}


x86 assembly (clang, -O0):
<f29>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
mov    %esi,-0x8(%rbp)
movzwl -0x2(%rbp),%eax
movslq -0x8(%rbp),%rdx
mov    $0x10,%ecx
sub    %rdx,%rcx
sar    %cl,%eax
movzwl -0x2(%rbp),%edx
mov    -0x8(%rbp),%ecx
shl    %cl,%edx
mov    %edx,%ecx
xor    %ecx,%eax
movzwl %ax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f29>:
mov    $0x10,%cl
sub    %sil,%cl
mov    %edi,%eax
shr    %cl,%eax
mov    %esi,%ecx
shl    %cl,%edi
xor    %edi,%eax
ret

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

LLVM IR (-O2):
define zeroext i16 @f29(i16 zeroext %0, i32 %1) {
%3 = zext i16 %0 to i32
%4 = sub i32 16, %1
%5 = lshr i32 %3, %4
%6 = shl i32 %3, %1
%7 = xor i32 %5, %6
%8 = trunc i32 %7 to i16
ret i16 %8
}
float constrainf(float value, float min, float max) {
  if (value <= min)
    return min;
  if (value >= max)
    return max;
  return value;
}


x86 assembly (clang, -O0):
<constrainf>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x8(%rbp)
movss  %xmm1,-0xc(%rbp)
movss  %xmm2,-0x10(%rbp)
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jb     1135 <constrainf+0x35>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    115d <constrainf+0x5d>
movss  -0x8(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jb     1153 <constrainf+0x53>
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    115d <constrainf+0x5d>
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<constrainf>:
movaps %xmm2,%xmm3
cmpless %xmm0,%xmm3
andps  %xmm3,%xmm2
andnps %xmm0,%xmm3
orps   %xmm2,%xmm3
cmpnless %xmm1,%xmm0
andps  %xmm0,%xmm3
andnps %xmm1,%xmm0
orps   %xmm3,%xmm0
ret

LLVM IR (-O0):
define float @constrainf(float %0, float %1, float %2) {
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
store float %0, float* %5
store float %1, float* %6
store float %2, float* %7
%8 = load float, float* %5
%9 = load float, float* %6
%10 = fcmp ole float %8, %9
br i1 %10, label %11, label %13
11: ; preds = %3
%12 = load float, float* %6
store float %12, float* %4
br label %21
13: ; preds = %3
%14 = load float, float* %5
%15 = load float, float* %7
%16 = fcmp oge float %14, %15
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = load float, float* %7
store float %18, float* %4
br label %21
19: ; preds = %13
%20 = load float, float* %5
store float %20, float* %4
br label %21
21: ; preds = %19, %17, %11
%22 = load float, float* %4
ret float %22
}

LLVM IR (-O2):
define float @constrainf(float %0, float %1, float %2) {
%4 = fcmp ugt float %0, %1
%5 = fcmp oge float %0, %2
%6 = select i1 %5, float %2, float %0
%7 = select i1 %4, float %6, float %1
ret float %7
}
/* Variables and functions */
int /*<<< orphan*/ sleep(int);
int baseInit_bh() {
  while (1) {
    sleep(1);
  }
}


x86 assembly (clang, -O0):
<baseInit_bh>:
push   %rbp
mov    %rsp,%rbp
jmp    1119 <baseInit_bh+0x9>
mov    $0x1,%edi
call   1030 <sleep@plt>
jmp    1119 <baseInit_bh+0x9>

x86 assembly (clang, -O2):
<baseInit_bh>:
push   %rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    $0x1,%edi
call   1030 <sleep@plt>
jmp    1120 <baseInit_bh+0x10>

LLVM IR (-O0):
define i32 @baseInit_bh() {
br label %1
1: ; preds = %0, %1
%2 = call i32 @sleep(i32 1)
br label %1
}

LLVM IR (-O2):
define i32 @baseInit_bh() {
br label %1
1: ; preds = %0, %1
%2 = tail call i32 @sleep(i32 1)
br label %1
}
/* Variables and functions */
char *build_sw_path(char const *, char const *, int, char *, char const *);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ req_sw(char const *, char const *, char *);
char response_char(int /*<<< orphan*/);
char req_swa_char(const char *command, const char *hostname,
                  const char *session_id, const char *ain) {
  char *path = build_sw_path(command, session_id, 2, "ain", ain);
  char res = response_char(req_sw(hostname, command, path));
  free(path);
  return res;
}


x86 assembly (clang, -O0):
<req_swa_char>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%r8
mov    $0x2,%edx
lea    0xe90(%rip),%rcx
call   1060 <build_sw_path@plt>
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1050 <req_sw@plt>
mov    %eax,%edi
call   1030 <response_char@plt>
mov    %al,-0x29(%rbp)
mov    -0x28(%rbp),%rdi
call   1040 <free@plt>
movsbl -0x29(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<req_swa_char>:
push   %r15
push   %r14
push   %rbx
mov    %rcx,%r8
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0xeab(%rip),%rcx
mov    %rdx,%rsi
mov    $0x2,%edx
call   1060 <build_sw_path@plt>
mov    %rax,%r15
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %rax,%rdx
call   1050 <req_sw@plt>
mov    %eax,%edi
call   1030 <response_char@plt>
mov    %eax,%ebx
mov    %r15,%rdi
call   1040 <free@plt>
mov    %ebx,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [4 x i8] c"ain\00"
define signext i8 @req_swa_char(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* %3, i8** %8
%11 = load i8*, i8** %5
%12 = load i8*, i8** %7
%13 = load i8*, i8** %8
%14 = call i8* @build_sw_path(i8* %11, i8* %12, i32 2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %13)
store i8* %14, i8** %9
%15 = load i8*, i8** %6
%16 = load i8*, i8** %5
%17 = load i8*, i8** %9
%18 = call i32 @req_sw(i8* %15, i8* %16, i8* %17)
%19 = call signext i8 @response_char(i32 %18)
store i8 %19, i8* %10
%20 = load i8*, i8** %9
%21 = call i32 @free(i8* %20)
%22 = load i8, i8* %10
ret i8 %22
}

LLVM IR (-O2):
@.str = [4 x i8] c"ain\00"
define signext i8 @req_swa_char(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = tail call i8* @build_sw_path(i8* %0, i8* %2, i32 2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %3)
%6 = tail call i32 @req_sw(i8* %1, i8* %0, i8* %5)
%7 = tail call signext i8 @response_char(i32 %6)
%8 = tail call i32 @free(i8* %5)
ret i8 %7
}
int fibonacci(int index) {
  if (index <= 1) {
    return 1;
  } else {
    return fibonacci(index - 1) + fibonacci(index - 2);
  }
}


x86 assembly (clang, -O0):
<fibonacci>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
cmpl   $0x1,-0x8(%rbp)
jg     1131 <fibonacci+0x21>
movl   $0x1,-0x4(%rbp)
jmp    1154 <fibonacci+0x44>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
call   1030 <fibonacci@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%edi
sub    $0x2,%edi
call   1030 <fibonacci@plt>
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fibonacci>:
push   %rbp
push   %rbx
push   %rax
mov    $0x1,%ebp
cmp    $0x2,%edi
jl     1145 <fibonacci+0x35>
mov    %edi,%ebx
add    $0x2,%ebx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    -0x3(%rbx),%edi
call   1030 <fibonacci@plt>
add    %eax,%ebp
add    $0xfffffffe,%ebx
cmp    $0x3,%ebx
ja     1130 <fibonacci+0x20>
add    $0x1,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @fibonacci(i32 %0) {
%2 = icmp slt i32 %0, 2
br i1 %2, label %13, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %8, %3 ], [ %0, %1 ]
%5 = phi i32 [ %9, %3 ], [ 0, %1 ]
%6 = add nsw i32 %4, -1
%7 = tail call i32 @fibonacci(i32 %6)
%8 = add nsw i32 %4, -2
%9 = add nsw i32 %7, %5
%10 = icmp ult i32 %4, 4
br i1 %10, label %11, label %3
11: ; preds = %3
%12 = add i32 %9, 1
br label %13
13: ; preds = %11, %1
%14 = phi i32 [ 1, %1 ], [ %12, %11 ]
ret i32 %14
}
/* Variables and functions */
int NewClass(int);
int /*<<< orphan*/ bar();
int foo1(void) {
  bar();
  return NewClass(1);
}


x86 assembly (clang, -O0):
<foo1>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <bar@plt>
mov    $0x1,%edi
call   1030 <NewClass@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo1>:
push   %rax
xor    %eax,%eax
call   1040 <bar@plt>
mov    $0x1,%edi
pop    %rax
jmp    1030 <NewClass@plt>

LLVM IR (-O0):
define i32 @foo1() {
%1 = call i32 (...) @bar()
%2 = call i32 @NewClass(i32 1)
ret i32 %2
}

LLVM IR (-O2):
define i32 @foo1() {
%1 = tail call i32 (...) @bar()
%2 = tail call i32 @NewClass(i32 1)
ret i32 %2
}
int fn7(int a, int b) {
  int tem1 = a ^ b;
  int tem2 = b | a;
  return tem1 ^ tem2;
}


x86 assembly (clang, -O0):
<fn7>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
xor    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
or     -0x4(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
xor    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<fn7>:
mov    %edi,%eax
and    %esi,%eax
ret

LLVM IR (-O0):
define i32 @fn7(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%7 = load i32, i32* %3
%8 = load i32, i32* %4
%9 = xor i32 %7, %8
store i32 %9, i32* %5
%10 = load i32, i32* %4
%11 = load i32, i32* %3
%12 = or i32 %10, %11
store i32 %12, i32* %6
%13 = load i32, i32* %5
%14 = load i32, i32* %6
%15 = xor i32 %13, %14
ret i32 %15
}

LLVM IR (-O2):
define i32 @fn7(i32 %0, i32 %1) {
%3 = and i32 %1, %0
ret i32 %3
}
int gcd(x, y) {
  if (x < 0)
    x = -x;
  if (y < 0)
    y = -y;
  if (y == 0)
    return x;
  return gcd(y, x % y);
}


x86 assembly (clang, -O0):
<gcd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    1130 <gcd+0x20>
xor    %eax,%eax
sub    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0xc(%rbp)
jge    1142 <gcd+0x32>
xor    %eax,%eax
sub    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    1157 <gcd+0x47>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    116b <gcd+0x5b>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
mov    %edx,%esi
call   1030 <gcd@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gcd>:
mov    %edi,%eax
neg    %eax
cmovs  %edi,%eax
test   %esi,%esi
je     112e <gcd+0x2e>
mov    %esi,%edx
neg    %edx
cmovs  %esi,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %edx,%ecx
xor    %edx,%edx
div    %ecx
mov    %ecx,%eax
test   %edx,%edx
jne    1120 <gcd+0x20>
mov    %ecx,%eax
ret

LLVM IR (-O0):
define i32 @gcd(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 slt i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i32, i32* %4
%10 = sub nsw i32 0, %9
store i32 %10, i32* %4
br label %11
11: ; preds = %8, %2
%12 = load i32, i32* %5
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = load i32, i32* %5
%16 = sub nsw i32 0, %15
store i32 %16, i32* %5
br label %17
17: ; preds = %14, %11
%18 = load i32, i32* %5
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = load i32, i32* %4
store i32 %21, i32* %3
br label %28
22: ; preds = %17
%23 = load i32, i32* %5
%24 = load i32, i32* %4
%25 = load i32, i32* %5
%26 = srem i32 %24, %25
%27 = call i32 @gcd(i32 %23, i32 %26)
store i32 %27, i32* %3
br label %28
28: ; preds = %22, %20
%29 = load i32, i32* %3
ret i32 %29
}

LLVM IR (-O2):
define i32 @gcd(i32 %0, i32 %1) {
%3 = tail call i32 @llvm.abs.i32(i32 %0, i1 true)
%4 = icmp eq i32 %1, 0
br i1 %4, label %12, label %5
5: ; preds = %2
%6 = tail call i32 @llvm.abs.i32(i32 %1, i1 true)
br label %7
7: ; preds = %5, %7
%8 = phi i32 [ %10, %7 ], [ %6, %5 ]
%9 = phi i32 [ %8, %7 ], [ %3, %5 ]
%10 = urem i32 %9, %8
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %7
12: ; preds = %7, %2
%13 = phi i32 [ %3, %2 ], [ %8, %7 ]
ret i32 %13
}
/* Variables and functions */
char *calloc(int, int);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ s_solve_sudoku(char *, int *, char *);
char *s_create_solution() {
  char empty_sudoku[81];
  memset(empty_sudoku, 0, 81);
  int max = 1;
  char *solution = calloc(81, 1);
  s_solve_sudoku(empty_sudoku, &max, solution);
  return solution;
}


x86 assembly (clang, -O0):
<s_create_solution>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
lea    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0x51,%edx
call   1040 <memset@plt>
movl   $0x1,-0x64(%rbp)
mov    $0x51,%edi
mov    $0x1,%esi
call   1050 <calloc@plt>
mov    %rax,-0x70(%rbp)
lea    -0x60(%rbp),%rdi
mov    -0x70(%rbp),%rdx
lea    -0x64(%rbp),%rsi
call   1030 <s_solve_sudoku@plt>
mov    -0x70(%rbp),%rax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<s_create_solution>:
push   %r14
push   %rbx
sub    $0x68,%rsp
lea    0x10(%rsp),%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x51,%edx
call   1040 <memset@plt>
movl   $0x1,0xc(%rsp)
mov    $0x51,%edi
mov    $0x1,%esi
call   1050 <calloc@plt>
mov    %rax,%rbx
lea    0xc(%rsp),%rsi
mov    %r14,%rdi
mov    %rax,%rdx
call   1030 <s_solve_sudoku@plt>
mov    %rbx,%rax
add    $0x68,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i8* @s_create_solution() {
%1 = alloca [81 x i8]
%2 = alloca i32
%3 = alloca i8*
%4 = getelementptr inbounds [81 x i8], [81 x i8]* %1, i64 0, i64 0
%5 = call i32 @memset(i8* %4, i32 0, i32 81)
store i32 1, i32* %2
%6 = call i8* @calloc(i32 81, i32 1)
store i8* %6, i8** %3
%7 = getelementptr inbounds [81 x i8], [81 x i8]* %1, i64 0, i64 0
%8 = load i8*, i8** %3
%9 = call i32 @s_solve_sudoku(i8* %7, i32* %2, i8* %8)
%10 = load i8*, i8** %3
ret i8* %10
}

LLVM IR (-O2):
define i8* @s_create_solution() {
%1 = alloca [81 x i8]
%2 = alloca i32
%3 = getelementptr inbounds [81 x i8], [81 x i8]* %1, i64 0, i64 0
%4 = call i32 @memset(i8* %3, i32 0, i32 81)
%5 = bitcast i32* %2 to i8*
store i32 1, i32* %2
%6 = call dereferenceable_or_null(81) i8* @calloc(i32 81, i32 1)
%7 = call i32 @s_solve_sudoku(i8* %3, i32* %2, i8* %6)
ret i8* %6
}
/* Type definitions */
typedef int /*<<< orphan*/ uint16_t;
struct pkt_buff {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ dissect_routinghdr_type_0(struct pkt_buff *,
                                             int /*<<< orphan*/ *, int);
void dissect_routinghdr_type_0_less(struct pkt_buff *pkt, uint16_t *data_len) {
  dissect_routinghdr_type_0(pkt, data_len, 1);
}


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

x86 assembly (clang, -O2):
<dissect_routinghdr_type_0_less>:
mov    $0x1,%edx
jmp    1030 <dissect_routinghdr_type_0@plt>

LLVM IR (-O0):
%struct.pkt_buff = type { i32 }
define void @dissect_routinghdr_type_0_less(%struct.pkt_buff* %0, i32* %1) {
%3 = alloca %struct.pkt_buff*
%4 = alloca i32*
store %struct.pkt_buff* %0, %struct.pkt_buff** %3
store i32* %1, i32** %4
%5 = load %struct.pkt_buff*, %struct.pkt_buff** %3
%6 = load i32*, i32** %4
%7 = call i32 @dissect_routinghdr_type_0(%struct.pkt_buff* %5, i32* %6, i32 1)
ret void
}

LLVM IR (-O2):
%struct.pkt_buff = type { i32 }
define void @dissect_routinghdr_type_0_less(%struct.pkt_buff* %0, i32* %1) {
%3 = tail call i32 @dissect_routinghdr_type_0(%struct.pkt_buff* %0, i32* %1, i32 1)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ pthread_mutex_t;

/* Variables and functions */
int /*<<< orphan*/ free(int /*<<< orphan*/ *);
void destroy_locking(void *handle) {
  pthread_mutex_t *mutex = (pthread_mutex_t *)handle;
  free(mutex);
}


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

x86 assembly (clang, -O2):
<destroy_locking>:
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @destroy_locking(i8* %0) {
%2 = alloca i8*
%3 = alloca i32*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = bitcast i8* %4 to i32*
store i32* %5, i32** %3
%6 = load i32*, i32** %3
%7 = call i32 @free(i32* %6)
ret void
}

LLVM IR (-O2):
define void @destroy_locking(i8* nocapture %0) {
%2 = bitcast i8* %0 to i32*
%3 = tail call i32 @free(i32* %2)
ret void
}
int ld_bge_mr2(long double *a1, long double a2) {
  return !(__builtin_isgreaterequal(*a1, a2));
}


x86 assembly (clang, -O0):
<ld_bge_mr2>:
push   %rbp
mov    %rsp,%rbp
fldt   0x10(%rbp)
mov    %rdi,-0x8(%rbp)
fstpt  -0x20(%rbp)
mov    -0x8(%rbp),%rax
fldt   (%rax)
fldt   -0x20(%rbp)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
setae  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ld_bge_mr2>:
fldt   0x8(%rsp)
fldt   (%rdi)
xor    %eax,%eax
fucomip %st(1),%st
fstp   %st(0)
setb   %al
ret

LLVM IR (-O0):
define i32 @ld_bge_mr2(x86_fp80* %0, x86_fp80 %1) {
%3 = alloca x86_fp80*
%4 = alloca x86_fp80
store x86_fp80* %0, x86_fp80** %3
store x86_fp80 %1, x86_fp80* %4
%5 = load x86_fp80*, x86_fp80** %3
%6 = load x86_fp80, x86_fp80* %5
%7 = load x86_fp80, x86_fp80* %4
%8 = fcmp oge x86_fp80 %6, %7
%9 = xor i1 %8, true
%10 = zext i1 %9 to i32
ret i32 %10
}

LLVM IR (-O2):
define i32 @ld_bge_mr2(x86_fp80* nocapture %0, x86_fp80 %1) {
%3 = load x86_fp80, x86_fp80* %0
%4 = fcmp ult x86_fp80 %3, %1
%5 = zext i1 %4 to i32
ret i32 %5
}
checkfpu() { return -1; }


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

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

LLVM IR (-O0):
define i32 @checkfpu() {
ret i32 -1
}

LLVM IR (-O2):
define i32 @checkfpu() {
ret i32 -1
}
/* Variables and functions */
void *memccpy(void *restrict dest, const void *restrict src, int c, size_t n) {
  return NULL;
}


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

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

LLVM IR (-O0):
define i8* @memccpy(i8* noalias %0, i8* noalias %1, i32 %2, i64 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i64
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i64 %3, i64* %8
ret i8* null
}

LLVM IR (-O2):
define noalias i8* @memccpy(i8* noalias nocapture readnone %0, i8* noalias nocapture readnone %1, i32 %2, i64 %3) {
ret i8* null
}
/* Variables and functions */
unsigned int _alarm(unsigned int);
unsigned int alarm(unsigned int seconds) { return _alarm(seconds); }


x86 assembly (clang, -O0):
<alarm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <_alarm@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<alarm>:
jmp    1030 <_alarm@plt>

LLVM IR (-O0):
define i32 @alarm(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @_alarm(i32 %3)
ret i32 %4
}

LLVM IR (-O2):
define i32 @alarm(i32 %0) {
%2 = tail call i32 @_alarm(i32 %0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int m_entry_nr4(void) {
  int res = 1;
  printf("\n>> Called m_entry_nr4\n");
  res = 0;
  return res;
}


x86 assembly (clang, -O0):
<m_entry_nr4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x1,-0x4(%rbp)
lea    0xeda(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [24 x i8] c"\0A>> Called m_entry_nr4\0A\00"
define i32 @m_entry_nr4() {
%1 = alloca i32
store i32 1, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %1
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@str = [23 x i8] c"\0A>> Called m_entry_nr4\00"
define i32 @m_entry_nr4() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int SzMax(int /*<<< orphan*/ *);
int rtl_tracefilesize(FILE *f) { return SzMax(f); }


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

x86 assembly (clang, -O2):
<rtl_tracefilesize>:
jmp    1030 <SzMax@plt>

LLVM IR (-O0):
define i32 @rtl_tracefilesize(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @SzMax(i32* %3)
ret i32 %4
}

LLVM IR (-O2):
define i32 @rtl_tracefilesize(i32* %0) {
%2 = tail call i32 @SzMax(i32* %0)
ret i32 %2
}
double deg2arcmin(double x) { return (x * 60.0); }


x86 assembly (clang, -O0):
<deg2arcmin>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  0xeef(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<deg2arcmin>:
mulsd  0xef8(%rip),%xmm0
ret

LLVM IR (-O0):
define double @deg2arcmin(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fmul double %3, 6.000000e+01
ret double %4
}

LLVM IR (-O2):
define double @deg2arcmin(double %0) {
%2 = fmul double %0, 6.000000e+01
ret double %2
}
void dummy_handler(void) {
  while (1)
    ;
}


x86 assembly (clang, -O0):
<dummy_handler>:
push   %rbp
mov    %rsp,%rbp
jmp    1109 <dummy_handler+0x9>
jmp    1109 <dummy_handler+0x9>

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

LLVM IR (-O0):
define void @dummy_handler() {
br label %1
1: ; preds = %0, %1
br label %1
}

LLVM IR (-O2):
define void @dummy_handler() {
br label %1
1: ; preds = %0, %1
br label %1
}
void ff_hevc_put_hevc_bi_qpel_h64_10_avx2() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_bi_qpel_h64_10_avx2() {
ret void
}
double mul_fun(double lhs, double rhs) { return lhs * rhs; }


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

x86 assembly (clang, -O2):
<mul_fun>:
mulsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @mul_fun(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 = fmul double %5, %6
ret double %7
}

LLVM IR (-O2):
define double @mul_fun(double %0, double %1) {
%3 = fmul double %0, %1
ret double %3
}
int isIdleNotUsedGroup(int i) {
  if (i == 0 || i == 1)
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<isIdleNotUsedGroup>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     111b <isIdleNotUsedGroup+0x1b>
cmpl   $0x1,-0x8(%rbp)
jne    1127 <isIdleNotUsedGroup+0x27>
movl   $0x1,-0x4(%rbp)
jmp    112e <isIdleNotUsedGroup+0x2e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isIdleNotUsedGroup>:
xor    %eax,%eax
cmp    $0x2,%edi
setb   %al
ret

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

LLVM IR (-O2):
define i32 @isIdleNotUsedGroup(i32 %0) {
%2 = icmp ult i32 %0, 2
%3 = zext i1 %2 to i32
ret i32 %3
}