xunge/DecIR huggingface dataset:
/* Variables and functions */
scalar_t__ hpet_init();
int /*<<< orphan*/ test1();
int main() {
  if (hpet_init()) {
    return 1;
  }
  test1();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <hpet_init@plt>
cmp    $0x0,%rax
je     114c <main+0x2c>
movl   $0x1,-0x4(%rbp)
jmp    115a <main+0x3a>
mov    $0x0,%al
call   1030 <test1@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <hpet_init@plt>
mov    %rax,%rcx
mov    $0x1,%eax
test   %rcx,%rcx
je     1137 <main+0x17>
pop    %rcx
ret
xor    %eax,%eax
call   1030 <test1@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i64 (...) @hpet_init()
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %5
4: ; preds = %0
store i32 1, i32* %1
br label %7
5: ; preds = %0
%6 = call i32 (...) @test1()
store i32 0, i32* %1
br label %7
7: ; preds = %5, %4
%8 = load i32, i32* %1
ret i32 %8
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i64 (...) @hpet_init()
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 (...) @test1()
br label %5
5: ; preds = %0, %3
%6 = phi i32 [ 0, %3 ], [ 1, %0 ]
ret i32 %6
}
void foo_1_1_1_2_2_2_1_2_2() {}


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

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

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

LLVM IR (-O2):
define void @foo_1_1_1_2_2_2_1_2_2() {
ret void
}
/* Variables and functions */
int fib_it(int);
int fib_rec(int);
int /*<<< orphan*/ printf(char *, int);
int main() {
  printf("%d\n", fib_it(40));
  printf("%d\n", fib_rec(40));
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x28,%edi
call   1040 <fib_it@plt>
lea    0xebe(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x28,%edi
call   1050 <fib_rec@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @fib_it(i32 40)
%3 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = call i32 @fib_rec(i32 40)
%5 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %4)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = tail call i32 @fib_it(i32 40)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = tail call i32 @fib_rec(i32 40)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %3)
ret i32 0
}
void setToOne(char *current, char ind) { (*current) |= (128 >> ind); }


x86 assembly (clang, -O0):
<setToOne>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
movsbl -0x9(%rbp),%ecx
mov    $0x80,%edx
sar    %cl,%edx
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
or     %edx,%ecx
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<setToOne>:
mov    %esi,%ecx
mov    $0x80,%eax
shr    %cl,%eax
or     %al,(%rdi)
ret

LLVM IR (-O0):
define void @setToOne(i8* %0, i8 signext %1) {
%3 = alloca i8*
%4 = alloca i8
store i8* %0, i8** %3
store i8 %1, i8* %4
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
%7 = ashr i32 128, %6
%8 = load i8*, i8** %3
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = or i32 %10, %7
%12 = trunc i32 %11 to i8
store i8 %12, i8* %8
ret void
}

LLVM IR (-O2):
define void @setToOne(i8* nocapture %0, i8 signext %1) {
%3 = zext i8 %1 to i32
%4 = lshr i32 128, %3
%5 = load i8, i8* %0
%6 = trunc i32 %4 to i8
%7 = or i8 %5, %6
store i8 %7, i8* %0
ret void
}
/* Variables and functions */
double pop();
int /*<<< orphan*/ push(double);
double dupe_top(void) {
  double temp = pop();
  push(temp);
  push(temp);
}


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

x86 assembly (clang, -O2):
<dupe_top>:
push   %rax
xor    %eax,%eax
call   1030 <pop@plt>
movsd  %xmm0,(%rsp)
call   1040 <push@plt>
movsd  (%rsp),%xmm0
pop    %rax
jmp    1040 <push@plt>

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

LLVM IR (-O2):
define double @dupe_top() {
%1 = tail call double (...) @pop()
%2 = tail call i32 @push(double %1)
%3 = tail call i32 @push(double %1)
ret double undef
}
/* Variables and functions */
int eterm_bootstrap(int, char **);
int main(int argc, char *argv[]) { return (eterm_bootstrap(argc, argv)); }


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

x86 assembly (clang, -O2):
<main>:
jmp    1030 <eterm_bootstrap@plt>

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 @eterm_bootstrap(i32 %0, i8** %1)
ret i32 %3
}
/* Variables and functions */
int SIGPIPE;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ logdebug(char *, int);
int /*<<< orphan*/ omlc_close();
void termination_handler(int signum) {
  if (signum != SIGPIPE) {
    logdebug("Closing OML (%d)\n", signum);
    omlc_close();
    exit(-1 * signum);
  }
}


x86 assembly (clang, -O0):
<termination_handler>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    0x2e9b(%rip),%rcx
cmp    (%rcx),%eax
je     116f <termination_handler+0x3f>
mov    -0x4(%rbp),%esi
lea    0xea9(%rip),%rdi
call   1030 <logdebug@plt>
mov    $0x0,%al
call   1050 <omlc_close@plt>
imul   $0xffffffff,-0x4(%rbp),%edi
call   1040 <exit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<termination_handler>:
push   %rbx
mov    0x2ea8(%rip),%rax
cmp    %edi,(%rax)
jne    113e <termination_handler+0xe>
pop    %rbx
ret
mov    %edi,%ebx
lea    0xeb9(%rip),%rdi
mov    %ebx,%esi
call   1030 <logdebug@plt>
xor    %eax,%eax
call   1050 <omlc_close@plt>
neg    %ebx
mov    %ebx,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@SIGPIPE = global i32 0
@.str = [18 x i8] c"Closing OML (%d)\0A\00"
define void @termination_handler(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* @SIGPIPE
%5 = icmp ne i32 %3, %4
br i1 %5, label %6, label %13
6: ; preds = %1
%7 = load i32, i32* %2
%8 = call i32 @logdebug(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %7)
%9 = call i32 (...) @omlc_close()
%10 = load i32, i32* %2
%11 = mul nsw i32 -1, %10
%12 = call i32 @exit(i32 %11)
unreachable
13: ; preds = %1
ret void
}

LLVM IR (-O2):
@SIGPIPE = global i32 0
@.str = [18 x i8] c"Closing OML (%d)\0A\00"
define void @termination_handler(i32 %0) {
%2 = load i32, i32* @SIGPIPE
%3 = icmp eq i32 %2, %0
br i1 %3, label %9, label %4
4: ; preds = %1
%5 = tail call i32 @logdebug(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %0)
%6 = tail call i32 (...) @omlc_close()
%7 = sub nsw i32 0, %0
%8 = tail call i32 @exit(i32 %7)
unreachable
9: ; preds = %1
ret void
}
void strand80(char *t) {
  while (*t) {
    if ((*t & 0x7f) >= 0x20) {
      *t &= ~0x80;
    }
    t++;
  }
}


x86 assembly (clang, -O0):
<strand80>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     1148 <strand80+0x48>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
and    $0x7f,%eax
cmp    $0x20,%eax
jl     1137 <strand80+0x37>
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
and    $0xffffff7f,%ecx
mov    %cl,(%rax)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1108 <strand80+0x8>
pop    %rbp
ret

x86 assembly (clang, -O2):
<strand80>:
mov    (%rdi),%al
test   %al,%al
je     1126 <strand80+0x26>
add    $0x1,%rdi
jmp    111b <strand80+0x1b>
nopl   0x0(%rax)
movzbl (%rdi),%eax
add    $0x1,%rdi
test   %al,%al
je     1126 <strand80+0x26>
test   $0x60,%al
je     1110 <strand80+0x10>
and    $0x7f,%al
mov    %al,-0x1(%rdi)
jmp    1110 <strand80+0x10>
ret

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

LLVM IR (-O2):
define void @strand80(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %15, label %4
4: ; preds = %1, %11
%5 = phi i8 [ %13, %11 ], [ %2, %1 ]
%6 = phi i8* [ %12, %11 ], [ %0, %1 ]
%7 = and i8 %5, 96
%8 = icmp eq i8 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %4
%10 = and i8 %5, 127
store i8 %10, i8* %6
br label %11
11: ; preds = %9, %4
%12 = getelementptr inbounds i8, i8* %6, i64 1
%13 = load i8, i8* %12
%14 = icmp eq i8 %13, 0
br i1 %14, label %15, label %4
15: ; preds = %11, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main(void) {
  int i = 0;
  int j = 1;
  for (i = 0; i < j; i++)
    printf("Hello !\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    115a <main+0x4a>
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1134 <main+0x24>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
@str = [8 x i8] c"Hello !\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
ret i32 0
}
double filter(double t) {
  if (t < 0.0)
    t = -t;
  if (t < 1.0)
    return ((2.0 * t - 3.0) * t * t + 1.0);
  return 0.0;
}


x86 assembly (clang, -O0):
<filter>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    1138 <filter+0x38>
movsd  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xec0(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    1184 <filter+0x84>
movsd  -0x10(%rbp),%xmm0
addsd  %xmm0,%xmm0
movsd  0xeac(%rip),%xmm1
addsd  %xmm1,%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe8a(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    118c <filter+0x8c>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<filter>:
movapd 0xef8(%rip),%xmm2
xorpd  %xmm0,%xmm2
xorpd  %xmm3,%xmm3
movapd %xmm0,%xmm1
cmpltsd %xmm3,%xmm1
andpd  %xmm1,%xmm2
andnpd %xmm0,%xmm1
orpd   %xmm2,%xmm1
movsd  0xee3(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    1154 <filter+0x54>
movapd %xmm1,%xmm0
addsd  %xmm1,%xmm0
addsd  0xed5(%rip),%xmm0
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
addsd  0xebd(%rip),%xmm0
ret
xorpd  %xmm0,%xmm0
ret

LLVM IR (-O0):
define double @filter(double %0) {
%2 = alloca double
%3 = alloca double
store double %0, double* %3
%4 = load double, double* %3
%5 = fcmp olt double %4, 0.000000e+00
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load double, double* %3
%8 = fneg double %7
store double %8, double* %3
br label %9
9: ; preds = %6, %1
%10 = load double, double* %3
%11 = fcmp olt double %10, 1.000000e+00
br i1 %11, label %12, label %19
12: ; preds = %9
%13 = load double, double* %3
%14 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %13, double -3.000000e+00)
%15 = load double, double* %3
%16 = fmul double %14, %15
%17 = load double, double* %3
%18 = call double @llvm.fmuladd.f64(double %16, double %17, double 1.000000e+00)
store double %18, double* %2
br label %20
19: ; preds = %9
store double 0.000000e+00, double* %2
br label %20
20: ; preds = %19, %12
%21 = load double, double* %2
ret double %21
}

LLVM IR (-O2):
define double @filter(double %0) {
%2 = fcmp olt double %0, 0.000000e+00
%3 = fneg double %0
%4 = select i1 %2, double %3, double %0
%5 = fcmp olt double %4, 1.000000e+00
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = tail call double @llvm.fmuladd.f64(double %4, double 2.000000e+00, double -3.000000e+00)
%8 = fmul double %4, %7
%9 = tail call double @llvm.fmuladd.f64(double %8, double %4, double 1.000000e+00)
br label %10
10: ; preds = %1, %6
%11 = phi double [ %9, %6 ], [ 0.000000e+00, %1 ]
ret double %11
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ __setCHRBank5High(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ m22_SetChrROMBank5();
void m22_setParamsDXX3(uint16_t addr, uint8_t val) {
  __setCHRBank5High(addr, val);
  m22_SetChrROMBank5();
}


x86 assembly (clang, -O0):
<m22_setParamsDXX3>:
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 <__setCHRBank5High@plt>
mov    $0x0,%al
call   1040 <m22_SetChrROMBank5@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<m22_setParamsDXX3>:
push   %rax
call   1030 <__setCHRBank5High@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <m22_SetChrROMBank5@plt>

LLVM IR (-O0):
define void @m22_setParamsDXX3(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 @__setCHRBank5High(i32 %5, i32 %6)
%8 = call i32 (...) @m22_SetChrROMBank5()
ret void
}

LLVM IR (-O2):
define void @m22_setParamsDXX3(i32 %0, i32 %1) {
%3 = tail call i32 @__setCHRBank5High(i32 %0, i32 %1)
%4 = tail call i32 (...) @m22_SetChrROMBank5()
ret void
}
extern char *initial_available_disk_names_and_sizes() {
  char *desc = "function foreign_disks() { return [];}\nfunction "
               "foreign_disk_interface_names() { return [];}\nfunction "
               "foreign_disk_model_info() { return [];}\nfunction "
               "foreign_disk_total_size() { return [];}\nfunction "
               "foreign_disk_total_mounted_number() { return [];}\n";
  return desc;
}


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

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

LLVM IR (-O0):
@.str = [251 x i8] c"function foreign_disks() { return [];}\0Afunction foreign_disk_interface_names() { return [];}\0Afunction foreign_disk_model_info() { return [];}\0Afunction foreign_disk_total_size() { return [];}\0Afunction foreign_disk_total_mounted_number() { return [];}\0A\00"
define i8* @initial_available_disk_names_and_sizes() {
%1 = alloca i8*
store i8* getelementptr inbounds ([251 x i8], [251 x i8]* @.str, i64 0, i64 0), i8** %1
%2 = load i8*, i8** %1
ret i8* %2
}

LLVM IR (-O2):
@.str = [251 x i8] c"function foreign_disks() { return [];}\0Afunction foreign_disk_interface_names() { return [];}\0Afunction foreign_disk_model_info() { return [];}\0Afunction foreign_disk_total_size() { return [];}\0Afunction foreign_disk_total_mounted_number() { return [];}\0A\00"
define i8* @initial_available_disk_names_and_sizes() {
ret i8* getelementptr inbounds ([251 x i8], [251 x i8]* @.str, i64 0, i64 0)
}
int test_imm_26uint16_mem(unsigned short *val) {
  return ((*val) & (0x26 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_26uint16_mem>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movzwl (%rax),%edx
and    $0x26,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_26uint16_mem>:
testb  $0x26,(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_26uint16_mem(i16* %0) {
%2 = alloca i16*
store i16* %0, i16** %2
%3 = load i16*, i16** %2
%4 = load i16, i16* %3
%5 = zext i16 %4 to i32
%6 = and i32 %5, 38
%7 = icmp ne i32 %6, 0
%8 = zext i1 %7 to i64
%9 = select i1 %7, i32 -20, i32 -40
ret i32 %9
}

LLVM IR (-O2):
define i32 @test_imm_26uint16_mem(i16* nocapture %0) {
%2 = load i16, i16* %0
%3 = and i16 %2, 38
%4 = icmp eq i16 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
int tri_min(int x, int y, int z) {
  if (x < y) {
    return (x < z ? x : z);
  }
  return (y < z ? y : z);
}


x86 assembly (clang, -O0):
<tri_min>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1141 <tri_min+0x41>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1130 <tri_min+0x30>
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
jmp    1136 <tri_min+0x36>
mov    -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1164 <tri_min+0x64>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1158 <tri_min+0x58>
mov    -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
jmp    115e <tri_min+0x5e>
mov    -0x10(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<tri_min>:
mov    %edx,%eax
cmp    %edx,%edi
cmovl  %edi,%eax
cmp    %esi,%eax
cmovge %esi,%eax
ret

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

LLVM IR (-O2):
define i32 @tri_min(i32 %0, i32 %1, i32 %2) {
%4 = icmp slt i32 %0, %2
%5 = select i1 %4, i32 %0, i32 %2
%6 = icmp slt i32 %5, %1
%7 = select i1 %6, i32 %5, i32 %1
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ clang_analyzer_eval(int);
int strlen(char *);
int /*<<< orphan*/ strncat(char *, char *, int);
void strncat_symbolic_dst_length(char *dst) {
  strncat(dst, "1234", 5);
  clang_analyzer_eval(strlen(dst) >= 4);
}


x86 assembly (clang, -O0):
<strncat_symbolic_dst_length>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xeb9(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncat@plt>
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x4,%eax
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <clang_analyzer_eval@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strncat_symbolic_dst_length>:
push   %rbx
mov    %rdi,%rbx
lea    0xec5(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncat@plt>
mov    %rbx,%rdi
call   1030 <strlen@plt>
xor    %edi,%edi
cmp    $0x4,%eax
setge  %dil
pop    %rbx
jmp    1050 <clang_analyzer_eval@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"1234\00"
define void @strncat_symbolic_dst_length(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @strncat(i8* %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 5)
%5 = load i8*, i8** %2
%6 = call i32 @strlen(i8* %5)
%7 = icmp sge i32 %6, 4
%8 = zext i1 %7 to i32
%9 = call i32 @clang_analyzer_eval(i32 %8)
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"1234\00"
define void @strncat_symbolic_dst_length(i8* %0) {
%2 = tail call i32 @strncat(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 5)
%3 = tail call i32 @strlen(i8* %0)
%4 = icmp sgt i32 %3, 3
%5 = zext i1 %4 to i32
%6 = tail call i32 @clang_analyzer_eval(i32 %5)
ret void
}
/* Variables and functions */
int board_flash_erase_datafs();
int flash_erase_datafs() { return board_flash_erase_datafs(); }


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

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

LLVM IR (-O0):
define i32 @flash_erase_datafs() {
%1 = call i32 (...) @board_flash_erase_datafs()
ret i32 %1
}

LLVM IR (-O2):
define i32 @flash_erase_datafs() {
%1 = tail call i32 (...) @board_flash_erase_datafs()
ret i32 %1
}
/* Type definitions */
typedef scalar_t__ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ lha_crc16_buf(scalar_t__ *, int /*<<< orphan*/ *,
                                 int /*<<< orphan*/);
void test_crc16_empty(void) {
  uint16_t crc;
  crc = 0;
  lha_crc16_buf(&crc, NULL, 0);
  assert(crc == 0);
}


x86 assembly (clang, -O0):
<test_crc16_empty>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movq   $0x0,-0x8(%rbp)
lea    -0x8(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   1040 <lha_crc16_buf@plt>
cmpq   $0x0,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_crc16_empty>:
push   %rax
movq   $0x0,(%rsp)
mov    %rsp,%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1040 <lha_crc16_buf@plt>
xor    %edi,%edi
cmpq   $0x0,(%rsp)
sete   %dil
call   1030 <assert@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @test_crc16_empty() {
%1 = alloca i64
store i64 0, i64* %1
%2 = call i32 @lha_crc16_buf(i64* %1, i32* null, i32 0)
%3 = load i64, i64* %1
%4 = icmp eq i64 %3, 0
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 %5)
ret void
}

LLVM IR (-O2):
define void @test_crc16_empty() {
%1 = alloca i64
%2 = bitcast i64* %1 to i8*
store i64 0, i64* %1
%3 = call i32 @lha_crc16_buf(i64* %1, i32* null, i32 0)
%4 = load i64, i64* %1
%5 = icmp eq i64 %4, 0
%6 = zext i1 %5 to i32
%7 = call i32 @assert(i32 %6)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ block128_f;
typedef int /*<<< orphan*/ CAMELLIA_KEY;

/* Variables and functions */
int /*<<< orphan*/ CRYPTO_cfb128_8_encrypt(unsigned char const *,
                                           unsigned char *, size_t,
                                           int /*<<< orphan*/ const *,
                                           unsigned char *, int *, int const,
                                           int /*<<< orphan*/);
scalar_t__ Camellia_encrypt;
void Camellia_cfb8_encrypt(const unsigned char *in, unsigned char *out,
                           size_t length, const CAMELLIA_KEY *key,
                           unsigned char *ivec, int *num, const int enc) {
  CRYPTO_cfb128_8_encrypt(in, out, length, key, ivec, num, enc,
                          (block128_f)Camellia_encrypt);
}


x86 assembly (clang, -O0):
<Camellia_cfb8_encrypt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%r9
mov    0x10(%rbp),%r10d
mov    0x2ea2(%rip),%rax
mov    (%rax),%rax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1030 <CRYPTO_cfb128_8_encrypt@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Camellia_cfb8_encrypt>:
push   %rax
mov    0x10(%rsp),%r10d
mov    0x2edb(%rip),%rax
mov    (%rax),%eax
push   %rax
push   %r10
call   1030 <CRYPTO_cfb128_8_encrypt@plt>
add    $0x10,%rsp
pop    %rax
ret

LLVM IR (-O0):
@Camellia_encrypt = global i64 0
define void @Camellia_cfb8_encrypt(i8* %0, i8* %1, i64 %2, i32* %3, i8* %4, i32* %5, i32 %6) {
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i64
%11 = alloca i32*
%12 = alloca i8*
%13 = alloca i32*
%14 = alloca i32
store i8* %0, i8** %8
store i8* %1, i8** %9
store i64 %2, i64* %10
store i32* %3, i32** %11
store i8* %4, i8** %12
store i32* %5, i32** %13
store i32 %6, i32* %14
%15 = load i8*, i8** %8
%16 = load i8*, i8** %9
%17 = load i64, i64* %10
%18 = load i32*, i32** %11
%19 = load i8*, i8** %12
%20 = load i32*, i32** %13
%21 = load i32, i32* %14
%22 = load i64, i64* @Camellia_encrypt
%23 = trunc i64 %22 to i32
%24 = call i32 @CRYPTO_cfb128_8_encrypt(i8* %15, i8* %16, i64 %17, i32* %18, i8* %19, i32* %20, i32 %21, i32 %23)
ret void
}

LLVM IR (-O2):
@Camellia_encrypt = global i64 0
define void @Camellia_cfb8_encrypt(i8* %0, i8* %1, i64 %2, i32* %3, i8* %4, i32* %5, i32 %6) {
%8 = load i64, i64* @Camellia_encrypt
%9 = trunc i64 %8 to i32
%10 = tail call i32 @CRYPTO_cfb128_8_encrypt(i8* %0, i8* %1, i64 %2, i32* %3, i8* %4, i32* %5, i32 %6, i32 %9)
ret void
}
float ratio(int num, int denom) { return (((float)num) / ((float)denom)); }


x86 assembly (clang, -O0):
<ratio>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cvtsi2ssl -0x4(%rbp),%xmm0
cvtsi2ssl -0x8(%rbp),%xmm1
divss  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<ratio>:
cvtsi2ss %edi,%xmm0
cvtsi2ss %esi,%xmm1
divss  %xmm1,%xmm0
ret

LLVM IR (-O0):
define float @ratio(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 = sitofp i32 %5 to float
%7 = load i32, i32* %4
%8 = sitofp i32 %7 to float
%9 = fdiv float %6, %8
ret float %9
}

LLVM IR (-O2):
define float @ratio(i32 %0, i32 %1) {
%3 = sitofp i32 %0 to float
%4 = sitofp i32 %1 to float
%5 = fdiv float %3, %4
ret float %5
}
void report_proximity_raw_data(struct ssp_data *data,
                               struct sensor_value *prox) {
  return;
}


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

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

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

LLVM IR (-O2):
%struct.ssp_data = type opaque
%struct.sensor_value = type opaque
define void @report_proximity_raw_data(%struct.ssp_data* nocapture %0, %struct.sensor_value* nocapture %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isbdigit(int);
void t_isbdigit_0x80() {
  Assert_real((isbdigit(128) == 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_isbdigit.c",
              645, ("isbdigit should be 0 for 0x80"));
}


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

x86 assembly (clang, -O2):
<t_isbdigit_0x80>:
push   %rax
mov    $0x80,%edi
call   1040 <isbdigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf67(%rip),%rcx
mov    $0x285,%edx
pop    %rax
jmp    1030 <Assert_real@plt>

LLVM IR (-O0):
@.str = [169 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_isbdigit.c\00"
@.str.1 = [30 x i8] c"isbdigit should be 0 for 0x80\00"
define void @t_isbdigit_0x80() {
%1 = call i64 @isbdigit(i32 128)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 645, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [169 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_isbdigit.c\00"
@.str.1 = [30 x i8] c"isbdigit should be 0 for 0x80\00"
define void @t_isbdigit_0x80() {
%1 = tail call i64 @isbdigit(i32 128)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 645, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}
int digit(int j) {
  if (j >= '0' && j <= '9')
    return (1);
  else
    return (0);
}


x86 assembly (clang, -O0):
<digit>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x30,-0x8(%rbp)
jl     1127 <digit+0x27>
cmpl   $0x39,-0x8(%rbp)
jg     1127 <digit+0x27>
movl   $0x1,-0x4(%rbp)
jmp    112e <digit+0x2e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @digit(i32 %0) {
%2 = add i32 %0, -48
%3 = icmp ult i32 %2, 10
%4 = zext i1 %3 to i32
ret i32 %4
}
int vde_chain_nm4_work(int *sz_arg, int *sz_res, int *sz_iw, int *sz_w) {
  if (sz_arg)
    *sz_arg = 4;
  if (sz_res)
    *sz_res = 3;
  if (sz_iw)
    *sz_iw = 0;
  if (sz_w)
    *sz_w = 47;
  return 0;
}


x86 assembly (clang, -O0):
<vde_chain_nm4_work>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1129 <vde_chain_nm4_work+0x29>
mov    -0x8(%rbp),%rax
movl   $0x4,(%rax)
cmpq   $0x0,-0x10(%rbp)
je     113e <vde_chain_nm4_work+0x3e>
mov    -0x10(%rbp),%rax
movl   $0x3,(%rax)
cmpq   $0x0,-0x18(%rbp)
je     1153 <vde_chain_nm4_work+0x53>
mov    -0x18(%rbp),%rax
movl   $0x0,(%rax)
cmpq   $0x0,-0x20(%rbp)
je     1168 <vde_chain_nm4_work+0x68>
mov    -0x20(%rbp),%rax
movl   $0x2f,(%rax)
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<vde_chain_nm4_work>:
test   %rdi,%rdi
je     110b <vde_chain_nm4_work+0xb>
movl   $0x4,(%rdi)
test   %rsi,%rsi
je     1116 <vde_chain_nm4_work+0x16>
movl   $0x3,(%rsi)
test   %rdx,%rdx
je     1121 <vde_chain_nm4_work+0x21>
movl   $0x0,(%rdx)
test   %rcx,%rcx
je     112c <vde_chain_nm4_work+0x2c>
movl   $0x2f,(%rcx)
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @vde_chain_nm4_work(i32* writeonly %0, i32* writeonly %1, i32* writeonly %2, i32* writeonly %3) {
%5 = icmp eq i32* %0, null
br i1 %5, label %7, label %6
6: ; preds = %4
store i32 4, i32* %0
br label %7
7: ; preds = %6, %4
%8 = icmp eq i32* %1, null
br i1 %8, label %10, label %9
9: ; preds = %7
store i32 3, i32* %1
br label %10
10: ; preds = %9, %7
%11 = icmp eq i32* %2, null
br i1 %11, label %13, label %12
12: ; preds = %10
store i32 0, i32* %2
br label %13
13: ; preds = %12, %10
%14 = icmp eq i32* %3, null
br i1 %14, label %16, label %15
15: ; preds = %13
store i32 47, i32* %3
br label %16
16: ; preds = %15, %13
ret i32 0
}
/* Type definitions */
struct linkedList {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ free(struct linkedList *);
int /*<<< orphan*/ freeLinkedList(struct linkedList *);
void deleteLinkedList(struct linkedList *lst) {
  assert(lst != 0);
  freeLinkedList(lst);
  free(lst);
}


x86 assembly (clang, -O0):
<deleteLinkedList>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x8(%rbp),%rdi
call   1050 <freeLinkedList@plt>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<deleteLinkedList>:
push   %rbx
mov    %rdi,%rbx
xor    %edi,%edi
test   %rbx,%rbx
setne  %dil
call   1040 <assert@plt>
mov    %rbx,%rdi
call   1050 <freeLinkedList@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.linkedList = type { i32 }
define void @deleteLinkedList(%struct.linkedList* %0) {
%2 = alloca %struct.linkedList*
store %struct.linkedList* %0, %struct.linkedList** %2
%3 = load %struct.linkedList*, %struct.linkedList** %2
%4 = icmp ne %struct.linkedList* %3, null
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 %5)
%7 = load %struct.linkedList*, %struct.linkedList** %2
%8 = call i32 @freeLinkedList(%struct.linkedList* %7)
%9 = load %struct.linkedList*, %struct.linkedList** %2
%10 = call i32 @free(%struct.linkedList* %9)
ret void
}

LLVM IR (-O2):
%struct.linkedList = type { i32 }
define void @deleteLinkedList(%struct.linkedList* %0) {
%2 = icmp ne %struct.linkedList* %0, null
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 %3)
%5 = tail call i32 @freeLinkedList(%struct.linkedList* %0)
%6 = tail call i32 @free(%struct.linkedList* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ multiset_set_tls_features();
void marking_set_tls() { multiset_set_tls_features(); }


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

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

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

LLVM IR (-O2):
define void @marking_set_tls() {
%1 = tail call i32 (...) @multiset_set_tls_features()
ret void
}
/* Variables and functions */
scalar_t__ safe_malloc(int);
int /*<<< orphan*/ snprintf(char *, int, char *, char *, char *);
int strlen(char *);
char *str_concat(char *str1, char *str2) {
  int len = strlen(str1) + strlen(str2) + 1;
  char *res = (char *)safe_malloc(sizeof(char) * len);
  snprintf(res, len, "%s%s", str1, str2);
  return res;
}


x86 assembly (clang, -O0):
<str_concat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x24(%rbp),%eax
add    %ecx,%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%edi
call   1030 <safe_malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x8(%rbp),%rcx
mov    -0x10(%rbp),%r8
lea    0xe75(%rip),%rdx
call   1050 <snprintf@plt>
mov    -0x20(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<str_concat>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rsi,%r14
mov    %rdi,%r12
call   1040 <strlen@plt>
mov    %eax,%r15d
mov    %r14,%rdi
call   1040 <strlen@plt>
lea    (%r15,%rax,1),%ebp
add    $0x1,%ebp
mov    %ebp,%edi
call   1030 <safe_malloc@plt>
mov    %rax,%rbx
lea    0xe9a(%rip),%rdx
mov    %rax,%rdi
mov    %ebp,%esi
mov    %r12,%rcx
mov    %r14,%r8
call   1050 <snprintf@plt>
mov    %rbx,%rax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%s%s\00"
define i8* @str_concat(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%7 = load i8*, i8** %3
%8 = call i32 @strlen(i8* %7)
%9 = load i8*, i8** %4
%10 = call i32 @strlen(i8* %9)
%11 = add nsw i32 %8, %10
%12 = add nsw i32 %11, 1
store i32 %12, i32* %5
%13 = load i32, i32* %5
%14 = sext i32 %13 to i64
%15 = mul i64 1, %14
%16 = trunc i64 %15 to i32
%17 = call i64 @safe_malloc(i32 %16)
%18 = inttoptr i64 %17 to i8*
store i8* %18, i8** %6
%19 = load i8*, i8** %6
%20 = load i32, i32* %5
%21 = load i8*, i8** %3
%22 = load i8*, i8** %4
%23 = call i32 @snprintf(i8* %19, i32 %20, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %21, i8* %22)
%24 = load i8*, i8** %6
ret i8* %24
}

LLVM IR (-O2):
@.str = [5 x i8] c"%s%s\00"
define i8* @str_concat(i8* %0, i8* %1) {
%3 = tail call i32 @strlen(i8* %0)
%4 = tail call i32 @strlen(i8* %1)
%5 = add i32 %3, 1
%6 = add i32 %5, %4
%7 = tail call i64 @safe_malloc(i32 %6)
%8 = inttoptr i64 %7 to i8*
%9 = tail call i32 @snprintf(i8* %8, i32 %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1)
ret i8* %8
}
/* Variables and functions */
int /*<<< orphan*/ putchar(int);
void printd(int n) {
  if (n < 0) {
    putchar('-');
    n = -n;
  }
  if (n / 10)
    printd(n / 10);
  putchar(n % 10 + '0');
}


x86 assembly (clang, -O0):
<printd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jge    1147 <printd+0x27>
mov    $0x2d,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
sub    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cmp    $0x0,%eax
je     116d <printd+0x4d>
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
call   1040 <printd@plt>
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,%edi
add    $0x30,%edi
call   1030 <putchar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printd>:
push   %r14
push   %rbx
push   %rax
mov    %edi,%ebx
test   %edi,%edi
jns    1136 <printd+0x16>
mov    $0x2d,%edi
call   1030 <putchar@plt>
neg    %ebx
mov    %ebx,%r14d
cmp    $0xa,%ebx
jb     1150 <printd+0x30>
mov    $0xcccccccd,%edi
imul   %r14,%rdi
shr    $0x23,%rdi
call   1040 <printd@plt>
mov    $0xcccccccd,%eax
imul   %r14,%rax
shr    $0x23,%rax
add    %eax,%eax
lea    (%rax,%rax,4),%eax
sub    %eax,%ebx
or     $0x30,%ebx
mov    %ebx,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <putchar@plt>

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

LLVM IR (-O2):
define void @printd(i32 %0) {
%2 = icmp slt i32 %0, 0
br i1 %2, label %3, label %6
3: ; preds = %1
%4 = tail call i32 @putchar(i32 45)
%5 = sub nsw i32 0, %0
br label %6
6: ; preds = %3, %1
%7 = phi i32 [ %5, %3 ], [ %0, %1 ]
%8 = icmp ult i32 %7, 10
br i1 %8, label %11, label %9
9: ; preds = %6
%10 = udiv i32 %7, 10
tail call void @printd(i32 %10)
br label %11
11: ; preds = %9, %6
%12 = urem i32 %7, 10
%13 = or i32 %12, 48
%14 = tail call i32 @putchar(i32 %13)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ printf(char *, char *);
char *read_temp_file(int, size_t *);
int write_temp_file(char *, int);
int main(int argc, char *argv[]) {
  size_t length;
  int temp_file_handle = write_temp_file("hello temp file", 5);
  char *read_buffer = read_temp_file(temp_file_handle, &length);
  printf("Buffer read is: %s.\n", read_buffer);
  free(read_buffer);
  read_buffer = NULL;
  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)
lea    0xea3(%rip),%rdi
mov    $0x5,%esi
call   1050 <write_temp_file@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%edi
lea    -0x18(%rbp),%rsi
call   1060 <read_temp_file@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rsi
lea    0xe8b(%rip),%rdi
call   1040 <printf@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
movq   $0x0,-0x28(%rbp)
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xeb4(%rip),%rdi
mov    $0x5,%esi
call   1050 <write_temp_file@plt>
lea    0x8(%rsp),%rsi
mov    %eax,%edi
call   1060 <read_temp_file@plt>
mov    %rax,%rbx
lea    0xea4(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [16 x i8] c"hello temp file\00"
@.str.1 = [21 x i8] c"Buffer read is: %s.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i64
%7 = alloca i32
%8 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = call i32 @write_temp_file(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 5)
store i32 %9, i32* %7
%10 = load i32, i32* %7
%11 = call i8* @read_temp_file(i32 %10, i64* %6)
store i8* %11, i8** %8
%12 = load i8*, i8** %8
%13 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %12)
%14 = load i8*, i8** %8
%15 = call i32 @free(i8* %14)
store i8* null, i8** %8
ret i32 0
}

LLVM IR (-O2):
@.str = [16 x i8] c"hello temp file\00"
@.str.1 = [21 x i8] c"Buffer read is: %s.\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i64
%4 = bitcast i64* %3 to i8*
%5 = tail call i32 @write_temp_file(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 5)
%6 = call i8* @read_temp_file(i32 %5, i64* %3)
%7 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %6)
%8 = call i32 @free(i8* %6)
ret i32 0
}
unsigned int z1013_spvt_getst() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @z1013_spvt_getst() {
ret i32 0
}
void GLimp_LogNewFrame(void) {}


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

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

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

LLVM IR (-O2):
define void @GLimp_LogNewFrame() {
ret void
}
space(ch) {
  switch (ch) {
  case ' ':
  case '\t':
  case '\n':
    return (1);
  }
  return (0);
}


x86 assembly (clang, -O0):
<space>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
add    $0xfffffff7,%eax
sub    $0x2,%eax
jb     112f <space+0x2f>
jmp    111e <space+0x1e>
mov    -0xc(%rbp),%eax
sub    $0x20,%eax
jne    113b <space+0x3b>
jmp    112f <space+0x2f>
movl   $0x1,-0x4(%rbp)
jmp    1142 <space+0x42>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<space>:
cmp    $0x20,%edi
ja     111d <space+0x1d>
mov    $0x1,%eax
mov    %edi,%ecx
movabs $0x100000600,%rdx
bt     %rcx,%rdx
jae    111d <space+0x1d>
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @space(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %6 [
i32 32, label %5
i32 9, label %5
i32 10, label %5
]
5: ; preds = %1, %1, %1
store i32 1, i32* %2
br label %7
6: ; preds = %1
store i32 0, i32* %2
br label %7
7: ; preds = %6, %5
%8 = load i32, i32* %2
ret i32 %8
}

LLVM IR (-O2):
define i32 @space(i32 %0) {
switch i32 %0, label %2 [
i32 32, label %3
i32 9, label %3
i32 10, label %3
]
2: ; preds = %1
br label %3
3: ; preds = %1, %1, %1, %2
%4 = phi i32 [ 0, %2 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ]
ret i32 %4
}
long mixed_sub(void *a, unsigned long b) { return a - b; }


x86 assembly (clang, -O0):
<mixed_sub>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
xor    %ecx,%ecx
sub    -0x10(%rbp),%rcx
add    %rcx,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<mixed_sub>:
mov    %rdi,%rax
sub    %rsi,%rax
ret

LLVM IR (-O0):
define i64 @mixed_sub(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %3
store i64 %1, i64* %4
%5 = load i8*, i8** %3
%6 = load i64, i64* %4
%7 = sub i64 0, %6
%8 = getelementptr i8, i8* %5, i64 %7
%9 = ptrtoint i8* %8 to i64
ret i64 %9
}

LLVM IR (-O2):
define i64 @mixed_sub(i8* %0, i64 %1) {
%3 = sub i64 0, %1
%4 = getelementptr i8, i8* %0, i64 %3
%5 = ptrtoint i8* %4 to i64
ret i64 %5
}
void gtk_tree_path_get_indices() {}


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

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

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

LLVM IR (-O2):
define void @gtk_tree_path_get_indices() {
ret void
}