xunge/DecIR huggingface dataset:
int test04(char *a, short *b, int c, int d) {
  if (*a & *b)
    return c;
  return d;
}


x86 assembly (clang, -O0):
<test04>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %ecx,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
mov    -0x18(%rbp),%rcx
movswl (%rcx),%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1136 <test04+0x36>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    113c <test04+0x3c>
mov    -0x20(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test04>:
mov    %edx,%eax
movsbl (%rdi),%edx
movswl (%rsi),%esi
test   %edx,%esi
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test04(i8* nocapture %0, i16* nocapture %1, i32 %2, i32 %3) {
%5 = load i8, i8* %0
%6 = sext i8 %5 to i32
%7 = load i16, i16* %1
%8 = sext i16 %7 to i32
%9 = and i32 %8, %6
%10 = icmp eq i32 %9, 0
%11 = select i1 %10, i32 %3, i32 %2
ret i32 %11
}
int fake_gthread_fake_function(void) { return 7; }


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

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

LLVM IR (-O0):
define i32 @fake_gthread_fake_function() {
ret i32 7
}

LLVM IR (-O2):
define i32 @fake_gthread_fake_function() {
ret i32 7
}
void print(int n) {
  int volatile *IO = (int *)0x3c000000;
  *IO = n;
}


x86 assembly (clang, -O0):
<print>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    $0x3c000000,%eax
mov    %rax,-0x10(%rbp)
mov    -0x4(%rbp),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<print>:
mov    %edi,0x3c000000
ret

LLVM IR (-O0):
define void @print(i32 %0) {
%2 = alloca i32
%3 = alloca i32*
store i32 %0, i32* %2
store i32* inttoptr (i64 1006632960 to i32*), i32** %3
%4 = load i32, i32* %2
%5 = load i32*, i32** %3
store volatile i32 %4, i32* %5
ret void
}

LLVM IR (-O2):
define void @print(i32 %0) {
store volatile i32 %0, i32* inttoptr (i64 1006632960 to i32*)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int x(int);
main() {
  if (x(1000) != 1000)
    abort();
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x3e8,%edi
call   1040 <x@plt>
cmp    $0x3e8,%eax
je     115b <main+0x2b>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %edi,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x3e8,%edi
call   1040 <x@plt>
cmp    $0x3e8,%eax
jne    1149 <main+0x19>
xor    %edi,%edi
call   1050 <exit@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @x(i32 1000)
%3 = icmp ne i32 %2, 1000
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 (...) @abort()
unreachable
6: ; preds = %0
%7 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @x(i32 1000)
%2 = icmp eq i32 %1, 1000
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 (...) @abort()
unreachable
5: ; preds = %0
%6 = tail call i32 @exit(i32 0)
unreachable
}
/* Variables and functions */
double RAND_MAX;
double rand();
double rand0toX(double X) { return rand() / (RAND_MAX / X); }


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

x86 assembly (clang, -O2):
<rand0toX>:
push   %rax
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1030 <rand@plt>
mov    0x2ec4(%rip),%rax
movsd  (%rax),%xmm1
divsd  (%rsp),%xmm1
divsd  %xmm1,%xmm0
pop    %rax
ret

LLVM IR (-O0):
@RAND_MAX = global double 0.000000e+00
define double @rand0toX(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = call double (...) @rand()
%4 = load double, double* @RAND_MAX
%5 = load double, double* %2
%6 = fdiv double %4, %5
%7 = fdiv double %3, %6
ret double %7
}

LLVM IR (-O2):
@RAND_MAX = global double 0.000000e+00
define double @rand0toX(double %0) {
%2 = tail call double (...) @rand()
%3 = load double, double* @RAND_MAX
%4 = fdiv double %3, %0
%5 = fdiv double %2, %4
ret double %5
}
/* Variables and functions */
int fib(int);
int /*<<< orphan*/ printf(char *, int);
int main(void) {
  int fib_idx = 0;
  int cursor = 0;
  int tot = 0;
  while (cursor < 4000000) {
    cursor = fib(++fib_idx);
    if (cursor % 2 == 0)
      tot += cursor;
  }
  printf("%d\n", tot);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x3d0900,-0xc(%rbp)
jge    1184 <main+0x64>
mov    -0x8(%rbp),%edi
add    $0x1,%edi
mov    %edi,-0x8(%rbp)
call   1040 <fib@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    117f <main+0x5f>
mov    -0xc(%rbp),%eax
add    -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    1144 <main+0x24>
mov    -0x10(%rbp),%esi
lea    0xe72(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
xor    %ebx,%ebx
mov    $0x1,%ebp
nopw   0x0(%rax,%rax,1)
mov    %ebp,%edi
call   1040 <fib@plt>
test   $0x1,%al
mov    $0x0,%ecx
cmove  %eax,%ecx
add    %ecx,%ebx
add    $0x1,%ebp
cmp    $0x3d0900,%eax
jl     1130 <main+0x10>
lea    0xeac(%rip),%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 0, %0 ], [ %9, %1 ]
%3 = phi i32 [ 0, %0 ], [ %4, %1 ]
%4 = add nuw nsw i32 %3, 1
%5 = tail call i32 @fib(i32 %4)
%6 = and i32 %5, 1
%7 = icmp eq i32 %6, 0
%8 = select i1 %7, i32 %5, i32 0
%9 = add nsw i32 %8, %2
%10 = icmp slt i32 %5, 4000000
br i1 %10, label %1, label %11
11: ; preds = %1
%12 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %9)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ abort();
void bug() { abort(); }


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

x86 assembly (clang, -O2):
<bug>:
push   %rax
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define void @bug() {
%1 = call i32 (...) @abort()
unreachable
}

LLVM IR (-O2):
define void @bug() {
%1 = tail call i32 (...) @abort()
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ beginScene(int);
int /*<<< orphan*/ endScene();
int /*<<< orphan*/ paintOval(char const *, double, double, double, double, int,
                             int, int /*<<< orphan*/, int, int /*<<< orphan*/,
                             int /*<<< orphan*/, int /*<<< orphan*/, int);
void paintPoint(const char *name, double x, double y) {
  beginScene(100);
  paintOval(name, x, y, 0.05, 0.05, 255, 200, 0, 255, 0, 0, 0, 255);
  endScene();
}


x86 assembly (clang, -O0):
<paintPoint>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
mov    $0x64,%edi
call   1040 <beginScene@plt>
mov    -0x8(%rbp),%rdi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  0xe9a(%rip),%xmm3
mov    $0xff,%r8d
mov    $0xc8,%edx
xor    %r9d,%r9d
movaps %xmm3,%xmm2
mov    %r8d,%esi
mov    %r9d,%ecx
movl   $0x0,(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0xff,0x10(%rsp)
call   1050 <paintOval@plt>
mov    $0x0,%al
call   1030 <endScene@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<paintPoint>:
push   %rbx
sub    $0x10,%rsp
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,(%rsp)
mov    %rdi,%rbx
mov    $0x64,%edi
call   1040 <beginScene@plt>
sub    $0x8,%rsp
movsd  0xea7(%rip),%xmm2
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movaps %xmm2,%xmm3
mov    $0xff,%esi
mov    $0xc8,%edx
xor    %ecx,%ecx
mov    $0xff,%r8d
xor    %r9d,%r9d
push   $0xff
push   $0x0
push   $0x0
call   1050 <paintOval@plt>
add    $0x20,%rsp
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
jmp    1030 <endScene@plt>

LLVM IR (-O0):
define void @paintPoint(i8* %0, double %1, double %2) {
%4 = alloca i8*
%5 = alloca double
%6 = alloca double
store i8* %0, i8** %4
store double %1, double* %5
store double %2, double* %6
%7 = call i32 @beginScene(i32 100)
%8 = load i8*, i8** %4
%9 = load double, double* %5
%10 = load double, double* %6
%11 = call i32 @paintOval(i8* %8, double %9, double %10, double 5.000000e-02, double 5.000000e-02, i32 255, i32 200, i32 0, i32 255, i32 0, i32 0, i32 0, i32 255)
%12 = call i32 (...) @endScene()
ret void
}

LLVM IR (-O2):
define void @paintPoint(i8* %0, double %1, double %2) {
%4 = tail call i32 @beginScene(i32 100)
%5 = tail call i32 @paintOval(i8* %0, double %1, double %2, double 5.000000e-02, double 5.000000e-02, i32 255, i32 200, i32 0, i32 255, i32 0, i32 0, i32 0, i32 255)
%6 = tail call i32 (...) @endScene()
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ mode_t;

/* Variables and functions */
int shm_open(char const *, int, int /*<<< orphan*/);
__attribute__((weak)) int __real_shm_open(const char *name, int oflag,
                                          mode_t mode) {
  return shm_open(name, oflag, mode);
}


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

x86 assembly (clang, -O2):
<__real_shm_open>:
jmp    1030 <shm_open@plt>

LLVM IR (-O0):
define weak i32 @__real_shm_open(i8* %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i8*, i8** %4
%8 = load i32, i32* %5
%9 = load i32, i32* %6
%10 = call i32 @shm_open(i8* %7, i32 %8, i32 %9)
ret i32 %10
}

LLVM IR (-O2):
define weak i32 @__real_shm_open(i8* %0, i32 %1, i32 %2) {
%4 = tail call i32 @shm_open(i8* %0, i32 %1, i32 %2)
ret i32 %4
}
void swap(int *v, int i, int j) {
  int temp;
  temp = v[i];
  v[i] = v[j];
  v[j] = temp;
}


x86 assembly (clang, -O0):
<swap>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x14(%rbp),%edx
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
pop    %rbp
ret

x86 assembly (clang, -O2):
<swap>:
movslq %esi,%rax
mov    (%rdi,%rax,4),%ecx
movslq %edx,%rdx
mov    (%rdi,%rdx,4),%esi
mov    %esi,(%rdi,%rax,4)
mov    %ecx,(%rdi,%rdx,4)
ret

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

LLVM IR (-O2):
define void @swap(i32* nocapture %0, i32 %1, i32 %2) {
%4 = sext i32 %1 to i64
%5 = getelementptr inbounds i32, i32* %0, i64 %4
%6 = load i32, i32* %5
%7 = sext i32 %2 to i64
%8 = getelementptr inbounds i32, i32* %0, i64 %7
%9 = load i32, i32* %8
store i32 %9, i32* %5
store i32 %6, i32* %8
ret void
}
int f_i2(int i0, int i1) { return i1; }


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

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

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

LLVM IR (-O2):
define i32 @f_i2(i32 %0, i32 returned %1) {
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ sleep(int);
int sub_proccess_run(char *name, int time) {
  printf("\nCurrently Proccessing -->%s", name);
  sleep(time);
  return (0);
}


x86 assembly (clang, -O0):
<sub_proccess_run>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec6(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%edi
call   1040 <sleep@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sub_proccess_run>:
push   %rbx
mov    %esi,%ebx
mov    %rdi,%rsi
lea    0xed3(%rip),%rdi
call   1030 <printf@plt>
mov    %ebx,%edi
call   1040 <sleep@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [29 x i8] c"\0ACurrently Proccessing -->%s\00"
define i32 @sub_proccess_run(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i8*, i8** %3
%6 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = load i32, i32* %4
%8 = call i32 @sleep(i32 %7)
ret i32 0
}

LLVM IR (-O2):
@.str = [29 x i8] c"\0ACurrently Proccessing -->%s\00"
define i32 @sub_proccess_run(i8* %0, i32 %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = tail call i32 @sleep(i32 %1)
ret i32 0
}
/* Variables and functions */
bool nrf53_errata_74(void) { return false; }


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

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

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

LLVM IR (-O2):
define i32 @nrf53_errata_74() {
ret i32 0
}
int in_uch_array(const unsigned char c, unsigned char *buf) {
  unsigned char *cp = buf;
  while (*cp != 0) {
    if (*cp == c)
      return 1;
    cp++;
  }
  return 0;
}


x86 assembly (clang, -O0):
<in_uch_array>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x5(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
cmp    $0x0,%eax
je     1156 <in_uch_array+0x56>
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
movzbl -0x5(%rbp),%ecx
cmp    %ecx,%eax
jne    1145 <in_uch_array+0x45>
movl   $0x1,-0x4(%rbp)
jmp    115d <in_uch_array+0x5d>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1116 <in_uch_array+0x16>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<in_uch_array>:
mov    (%rsi),%cl
xor    %eax,%eax
test   %cl,%cl
je     1120 <in_uch_array+0x20>
add    $0x1,%rsi
nopl   0x0(%rax)
cmp    %dil,%cl
je     1121 <in_uch_array+0x21>
movzbl (%rsi),%ecx
add    $0x1,%rsi
test   %cl,%cl
jne    1110 <in_uch_array+0x10>
ret
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @in_uch_array(i8 zeroext %0, i8* nocapture %1) {
%3 = load i8, i8* %1
%4 = icmp eq i8 %3, 0
br i1 %4, label %13, label %8
5: ; preds = %8
%6 = load i8, i8* %12
%7 = icmp eq i8 %6, 0
br i1 %7, label %13, label %8
8: ; preds = %2, %5
%9 = phi i8 [ %6, %5 ], [ %3, %2 ]
%10 = phi i8* [ %12, %5 ], [ %1, %2 ]
%11 = icmp eq i8 %9, %0
%12 = getelementptr inbounds i8, i8* %10, i64 1
br i1 %11, label %13, label %5
13: ; preds = %8, %5, %2
%14 = phi i32 [ 0, %2 ], [ 0, %5 ], [ 1, %8 ]
ret i32 %14
}
double d_cos_xx_6(double xx) {
  return 1 + xx * (-0.3084251375340424 +
                   xx * (0.01585247243656319 + xx * (-0.0003206691702035272)));
}


x86 assembly (clang, -O0):
<d_cos_xx_6>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm1
movsd  -0x8(%rbp),%xmm2
movsd  0xef0(%rip),%xmm3
mulsd  %xmm3,%xmm2
movsd  0xeec(%rip),%xmm3
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
movsd  0xecc(%rip),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xeb4(%rip),%xmm1
addsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<d_cos_xx_6>:
movsd  0xef8(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0xef4(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0xef0(%rip),%xmm1
mulsd  %xmm1,%xmm0
addsd  0xeec(%rip),%xmm0
ret

LLVM IR (-O0):
define double @d_cos_xx_6(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = load double, double* %2
%5 = load double, double* %2
%6 = call double @llvm.fmuladd.f64(double %5, double 0xBF3503EF994EDCFB, double 0x3F903BA16AB3FFC3)
%7 = call double @llvm.fmuladd.f64(double %4, double %6, double 0xBFD3BD3CC9BE45DD)
%8 = call double @llvm.fmuladd.f64(double %3, double %7, double 1.000000e+00)
ret double %8
}

LLVM IR (-O2):
define double @d_cos_xx_6(double %0) {
%2 = tail call double @llvm.fmuladd.f64(double %0, double 0xBF3503EF994EDCFB, double 0x3F903BA16AB3FFC3)
%3 = tail call double @llvm.fmuladd.f64(double %0, double %2, double 0xBFD3BD3CC9BE45DD)
%4 = tail call double @llvm.fmuladd.f64(double %0, double %3, double 1.000000e+00)
ret double %4
}
/* Variables and functions */
scalar_t__ Q_isalphanumeric(int);
int Q_isforfilename(int c) {
  if ((Q_isalphanumeric(c) || c == '_') && c != ' ')
    return (1);
  return (0);
}


x86 assembly (clang, -O0):
<Q_isforfilename>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <Q_isalphanumeric@plt>
cmp    $0x0,%rax
jne    1137 <Q_isforfilename+0x27>
cmpl   $0x5f,-0x8(%rbp)
jne    114d <Q_isforfilename+0x3d>
cmpl   $0x20,-0x8(%rbp)
je     114d <Q_isforfilename+0x3d>
movl   $0x1,-0x4(%rbp)
jmp    1154 <Q_isforfilename+0x44>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Q_isforfilename>:
push   %rbx
mov    %edi,%ebx
call   1030 <Q_isalphanumeric@plt>
test   %rax,%rax
setne  %al
cmp    $0x5f,%ebx
sete   %cl
or     %al,%cl
cmp    $0x20,%ebx
setne  %al
and    %cl,%al
movzbl %al,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @Q_isforfilename(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = call i64 @Q_isalphanumeric(i32 %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %10, label %7
7: ; preds = %1
%8 = load i32, i32* %3
%9 = icmp eq i32 %8, 95
br i1 %9, label %10, label %14
10: ; preds = %7, %1
%11 = load i32, i32* %3
%12 = icmp ne i32 %11, 32
br i1 %12, label %13, label %14
13: ; preds = %10
store i32 1, i32* %2
br label %15
14: ; preds = %10, %7
store i32 0, i32* %2
br label %15
15: ; preds = %14, %13
%16 = load i32, i32* %2
ret i32 %16
}

LLVM IR (-O2):
define i32 @Q_isforfilename(i32 %0) {
%2 = tail call i64 @Q_isalphanumeric(i32 %0)
%3 = icmp ne i64 %2, 0
%4 = icmp eq i32 %0, 95
%5 = or i1 %4, %3
%6 = icmp ne i32 %0, 32
%7 = and i1 %6, %5
%8 = zext i1 %7 to i32
ret i32 %8
}
double roundedMax(double val) {
  if (val <= 0.0)
    return 0;
  double roundedVal = 1;
  for (;;) {
    if (val <= roundedVal)
      break;
    roundedVal *= 10;
  }
  return roundedVal;
}


x86 assembly (clang, -O0):
<roundedMax>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     1124 <roundedMax+0x24>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    116b <roundedMax+0x6b>
movsd  0xed4(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     114a <roundedMax+0x4a>
jmp    1161 <roundedMax+0x61>
movsd  0xeb6(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    1131 <roundedMax+0x31>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<roundedMax>:
xorpd  %xmm1,%xmm1
ucomisd %xmm0,%xmm1
jae    113a <roundedMax+0x3a>
movsd  0xeee(%rip),%xmm1
ucomisd %xmm0,%xmm1
jae    113a <roundedMax+0x3a>
movsd  0xee0(%rip),%xmm1
movsd  0xee0(%rip),%xmm2
nopl   0x0(%rax,%rax,1)
mulsd  %xmm2,%xmm1
ucomisd %xmm0,%xmm1
jb     1130 <roundedMax+0x30>
movapd %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @roundedMax(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
store double %0, double* %3
%5 = load double, double* %3
%6 = fcmp ole double %5, 0.000000e+00
br i1 %6, label %7, label %8
7: ; preds = %1
store double 0.000000e+00, double* %2
br label %19
8: ; preds = %1
store double 1.000000e+00, double* %4
br label %9
9: ; preds = %14, %8
%10 = load double, double* %3
%11 = load double, double* %4
%12 = fcmp ole double %10, %11
br i1 %12, label %13, label %14
13: ; preds = %9
br label %17
14: ; preds = %9
%15 = load double, double* %4
%16 = fmul double %15, 1.000000e+01
store double %16, double* %4
br label %9
17: ; preds = %13
%18 = load double, double* %4
store double %18, double* %2
br label %19
19: ; preds = %17, %7
%20 = load double, double* %2
ret double %20
}

LLVM IR (-O2):
define double @roundedMax(double %0) {
%2 = fcmp ugt double %0, 0.000000e+00
br i1 %2, label %3, label %9
3: ; preds = %1
%4 = fcmp ugt double %0, 1.000000e+00
br i1 %4, label %5, label %9
5: ; preds = %3, %5
%6 = phi double [ %7, %5 ], [ 1.000000e+00, %3 ]
%7 = fmul double %6, 1.000000e+01
%8 = fcmp ult double %7, %0
br i1 %8, label %5, label %9
9: ; preds = %5, %3, %1
%10 = phi double [ 0.000000e+00, %1 ], [ 1.000000e+00, %3 ], [ %7, %5 ]
ret double %10
}
/* Variables and functions */
int /*<<< orphan*/ mkfifo(char *, int);
void conn_mkfifo(void) {
  mkfifo("temp_fifo_aobi", 0666);
  mkfifo("temp_fifo_aibo", 0666);
}


x86 assembly (clang, -O0):
<conn_mkfifo>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x1b6,%esi
call   1030 <mkfifo@plt>
lea    0xee3(%rip),%rdi
mov    $0x1b6,%esi
call   1030 <mkfifo@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<conn_mkfifo>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x1b6,%esi
call   1030 <mkfifo@plt>
lea    0xee6(%rip),%rdi
mov    $0x1b6,%esi
pop    %rax
jmp    1030 <mkfifo@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"temp_fifo_aobi\00"
@.str.1 = [15 x i8] c"temp_fifo_aibo\00"
define void @conn_mkfifo() {
%1 = call i32 @mkfifo(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 438)
%2 = call i32 @mkfifo(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 438)
ret void
}

LLVM IR (-O2):
@.str = [15 x i8] c"temp_fifo_aobi\00"
@.str.1 = [15 x i8] c"temp_fifo_aibo\00"
define void @conn_mkfifo() {
%1 = tail call i32 @mkfifo(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 438)
%2 = tail call i32 @mkfifo(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 438)
ret void
}
void print(void *str) { printf("'%s' ", str); }


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

x86 assembly (clang, -O2):
<print>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [6 x i8] c"'%s' \00"
define void @print(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
/* Variables and functions */
double mag_binpt(double, double, double, double);
double Adaptive_Contouring_Point_Source(double d, double q, double y1,
                                        double y2) {
  return mag_binpt(y1, y2, d, q);
}


x86 assembly (clang, -O0):
<Adaptive_Contouring_Point_Source>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x8(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm3
call   1030 <mag_binpt@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Adaptive_Contouring_Point_Source>:
movaps %xmm1,%xmm4
movaps %xmm0,%xmm5
movaps %xmm2,%xmm0
movaps %xmm3,%xmm1
movaps %xmm5,%xmm2
movaps %xmm4,%xmm3
jmp    1030 <mag_binpt@plt>

LLVM IR (-O0):
define double @Adaptive_Contouring_Point_Source(double %0, double %1, double %2, double %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
store double %0, double* %5
store double %1, double* %6
store double %2, double* %7
store double %3, double* %8
%9 = load double, double* %7
%10 = load double, double* %8
%11 = load double, double* %5
%12 = load double, double* %6
%13 = call double @mag_binpt(double %9, double %10, double %11, double %12)
ret double %13
}

LLVM IR (-O2):
define double @Adaptive_Contouring_Point_Source(double %0, double %1, double %2, double %3) {
%5 = tail call double @mag_binpt(double %2, double %3, double %0, double %1)
ret double %5
}
/* Type definitions */
struct genlist {
  int dummy;
};
struct entry_list {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ genlist_clear(struct genlist *);
void entry_list_clear(struct entry_list *tthis) {
  genlist_clear((struct genlist *)tthis);
}


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

x86 assembly (clang, -O2):
<entry_list_clear>:
jmp    1030 <genlist_clear@plt>

LLVM IR (-O0):
%struct.entry_list = type { i32 }
%struct.genlist = type { i32 }
define void @entry_list_clear(%struct.entry_list* %0) {
%2 = alloca %struct.entry_list*
store %struct.entry_list* %0, %struct.entry_list** %2
%3 = load %struct.entry_list*, %struct.entry_list** %2
%4 = bitcast %struct.entry_list* %3 to %struct.genlist*
%5 = call i32 @genlist_clear(%struct.genlist* %4)
ret void
}

LLVM IR (-O2):
%struct.entry_list = type { i32 }
%struct.genlist = type { i32 }
define void @entry_list_clear(%struct.entry_list* %0) {
%2 = bitcast %struct.entry_list* %0 to %struct.genlist*
%3 = tail call i32 @genlist_clear(%struct.genlist* %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void common_release_cb(void *p) { free(p); }


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

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

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

LLVM IR (-O2):
define void @common_release_cb(i8* nocapture %0) {
%2 = tail call i32 @free(i8* %0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ eeprom_update_byte(int /*<<< orphan*/ *, int /*<<< orphan*/);
void eeconfig_update_backlight(uint8_t val) {
  eeprom_update_byte((uint8_t *)6, val);
}


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

x86 assembly (clang, -O2):
<eeconfig_update_backlight>:
mov    %edi,%esi
mov    $0x6,%edi
jmp    1030 <eeprom_update_byte@plt>

LLVM IR (-O0):
define void @eeconfig_update_backlight(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @eeprom_update_byte(i32* inttoptr (i64 6 to i32*), i32 %3)
ret void
}

LLVM IR (-O2):
define void @eeconfig_update_backlight(i32 %0) {
%2 = tail call i32 @eeprom_update_byte(i32* inttoptr (i64 6 to i32*), i32 %0)
ret void
}
int isnum(int c) { return c >= '0' && c <= '9'; }


x86 assembly (clang, -O0):
<isnum>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
xor    %eax,%eax
cmpl   $0x30,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jl     1120 <isnum+0x20>
cmpl   $0x39,-0x4(%rbp)
setle  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isnum>:
add    $0xffffffd0,%edi
xor    %eax,%eax
cmp    $0xa,%edi
setb   %al
ret

LLVM IR (-O0):
define i32 @isnum(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sge i32 %3, 48
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 57
br label %8
8: ; preds = %5, %1
%9 = phi i1 [ false, %1 ], [ %7, %5 ]
%10 = zext i1 %9 to i32
ret i32 %10
}

LLVM IR (-O2):
define i32 @isnum(i32 %0) {
%2 = add i32 %0, -48
%3 = icmp ult i32 %2, 10
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ writeidel(int /*<<< orphan*/, int /*<<< orphan*/);
void ide_write_pri_l(uint16_t addr, uint32_t val, void *priv) {
  writeidel(0, val);
}


x86 assembly (clang, -O0):
<ide_write_pri_l>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    -0x8(%rbp),%esi
xor    %edi,%edi
call   1030 <writeidel@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ide_write_pri_l>:
xor    %edi,%edi
jmp    1030 <writeidel@plt>

LLVM IR (-O0):
define void @ide_write_pri_l(i32 %0, i32 %1, i8* %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8*
store i32 %0, i32* %4
store i32 %1, i32* %5
store i8* %2, i8** %6
%7 = load i32, i32* %5
%8 = call i32 @writeidel(i32 0, i32 %7)
ret void
}

LLVM IR (-O2):
define void @ide_write_pri_l(i32 %0, i32 %1, i8* nocapture readnone %2) {
%4 = tail call i32 @writeidel(i32 0, i32 %1)
ret void
}
long binomial(int n, int p) { return 1; }


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

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

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

LLVM IR (-O2):
define i64 @binomial(i32 %0, i32 %1) {
ret i64 1
}
/* Type definitions */
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ ST7735_DrawBitmap(int /*<<< orphan*/, int /*<<< orphan*/,
                                     int /*<<< orphan*/ const *,
                                     int /*<<< orphan*/, int /*<<< orphan*/);
void LCD_DrawBitmap(const uint16_t *image, uint16_t x, uint16_t y,
                    uint16_t width, uint16_t height) {
  ST7735_DrawBitmap(x, y, image, width, height);
}


x86 assembly (clang, -O0):
<LCD_DrawBitmap>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
mov    -0x8(%rbp),%rdx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
call   1030 <ST7735_DrawBitmap@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<LCD_DrawBitmap>:
mov    %rdi,%rax
mov    %esi,%edi
mov    %edx,%esi
mov    %rax,%rdx
jmp    1030 <ST7735_DrawBitmap@plt>

LLVM IR (-O0):
define void @LCD_DrawBitmap(i32* %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32* %0, i32** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%11 = load i32, i32* %7
%12 = load i32, i32* %8
%13 = load i32*, i32** %6
%14 = load i32, i32* %9
%15 = load i32, i32* %10
%16 = call i32 @ST7735_DrawBitmap(i32 %11, i32 %12, i32* %13, i32 %14, i32 %15)
ret void
}

LLVM IR (-O2):
define void @LCD_DrawBitmap(i32* %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = tail call i32 @ST7735_DrawBitmap(i32 %1, i32 %2, i32* %0, i32 %3, i32 %4)
ret void
}
extern void __delay(unsigned long loops) {
  while (loops-- > 0)
    asm("nop");
}


x86 assembly (clang, -O0):
<__delay>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,-0x8(%rbp)
cmp    $0x0,%rax
jbe    1127 <__delay+0x27>
nop
jmp    1108 <__delay+0x8>
pop    %rbp
ret

x86 assembly (clang, -O2):
<__delay>:
test   %rdi,%rdi
je     1117 <__delay+0x17>
cs nopw 0x0(%rax,%rax,1)
nop
nop
add    $0xffffffffffffffff,%rdi
jne    1110 <__delay+0x10>
ret

LLVM IR (-O0):
define void @__delay(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
br label %3
3: ; preds = %7, %1
%4 = load i64, i64* %2
%5 = add i64 %4, -1
store i64 %5, i64* %2
%6 = icmp ugt i64 %4, 0
br i1 %6, label %7, label %8
7: ; preds = %3
br label %3
8: ; preds = %3
ret void
}

LLVM IR (-O2):
define void @__delay(i64 %0) {
%2 = icmp eq i64 %0, 0
br i1 %2, label %7, label %3
3: ; preds = %1, %3
%4 = phi i64 [ %5, %3 ], [ %0, %1 ]
%5 = add i64 %4, -1
tail call void asm sideeffect "nop", "~{dirflag},~{fpsr},~{flags}"()
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %3
7: ; preds = %3, %1
ret void
}
/* Type definitions */
struct tms {
  int dummy;
};
typedef int /*<<< orphan*/ clock_t;

/* Variables and functions */
int /*<<< orphan*/ svcPanic();
clock_t times(struct tms *buf) { svcPanic(); }


x86 assembly (clang, -O0):
<times>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    $0x0,%al
call   1030 <svcPanic@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.tms = type { i32 }
define i32 @times(%struct.tms* %0) {
%2 = alloca i32
%3 = alloca %struct.tms*
store %struct.tms* %0, %struct.tms** %3
%4 = call i32 (...) @svcPanic()
%5 = load i32, i32* %2
ret i32 %5
}

LLVM IR (-O2):
%struct.tms = type { i32 }
define i32 @times(%struct.tms* nocapture readnone %0) {
%2 = tail call i32 (...) @svcPanic()
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ puts(char *);
int main(int argc, char **argv) {
  printf("Hello, World!\n");
  printf("Hello, World!\n");
  if (argc > 1) {
    puts(argv[1]);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xec3(%rip),%rdi
call   1040 <printf@plt>
lea    0xeb7(%rip),%rdi
call   1040 <printf@plt>
cmpl   $0x1,-0x8(%rbp)
jle    1165 <main+0x45>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1030 <puts@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %edi,%ebp
lea    0xee0(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
cmp    $0x2,%ebp
jl     113e <main+0x2e>
mov    0x8(%r14),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
@str.1 = [14 x i8] c"Hello, World!\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.1, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.1, i64 0, i64 0))
%5 = icmp sgt i32 %0, 1
br i1 %5, label %6, label %10
6: ; preds = %2
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = tail call i32 @puts(i8* dereferenceable(1) %8)
br label %10
10: ; preds = %6, %2
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char const *const);
void m(char const *const input) { printf("%s\n", input); }


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

x86 assembly (clang, -O2):
<m>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
define void @m(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
/* Variables and functions */
scalar_t__ memdup(char const *, int);
int strlen(char const *);
char *cpstr(const char *str) {
  return (char *)memdup(str, (strlen(str) + 1) * sizeof(char));
}


x86 assembly (clang, -O0):
<cpstr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x10(%rbp),%rdi
add    $0x1,%eax
cltq
shl    $0x0,%rax
mov    %eax,%esi
call   1040 <memdup@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cpstr>:
push   %rbx
mov    %rdi,%rbx
call   1030 <strlen@plt>
lea    0x1(%rax),%esi
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <memdup@plt>

LLVM IR (-O0):
define i8* @cpstr(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @strlen(i8* %4)
%6 = add nsw i32 %5, 1
%7 = sext i32 %6 to i64
%8 = mul i64 %7, 1
%9 = trunc i64 %8 to i32
%10 = call i64 @memdup(i8* %3, i32 %9)
%11 = inttoptr i64 %10 to i8*
ret i8* %11
}

LLVM IR (-O2):
define i8* @cpstr(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = add nsw i32 %2, 1
%4 = tail call i64 @memdup(i8* %0, i32 %3)
%5 = inttoptr i64 %4 to i8*
ret i8* %5
}
/* Variables and functions */
int strcmp(char *, char *);
int compareStrings(void *p1, void *p2) {
  char *s1 = p1;
  char *s2 = p2;
  return strcmp(s1, s2);
}


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

x86 assembly (clang, -O2):
<compareStrings>:
jmp    1030 <strcmp@plt>

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

LLVM IR (-O2):
define i32 @compareStrings(i8* nocapture %0, i8* nocapture %1) {
%3 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(1) %1)
ret i32 %3
}
/* Type definitions */
typedef int /*<<< orphan*/ __m128i;

/* Variables and functions */
int /*<<< orphan*/ _mm_or_si128(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_subs_epu16(int /*<<< orphan*/, int /*<<< orphan*/);
__m128i _mm_absdiff_epu16(__m128i x, __m128i y) {
  return _mm_or_si128(_mm_subs_epu16(x, y), _mm_subs_epu16(y, x));
}


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

x86 assembly (clang, -O2):
<_mm_absdiff_epu16>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%ebx
mov    %edi,%ebp
call   1030 <_mm_subs_epu16@plt>
mov    %eax,%r14d
mov    %ebx,%edi
mov    %ebp,%esi
call   1030 <_mm_subs_epu16@plt>
mov    %r14d,%edi
mov    %eax,%esi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <_mm_or_si128@plt>

LLVM IR (-O0):
define i32 @_mm_absdiff_epu16(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 = load i32, i32* %4
%7 = call i32 @_mm_subs_epu16(i32 %5, i32 %6)
%8 = load i32, i32* %4
%9 = load i32, i32* %3
%10 = call i32 @_mm_subs_epu16(i32 %8, i32 %9)
%11 = call i32 @_mm_or_si128(i32 %7, i32 %10)
ret i32 %11
}

LLVM IR (-O2):
define i32 @_mm_absdiff_epu16(i32 %0, i32 %1) {
%3 = tail call i32 @_mm_subs_epu16(i32 %0, i32 %1)
%4 = tail call i32 @_mm_subs_epu16(i32 %1, i32 %0)
%5 = tail call i32 @_mm_or_si128(i32 %3, i32 %4)
ret i32 %5
}
/* Variables and functions */
double DBL_MAX;
double s6bddist(double gvec[6], int bdnum) {
  if (bdnum < 0 || bdnum > 5)
    return DBL_MAX;
  return gvec[bdnum];
}


x86 assembly (clang, -O0):
<s6bddist>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jl     111f <s6bddist+0x1f>
cmpl   $0x5,-0x14(%rbp)
jle    1134 <s6bddist+0x34>
mov    0x2eba(%rip),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1146 <s6bddist+0x46>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<s6bddist>:
cmp    $0x6,%esi
jb     1111 <s6bddist+0x11>
mov    0x2ed4(%rip),%rax
movsd  (%rax),%xmm0
ret
movslq %esi,%rax
lea    (%rdi,%rax,8),%rax
movsd  (%rax),%xmm0
ret

LLVM IR (-O0):
@DBL_MAX = global double 0.000000e+00
define double @s6bddist(double* %0, i32 %1) {
%3 = alloca double
%4 = alloca double*
%5 = alloca i32
store double* %0, double** %4
store i32 %1, i32* %5
%6 = load i32, i32* %5
%7 = icmp slt i32 %6, 0
br i1 %7, label %11, label %8
8: ; preds = %2
%9 = load i32, i32* %5
%10 = icmp sgt i32 %9, 5
br i1 %10, label %11, label %13
11: ; preds = %8, %2
%12 = load double, double* @DBL_MAX
store double %12, double* %3
br label %19
13: ; preds = %8
%14 = load double*, double** %4
%15 = load i32, i32* %5
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds double, double* %14, i64 %16
%18 = load double, double* %17
store double %18, double* %3
br label %19
19: ; preds = %13, %11
%20 = load double, double* %3
ret double %20
}

LLVM IR (-O2):
@DBL_MAX = global double 0.000000e+00
define double @s6bddist(double* nocapture %0, i32 %1) {
%3 = icmp ugt i32 %1, 5
%4 = sext i32 %1 to i64
%5 = getelementptr inbounds double, double* %0, i64 %4
%6 = select i1 %3, double* @DBL_MAX, double* %5
%7 = load double, double* %6
ret double %7
}
int dc_xpwr_vbus_on_status(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @dc_xpwr_vbus_on_status() {
ret i32 0
}
void radish_free_progressing_file_op(void *op) {}


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

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

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

LLVM IR (-O2):
define void @radish_free_progressing_file_op(i8* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, double, float);
void testpassidf(int i, double d, float f) {
  printf("testpassidf: %d %g %g\n", i, d, f);
}


x86 assembly (clang, -O0):
<testpassidf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
movss  %xmm1,-0x14(%rbp)
mov    -0x4(%rbp),%esi
movsd  -0x10(%rbp),%xmm0
movss  -0x14(%rbp),%xmm1
lea    0xec7(%rip),%rdi
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [23 x i8] c"testpassidf: %d %g %g\0A\00"
define void @testpassidf(i32 %0, double %1, float %2) {
%4 = alloca i32
%5 = alloca double
%6 = alloca float
store i32 %0, i32* %4
store double %1, double* %5
store float %2, float* %6
%7 = load i32, i32* %4
%8 = load double, double* %5
%9 = load float, float* %6
%10 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %7, double %8, float %9)
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"testpassidf: %d %g %g\0A\00"
define void @testpassidf(i32 %0, double %1, float %2) {
%4 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %0, double %1, float %2)
ret void
}