xunge/DecIR huggingface dataset:
int getloadavg(double loadavg[], int nelem) {
  if (nelem <= 0) {
    return 0;
  }
  do {
    nelem--;
    loadavg[nelem] = 0.0;
  } while (nelem != 0);
  return nelem;
}


x86 assembly (clang, -O0):
<getloadavg>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jg     1121 <getloadavg+0x21>
movl   $0x0,-0x4(%rbp)
jmp    114f <getloadavg+0x4f>
jmp    1126 <getloadavg+0x26>
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
cmpl   $0x0,-0x14(%rbp)
jne    1126 <getloadavg+0x26>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<getloadavg>:
test   %esi,%esi
jle    1133 <getloadavg+0x23>
push   %rax
mov    %esi,%edx
add    $0xffffffff,%esi
not    %rsi
add    %rdx,%rsi
lea    (%rdi,%rsi,8),%rdi
shl    $0x3,%rdx
xor    %esi,%esi
call   1030 <memset@plt>
add    $0x8,%rsp
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @getloadavg(double* nocapture writeonly %0, i32 %1) {
%3 = icmp slt i32 %1, 1
br i1 %3, label %14, label %4
4: ; preds = %2
%5 = zext i32 %1 to i64
%6 = add nsw i32 %1, -1
%7 = zext i32 %6 to i64
%8 = xor i64 %7, -1
%9 = add nsw i64 %8, %5
%10 = getelementptr double, double* %0, i64 %9
%11 = bitcast double* %10 to i8*
%12 = zext i32 %1 to i64
%13 = shl nuw nsw i64 %12, 3
br label %14
14: ; preds = %4, %2
ret i32 0
}
marker4() {}


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

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

LLVM IR (-O0):
define i32 @marker4() {
%1 = alloca i32
%2 = load i32, i32* %1
ret i32 %2
}

LLVM IR (-O2):
define i32 @marker4() {
ret i32 undef
}
/* Variables and functions */
scalar_t__ _fp_inf(double);
scalar_t__ _fp_nan(double);
int _fp_valid(double x, int flag) {
  int result = 0x1;
  if ((flag & 0x2) && _fp_inf(x)) {
    result = 0x2;
  }
  if ((flag & 0x4) && _fp_nan(x)) {
    result = 0x4;
  }
  return result;
}


x86 assembly (clang, -O0):
<_fp_valid>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %edi,-0xc(%rbp)
movl   $0x1,-0x10(%rbp)
mov    -0xc(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     1161 <_fp_valid+0x41>
movsd  -0x8(%rbp),%xmm0
call   1040 <_fp_inf@plt>
cmp    $0x0,%rax
je     1161 <_fp_valid+0x41>
movl   $0x2,-0x10(%rbp)
mov    -0xc(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     118b <_fp_valid+0x6b>
movsd  -0x8(%rbp),%xmm0
call   1030 <_fp_nan@plt>
cmp    $0x0,%rax
je     118b <_fp_valid+0x6b>
movl   $0x4,-0x10(%rbp)
mov    -0x10(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_fp_valid>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebp
mov    $0x1,%ebx
test   $0x2,%bpl
je     1150 <_fp_valid+0x30>
movsd  %xmm0,(%rsp)
movsd  (%rsp),%xmm0
call   1040 <_fp_inf@plt>
movsd  (%rsp),%xmm0
cmp    $0x1,%rax
mov    $0x2,%ebx
sbb    $0x0,%ebx
test   $0x4,%bpl
je     1166 <_fp_valid+0x46>
call   1030 <_fp_nan@plt>
test   %rax,%rax
mov    $0x4,%eax
cmovne %eax,%ebx
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @_fp_valid(double %0, i32 %1) {
%3 = and i32 %1, 2
%4 = icmp eq i32 %3, 0
br i1 %4, label %9, label %5
5: ; preds = %2
%6 = tail call i64 @_fp_inf(double %0)
%7 = icmp eq i64 %6, 0
%8 = select i1 %7, i32 1, i32 2
br label %9
9: ; preds = %5, %2
%10 = phi i32 [ 1, %2 ], [ %8, %5 ]
%11 = and i32 %1, 4
%12 = icmp eq i32 %11, 0
br i1 %12, label %17, label %13
13: ; preds = %9
%14 = tail call i64 @_fp_nan(double %0)
%15 = icmp eq i64 %14, 0
%16 = select i1 %15, i32 %10, i32 4
br label %17
17: ; preds = %13, %9
%18 = phi i32 [ %10, %9 ], [ %16, %13 ]
ret i32 %18
}
/* Variables and functions */
int /*<<< orphan*/ decode_text(unsigned long *);
int /*<<< orphan*/ tx_printf(char *);
void print_text(unsigned long *addr) {
  tx_printf("\"");
  (void)decode_text(addr);
  tx_printf("\"");
}


x86 assembly (clang, -O0):
<print_text>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
call   1040 <tx_printf@plt>
mov    -0x8(%rbp),%rdi
call   1030 <decode_text@plt>
lea    0xeb8(%rip),%rdi
call   1040 <tx_printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_text>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xed2(%rip),%r14
mov    %r14,%rdi
call   1040 <tx_printf@plt>
mov    %rbx,%rdi
call   1030 <decode_text@plt>
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <tx_printf@plt>

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

LLVM IR (-O2):
@.str = [2 x i8] c"\22\00"
define void @print_text(i64* %0) {
%2 = tail call i32 @tx_printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @decode_text(i64* %0)
%4 = tail call i32 @tx_printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret void
}
mfree(p, n) char *p;
{
  if (n)
    free(p);
}


x86 assembly (clang, -O0):
<mfree>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     1132 <mfree+0x22>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mfree>:
test   %esi,%esi
je     111e <mfree+0xe>
push   %rax
call   1030 <free@plt>
add    $0x8,%rsp
ret

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

LLVM IR (-O2):
define i32 @mfree(i8* nocapture %0, i32 %1) {
%3 = icmp eq i32 %1, 0
br i1 %3, label %5, label %4
4: ; preds = %2
tail call void @free(i8* %0)
br label %5
5: ; preds = %4, %2
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ printFlag(int);
int main() {
  printFlag(79);
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @printFlag(i32 79)
ret i32 0
}
/* Variables and functions */
int rand();
int init_pm() {
  int pm;
  int min = 1;
  int max = 3;
  pm = (rand() % (max - min + 1)) + min;
  return pm;
}


x86 assembly (clang, -O0):
<init_pm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x1,-0x8(%rbp)
movl   $0x3,-0xc(%rbp)
mov    $0x0,%al
call   1030 <rand@plt>
mov    -0xc(%rbp),%ecx
sub    -0x8(%rbp),%ecx
add    $0x1,%ecx
cltd
idiv   %ecx
add    -0x8(%rbp),%edx
mov    %edx,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_pm>:
push   %rax
xor    %eax,%eax
call   1030 <rand@plt>
cltq
imul   $0x55555556,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
add    %edx,%ecx
lea    (%rcx,%rcx,2),%ecx
neg    %ecx
add    %ecx,%eax
add    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @init_pm() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 1, i32* %2
store i32 3, i32* %3
%4 = call i32 (...) @rand()
%5 = load i32, i32* %3
%6 = load i32, i32* %2
%7 = sub nsw i32 %5, %6
%8 = add nsw i32 %7, 1
%9 = srem i32 %4, %8
%10 = load i32, i32* %2
%11 = add nsw i32 %9, %10
store i32 %11, i32* %1
%12 = load i32, i32* %1
ret i32 %12
}

LLVM IR (-O2):
define i32 @init_pm() {
%1 = tail call i32 (...) @rand()
%2 = srem i32 %1, 3
%3 = add nsw i32 %2, 1
ret i32 %3
}
void start_hrtick_dl(struct rq *rq, struct task_struct *p) {}


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

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

LLVM IR (-O0):
%struct.rq = type opaque
%struct.task_struct = type opaque
define void @start_hrtick_dl(%struct.rq* %0, %struct.task_struct* %1) {
%3 = alloca %struct.rq*
%4 = alloca %struct.task_struct*
store %struct.rq* %0, %struct.rq** %3
store %struct.task_struct* %1, %struct.task_struct** %4
ret void
}

LLVM IR (-O2):
%struct.rq = type opaque
%struct.task_struct = type opaque
define void @start_hrtick_dl(%struct.rq* nocapture %0, %struct.task_struct* nocapture %1) {
ret void
}
/* Variables and functions */
int dayOfYear(int, int, int);
int /*<<< orphan*/ printf(char *, int, int, int, int);
void testDayOfYear(int day, int month, int year) {
  printf("%d/%d/%d => %d\n", day, month, year, dayOfYear(day, month, year));
}


x86 assembly (clang, -O0):
<testDayOfYear>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1040 <dayOfYear@plt>
mov    -0x18(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    %eax,%r8d
lea    0xe9c(%rip),%rdi
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<testDayOfYear>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %esi,%ebp
mov    %edi,%ebx
call   1040 <dayOfYear@plt>
lea    0xec9(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %r14d,%ecx
mov    %eax,%r8d
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"%d/%d/%d => %d\0A\00"
define void @testDayOfYear(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* %4
%8 = load i32, i32* %5
%9 = load i32, i32* %6
%10 = load i32, i32* %4
%11 = load i32, i32* %5
%12 = load i32, i32* %6
%13 = call i32 @dayOfYear(i32 %10, i32 %11, i32 %12)
%14 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %7, i32 %8, i32 %9, i32 %13)
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"%d/%d/%d => %d\0A\00"
define void @testDayOfYear(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @dayOfYear(i32 %0, i32 %1, i32 %2)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %1, i32 %2, i32 %4)
ret void
}
int thrice(int (*op)(int), int x) {
  x = op(x);
  x = op(x);
  return op(x);
}


x86 assembly (clang, -O0):
<thrice>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%edi
call   *%rax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%edi
call   *%rax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%edi
call   *%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<thrice>:
push   %rbx
mov    %rdi,%rbx
mov    %esi,%edi
call   *%rbx
mov    %eax,%edi
call   *%rbx
mov    %eax,%edi
mov    %rbx,%rax
pop    %rbx
jmp    *%rax

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

LLVM IR (-O2):
define i32 @thrice(i32 (i32)* nocapture %0, i32 %1) {
%3 = tail call i32 %0(i32 %1)
%4 = tail call i32 %0(i32 %3)
%5 = tail call i32 %0(i32 %4)
ret i32 %5
}
/* Variables and functions */
double ldexp(double, int);
int /*<<< orphan*/ printf(char *, double, int, double);
int main() {
  double param, result;
  int n;
  param = 0.95;
  n = 4;
  result = ldexp(param, n);
  printf("%f * 2^%d = %f\n", param, n, result);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xec9(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movl   $0x4,-0x1c(%rbp)
movsd  -0x10(%rbp),%xmm0
mov    -0x1c(%rbp),%edi
call   1030 <ldexp@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
mov    -0x1c(%rbp),%esi
movsd  -0x18(%rbp),%xmm1
lea    0xe9f(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movsd  0xed7(%rip),%xmm0
mov    $0x4,%edi
call   1030 <ldexp@plt>
movaps %xmm0,%xmm1
lea    0xecb(%rip),%rdi
movsd  0xebb(%rip),%xmm0
mov    $0x4,%esi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [16 x i8] c"%f * 2^%d = %f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca i32
store i32 0, i32* %1
store double 0x3FEE666666666666, double* %2
store i32 4, i32* %4
%5 = load double, double* %2
%6 = load i32, i32* %4
%7 = call double @ldexp(double %5, i32 %6)
store double %7, double* %3
%8 = load double, double* %2
%9 = load i32, i32* %4
%10 = load double, double* %3
%11 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), double %8, i32 %9, double %10)
ret i32 0
}

LLVM IR (-O2):
@.str = [16 x i8] c"%f * 2^%d = %f\0A\00"
define i32 @main() {
%1 = tail call double @ldexp(double 0x3FEE666666666666, i32 4)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), double 0x3FEE666666666666, i32 4, double %1)
ret i32 0
}
/* Variables and functions */
int frag_ripple(int, int, int /*<<< orphan*/);
int frag_ripple_interference2(int x, int y, int foo) {
  return frag_ripple(x - (foo - 512), y, 0) +
         frag_ripple(x + (foo - 512), y, 0);
}


x86 assembly (clang, -O0):
<frag_ripple_interference2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%edi
mov    -0xc(%rbp),%eax
sub    $0x200,%eax
sub    %eax,%edi
mov    -0x8(%rbp),%esi
xor    %edx,%edx
call   1030 <frag_ripple@plt>
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0xc(%rbp),%eax
sub    $0x200,%eax
add    %eax,%edi
mov    -0x8(%rbp),%esi
xor    %edx,%edx
call   1030 <frag_ripple@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%eax
add    %ecx,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<frag_ripple_interference2>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %edx,%ebx
mov    %esi,%r14d
mov    %edi,%ebp
lea    -0x200(%rbx),%eax
sub    %eax,%edi
xor    %edx,%edx
call   1030 <frag_ripple@plt>
mov    %eax,%r15d
lea    (%rbx,%rbp,1),%edi
add    $0xfffffe00,%edi
mov    %r14d,%esi
xor    %edx,%edx
call   1030 <frag_ripple@plt>
add    %r15d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @frag_ripple_interference2(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* %4
%8 = load i32, i32* %6
%9 = sub nsw i32 %8, 512
%10 = sub nsw i32 %7, %9
%11 = load i32, i32* %5
%12 = call i32 @frag_ripple(i32 %10, i32 %11, i32 0)
%13 = load i32, i32* %4
%14 = load i32, i32* %6
%15 = sub nsw i32 %14, 512
%16 = add nsw i32 %13, %15
%17 = load i32, i32* %5
%18 = call i32 @frag_ripple(i32 %16, i32 %17, i32 0)
%19 = add nsw i32 %12, %18
ret i32 %19
}

LLVM IR (-O2):
define i32 @frag_ripple_interference2(i32 %0, i32 %1, i32 %2) {
%4 = add nsw i32 %2, -512
%5 = sub nsw i32 %0, %4
%6 = tail call i32 @frag_ripple(i32 %5, i32 %1, i32 0)
%7 = add nsw i32 %4, %0
%8 = tail call i32 @frag_ripple(i32 %7, i32 %1, i32 0)
%9 = add nsw i32 %8, %6
ret i32 %9
}
float powerf(float base, int exp) {
  float result = base;
  for (int count = 1; count < exp; count++)
    result *= base;
  return result;
}


x86 assembly (clang, -O0):
<powerf>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movl   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1146 <powerf+0x46>
movss  -0x4(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    111d <powerf+0x1d>
movss  -0xc(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<powerf>:
cmp    $0x2,%edi
jl     115c <powerf+0x5c>
lea    -0x1(%rdi),%ecx
add    $0xfffffffe,%edi
mov    %ecx,%eax
and    $0x7,%eax
movaps %xmm0,%xmm1
cmp    $0x7,%edi
jb     1145 <powerf+0x45>
and    $0xfffffff8,%ecx
movaps %xmm0,%xmm1
xchg   %ax,%ax
mulss  %xmm0,%xmm1
mulss  %xmm0,%xmm1
mulss  %xmm0,%xmm1
mulss  %xmm0,%xmm1
mulss  %xmm0,%xmm1
mulss  %xmm0,%xmm1
mulss  %xmm0,%xmm1
mulss  %xmm0,%xmm1
add    $0xfffffff8,%ecx
jne    1120 <powerf+0x20>
test   %eax,%eax
je     1159 <powerf+0x59>
nopl   0x0(%rax)
mulss  %xmm0,%xmm1
add    $0xffffffff,%eax
jne    1150 <powerf+0x50>
movaps %xmm1,%xmm0
ret

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

LLVM IR (-O2):
define float @powerf(float %0, i32 %1) {
%3 = icmp sgt i32 %1, 1
br i1 %3, label %4, label %21
4: ; preds = %2
%5 = add i32 %1, -1
%6 = add i32 %1, -2
%7 = and i32 %5, 7
%8 = icmp ult i32 %6, 7
br i1 %8, label %11, label %9
9: ; preds = %4
%10 = and i32 %5, -8
br label %23
11: ; preds = %23, %4
%12 = phi float [ undef, %4 ], [ %33, %23 ]
%13 = phi float [ %0, %4 ], [ %33, %23 ]
%14 = icmp eq i32 %7, 0
br i1 %14, label %21, label %15
15: ; preds = %11, %15
%16 = phi float [ %18, %15 ], [ %13, %11 ]
%17 = phi i32 [ %19, %15 ], [ 0, %11 ]
%18 = fmul float %16, %0
%19 = add i32 %17, 1
%20 = icmp eq i32 %19, %7
br i1 %20, label %21, label %15
21: ; preds = %11, %15, %2
%22 = phi float [ %0, %2 ], [ %12, %11 ], [ %18, %15 ]
ret float %22
23: ; preds = %23, %9
%24 = phi float [ %0, %9 ], [ %33, %23 ]
%25 = phi i32 [ 0, %9 ], [ %34, %23 ]
%26 = fmul float %24, %0
%27 = fmul float %26, %0
%28 = fmul float %27, %0
%29 = fmul float %28, %0
%30 = fmul float %29, %0
%31 = fmul float %30, %0
%32 = fmul float %31, %0
%33 = fmul float %32, %0
%34 = add i32 %25, 8
%35 = icmp eq i32 %34, %10
br i1 %35, label %11, label %23
}
/* Variables and functions */
int any_decrqss(char const *, char *);
int rpt_DECSLRM(const char *the_title) { return any_decrqss(the_title, "s"); }


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

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

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

LLVM IR (-O2):
@.str = [2 x i8] c"s\00"
define i32 @rpt_DECSLRM(i8* %0) {
%2 = tail call i32 @any_decrqss(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret i32 %2
}
/* Variables and functions */
size_t packet_size_4fsk_rx() { return (0x00 << 8) + 0x7C; }


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

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

LLVM IR (-O0):
define i64 @packet_size_4fsk_rx() {
ret i64 124
}

LLVM IR (-O2):
define i64 @packet_size_4fsk_rx() {
ret i64 124
}
/* Variables and functions */
int /*<<< orphan*/ output_string(char *);
gen_immediate_c() { output_string("\tli\t$v0, "); }


x86 assembly (clang, -O0):
<gen_immediate_c>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
call   1030 <output_string@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [10 x i8] c"\09li\09$v0, \00"
define i32 @gen_immediate_c() {
%1 = alloca i32
%2 = call i32 @output_string(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@.str = [10 x i8] c"\09li\09$v0, \00"
define i32 @gen_immediate_c() {
%1 = tail call i32 @output_string(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
ret i32 undef
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int dll_getc(int /*<<< orphan*/ *);
int __wrap_getc_unlocked(FILE *stream) { return dll_getc(stream); }


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

x86 assembly (clang, -O2):
<__wrap_getc_unlocked>:
jmp    1030 <dll_getc@plt>

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

LLVM IR (-O2):
define i32 @__wrap_getc_unlocked(i32* %0) {
%2 = tail call i32 @dll_getc(i32* %0)
ret i32 %2
}
void _Z9_Jv_AbortPKcS0_iS0_(void) {}


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

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

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

LLVM IR (-O2):
define void @_Z9_Jv_AbortPKcS0_iS0_() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
void caml_js_node_n_children() { exit(1); }


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

x86 assembly (clang, -O2):
<caml_js_node_n_children>:
push   %rax
mov    $0x1,%edi
call   1030 <exit@plt>

LLVM IR (-O0):
define void @caml_js_node_n_children() {
%1 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
define void @caml_js_node_n_children() {
%1 = tail call i32 @exit(i32 1)
unreachable
}
void flogical_mesh_to_real(E, data, level) struct All_variables *E;
float *data;
int level;
{
  int i, j, n1, n2;
  return;
}


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

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

LLVM IR (-O0):
%struct.All_variables = type opaque
define void @flogical_mesh_to_real(%struct.All_variables* %0, float* %1, i32 %2) {
%4 = alloca %struct.All_variables*
%5 = alloca float*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store %struct.All_variables* %0, %struct.All_variables** %4
store float* %1, float** %5
store i32 %2, i32* %6
ret void
}

LLVM IR (-O2):
%struct.All_variables = type opaque
define void @flogical_mesh_to_real(%struct.All_variables* nocapture %0, float* nocapture %1, i32 %2) {
ret void
}
/* Variables and functions */
int strlen(char *);
char tolower(char);
void convert_lower(char *str) {
  int i, len = strlen(str);
  for (i = 0; i < len; i++)
    str[i] = tolower(str[i]);
}


x86 assembly (clang, -O0):
<convert_lower>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x10(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1177 <convert_lower+0x57>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1040 <tolower@plt>
mov    %al,%dl
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    113f <convert_lower+0x1f>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<convert_lower>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r15
call   1030 <strlen@plt>
test   %eax,%eax
jle    1157 <convert_lower+0x37>
mov    %eax,%r14d
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
movsbl (%r15,%rbx,1),%edi
call   1040 <tolower@plt>
mov    %al,(%r15,%rbx,1)
add    $0x1,%rbx
cmp    %rbx,%r14
jne    1140 <convert_lower+0x20>
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define void @convert_lower(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = icmp sgt i32 %2, 0
br i1 %3, label %4, label %13
4: ; preds = %1
%5 = zext i32 %2 to i64
br label %6
6: ; preds = %4, %6
%7 = phi i64 [ 0, %4 ], [ %11, %6 ]
%8 = getelementptr inbounds i8, i8* %0, i64 %7
%9 = load i8, i8* %8
%10 = tail call signext i8 @tolower(i8 signext %9)
store i8 %10, i8* %8
%11 = add nuw nsw i64 %7, 1
%12 = icmp eq i64 %11, %5
br i1 %12, label %13, label %6
13: ; preds = %6, %1
ret void
}
/* Variables and functions */
scalar_t__ strcmp(char *, char *);
int get_algorithm_type_id(char *str) {
  if (strcmp("bs", str) == 0) {
    return 0;
  } else if (strcmp("bb", str) == 0) {
    return 1;
  }
  return -1;
}


x86 assembly (clang, -O0):
<get_algorithm_type_id>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xed9(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1142 <get_algorithm_type_id+0x32>
movl   $0x0,-0x4(%rbp)
jmp    1174 <get_algorithm_type_id+0x64>
mov    -0x10(%rbp),%rsi
lea    0xeb6(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1168 <get_algorithm_type_id+0x58>
movl   $0x1,-0x4(%rbp)
jmp    1174 <get_algorithm_type_id+0x64>
jmp    116d <get_algorithm_type_id+0x5d>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_algorithm_type_id>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1141 <get_algorithm_type_id+0x31>
lea    0xed4(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
neg    %rax
sbb    %eax,%eax
or     $0x1,%eax
pop    %rbx
ret
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"bs\00"
@.str.1 = [3 x i8] c"bb\00"
define i32 @get_algorithm_type_id(i8* %0) {
%2 = tail call i64 @strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %8, label %4
4: ; preds = %1
%5 = tail call i64 @strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%6 = icmp eq i64 %5, 0
%7 = select i1 %6, i32 1, i32 -1
br label %8
8: ; preds = %4, %1
%9 = phi i32 [ 0, %1 ], [ %7, %4 ]
ret i32 %9
}
void BN_GENCB_call(void) {}


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

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

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

LLVM IR (-O2):
define void @BN_GENCB_call() {
ret void
}
/* Variables and functions */
int lookup_set_paths(char const *);
__attribute__((visibility("default"))) int louis_set_paths(const char *paths) {
  return lookup_set_paths(paths);
}


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

x86 assembly (clang, -O2):
<louis_set_paths>:
jmp    1030 <lookup_set_paths@plt>

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

LLVM IR (-O2):
define i32 @louis_set_paths(i8* %0) {
%2 = tail call i32 @lookup_set_paths(i8* %0)
ret i32 %2
}
/* Type definitions */
typedef scalar_t__ time_t;

/* Variables and functions */
double difftime(scalar_t__, scalar_t__);
void test(void) {
  time_t time1;
  time_t time2;
  double difference;
  time1 = 0;
  time2 = 0;
  difference = difftime(time1, time2);
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movq   $0x0,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <difftime@plt>
movsd  %xmm0,-0x18(%rbp)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
xor    %edi,%edi
xor    %esi,%esi
jmp    1030 <difftime@plt>

LLVM IR (-O0):
define void @test() {
%1 = alloca i64
%2 = alloca i64
%3 = alloca double
store i64 0, i64* %1
store i64 0, i64* %2
%4 = load i64, i64* %1
%5 = load i64, i64* %2
%6 = call double @difftime(i64 %4, i64 %5)
store double %6, double* %3
ret void
}

LLVM IR (-O2):
define void @test() {
%1 = tail call double @difftime(i64 0, i64 0)
ret void
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
bool CANErrCntrGet(uint32_t ui32Base, uint32_t *pui32RxCount,
                   uint32_t *pui32TxCount) {
  uint32_t ui32CANError;
  ;
  ui32CANError = (*((volatile uint32_t *)(ui32Base + 0x00000008)));
  *pui32RxCount = (ui32CANError & 0x00007F00) >> 8;
  *pui32TxCount = (ui32CANError & 0x000000FF) >> 0;
  if (ui32CANError & 0x00008000) {
    return (true);
  }
  return (false);
}


x86 assembly (clang, -O0):
<CANErrCntrGet>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%eax
add    $0x8,%eax
cltq
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%ecx
and    $0x7f00,%ecx
sar    $0x8,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x1c(%rbp),%ecx
and    $0xff,%ecx
sar    $0x0,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x1c(%rbp),%eax
and    $0x8000,%eax
cmp    $0x0,%eax
je     115d <CANErrCntrGet+0x5d>
movl   $0x1,-0x4(%rbp)
jmp    1164 <CANErrCntrGet+0x64>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<CANErrCntrGet>:
movslq %edi,%rax
mov    0x8(%rax),%eax
mov    %eax,%ecx
shr    $0x8,%ecx
and    $0x7f,%ecx
mov    %ecx,(%rsi)
movzbl %al,%ecx
mov    %ecx,(%rdx)
shr    $0xf,%eax
and    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @CANErrCntrGet(i32 %0, i32* %1, i32* %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32
store i32 %0, i32* %5
store i32* %1, i32** %6
store i32* %2, i32** %7
%9 = load i32, i32* %5
%10 = add nsw i32 %9, 8
%11 = sext i32 %10 to i64
%12 = inttoptr i64 %11 to i32*
%13 = load volatile i32, i32* %12
store i32 %13, i32* %8
%14 = load i32, i32* %8
%15 = and i32 %14, 32512
%16 = ashr i32 %15, 8
%17 = load i32*, i32** %6
store i32 %16, i32* %17
%18 = load i32, i32* %8
%19 = and i32 %18, 255
%20 = ashr i32 %19, 0
%21 = load i32*, i32** %7
store i32 %20, i32* %21
%22 = load i32, i32* %8
%23 = and i32 %22, 32768
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %3
store i32 1, i32* %4
br label %27
26: ; preds = %3
store i32 0, i32* %4
br label %27
27: ; preds = %26, %25
%28 = load i32, i32* %4
ret i32 %28
}

LLVM IR (-O2):
define i32 @CANErrCntrGet(i32 %0, i32* nocapture writeonly %1, i32* nocapture writeonly %2) {
%4 = add nsw i32 %0, 8
%5 = sext i32 %4 to i64
%6 = inttoptr i64 %5 to i32*
%7 = load volatile i32, i32* %6
%8 = lshr i32 %7, 8
%9 = and i32 %8, 127
store i32 %9, i32* %1
%10 = and i32 %7, 255
store i32 %10, i32* %2
%11 = lshr i32 %7, 15
%12 = and i32 %11, 1
ret i32 %12
}
double CMtoKM(double CM) { return CM / 100000; }


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

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

LLVM IR (-O0):
define double @CMtoKM(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fdiv double %3, 1.000000e+05
ret double %4
}

LLVM IR (-O2):
define double @CMtoKM(double %0) {
%2 = fdiv double %0, 1.000000e+05
ret double %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, long);
void main(void) {
  long num, remainder, base = 1, binary = 0;
  num = 1910;
  while (num > 0) {
    remainder = num % 2;
    binary = binary + remainder * base;
    num = num / 2;
    base = base * 10;
  }
  printf("Given number is = %d\n", num);
  printf("Its binary equivalent is = %ld\n", binary);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movq   $0x1,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x776,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jle    1181 <main+0x71>
mov    -0x8(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
mov    %rdx,-0x10(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x10(%rbp),%rcx
imul   -0x18(%rbp),%rcx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
mov    %rax,-0x8(%rbp)
imul   $0xa,-0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    1130 <main+0x20>
mov    -0x8(%rbp),%rsi
lea    0xe74(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%rsi
lea    0xe7a(%rip),%rdi
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
movabs $0x295ad7f5e,%rsi
pop    %rax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [22 x i8] c"Given number is = %d\0A\00"
@.str.1 = [32 x i8] c"Its binary equivalent is = %ld\0A\00"
define void @main() {
%1 = alloca i64
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
store i64 1, i64* %3
store i64 0, i64* %4
store i64 1910, i64* %1
br label %5
5: ; preds = %8, %0
%6 = load i64, i64* %1
%7 = icmp sgt i64 %6, 0
br i1 %7, label %8, label %20
8: ; preds = %5
%9 = load i64, i64* %1
%10 = srem i64 %9, 2
store i64 %10, i64* %2
%11 = load i64, i64* %4
%12 = load i64, i64* %2
%13 = load i64, i64* %3
%14 = mul nsw i64 %12, %13
%15 = add nsw i64 %11, %14
store i64 %15, i64* %4
%16 = load i64, i64* %1
%17 = sdiv i64 %16, 2
store i64 %17, i64* %1
%18 = load i64, i64* %3
%19 = mul nsw i64 %18, 10
store i64 %19, i64* %3
br label %5
20: ; preds = %5
%21 = load i64, i64* %1
%22 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i64 %21)
%23 = load i64, i64* %4
%24 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i64 %23)
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"Given number is = %d\0A\00"
@.str.1 = [32 x i8] c"Its binary equivalent is = %ld\0A\00"
define void @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i64 0)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i64 11101110110)
ret void
}
void ByteToFloatRow_Any_NEON() {}


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

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

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

LLVM IR (-O2):
define void @ByteToFloatRow_Any_NEON() {
ret void
}
void path_009_expected_4(int a, int b, int c) {
  if (a) {
  } else if (b) {
  } else if (c) {
  }
}


x86 assembly (clang, -O0):
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     111c <path_009_expected_4+0x1c>
jmp    1144 <path_009_expected_4+0x44>
cmpl   $0x0,-0x8(%rbp)
je     112b <path_009_expected_4+0x2b>
jmp    113f <path_009_expected_4+0x3f>
cmpl   $0x0,-0xc(%rbp)
je     113a <path_009_expected_4+0x3a>
jmp    113a <path_009_expected_4+0x3a>
jmp    113f <path_009_expected_4+0x3f>
jmp    1144 <path_009_expected_4+0x44>
pop    %rbp
ret

x86 assembly (clang, -O2):
ret

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

LLVM IR (-O2):
define void @path_009_expected_4(i32 %0, i32 %1, i32 %2) {
ret void
}
/* Variables and functions */
int recv_fd(int);
int priv_sock_recv_fd(int sock_fd) { return recv_fd(sock_fd); }


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

x86 assembly (clang, -O2):
<priv_sock_recv_fd>:
jmp    1030 <recv_fd@plt>

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

LLVM IR (-O2):
define i32 @priv_sock_recv_fd(i32 %0) {
%2 = tail call i32 @recv_fd(i32 %0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ rot13(char *);
scalar_t__ scanf(char *, char *);
void decode(char dc[1000]) {
  while (scanf("%1000s", dc)) {
    rot13(dc);
  }
}


x86 assembly (clang, -O0):
<decode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
call   1040 <scanf@plt>
cmp    $0x0,%rax
je     1154 <decode+0x34>
mov    -0x8(%rbp),%rdi
call   1030 <rot13@plt>
jmp    112c <decode+0xc>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<decode>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xed2(%rip),%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
test   %rax,%rax
je     1168 <decode+0x48>
lea    0xebe(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rbx,%rdi
call   1030 <rot13@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
test   %rax,%rax
jne    1150 <decode+0x30>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%1000s\00"
define void @decode(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %7, %1
%4 = load i8*, i8** %2
%5 = call i64 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %3
%8 = load i8*, i8** %2
%9 = call i32 @rot13(i8* %8)
br label %3
10: ; preds = %3
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"%1000s\00"
define void @decode(i8* %0) {
%2 = tail call i64 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %8, label %4
4: ; preds = %1, %4
%5 = tail call i32 @rot13(i8* %0)
%6 = tail call i64 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %0)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %4
8: ; preds = %4, %1
ret void
}
int _dotprsu2(int src1, unsigned int src2) {
  short ls1 = src1 & 0XFFFF;
  unsigned short ls2 = (src2 & 0XFFFF);
  short hs1 = src1 >> 16;
  unsigned short hs2 = (src2 >> 16);
  int result = (((long long)(int)(ls1 * ls2)) + ((long long)(int)(hs1 * hs2)) +
                (1LL << 15)) >>
               16;
  return result;
}


x86 assembly (clang, -O0):
<_dotprsu2>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
and    $0xffff,%eax
mov    %ax,-0xa(%rbp)
mov    -0x8(%rbp),%eax
and    $0xffff,%eax
mov    %ax,-0xc(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x10,%eax
mov    %ax,-0xe(%rbp)
mov    -0x8(%rbp),%eax
shr    $0x10,%eax
mov    %ax,-0x10(%rbp)
movswl -0xa(%rbp),%eax
movzwl -0xc(%rbp),%ecx
imul   %ecx,%eax
cltq
movswl -0xe(%rbp),%ecx
movzwl -0x10(%rbp),%edx
imul   %edx,%ecx
movslq %ecx,%rcx
add    %rcx,%rax
add    $0x8000,%rax
sar    $0x10,%rax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_dotprsu2>:
movzwl %si,%eax
shr    $0x10,%esi
movswl %di,%ecx
imul   %ecx,%eax
cltq
sar    $0x10,%edi
imul   %esi,%edi
movslq %edi,%rcx
add    %rcx,%rax
add    $0x8000,%rax
shr    $0x10,%rax
ret

LLVM IR (-O0):
define i32 @_dotprsu2(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i16
%6 = alloca i16
%7 = alloca i16
%8 = alloca i16
%9 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%10 = load i32, i32* %3
%11 = and i32 %10, 65535
%12 = trunc i32 %11 to i16
store i16 %12, i16* %5
%13 = load i32, i32* %4
%14 = and i32 %13, 65535
%15 = trunc i32 %14 to i16
store i16 %15, i16* %6
%16 = load i32, i32* %3
%17 = ashr i32 %16, 16
%18 = trunc i32 %17 to i16
store i16 %18, i16* %7
%19 = load i32, i32* %4
%20 = lshr i32 %19, 16
%21 = trunc i32 %20 to i16
store i16 %21, i16* %8
%22 = load i16, i16* %5
%23 = sext i16 %22 to i32
%24 = load i16, i16* %6
%25 = zext i16 %24 to i32
%26 = mul nsw i32 %23, %25
%27 = sext i32 %26 to i64
%28 = load i16, i16* %7
%29 = sext i16 %28 to i32
%30 = load i16, i16* %8
%31 = zext i16 %30 to i32
%32 = mul nsw i32 %29, %31
%33 = sext i32 %32 to i64
%34 = add nsw i64 %27, %33
%35 = add nsw i64 %34, 32768
%36 = ashr i64 %35, 16
%37 = trunc i64 %36 to i32
store i32 %37, i32* %9
%38 = load i32, i32* %9
ret i32 %38
}

LLVM IR (-O2):
define i32 @_dotprsu2(i32 %0, i32 %1) {
%3 = lshr i32 %1, 16
%4 = shl i32 %0, 16
%5 = ashr exact i32 %4, 16
%6 = and i32 %1, 65535
%7 = mul nsw i32 %5, %6
%8 = sext i32 %7 to i64
%9 = ashr i32 %0, 16
%10 = mul nsw i32 %3, %9
%11 = sext i32 %10 to i64
%12 = add nsw i64 %11, 32768
%13 = add nsw i64 %12, %8
%14 = ashr i64 %13, 16
%15 = trunc i64 %14 to i32
ret i32 %15
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int help(void) {
  printf("Help page\n");
  return -1;
}


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

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

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

LLVM IR (-O2):
@str = [10 x i8] c"Help page\00"
define i32 @help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
ret i32 -1
}
/* Type definitions */
typedef int /*<<< orphan*/ GLint;
typedef int /*<<< orphan*/ GLenum;

/* Variables and functions */
int /*<<< orphan*/ __glFogiv_size(int /*<<< orphan*/);
GLint __glFogfv_size(GLenum pname) { return __glFogiv_size(pname); }


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

x86 assembly (clang, -O2):
<__glFogfv_size>:
jmp    1030 <__glFogiv_size@plt>

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

LLVM IR (-O2):
define i32 @__glFogfv_size(i32 %0) {
%2 = tail call i32 @__glFogiv_size(i32 %0)
ret i32 %2
}
/* Variables and functions */
int crc32(int /*<<< orphan*/, char const *, int /*<<< orphan*/);
int /*<<< orphan*/ strlen(char const *);
int hash_password(const char *password) {
  return crc32(0, password, strlen(password));
}


x86 assembly (clang, -O0):
<hash_password>:
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   1040 <strlen@plt>
mov    -0x10(%rbp),%rsi
mov    %eax,%edx
xor    %edi,%edi
call   1030 <crc32@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hash_password>:
push   %rbx
mov    %rdi,%rbx
call   1040 <strlen@plt>
xor    %edi,%edi
mov    %rbx,%rsi
mov    %eax,%edx
pop    %rbx
jmp    1030 <crc32@plt>

LLVM IR (-O0):
define i32 @hash_password(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 = call i32 @crc32(i32 0, i8* %3, i32 %5)
ret i32 %6
}

LLVM IR (-O2):
define i32 @hash_password(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = tail call i32 @crc32(i32 0, i8* %0, i32 %2)
ret i32 %3
}