xunge/DecIR huggingface dataset:
/* Variables and functions */
int __WORDSIZE;
int /*<<< orphan*/ __bitmap_shift_right(unsigned long *, unsigned long const *,
                                        int, int);
void bitmap_shift_right(unsigned long *dst, const unsigned long *src, int n,
                        int nbits) {
  if (nbits <= __WORDSIZE)
    *dst = *src >> n;
  else
    __bitmap_shift_right(dst, src, n, nbits);
}


x86 assembly (clang, -O0):
<bitmap_shift_right>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    0x2eb8(%rip),%rcx
cmp    (%rcx),%eax
jg     1154 <bitmap_shift_right+0x44>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    -0x14(%rbp),%ecx
shr    %cl,%rax
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
jmp    1167 <bitmap_shift_right+0x57>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
call   1030 <__bitmap_shift_right@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bitmap_shift_right>:
mov    0x2ed1(%rip),%rax
cmp    %ecx,(%rax)
jge    1120 <bitmap_shift_right+0x10>
jmp    1030 <__bitmap_shift_right@plt>
mov    (%rsi),%rax
mov    %edx,%ecx
shr    %cl,%rax
mov    %rax,(%rdi)
ret

LLVM IR (-O0):
@__WORDSIZE = global i32 0
define void @bitmap_shift_right(i64* %0, i64* %1, i32 %2, i32 %3) {
%5 = alloca i64*
%6 = alloca i64*
%7 = alloca i32
%8 = alloca i32
store i64* %0, i64** %5
store i64* %1, i64** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* %8
%10 = load i32, i32* @__WORDSIZE
%11 = icmp sle i32 %9, %10
br i1 %11, label %12, label %19
12: ; preds = %4
%13 = load i64*, i64** %6
%14 = load i64, i64* %13
%15 = load i32, i32* %7
%16 = zext i32 %15 to i64
%17 = lshr i64 %14, %16
%18 = load i64*, i64** %5
store i64 %17, i64* %18
br label %25
19: ; preds = %4
%20 = load i64*, i64** %5
%21 = load i64*, i64** %6
%22 = load i32, i32* %7
%23 = load i32, i32* %8
%24 = call i32 @__bitmap_shift_right(i64* %20, i64* %21, i32 %22, i32 %23)
br label %25
25: ; preds = %19, %12
ret void
}

LLVM IR (-O2):
@__WORDSIZE = global i32 0
define void @bitmap_shift_right(i64* %0, i64* %1, i32 %2, i32 %3) {
%5 = load i32, i32* @__WORDSIZE
%6 = icmp slt i32 %5, %3
br i1 %6, label %11, label %7
7: ; preds = %4
%8 = load i64, i64* %1
%9 = zext i32 %2 to i64
%10 = lshr i64 %8, %9
store i64 %10, i64* %0
br label %13
11: ; preds = %4
%12 = tail call i32 @__bitmap_shift_right(i64* %0, i64* %1, i32 %2, i32 %3)
br label %13
13: ; preds = %11, %7
ret void
}
int ld_gt_rc2(long double a1) { return !(((a1) > (100))); }


x86 assembly (clang, -O0):
<ld_gt_rc2>:
push   %rbp
mov    %rsp,%rbp
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fldt   -0x10(%rbp)
flds   0xeed(%rip)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
seta   %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ld_gt_rc2>:
fldt   0x8(%rsp)
flds   0xef6(%rip)
xor    %eax,%eax
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
setbe  %al
ret

LLVM IR (-O0):
define i32 @ld_gt_rc2(x86_fp80 %0) {
%2 = alloca x86_fp80
store x86_fp80 %0, x86_fp80* %2
%3 = load x86_fp80, x86_fp80* %2
%4 = fcmp ogt x86_fp80 %3, 0xK4005C800000000000000
%5 = xor i1 %4, true
%6 = zext i1 %5 to i32
ret i32 %6
}

LLVM IR (-O2):
define i32 @ld_gt_rc2(x86_fp80 %0) {
%2 = fcmp ule x86_fp80 %0, 0xK4005C800000000000000
%3 = zext i1 %2 to i32
ret i32 %3
}
int isEqual(int x, double y) {
  double allowable_error = 0.00001;
  if (((x - y) < allowable_error) && ((x - y) > (-1 * allowable_error))) {
    return 1;
  } else {
    return 0;
  }
}


x86 assembly (clang, -O0):
<isEqual>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  0xeec(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm1
subsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    115f <isEqual+0x5f>
cvtsi2sdl -0x8(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  0xec4(%rip),%xmm1
mulsd  -0x18(%rbp),%xmm1
ucomisd %xmm1,%xmm0
jbe    115f <isEqual+0x5f>
movl   $0x1,-0x4(%rbp)
jmp    1166 <isEqual+0x66>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isEqual>:
cvtsi2sd %edi,%xmm1
subsd  %xmm0,%xmm1
movsd  0xef0(%rip),%xmm0
ucomisd %xmm1,%xmm0
seta   %al
ucomisd 0xee9(%rip),%xmm1
seta   %cl
and    %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
define i32 @isEqual(i32 %0, double %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca double
%6 = alloca double
store i32 %0, i32* %4
store double %1, double* %5
store double 1.000000e-05, double* %6
%7 = load i32, i32* %4
%8 = sitofp i32 %7 to double
%9 = load double, double* %5
%10 = fsub double %8, %9
%11 = load double, double* %6
%12 = fcmp olt double %10, %11
br i1 %12, label %13, label %22
13: ; preds = %2
%14 = load i32, i32* %4
%15 = sitofp i32 %14 to double
%16 = load double, double* %5
%17 = fsub double %15, %16
%18 = load double, double* %6
%19 = fmul double -1.000000e+00, %18
%20 = fcmp ogt double %17, %19
br i1 %20, label %21, label %22
21: ; preds = %13
store i32 1, i32* %3
br label %23
22: ; preds = %13, %2
store i32 0, i32* %3
br label %23
23: ; preds = %22, %21
%24 = load i32, i32* %3
ret i32 %24
}

LLVM IR (-O2):
define i32 @isEqual(i32 %0, double %1) {
%3 = sitofp i32 %0 to double
%4 = fsub double %3, %1
%5 = fcmp olt double %4, 1.000000e-05
%6 = fcmp ogt double %4, -1.000000e-05
%7 = and i1 %5, %6
%8 = zext i1 %7 to i32
ret i32 %8
}
__typeof__(scanf("")) test_scanf_215(void) { return scanf(""); }


x86 assembly (clang, -O0):
<test_scanf_215>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <scanf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_scanf_215>:
lea    0xee9(%rip),%rdi
xor    %eax,%eax
jmp    1030 <scanf@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
define i32 @test_scanf_215() {
%1 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
ret i32 %1
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
define i32 @test_scanf_215() {
%1 = tail call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
ret i32 %1
}
int lm_is_running_dlm(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @lm_is_running_dlm() {
ret i32 0
}
double __wasm_float_max_f64(double lhs, double rhs) {
  if (lhs != lhs)
    return lhs;
  if (rhs != rhs)
    return rhs;
  return lhs > rhs ? lhs : rhs;
}


x86 assembly (clang, -O0):
<__wasm_float_max_f64>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
ucomisd -0x10(%rbp),%xmm0
jne    1129 <__wasm_float_max_f64+0x29>
jp     1129 <__wasm_float_max_f64+0x29>
jmp    1138 <__wasm_float_max_f64+0x38>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1195 <__wasm_float_max_f64+0x95>
movsd  -0x18(%rbp),%xmm0
ucomisd -0x18(%rbp),%xmm0
jne    1153 <__wasm_float_max_f64+0x53>
jp     1153 <__wasm_float_max_f64+0x53>
jmp    1162 <__wasm_float_max_f64+0x62>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1195 <__wasm_float_max_f64+0x95>
movsd  -0x10(%rbp),%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    1181 <__wasm_float_max_f64+0x81>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
jmp    118b <__wasm_float_max_f64+0x8b>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<__wasm_float_max_f64>:
ucomisd %xmm0,%xmm0
jp     1110 <__wasm_float_max_f64+0x10>
ucomisd %xmm1,%xmm1
jp     1111 <__wasm_float_max_f64+0x11>
maxsd  %xmm1,%xmm0
ret
movapd %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @__wasm_float_max_f64(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
store double %0, double* %4
store double %1, double* %5
%6 = load double, double* %4
%7 = load double, double* %4
%8 = fcmp une double %6, %7
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = load double, double* %4
store double %10, double* %3
br label %27
11: ; preds = %2
%12 = load double, double* %5
%13 = load double, double* %5
%14 = fcmp une double %12, %13
br i1 %14, label %15, label %17
15: ; preds = %11
%16 = load double, double* %5
store double %16, double* %3
br label %27
17: ; preds = %11
%18 = load double, double* %4
%19 = load double, double* %5
%20 = fcmp ogt double %18, %19
br i1 %20, label %21, label %23
21: ; preds = %17
%22 = load double, double* %4
br label %25
23: ; preds = %17
%24 = load double, double* %5
br label %25
25: ; preds = %23, %21
%26 = phi double [ %22, %21 ], [ %24, %23 ]
store double %26, double* %3
br label %27
27: ; preds = %25, %15, %9
%28 = load double, double* %3
ret double %28
}

LLVM IR (-O2):
define double @__wasm_float_max_f64(double %0, double %1) {
%3 = fcmp uno double %0, 0.000000e+00
br i1 %3, label %9, label %4
4: ; preds = %2
%5 = fcmp uno double %1, 0.000000e+00
br i1 %5, label %9, label %6
6: ; preds = %4
%7 = fcmp ogt double %0, %1
%8 = select i1 %7, double %0, double %1
br label %9
9: ; preds = %4, %2, %6
%10 = phi double [ %8, %6 ], [ %0, %2 ], [ %1, %4 ]
ret double %10
}
/* Type definitions */
typedef int /*<<< orphan*/ int32_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int fwrite(int /*<<< orphan*/ *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ htonl(int /*<<< orphan*/);
int bot_fileutils_fwrite32(FILE *f, int32_t v) {
  v = htonl(v);
  if (fwrite(&v, 4, 1, f) == 1)
    return 0;
  else
    return -1;
}


x86 assembly (clang, -O0):
<bot_fileutils_fwrite32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1030 <htonl@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rcx
lea    -0x14(%rbp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
call   1040 <fwrite@plt>
cmp    $0x1,%eax
jne    1166 <bot_fileutils_fwrite32+0x46>
movl   $0x0,-0x4(%rbp)
jmp    116d <bot_fileutils_fwrite32+0x4d>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bot_fileutils_fwrite32>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
mov    %esi,%edi
call   1030 <htonl@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
xor    %ecx,%ecx
cmp    $0x1,%eax
setne  %cl
neg    %ecx
mov    %ecx,%eax
add    $0x10,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @bot_fileutils_fwrite32(i32* nocapture %0, i32 %1) {
%3 = alloca i32
%4 = tail call i32 @htonl(i32 %1)
store i32 %4, i32* %3
%5 = call i32 @fwrite(i32* %3, i32 4, i32 1, i32* %0)
%6 = icmp ne i32 %5, 1
%7 = sext i1 %6 to i32
ret i32 %7
}
void iapp_new_station(struct iapp_data *iapp, struct sta_info *sta) {}


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

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

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

LLVM IR (-O2):
%struct.iapp_data = type opaque
%struct.sta_info = type opaque
define void @iapp_new_station(%struct.iapp_data* nocapture %0, %struct.sta_info* nocapture %1) {
ret void
}
/* Variables and functions */
double pow(double, double);
double my_gamma(double in_val, int bits, void *p_user) {
  return pow(in_val, .9);
}


x86 assembly (clang, -O0):
<my_gamma>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %edi,-0xc(%rbp)
mov    %rsi,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xecf(%rip),%xmm1
call   1030 <pow@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<my_gamma>:
movsd  0xee8(%rip),%xmm1
jmp    1030 <pow@plt>

LLVM IR (-O0):
define double @my_gamma(double %0, i32 %1, i8* %2) {
%4 = alloca double
%5 = alloca i32
%6 = alloca i8*
store double %0, double* %4
store i32 %1, i32* %5
store i8* %2, i8** %6
%7 = load double, double* %4
%8 = call double @pow(double %7, double 9.000000e-01)
ret double %8
}

LLVM IR (-O2):
define double @my_gamma(double %0, i32 %1, i8* nocapture readnone %2) {
%4 = tail call double @pow(double %0, double 9.000000e-01)
ret double %4
}
/* Variables and functions */
int pop();
int /*<<< orphan*/ push(int);
void subtract() {
  int b = pop();
  int a = pop();
  push(a - b);
}


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

x86 assembly (clang, -O2):
<subtract>:
push   %rbx
xor    %eax,%eax
call   1030 <pop@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1030 <pop@plt>
sub    %ebx,%eax
mov    %eax,%edi
pop    %rbx
jmp    1040 <push@plt>

LLVM IR (-O0):
define void @subtract() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 (...) @pop()
store i32 %3, i32* %1
%4 = call i32 (...) @pop()
store i32 %4, i32* %2
%5 = load i32, i32* %2
%6 = load i32, i32* %1
%7 = sub nsw i32 %5, %6
%8 = call i32 @push(i32 %7)
ret void
}

LLVM IR (-O2):
define void @subtract() {
%1 = tail call i32 (...) @pop()
%2 = tail call i32 (...) @pop()
%3 = sub nsw i32 %2, %1
%4 = tail call i32 @push(i32 %3)
ret void
}
/* Variables and functions */
double EvalAngDist_alpha0_0plus_0plus_12049_L0(double);
double funcAngDist_alpha0_0plus_0plus_12049_L0(double *x, double *par) {
  double result;
  result = par[0] * EvalAngDist_alpha0_0plus_0plus_12049_L0(x[0]);
  return result;
}


x86 assembly (clang, -O0):
<funcAngDist_alpha0_0plus_0plus_12049_L0>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
call   1030 <EvalAngDist_alpha0_0plus_0plus_12049_L0@plt>
movaps %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<funcAngDist_alpha0_0plus_0plus_12049_L0>:
push   %rax
movsd  (%rsi),%xmm0
movsd  %xmm0,(%rsp)
movsd  (%rdi),%xmm0
call   1030 <EvalAngDist_alpha0_0plus_0plus_12049_L0@plt>
mulsd  (%rsp),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @funcAngDist_alpha0_0plus_0plus_12049_L0(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
%5 = alloca double
store double* %0, double** %3
store double* %1, double** %4
%6 = load double*, double** %4
%7 = getelementptr inbounds double, double* %6, i64 0
%8 = load double, double* %7
%9 = load double*, double** %3
%10 = getelementptr inbounds double, double* %9, i64 0
%11 = load double, double* %10
%12 = call double @EvalAngDist_alpha0_0plus_0plus_12049_L0(double %11)
%13 = fmul double %8, %12
store double %13, double* %5
%14 = load double, double* %5
ret double %14
}

LLVM IR (-O2):
define double @funcAngDist_alpha0_0plus_0plus_12049_L0(double* nocapture %0, double* nocapture %1) {
%3 = load double, double* %1
%4 = load double, double* %0
%5 = tail call double @EvalAngDist_alpha0_0plus_0plus_12049_L0(double %4)
%6 = fmul double %3, %5
ret double %6
}
/* Type definitions */
struct colprintTable {
  int dummy;
};

/* Variables and functions */
struct colprintTable *colprintTableNew(char *, char *, char *,
                                       int /*<<< orphan*/ *);
extern struct colprintTable *paramColprintTableNew(void) {
  return colprintTableNew("L:LANGUAGE", "L:NAME", "L:DESCRIPTION", NULL);
}


x86 assembly (clang, -O0):
<paramColprintTableNew>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xee9(%rip),%rsi
lea    0xee9(%rip),%rdx
xor    %eax,%eax
mov    %eax,%ecx
call   1030 <colprintTableNew@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<paramColprintTableNew>:
lea    0xee9(%rip),%rdi
lea    0xeed(%rip),%rsi
lea    0xeed(%rip),%rdx
xor    %ecx,%ecx
jmp    1030 <colprintTableNew@plt>

LLVM IR (-O0):
%struct.colprintTable = type { i32 }
@.str = [11 x i8] c"L:LANGUAGE\00"
@.str.1 = [7 x i8] c"L:NAME\00"
@.str.2 = [14 x i8] c"L:DESCRIPTION\00"
define %struct.colprintTable* @paramColprintTableNew() {
%1 = call %struct.colprintTable* @colprintTableNew(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32* null)
ret %struct.colprintTable* %1
}

LLVM IR (-O2):
%struct.colprintTable = type { i32 }
@.str = [11 x i8] c"L:LANGUAGE\00"
@.str.1 = [7 x i8] c"L:NAME\00"
@.str.2 = [14 x i8] c"L:DESCRIPTION\00"
define %struct.colprintTable* @paramColprintTableNew() {
%1 = tail call %struct.colprintTable* @colprintTableNew(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32* null)
ret %struct.colprintTable* %1
}
void msm_serial_debug_init(unsigned int base, int irq,
                           struct device *clk_device, int signal_irq,
                           int wakeup_irq) {}


x86 assembly (clang, -O0):
<msm_serial_debug_init>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
pop    %rbp
ret

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

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

LLVM IR (-O2):
%struct.device = type opaque
define void @msm_serial_debug_init(i32 %0, i32 %1, %struct.device* nocapture %2, i32 %3, i32 %4) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isprint(int);
void t_isprint_0xd2() {
  Assert_real((isprint(210) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isprint.c",
              1055, ("isprint should be 0 for 0xd2"));
}


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

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

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

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isprint.c\00"
@.str.1 = [29 x i8] c"isprint should be 0 for 0xd2\00"
define void @t_isprint_0xd2() {
%1 = tail call i64 @isprint(i32 210)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 1055, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
scalar_t__ malloc(int);
int /*<<< orphan*/ snprintf(char *, int, char *, char *);
int strlen(char *);
char *usage(char *argv0) {
  int size = (strlen(argv0) + strlen("Usage:  <string file>") + 2);
  char *usage = (char *)malloc(size);
  snprintf(usage, size, "Usage: %s <string file>", argv0);
  return usage;
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x1c(%rbp)
lea    0xeb1(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x1c(%rbp),%eax
add    %ecx,%eax
add    $0x2,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1050 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x8(%rbp),%rcx
lea    0xe97(%rip),%rdx
call   1040 <snprintf@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r15
call   1030 <strlen@plt>
mov    %eax,%r14d
lea    0xeb7(%rip),%rdi
call   1030 <strlen@plt>
lea    (%r14,%rax,1),%ebp
add    $0x2,%ebp
mov    %ebp,%edi
call   1050 <malloc@plt>
mov    %rax,%rbx
lea    0xeb0(%rip),%rdx
mov    %rax,%rdi
mov    %ebp,%esi
mov    %r15,%rcx
call   1040 <snprintf@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [22 x i8] c"Usage: <string file>\00"
@.str.1 = [24 x i8] c"Usage: %s <string file>\00"
define i8* @usage(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i8*
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = call i32 @strlen(i8* %5)
%7 = call i32 @strlen(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%8 = add nsw i32 %6, %7
%9 = add nsw i32 %8, 2
store i32 %9, i32* %3
%10 = load i32, i32* %3
%11 = call i64 @malloc(i32 %10)
%12 = inttoptr i64 %11 to i8*
store i8* %12, i8** %4
%13 = load i8*, i8** %4
%14 = load i32, i32* %3
%15 = load i8*, i8** %2
%16 = call i32 @snprintf(i8* %13, i32 %14, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* %15)
%17 = load i8*, i8** %4
ret i8* %17
}

LLVM IR (-O2):
@.str = [22 x i8] c"Usage: <string file>\00"
@.str.1 = [24 x i8] c"Usage: %s <string file>\00"
define i8* @usage(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = tail call i32 @strlen(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%4 = add i32 %2, 2
%5 = add i32 %4, %3
%6 = tail call i64 @malloc(i32 %5)
%7 = inttoptr i64 %6 to i8*
%8 = tail call i32 @snprintf(i8* %7, i32 %5, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* %0)
ret i8* %7
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
void EPIConfigSDRAMSet(uint32_t ui32Base, uint32_t ui32Config,
                       uint32_t ui32Refresh) {
  ;
  ;
  ui32Config &= ~0x07FF0000;
  ui32Config |= ui32Refresh << 16;
  (*((volatile unsigned long *)(ui32Base + 0x00000010))) = ui32Config;
}


x86 assembly (clang, -O0):
<EPIConfigSDRAMSet>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x8(%rbp),%eax
and    $0xf800ffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
shl    $0x10,%eax
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
movslq -0x8(%rbp),%rcx
mov    -0x4(%rbp),%eax
add    $0x10,%eax
cltq
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<EPIConfigSDRAMSet>:
and    $0xf800ffff,%esi
shl    $0x10,%edx
or     %esi,%edx
movslq %edx,%rax
movslq %edi,%rcx
mov    %rax,0x10(%rcx)
ret

LLVM IR (-O0):
define void @EPIConfigSDRAMSet(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* %5
%8 = and i32 %7, -134152193
store i32 %8, i32* %5
%9 = load i32, i32* %6
%10 = shl i32 %9, 16
%11 = load i32, i32* %5
%12 = or i32 %11, %10
store i32 %12, i32* %5
%13 = load i32, i32* %5
%14 = sext i32 %13 to i64
%15 = load i32, i32* %4
%16 = add nsw i32 %15, 16
%17 = sext i32 %16 to i64
%18 = inttoptr i64 %17 to i64*
store volatile i64 %14, i64* %18
ret void
}

LLVM IR (-O2):
define void @EPIConfigSDRAMSet(i32 %0, i32 %1, i32 %2) {
%4 = and i32 %1, -134152193
%5 = shl i32 %2, 16
%6 = or i32 %5, %4
%7 = sext i32 %6 to i64
%8 = add nsw i32 %0, 16
%9 = sext i32 %8 to i64
%10 = inttoptr i64 %9 to i64*
store volatile i64 %7, i64* %10
ret void
}
/* Variables and functions */
int /*<<< orphan*/ abort();
void *acc_create(unsigned char *, int /*<<< orphan*/);
int /*<<< orphan*/ acc_delete(unsigned char *, int const);
int /*<<< orphan*/ free(unsigned char *);
scalar_t__ malloc(int const);
int main(int argc, char **argv) {
  const int N = 256;
  unsigned char *h;
  void *d;
  h = (unsigned char *)malloc(N);
  d = acc_create(h, 0);
  if (!d)
    abort();
  acc_delete(h, N);
  free(h);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x100,-0x14(%rbp)
mov    $0x100,%edi
call   1060 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
xor    %esi,%esi
call   1050 <acc_create@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    119c <main+0x4c>
mov    $0x0,%al
call   1040 <abort@plt>
mov    -0x20(%rbp),%rdi
mov    $0x100,%esi
call   1070 <acc_delete@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x100,%edi
call   1060 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
xor    %esi,%esi
call   1050 <acc_create@plt>
test   %rax,%rax
je     1186 <main+0x36>
mov    %rbx,%rdi
mov    $0x100,%esi
call   1070 <acc_delete@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
pop    %rbx
ret
xor    %eax,%eax
call   1040 <abort@plt>

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 256, i32* %6
%9 = call i64 @malloc(i32 256)
%10 = inttoptr i64 %9 to i8*
store i8* %10, i8** %7
%11 = load i8*, i8** %7
%12 = call i8* @acc_create(i8* %11, i32 0)
store i8* %12, i8** %8
%13 = load i8*, i8** %8
%14 = icmp ne i8* %13, null
br i1 %14, label %17, label %15
15: ; preds = %2
%16 = call i32 (...) @abort()
unreachable
17: ; preds = %2
%18 = load i8*, i8** %7
%19 = call i32 @acc_delete(i8* %18, i32 256)
%20 = load i8*, i8** %7
%21 = call i32 @free(i8* %20)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i64 @malloc(i32 256)
%4 = inttoptr i64 %3 to i8*
%5 = tail call i8* @acc_create(i8* %4, i32 0)
%6 = icmp eq i8* %5, null
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 (...) @abort()
unreachable
9: ; preds = %2
%10 = tail call i32 @acc_delete(i8* %4, i32 256)
%11 = tail call i32 @free(i8* %4)
ret i32 0
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
typedef int /*<<< orphan*/ __uid_t;
struct TYPE_2__ {
  char *pw_dir;
};

/* Variables and functions */
TYPE_1__ *getpwuid(int /*<<< orphan*/);
char *get_pw_dir(__uid_t uid) { return getpwuid(uid)->pw_dir; }


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

x86 assembly (clang, -O2):
<get_pw_dir>:
push   %rax
call   1030 <getpwuid@plt>
mov    (%rax),%rax
pop    %rcx
ret

LLVM IR (-O0):
%struct.TYPE_2__ = type { i8* }
define i8* @get_pw_dir(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call %struct.TYPE_2__* @getpwuid(i32 %3)
%5 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %4, i32 0, i32 0
%6 = load i8*, i8** %5
ret i8* %6
}

LLVM IR (-O2):
%struct.TYPE_2__ = type { i8* }
define i8* @get_pw_dir(i32 %0) {
%2 = tail call %struct.TYPE_2__* @getpwuid(i32 %0)
%3 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %2, i64 0, i32 0
%4 = load i8*, i8** %3
ret i8* %4
}
void LZRFillBuffer(unsigned int *test_mask, unsigned int *mask,
                   unsigned int *buffer, unsigned char **next_in) {
  if (*test_mask <= 0x00FFFFFFu) {
    (*buffer) = ((*buffer) << 8) + *(*next_in)++;
    *mask = *test_mask << 8;
  }
}


x86 assembly (clang, -O0):
<LZRFillBuffer>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rax
cmpl   $0xffffff,(%rax)
ja     1158 <LZRFillBuffer+0x58>
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
shl    $0x8,%ecx
mov    -0x20(%rbp),%rdx
mov    (%rdx),%rax
mov    %rax,%rsi
add    $0x1,%rsi
mov    %rsi,(%rdx)
movzbl (%rax),%eax
add    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
shl    $0x8,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<LZRFillBuffer>:
cmpl   $0xffffff,(%rdi)
ja     1129 <LZRFillBuffer+0x29>
mov    (%rdx),%r9d
shl    $0x8,%r9d
mov    (%rcx),%r8
lea    0x1(%r8),%rax
mov    %rax,(%rcx)
movzbl (%r8),%eax
or     %r9d,%eax
mov    %eax,(%rdx)
mov    (%rdi),%eax
shl    $0x8,%eax
mov    %eax,(%rsi)
ret

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

LLVM IR (-O2):
define void @LZRFillBuffer(i32* nocapture %0, i32* nocapture writeonly %1, i32* nocapture %2, i8** nocapture %3) {
%5 = load i32, i32* %0
%6 = icmp ult i32 %5, 16777216
br i1 %6, label %7, label %17
7: ; preds = %4
%8 = load i32, i32* %2
%9 = shl i32 %8, 8
%10 = load i8*, i8** %3
%11 = getelementptr inbounds i8, i8* %10, i64 1
store i8* %11, i8** %3
%12 = load i8, i8* %10
%13 = zext i8 %12 to i32
%14 = or i32 %9, %13
store i32 %14, i32* %2
%15 = load i32, i32* %0
%16 = shl i32 %15, 8
store i32 %16, i32* %1
br label %17
17: ; preds = %7, %4
ret void
}
int __attribute__((no)) loop_next(int *p_table, char *p_table_head) {
  static loop_next = 0;
  if (loop_next == 1)
    return 1;
  loop_next = 1;
  return 0;
}


x86 assembly (clang, -O0):
<loop_next>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
cmpl   $0x1,0x2f11(%rip)
jne    1125 <loop_next+0x25>
movl   $0x1,-0x4(%rbp)
jmp    1136 <loop_next+0x36>
movl   $0x1,0x2ef5(%rip)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<loop_next>:
mov    $0x1,%eax
cmpb   $0x0,0x2f18(%rip)
jne    1117 <loop_next+0x17>
movb   $0x1,0x2f0f(%rip)
xor    %eax,%eax
ret

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

LLVM IR (-O2):
@loop_next.loop_next = internal unnamed_addr global i1 false
define i32 @loop_next(i32* nocapture readnone %0, i8* nocapture readnone %1) {
%3 = load i1, i1* @loop_next.loop_next
br i1 %3, label %5, label %4
4: ; preds = %2
store i1 true, i1* @loop_next.loop_next
br label %5
5: ; preds = %2, %4
%6 = phi i32 [ 0, %4 ], [ 1, %2 ]
ret i32 %6
}
_Bool Bool_copy(_Bool *b) { return *b; }


x86 assembly (clang, -O0):
<Bool_copy>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<Bool_copy>:
mov    (%rdi),%al
ret

LLVM IR (-O0):
define zeroext i1 @Bool_copy(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8, i8* %3
%5 = trunc i8 %4 to i1
ret i1 %5
}

LLVM IR (-O2):
define zeroext i1 @Bool_copy(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp ne i8 %2, 0
ret i1 %3
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int runCmd(char const **);
int doCapStart(FILE *file, int argc, char **argv) {
  const char *args[] = {"/etc/init.d/bitmeter", "start", 0};
  return runCmd(args);
}


x86 assembly (clang, -O0):
<doCapStart>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    0x2cd6(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0x2cd3(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0x2cd0(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    -0x30(%rbp),%rdi
call   1030 <runCmd@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<doCapStart>:
sub    $0x18,%rsp
mov    0x2cf5(%rip),%rax
mov    %rax,0x10(%rsp)
movaps 0x2cd9(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rdi
call   1030 <runCmd@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [21 x i8] c"/etc/init.d/bitmeter\00"
@.str.1 = [6 x i8] c"start\00"
@__const.doCapStart.args = [3 x i8*] [i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i32 0, i32 0), i8* null]
define i32 @doCapStart(i32* %0, i32 %1, i8** %2) {
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i8**
%7 = alloca [3 x i8*]
store i32* %0, i32** %4
store i32 %1, i32* %5
store i8** %2, i8*** %6
%8 = bitcast [3 x i8*]* %7 to i8*
%9 = getelementptr inbounds [3 x i8*], [3 x i8*]* %7, i64 0, i64 0
%10 = call i32 @runCmd(i8** %9)
ret i32 %10
}

LLVM IR (-O2):
@.str = [21 x i8] c"/etc/init.d/bitmeter\00"
@.str.1 = [6 x i8] c"start\00"
@__const.doCapStart.args = [3 x i8*] [i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i32 0, i32 0), i8* null]
define i32 @doCapStart(i32* nocapture readnone %0, i32 %1, i8** nocapture readnone %2) {
%4 = alloca [3 x i8*]
%5 = bitcast [3 x i8*]* %4 to i8*
%6 = getelementptr inbounds [3 x i8*], [3 x i8*]* %4, i64 0, i64 0
%7 = call i32 @runCmd(i8** %6)
ret i32 %7
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
_Bool isEmpty(int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *);
void testIsEmpty() {
  FILE *file;
  _Bool result = isEmpty(file);
  if (1) {
    printf("%%TEST_FAILED%% time=0 testname=testIsEmpty (Test_gestionfichier) "
           "message=error message sample\n");
  }
}


x86 assembly (clang, -O0):
<testIsEmpty>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    -0x8(%rbp),%rdi
call   1040 <isEmpty@plt>
and    $0x1,%al
mov    %al,-0x9(%rbp)
lea    0xec3(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<testIsEmpty>:
push   %rax
call   1040 <isEmpty@plt>
lea    0xed3(%rip),%rdi
pop    %rax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [96 x i8] c"%%TEST_FAILED%% time=0 testname=testIsEmpty (Test_gestionfichier) message=error message sample\0A\00"
define void @testIsEmpty() {
%1 = alloca i32*
%2 = alloca i8
%3 = load i32*, i32** %1
%4 = call zeroext i1 @isEmpty(i32* %3)
%5 = zext i1 %4 to i8
store i8 %5, i8* %2
%6 = call i32 @printf(i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [96 x i8] c"%%TEST_FAILED%% time=0 testname=testIsEmpty (Test_gestionfichier) message=error message sample\0A\00"
define void @testIsEmpty() {
%1 = tail call zeroext i1 @isEmpty(i32* undef)
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([96 x i8], [96 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int strlen(const char *s) {
  register int l = 0;
  while (*(s++))
    l++;
  return l;
}


x86 assembly (clang, -O0):
<strlen>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
cmpb   $0x0,(%rax)
je     1135 <strlen+0x35>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <strlen+0xf>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strlen>:
cmpb   $0x0,(%rdi)
je     111c <strlen+0x1c>
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
cmpb   $0x0,0x1(%rdi,%rax,1)
lea    0x1(%rax),%rax
jne    1110 <strlen+0x10>
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @strlen(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %11, label %4
4: ; preds = %1, %4
%5 = phi i32 [ %8, %4 ], [ 0, %1 ]
%6 = phi i8* [ %7, %4 ], [ %0, %1 ]
%7 = getelementptr inbounds i8, i8* %6, i64 1
%8 = add nuw nsw i32 %5, 1
%9 = load i8, i8* %7
%10 = icmp eq i8 %9, 0
br i1 %10, label %11, label %4
11: ; preds = %4, %1
%12 = phi i32 [ 0, %1 ], [ %8, %4 ]
ret i32 %12
}
/* Type definitions */
typedef int /*<<< orphan*/ ssize_t;

/* Variables and functions */
int /*<<< orphan*/ parse_string(char const *, char const **);
ssize_t parse_bqstring(const char *buffer,
                       __attribute__((unused)) const char **error) {
  if (*buffer != '`')
    return 0;
  return parse_string(buffer, error);
}


x86 assembly (clang, -O0):
<parse_bqstring>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x60,%eax
je     113c <parse_bqstring+0x2c>
movl   $0x0,-0x4(%rbp)
jmp    114c <parse_bqstring+0x3c>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <parse_string@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_bqstring>:
cmpb   $0x60,(%rdi)
jne    111a <parse_bqstring+0xa>
jmp    1030 <parse_string@plt>
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @parse_bqstring(i8* %0, i8** %1) {
%3 = load i8, i8* %0
%4 = icmp eq i8 %3, 96
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @parse_string(i8* %0, i8** %1)
br label %7
7: ; preds = %2, %5
%8 = phi i32 [ %6, %5 ], [ 0, %2 ]
ret i32 %8
}
/* Type definitions */
struct intmap_map {
  int dummy;
};
typedef int /*<<< orphan*/ int32_t;

/* Variables and functions */
int /*<<< orphan*/ intmap_getOrDefault(struct intmap_map *, int /*<<< orphan*/,
                                       int /*<<< orphan*/);
int32_t intmap_get(struct intmap_map *map, int32_t key) {
  return intmap_getOrDefault(map, key, 0);
}


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

x86 assembly (clang, -O2):
<intmap_get>:
xor    %edx,%edx
jmp    1030 <intmap_getOrDefault@plt>

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

LLVM IR (-O2):
%struct.intmap_map = type { i32 }
define i32 @intmap_get(%struct.intmap_map* %0, i32 %1) {
%3 = tail call i32 @intmap_getOrDefault(%struct.intmap_map* %0, i32 %1, i32 0)
ret i32 %3
}
/* Variables and functions */
double log1p(double);
double c_log1p(double arg0) { return log1p(arg0); }


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

x86 assembly (clang, -O2):
<c_log1p>:
jmp    1030 <log1p@plt>

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

LLVM IR (-O2):
define double @c_log1p(double %0) {
%2 = tail call double @log1p(double %0)
ret double %2
}
/* Type definitions */
struct cli_val_ieee754 {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct cli_val_ieee754 *);
void cli_val_ieee754_destroy(struct cli_val_ieee754 *v) { free(v); }


x86 assembly (clang, -O0):
<cli_val_ieee754_destroy>:
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):
<cli_val_ieee754_destroy>:
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.cli_val_ieee754 = type { i32 }
define void @cli_val_ieee754_destroy(%struct.cli_val_ieee754* %0) {
%2 = alloca %struct.cli_val_ieee754*
store %struct.cli_val_ieee754* %0, %struct.cli_val_ieee754** %2
%3 = load %struct.cli_val_ieee754*, %struct.cli_val_ieee754** %2
%4 = call i32 @free(%struct.cli_val_ieee754* %3)
ret void
}

LLVM IR (-O2):
%struct.cli_val_ieee754 = type { i32 }
define void @cli_val_ieee754_destroy(%struct.cli_val_ieee754* nocapture %0) {
%2 = tail call i32 @free(%struct.cli_val_ieee754* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ DeinitFields();
void SwitchFrom_Z8(void) { DeinitFields(); }


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

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

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

LLVM IR (-O2):
define void @SwitchFrom_Z8() {
%1 = tail call i32 (...) @DeinitFields()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ __isoc99_scanf();
int add1();
int /*<<< orphan*/ printf(char *, int);
int main(int argc, char *argv[], char *envp[]) {
  int o0;
  __isoc99_scanf();
  o0 = add1();
  printf("Sum = %ld\n", o0);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    $0x0,%al
call   1050 <__isoc99_scanf@plt>
mov    $0x0,%al
call   1040 <add1@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%esi
lea    0xe9b(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1050 <__isoc99_scanf@plt>
xor    %eax,%eax
call   1040 <add1@plt>
lea    0xeba(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [11 x i8] c"Sum = %ld\0A\00"
define i32 @main(i32 %0, i8** %1, i8** %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i8**
%8 = alloca i32
store i32 0, i32* %4
store i32 %0, i32* %5
store i8** %1, i8*** %6
store i8** %2, i8*** %7
%9 = call i32 (...) @__isoc99_scanf()
%10 = call i32 (...) @add1()
store i32 %10, i32* %8
%11 = load i32, i32* %8
%12 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %11)
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"Sum = %ld\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1, i8** nocapture readnone %2) {
%4 = tail call i32 (...) @__isoc99_scanf()
%5 = tail call i32 (...) @add1()
%6 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %5)
ret i32 0
}
/* Type definitions */
struct Server {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ StartAuth(struct Server *, int, char **);
void c_doauth(struct Server *sptr, int ac, char **av) {
  StartAuth(sptr, ac, av);
}


x86 assembly (clang, -O0):
<c_doauth>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rdx
call   1030 <StartAuth@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<c_doauth>:
jmp    1030 <StartAuth@plt>

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

LLVM IR (-O2):
%struct.Server = type { i32 }
define void @c_doauth(%struct.Server* %0, i32 %1, i8** %2) {
%4 = tail call i32 @StartAuth(%struct.Server* %0, i32 %1, i8** %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ glutPostRedisplay();
void Idle(void) { glutPostRedisplay(); }


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

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

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

LLVM IR (-O2):
define void @Idle() {
%1 = tail call i32 (...) @glutPostRedisplay()
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ __m64;

/* Variables and functions */
int /*<<< orphan*/ _mm_packs_pu16(int /*<<< orphan*/, int /*<<< orphan*/);
__m64 test77(__m64 a, __m64 b) { return _mm_packs_pu16(a, b); }


x86 assembly (clang, -O0):
<test77>:
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_packs_pu16@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test77>:
jmp    1030 <_mm_packs_pu16@plt>

LLVM IR (-O0):
define i32 @test77(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_packs_pu16(i32 %5, i32 %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @test77(i32 %0, i32 %1) {
%3 = tail call i32 @_mm_packs_pu16(i32 %0, i32 %1)
ret i32 %3
}