xunge/DecIR huggingface dataset:
/* Variables and functions */
double RAND_MAX;
double rand();
double uniformrng(void) {
  double rnd;
  do {
    rnd = (double)(rand() / (RAND_MAX + 1.0));
  } while (rnd == 0.0 || rnd == 1.0);
  return rnd;
}


x86 assembly (clang, -O0):
<uniformrng>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <rand@plt>
movsd  0xed9(%rip),%xmm1
mov    0x2eba(%rip),%rax
addsd  (%rax),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x1,%al
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x9(%rbp)
jne    115d <uniformrng+0x4d>
jp     115d <uniformrng+0x4d>
jmp    1179 <uniformrng+0x69>
movsd  -0x8(%rbp),%xmm0
movsd  0xe96(%rip),%xmm1
ucomisd %xmm1,%xmm0
sete   %al
setnp  %cl
and    %cl,%al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
test   $0x1,%al
jne    1118 <uniformrng+0x8>
movsd  -0x8(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<uniformrng>:
push   %rbx
mov    0x2ed0(%rip),%rbx
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <rand@plt>
movsd  (%rbx),%xmm1
addsd  0xecd(%rip),%xmm1
divsd  %xmm1,%xmm0
ucomisd 0xec9(%rip),%xmm0
jne    1143 <uniformrng+0x33>
jnp    1120 <uniformrng+0x10>
ucomisd 0xeb5(%rip),%xmm0
jne    114f <uniformrng+0x3f>
jnp    1120 <uniformrng+0x10>
pop    %rbx
ret

LLVM IR (-O0):
@RAND_MAX = global double 0.000000e+00
define double @uniformrng() {
%1 = alloca double
br label %2
2: ; preds = %13, %0
%3 = call double (...) @rand()
%4 = load double, double* @RAND_MAX
%5 = fadd double %4, 1.000000e+00
%6 = fdiv double %3, %5
store double %6, double* %1
br label %7
7: ; preds = %2
%8 = load double, double* %1
%9 = fcmp oeq double %8, 0.000000e+00
br i1 %9, label %13, label %10
10: ; preds = %7
%11 = load double, double* %1
%12 = fcmp oeq double %11, 1.000000e+00
br label %13
13: ; preds = %10, %7
%14 = phi i1 [ true, %7 ], [ %12, %10 ]
br i1 %14, label %2, label %15
15: ; preds = %13
%16 = load double, double* %1
ret double %16
}

LLVM IR (-O2):
@RAND_MAX = global double 0.000000e+00
define double @uniformrng() {
br label %1
1: ; preds = %1, %0
%2 = tail call double (...) @rand()
%3 = load double, double* @RAND_MAX
%4 = fadd double %3, 1.000000e+00
%5 = fdiv double %2, %4
%6 = fcmp oeq double %5, 0.000000e+00
%7 = fcmp oeq double %5, 1.000000e+00
%8 = or i1 %6, %7
br i1 %8, label %1, label %9
9: ; preds = %1
ret double %5
}
/* Type definitions */
struct fit_entry {
  int dummy;
};

/* Variables and functions */
int fit_entry_size_bytes(struct fit_entry *);
int /*<<< orphan*/ fit_entry_update_size(struct fit_entry *, int);
void fit_entry_add_size(struct fit_entry *entry, int size_bytes) {
  int size = fit_entry_size_bytes(entry);
  size += size_bytes;
  fit_entry_update_size(entry, size);
}


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

x86 assembly (clang, -O2):
<fit_entry_add_size>:
push   %r14
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %rdi,%r14
call   1040 <fit_entry_size_bytes@plt>
add    %eax,%ebx
mov    %r14,%rdi
mov    %ebx,%esi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <fit_entry_update_size@plt>

LLVM IR (-O0):
%struct.fit_entry = type { i32 }
define void @fit_entry_add_size(%struct.fit_entry* %0, i32 %1) {
%3 = alloca %struct.fit_entry*
%4 = alloca i32
%5 = alloca i32
store %struct.fit_entry* %0, %struct.fit_entry** %3
store i32 %1, i32* %4
%6 = load %struct.fit_entry*, %struct.fit_entry** %3
%7 = call i32 @fit_entry_size_bytes(%struct.fit_entry* %6)
store i32 %7, i32* %5
%8 = load i32, i32* %4
%9 = load i32, i32* %5
%10 = add nsw i32 %9, %8
store i32 %10, i32* %5
%11 = load %struct.fit_entry*, %struct.fit_entry** %3
%12 = load i32, i32* %5
%13 = call i32 @fit_entry_update_size(%struct.fit_entry* %11, i32 %12)
ret void
}

LLVM IR (-O2):
%struct.fit_entry = type { i32 }
define void @fit_entry_add_size(%struct.fit_entry* %0, i32 %1) {
%3 = tail call i32 @fit_entry_size_bytes(%struct.fit_entry* %0)
%4 = add nsw i32 %3, %1
%5 = tail call i32 @fit_entry_update_size(%struct.fit_entry* %0, i32 %4)
ret void
}
int do_104() { return 104; }


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

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

LLVM IR (-O0):
define i32 @do_104() {
ret i32 104
}

LLVM IR (-O2):
define i32 @do_104() {
ret i32 104
}
/* Type definitions */
struct tm {
  int tm_yday;
  int tm_wday;
};

/* Variables and functions */
int weeknumber(const struct tm *timeptr, int firstweekday) {
  return (timeptr->tm_yday - timeptr->tm_wday +
          (firstweekday ? (timeptr->tm_wday ? 8 : 1) : 7)) /
         7;
}


x86 assembly (clang, -O0):
<weeknumber>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    -0x8(%rbp),%rcx
sub    0x4(%rcx),%eax
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     1144 <weeknumber+0x44>
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%edx
mov    $0x1,%eax
mov    $0x8,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %eax,-0x14(%rbp)
jmp    1151 <weeknumber+0x51>
mov    $0x7,%eax
mov    %eax,-0x14(%rbp)
jmp    1151 <weeknumber+0x51>
mov    -0x10(%rbp),%eax
mov    -0x14(%rbp),%ecx
add    %ecx,%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
pop    %rbp
ret

x86 assembly (clang, -O2):
<weeknumber>:
mov    (%rdi),%eax
mov    0x4(%rdi),%ecx
test   %ecx,%ecx
mov    $0x1,%edx
mov    $0x8,%edi
cmove  %edx,%edi
test   %esi,%esi
mov    $0x7,%edx
cmovne %edi,%edx
sub    %ecx,%eax
add    %edx,%eax
cltq
imul   $0xffffffff92492493,%rax,%rcx
shr    $0x20,%rcx
add    %ecx,%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
sar    $0x2,%eax
add    %ecx,%eax
ret

LLVM IR (-O0):
%struct.tm = type { i32, i32 }
define i32 @weeknumber(%struct.tm* %0, i32 %1) {
%3 = alloca %struct.tm*
%4 = alloca i32
store %struct.tm* %0, %struct.tm** %3
store i32 %1, i32* %4
%5 = load %struct.tm*, %struct.tm** %3
%6 = getelementptr inbounds %struct.tm, %struct.tm* %5, i32 0, i32 0
%7 = load i32, i32* %6
%8 = load %struct.tm*, %struct.tm** %3
%9 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 1
%10 = load i32, i32* %9
%11 = sub nsw i32 %7, %10
%12 = load i32, i32* %4
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %21
14: ; preds = %2
%15 = load %struct.tm*, %struct.tm** %3
%16 = getelementptr inbounds %struct.tm, %struct.tm* %15, i32 0, i32 1
%17 = load i32, i32* %16
%18 = icmp ne i32 %17, 0
%19 = zext i1 %18 to i64
%20 = select i1 %18, i32 8, i32 1
br label %22
21: ; preds = %2
br label %22
22: ; preds = %21, %14
%23 = phi i32 [ %20, %14 ], [ 7, %21 ]
%24 = add nsw i32 %11, %23
%25 = sdiv i32 %24, 7
ret i32 %25
}

LLVM IR (-O2):
%struct.tm = type { i32, i32 }
define i32 @weeknumber(%struct.tm* nocapture %0, i32 %1) {
%3 = getelementptr inbounds %struct.tm, %struct.tm* %0, i64 0, i32 0
%4 = load i32, i32* %3
%5 = getelementptr inbounds %struct.tm, %struct.tm* %0, i64 0, i32 1
%6 = load i32, i32* %5
%7 = icmp eq i32 %1, 0
%8 = icmp eq i32 %6, 0
%9 = select i1 %8, i32 1, i32 8
%10 = select i1 %7, i32 7, i32 %9
%11 = sub i32 %4, %6
%12 = add nsw i32 %11, %10
%13 = sdiv i32 %12, 7
ret i32 %13
}
/* Variables and functions */
int udivmodsi4(int, int, int);
int __modsi3(int a, int b) {
  int neg = 0;
  int res;
  if (a < 0) {
    a = -a;
    neg = 1;
  }
  if (b < 0)
    b = -b;
  res = udivmodsi4(a, b, 1);
  if (neg)
    res = -res;
  return res;
}


x86 assembly (clang, -O0):
<__modsi3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x0,-0x4(%rbp)
jge    113e <__modsi3+0x2e>
xor    %eax,%eax
sub    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
movl   $0x1,-0xc(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    1150 <__modsi3+0x40>
xor    %eax,%eax
sub    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    $0x1,%edx
call   1030 <udivmodsi4@plt>
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     1175 <__modsi3+0x65>
xor    %eax,%eax
sub    -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__modsi3>:
push   %rbx
mov    %edi,%ebx
neg    %edi
cmovs  %ebx,%edi
mov    %esi,%eax
neg    %eax
cmovns %eax,%esi
mov    $0x1,%edx
call   1030 <udivmodsi4@plt>
mov    %eax,%ecx
neg    %ecx
test   %ebx,%ebx
cmovs  %ecx,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @__modsi3(i32 %0, i32 %1) {
%3 = icmp slt i32 %0, 0
%4 = sub nsw i32 0, %0
%5 = select i1 %3, i32 %4, i32 %0
%6 = tail call i32 @llvm.abs.i32(i32 %1, i1 true)
%7 = tail call i32 @udivmodsi4(i32 %5, i32 %6, i32 1)
%8 = sub nsw i32 0, %7
%9 = select i1 %3, i32 %8, i32 %7
ret i32 %9
}
void ufshcd_prepare_lrbp_crypto(struct request *rq, struct ufshcd_lrb *lrbp) {}


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

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

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

LLVM IR (-O2):
%struct.request = type opaque
%struct.ufshcd_lrb = type opaque
define void @ufshcd_prepare_lrbp_crypto(%struct.request* nocapture %0, %struct.ufshcd_lrb* nocapture %1) {
ret void
}
void create_debug_files(struct imx21 *imx21) {}


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

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

LLVM IR (-O0):
%struct.imx21 = type opaque
define void @create_debug_files(%struct.imx21* %0) {
%2 = alloca %struct.imx21*
store %struct.imx21* %0, %struct.imx21** %2
ret void
}

LLVM IR (-O2):
%struct.imx21 = type opaque
define void @create_debug_files(%struct.imx21* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ e_pha();
void e_pha_accu() { e_pha(); }


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

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

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

LLVM IR (-O2):
define void @e_pha_accu() {
%1 = tail call i32 (...) @e_pha()
ret void
}
main(t) {
  for (;; t++) {
    putchar((t << 1) * 2 + (t >> 2) | 21 ^ t >> t | t >> 3);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
shl    $0x1,%edi
shl    $0x1,%edi
mov    -0x8(%rbp),%eax
sar    $0x2,%eax
add    %eax,%edi
mov    -0x8(%rbp),%eax
mov    -0x8(%rbp),%ecx
sar    %cl,%eax
xor    $0x15,%eax
or     %eax,%edi
mov    -0x8(%rbp),%eax
sar    $0x3,%eax
or     %eax,%edi
mov    $0x0,%al
call   1030 <putchar@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1122 <main+0x12>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebx
lea    0x0(,%rbx,4),%ebp
nopl   0x0(%rax)
mov    %ebx,%eax
sar    $0x2,%eax
add    %ebp,%eax
mov    %ebx,%edi
sar    $0x3,%edi
or     %eax,%edi
or     $0x15,%edi
xor    %eax,%eax
call   1030 <putchar@plt>
add    $0x1,%ebx
add    $0x4,%ebp
jmp    1120 <main+0x10>

LLVM IR (-O0):
define i32 @main(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %2
store i32 %0, i32* %3
br label %4
4: ; preds = %20, %1
%5 = load i32, i32* %3
%6 = shl i32 %5, 1
%7 = mul nsw i32 %6, 2
%8 = load i32, i32* %3
%9 = ashr i32 %8, 2
%10 = add nsw i32 %7, %9
%11 = load i32, i32* %3
%12 = load i32, i32* %3
%13 = ashr i32 %11, %12
%14 = xor i32 21, %13
%15 = or i32 %10, %14
%16 = load i32, i32* %3
%17 = ashr i32 %16, 3
%18 = or i32 %15, %17
%19 = call i32 (i32, ...) bitcast (i32 (...)* @putchar to i32 (i32, ...)*)(i32 %18)
br label %20
20: ; preds = %4
%21 = load i32, i32* %3
%22 = add nsw i32 %21, 1
store i32 %22, i32* %3
br label %4
}

LLVM IR (-O2):
define i32 @main(i32 %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i32 [ %0, %1 ], [ %11, %2 ]
%4 = shl i32 %3, 2
%5 = ashr i32 %3, 2
%6 = add nsw i32 %4, %5
%7 = ashr i32 %3, 3
%8 = or i32 %7, %6
%9 = or i32 %8, 21
%10 = tail call i32 (i32, ...) bitcast (i32 (...)* @putchar to i32 (i32, ...)*)(i32 %9)
%11 = add nsw i32 %3, 1
br label %2
}
/* Variables and functions */
scalar_t__ getchar();
scalar_t__ iscntrl(char);
int /*<<< orphan*/ printf(char *, char);
int main(void) {
  char c = NULL;
  c = (char)getchar();
  if (iscntrl(c)) {
    printf("%02x is Control Character!\n", c);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x0,-0x5(%rbp)
mov    $0x0,%al
call   1050 <getchar@plt>
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%edi
call   1030 <iscntrl@plt>
cmp    $0x0,%rax
je     1170 <main+0x40>
lea    0xe99(%rip),%rdi
movsbl -0x5(%rbp),%esi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1050 <getchar@plt>
mov    %rax,%rbx
movsbl %bl,%edi
call   1030 <iscntrl@plt>
test   %rax,%rax
je     1157 <main+0x27>
movsbl %bl,%esi
lea    0xeae(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [28 x i8] c"%02x is Control Character!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
store i32 0, i32* %1
store i8 0, i8* %2
%3 = call i64 (...) @getchar()
%4 = trunc i64 %3 to i8
store i8 %4, i8* %2
%5 = load i8, i8* %2
%6 = call i64 @iscntrl(i8 signext %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = load i8, i8* %2
%10 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8 signext %9)
br label %11
11: ; preds = %8, %0
ret i32 0
}

LLVM IR (-O2):
@.str = [28 x i8] c"%02x is Control Character!\0A\00"
define i32 @main() {
%1 = tail call i64 (...) @getchar()
%2 = trunc i64 %1 to i8
%3 = tail call i64 @iscntrl(i8 signext %2)
%4 = icmp eq i64 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %0
%6 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8 signext %2)
br label %7
7: ; preds = %5, %0
ret i32 0
}
long long net_invalid_timestamp() { return 0; }


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

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

LLVM IR (-O0):
define i64 @net_invalid_timestamp() {
ret i64 0
}

LLVM IR (-O2):
define i64 @net_invalid_timestamp() {
ret i64 0
}
/* Type definitions */
typedef int uint64_t;
struct stat {
  int st_size;
};
typedef int ssize_t;

/* Variables and functions */
int stat(char const *, struct stat *);
ssize_t fileSize(const char *filePath) {
  struct stat st;
  int r = stat(filePath, &st);
  ;
  if (r) {
    return (-1);
  }
  if ((uint64_t)(st.st_size) > 140734000000000) {
    return (-1);
  }
  return (st.st_size);
}


x86 assembly (clang, -O0):
<fileSize>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1030 <stat@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     1142 <fileSize+0x32>
movl   $0xffffffff,-0x4(%rbp)
jmp    116b <fileSize+0x5b>
movslq -0x18(%rbp),%rax
movabs $0x7fff3013ec00,%rcx
cmp    %rcx,%rax
jle    1165 <fileSize+0x55>
movl   $0xffffffff,-0x4(%rbp)
jmp    116b <fileSize+0x5b>
mov    -0x18(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fileSize>:
push   %rax
mov    %rsp,%rsi
call   1030 <stat@plt>
neg    %eax
sbb    %eax,%eax
or     (%rsp),%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.stat = type { i32 }
define i32 @fileSize(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca %struct.stat
%5 = alloca i32
store i8* %0, i8** %3
%6 = load i8*, i8** %3
%7 = call i32 @stat(i8* %6, %struct.stat* %4)
store i32 %7, i32* %5
%8 = load i32, i32* %5
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %1
store i32 -1, i32* %2
br label %20
11: ; preds = %1
%12 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 0
%13 = load i32, i32* %12
%14 = sext i32 %13 to i64
%15 = icmp sgt i64 %14, 140734000000000
br i1 %15, label %16, label %17
16: ; preds = %11
store i32 -1, i32* %2
br label %20
17: ; preds = %11
%18 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 0
%19 = load i32, i32* %18
store i32 %19, i32* %2
br label %20
20: ; preds = %17, %16, %10
%21 = load i32, i32* %2
ret i32 %21
}

LLVM IR (-O2):
%struct.stat = type { i32 }
define i32 @fileSize(i8* nocapture %0) {
%2 = alloca %struct.stat
%3 = bitcast %struct.stat* %2 to i8*
%4 = call i32 @stat(i8* %0, %struct.stat* %2)
%5 = icmp eq i32 %4, 0
%6 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 0
%7 = load i32, i32* %6
%8 = select i1 %5, i32 %7, i32 -1
ret i32 %8
}
void setup_mps() {}


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

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

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

LLVM IR (-O2):
define void @setup_mps() {
ret void
}
int tk_OneEvent(flag)
int flag;
{ return 0; }


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

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

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

LLVM IR (-O2):
define i32 @tk_OneEvent(i32 %0) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
char *return_str_literal();
int main() {
  printf("value assigned after declaration for string literal : %s\n",
         return_str_literal());
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <return_str_literal@plt>
mov    %rax,%rsi
lea    0xec0(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <return_str_literal@plt>
lea    0xed1(%rip),%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [58 x i8] c"value assigned after declaration for string literal : %s\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i8* (...) @return_str_literal()
%3 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0), i8* %2)
ret i32 0
}

LLVM IR (-O2):
@.str = [58 x i8] c"value assigned after declaration for string literal : %s\0A\00"
define i32 @main() {
%1 = tail call i8* (...) @return_str_literal()
%2 = tail call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0), i8* %1)
ret i32 0
}
/* Forward declarations */
typedef struct TYPE_4__ TYPE_2__;
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  unsigned long serial;
};
struct TYPE_4__ {
  TYPE_1__ xnoexpose;
};
typedef TYPE_2__ XEvent;

/* Variables and functions */
void set_XEvent_xnoexpose_serial(void *_p, unsigned long _v) {
  ((XEvent *)_p)->xnoexpose.serial = (unsigned long)_v;
}


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

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

LLVM IR (-O0):
%struct.TYPE_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i64 }
define void @set_XEvent_xnoexpose_serial(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %3
store i64 %1, i64* %4
%5 = load i64, i64* %4
%6 = load i8*, i8** %3
%7 = bitcast i8* %6 to %struct.TYPE_4__*
%8 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %7, i32 0, i32 0
%9 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %8, i32 0, i32 0
store i64 %5, i64* %9
ret void
}

LLVM IR (-O2):
define void @set_XEvent_xnoexpose_serial(i8* nocapture writeonly %0, i64 %1) {
%3 = bitcast i8* %0 to i64*
store i64 %1, i64* %3
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ ispunct(int);
void t_ispunct_0x0e() {
  Assert_real((ispunct(14) == 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_ispunct.c",
              75, ("ispunct should be 0 for 0x0e"));
}


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

x86 assembly (clang, -O2):
<t_ispunct_0x0e>:
push   %rax
mov    $0xe,%edi
call   1030 <ispunct@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x4b,%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_ispunct.c\00"
@.str.1 = [29 x i8] c"ispunct should be 0 for 0x0e\00"
define void @t_ispunct_0x0e() {
%1 = call i64 @ispunct(i32 14)
%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 75, 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_ispunct.c\00"
@.str.1 = [29 x i8] c"ispunct should be 0 for 0x0e\00"
define void @t_ispunct_0x0e() {
%1 = tail call i64 @ispunct(i32 14)
%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 75, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int strcmp(char *, char *);
int StrCmp(const void *a, const void *b) {
  return strcmp(((char *)((void *)(a))), ((char *)((void *)(b))));
}


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

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

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

LLVM IR (-O2):
define i32 @StrCmp(i8* nocapture %0, i8* nocapture %1) {
%3 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(1) %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, float);
void main(void) {
  int hua;
  float she;
  for (hua = 0; hua <= 212; hua++) {
    she = 5.0 / 9.0 * (hua - 32);
    printf("hua=%d\tshe=%.3f\n", hua, she);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0xd4,-0x4(%rbp)
jg     116d <main+0x5d>
mov    -0x4(%rbp),%eax
sub    $0x20,%eax
cvtsi2sd %eax,%xmm1
movsd  0xec2(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
mov    -0x4(%rbp),%esi
movss  -0x8(%rbp),%xmm0
lea    0xeae(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    111f <main+0xf>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    $0xffffffe0,%ebx
lea    0xee8(%rip),%r14
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
lea    0x20(%rbx),%esi
mulsd  0xece(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    %r14,%rdi
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0xb5,%ebx
jne    1120 <main+0x10>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [17 x i8] c"hua=%d\09she=%.3f\0A\00"
define void @main() {
%1 = alloca i32
%2 = alloca float
store i32 0, i32* %1
br label %3
3: ; preds = %15, %0
%4 = load i32, i32* %1
%5 = icmp sle i32 %4, 212
br i1 %5, label %6, label %18
6: ; preds = %3
%7 = load i32, i32* %1
%8 = sub nsw i32 %7, 32
%9 = sitofp i32 %8 to double
%10 = fmul double 0x3FE1C71C71C71C72, %9
%11 = fptrunc double %10 to float
store float %11, float* %2
%12 = load i32, i32* %1
%13 = load float, float* %2
%14 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %12, float %13)
br label %15
15: ; preds = %6
%16 = load i32, i32* %1
%17 = add nsw i32 %16, 1
store i32 %17, i32* %1
br label %3
18: ; preds = %3
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c"hua=%d\09she=%.3f\0A\00"
define void @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 0, %0 ], [ %8, %1 ]
%3 = add nsw i32 %2, -32
%4 = sitofp i32 %3 to double
%5 = fmul double %4, 0x3FE1C71C71C71C72
%6 = fptrunc double %5 to float
%7 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %2, float %6)
%8 = add nuw nsw i32 %2, 1
%9 = icmp eq i32 %8, 213
br i1 %9, label %10, label %1
10: ; preds = %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ _hmt_register_covercase(char *, char *);
void _hmt_covercase_HMM_AddQuaternion_init(void) {
  _hmt_register_covercase("HMM_AddQuaternion", "1");
}


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

x86 assembly (clang, -O2):
<_hmt_covercase_HMM_AddQuaternion_init>:
lea    0xee9(%rip),%rdi
lea    0xef4(%rip),%rsi
jmp    1030 <_hmt_register_covercase@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"HMM_AddQuaternion\00"
@.str.1 = [2 x i8] c"1\00"
define void @_hmt_covercase_HMM_AddQuaternion_init() {
%1 = call i32 @_hmt_register_covercase(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"HMM_AddQuaternion\00"
@.str.1 = [2 x i8] c"1\00"
define void @_hmt_covercase_HMM_AddQuaternion_init() {
%1 = tail call i32 @_hmt_register_covercase(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}
int len_ret(char character[]) {
  int i = 0;
  int c = 0;
  while (character[i] != '\0') {
    c++;
    i++;
  }
  return c;
}


x86 assembly (clang, -O0):
<len_ret>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     1142 <len_ret+0x42>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1116 <len_ret+0x16>
mov    -0x10(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @len_ret(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %12, label %4
4: ; preds = %1, %4
%5 = phi i64 [ %6, %4 ], [ 0, %1 ]
%6 = add nuw nsw i64 %5, 1
%7 = getelementptr inbounds i8, i8* %0, i64 %6
%8 = load i8, i8* %7
%9 = icmp eq i8 %8, 0
br i1 %9, label %10, label %4
10: ; preds = %4
%11 = trunc i64 %6 to i32
br label %12
12: ; preds = %10, %1
%13 = phi i32 [ 0, %1 ], [ %11, %10 ]
ret i32 %13
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, char *);
void closeWithError(char *error) {
  printf("%s\n", error);
  exit(1);
}


x86 assembly (clang, -O0):
<closeWithError>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<closeWithError>:
push   %rax
mov    %rdi,%rsi
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

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

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
define void @closeWithError(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @exit(i32 1)
unreachable
}
void foo(int status) { _Exit(status); }


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <_Exit@plt>

x86 assembly (clang, -O2):
<foo>:
push   %rax
call   1030 <_Exit@plt>

LLVM IR (-O0):
define void @foo(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
unreachable
}

LLVM IR (-O2):
define void @foo(i32 %0) {
tail call void @_Exit(i32 %0)
unreachable
}
unsigned long long chainLength(unsigned long long i) {
  if (i % 2 == 0) {
    return (i / 2);
  } else {
    return (3 * i + 1);
  }
}


x86 assembly (clang, -O0):
<chainLength>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
and    $0x1,%rax
cmp    $0x0,%rax
jne    112b <chainLength+0x2b>
mov    -0x10(%rbp),%rax
shr    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1138 <chainLength+0x38>
imul   $0x3,-0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<chainLength>:
mov    %rdi,%rcx
shr    %rcx
test   $0x1,%dil
lea    0x1(%rdi,%rdi,2),%rax
cmove  %rcx,%rax
ret

LLVM IR (-O0):
define i64 @chainLength(i64 %0) {
%2 = alloca i64
%3 = alloca i64
store i64 %0, i64* %3
%4 = load i64, i64* %3
%5 = urem i64 %4, 2
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i64, i64* %3
%9 = udiv i64 %8, 2
store i64 %9, i64* %2
br label %14
10: ; preds = %1
%11 = load i64, i64* %3
%12 = mul i64 3, %11
%13 = add i64 %12, 1
store i64 %13, i64* %2
br label %14
14: ; preds = %10, %7
%15 = load i64, i64* %2
ret i64 %15
}

LLVM IR (-O2):
define i64 @chainLength(i64 %0) {
%2 = and i64 %0, 1
%3 = icmp eq i64 %2, 0
%4 = lshr i64 %0, 1
%5 = mul i64 %0, 3
%6 = add i64 %5, 1
%7 = select i1 %3, i64 %4, i64 %6
ret i64 %7
}
/* Variables and functions */
int /*<<< orphan*/ test_parser_sourcefile(char *, char *);
int /*<<< orphan*/ test_parser_verify_parse(int /*<<< orphan*/, char *, char *,
                                            char *, int /*<<< orphan*/);
void test_jam_comments() {
  test_parser_verify_parse(test_parser_sourcefile("jam", " #comment"), "jam",
                           "", "#comment", 0);
}


x86 assembly (clang, -O0):
<test_jam_comments>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xed2(%rip),%rsi
call   1030 <test_parser_sourcefile@plt>
mov    %eax,%edi
lea    0xec0(%rip),%rsi
lea    0xebc(%rip),%rdx
lea    0xeb7(%rip),%rcx
xor    %r8d,%r8d
call   1040 <test_parser_verify_parse@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_jam_comments>:
push   %rbx
lea    0xed8(%rip),%rbx
lea    0xed5(%rip),%rsi
mov    %rbx,%rdi
call   1030 <test_parser_sourcefile@plt>
lea    0xec5(%rip),%rdx
lea    0xec0(%rip),%rcx
mov    %eax,%edi
mov    %rbx,%rsi
xor    %r8d,%r8d
pop    %rbx
jmp    1040 <test_parser_verify_parse@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"jam\00"
@.str.1 = [10 x i8] c" #comment\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [9 x i8] c"#comment\00"
define void @test_jam_comments() {
%1 = call i32 @test_parser_sourcefile(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @test_parser_verify_parse(i32 %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 0)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"jam\00"
@.str.1 = [10 x i8] c" #comment\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [9 x i8] c"#comment\00"
define void @test_jam_comments() {
%1 = tail call i32 @test_parser_sourcefile(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @test_parser_verify_parse(i32 %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 0)
ret void
}
void foo664() {}


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

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

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

LLVM IR (-O2):
define void @foo664() {
ret void
}
/* Variables and functions */
int func1();
int func2();
int func3();
int func4();
int /*<<< orphan*/ printf(char *);
int main(void) {
  if ((1 + 2 + 3 + 4) != (func1() + func2() + func3() + func4())) {
    printf("Arithmetic is fail.\n");
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <func1@plt>
mov    %eax,-0x10(%rbp)
mov    $0x0,%al
call   1070 <func2@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1030 <func3@plt>
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1060 <func4@plt>
mov    -0x8(%rbp),%ecx
add    %eax,%ecx
mov    $0xa,%eax
cmp    %ecx,%eax
je     11bc <main+0x6c>
lea    0xe55(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    11c3 <main+0x73>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
xor    %r14d,%r14d
xor    %eax,%eax
call   1040 <func1@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1070 <func2@plt>
mov    %eax,%ebx
add    %ebp,%ebx
xor    %eax,%eax
call   1030 <func3@plt>
mov    %eax,%ebp
add    %ebx,%ebp
xor    %eax,%eax
call   1060 <func4@plt>
add    %ebp,%eax
cmp    $0xa,%eax
je     1196 <main+0x46>
lea    0xe75(%rip),%rdi
call   1050 <puts@plt>
mov    $0x1,%r14d
mov    %r14d,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
@str = [20 x i8] c"Arithmetic is fail.\00"
define i32 @main() {
%1 = tail call i32 (...) @func1()
%2 = tail call i32 (...) @func2()
%3 = add nsw i32 %2, %1
%4 = tail call i32 (...) @func3()
%5 = add nsw i32 %3, %4
%6 = tail call i32 (...) @func4()
%7 = add nsw i32 %5, %6
%8 = icmp eq i32 %7, 10
br i1 %8, label %11, label %9
9: ; preds = %0
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
br label %11
11: ; preds = %0, %9
%12 = phi i32 [ 1, %9 ], [ 0, %0 ]
ret i32 %12
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, double);
int /*<<< orphan*/ scanf(char *, float *, float *);
int main() {
  float l, h;
  scanf("%f%f", &l, &h);
  printf("%.2f", 0.5 * l * h);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed2(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xeac(%rip),%xmm0
mulsd  %xmm1,%xmm0
movss  -0xc(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
lea    0xea1(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee0(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm1
mulsd  0xeb9(%rip),%xmm1
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  %xmm1,%xmm0
lea    0xeb2(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%f%f\00"
@.str.1 = [5 x i8] c"%.2f\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
store i32 0, i32* %1
%4 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), float* %2, float* %3)
%5 = load float, float* %2
%6 = fpext float %5 to double
%7 = fmul double 5.000000e-01, %6
%8 = load float, float* %3
%9 = fpext float %8 to double
%10 = fmul double %7, %9
%11 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double %10)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%f%f\00"
@.str.1 = [5 x i8] c"%.2f\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = bitcast float* %1 to i8*
%4 = bitcast float* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), float* %1, float* %2)
%6 = load float, float* %1
%7 = fpext float %6 to double
%8 = fmul double %7, 5.000000e-01
%9 = load float, float* %2
%10 = fpext float %9 to double
%11 = fmul double %8, %10
%12 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double %11)
ret i32 0
}
/* Type definitions */
struct TaskQueue {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct TaskQueue *);
int /*<<< orphan*/ taskqueue_exit(struct TaskQueue *);
void taskqueue_free(struct TaskQueue *tq) {
  taskqueue_exit(tq);
  free(tq);
}


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

x86 assembly (clang, -O2):
<taskqueue_free>:
push   %rbx
mov    %rdi,%rbx
call   1040 <taskqueue_exit@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <free@plt>

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

LLVM IR (-O2):
%struct.TaskQueue = type { i32 }
define void @taskqueue_free(%struct.TaskQueue* %0) {
%2 = tail call i32 @taskqueue_exit(%struct.TaskQueue* %0)
%3 = tail call i32 @free(%struct.TaskQueue* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ __merge(int *, int, int);
void __m_sort(int *a, int l, int r) {
  if (l < r) {
    int m = (l + r) / 2;
    __m_sort(a, l, m);
    __m_sort(a, m + 1, r);
    __merge(a, l, r);
  }
}


x86 assembly (clang, -O0):
<__m_sort>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    117f <__m_sort+0x5f>
mov    -0xc(%rbp),%eax
add    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x14(%rbp),%edx
call   1030 <__m_sort@plt>
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%esi
add    $0x1,%esi
mov    -0x10(%rbp),%edx
call   1030 <__m_sort@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1040 <__merge@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__m_sort>:
cmp    %edx,%esi
jge    116e <__m_sort+0x4e>
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %edx,%r14d
mov    %esi,%ebx
mov    %rdi,%r15
lea    (%r14,%rbx,1),%eax
mov    %eax,%ebp
shr    $0x1f,%ebp
add    %eax,%ebp
sar    %ebp
mov    %ebp,%edx
call   1030 <__m_sort@plt>
add    $0x1,%ebp
mov    %r15,%rdi
mov    %ebp,%esi
mov    %r14d,%edx
call   1030 <__m_sort@plt>
mov    %r15,%rdi
mov    %ebx,%esi
mov    %r14d,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <__merge@plt>
ret

LLVM IR (-O0):
define void @__m_sort(i32* %0, i32 %1, i32 %2) {
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32* %0, i32** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%8 = load i32, i32* %5
%9 = load i32, i32* %6
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %27
11: ; preds = %3
%12 = load i32, i32* %5
%13 = load i32, i32* %6
%14 = add nsw i32 %12, %13
%15 = sdiv i32 %14, 2
store i32 %15, i32* %7
%16 = load i32*, i32** %4
%17 = load i32, i32* %5
%18 = load i32, i32* %7
%19 = load i32*, i32** %4
%20 = load i32, i32* %7
%21 = add nsw i32 %20, 1
%22 = load i32, i32* %6
%23 = load i32*, i32** %4
%24 = load i32, i32* %5
%25 = load i32, i32* %6
%26 = call i32 @__merge(i32* %23, i32 %24, i32 %25)
br label %27
27: ; preds = %11, %3
ret void
}

LLVM IR (-O2):
define void @__m_sort(i32* %0, i32 %1, i32 %2) {
%4 = icmp slt i32 %1, %2
br i1 %4, label %6, label %5
5: ; preds = %3, %6
ret void
6: ; preds = %3
%7 = add nsw i32 %2, %1
%8 = sdiv i32 %7, 2
tail call void @__m_sort(i32* %0, i32 %1, i32 %8)
%9 = add nsw i32 %8, 1
tail call void @__m_sort(i32* %0, i32 %9, i32 %2)
%10 = tail call i32 @__merge(i32* %0, i32 %1, i32 %2)
br label %5
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
void err_str(char *program) {
  printf("chmod: invalid mode: '%s'\n", program);
  printf("Try 'chmod --help' for more \n");
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<err_str>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e8d(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<err_str>:
push   %rax
mov    %rdi,%rsi
lea    0xec5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed2(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e8b(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [27 x i8] c"chmod: invalid mode: '%s'\0A\00"
@.str.1 = [30 x i8] c"Try 'chmod --help' for more \0A\00"
@EXIT_FAILURE = global i32 0
define void @err_str(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%6 = load i32, i32* @EXIT_FAILURE
%7 = call i32 @exit(i32 %6)
unreachable
}

LLVM IR (-O2):
@.str = [27 x i8] c"chmod: invalid mode: '%s'\0A\00"
@EXIT_FAILURE = global i32 0
@str = [29 x i8] c"Try 'chmod --help' for more \00"
define void @err_str(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
%4 = load i32, i32* @EXIT_FAILURE
%5 = tail call i32 @exit(i32 %4)
unreachable
}
/* Type definitions */
struct ByteAry {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ ByteAry_add(struct ByteAry *, unsigned char *, int);
void ByteAry_addByte(struct ByteAry *self, unsigned char src) {
  ByteAry_add(self, &src, 1);
}


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

x86 assembly (clang, -O2):
<ByteAry_addByte>:
push   %rax
mov    %sil,0x7(%rsp)
lea    0x7(%rsp),%rsi
mov    $0x1,%edx
call   1030 <ByteAry_add@plt>
pop    %rax
ret

LLVM IR (-O0):
%struct.ByteAry = type { i32 }
define void @ByteAry_addByte(%struct.ByteAry* %0, i8 zeroext %1) {
%3 = alloca %struct.ByteAry*
%4 = alloca i8
store %struct.ByteAry* %0, %struct.ByteAry** %3
store i8 %1, i8* %4
%5 = load %struct.ByteAry*, %struct.ByteAry** %3
%6 = call i32 @ByteAry_add(%struct.ByteAry* %5, i8* %4, i32 1)
ret void
}

LLVM IR (-O2):
%struct.ByteAry = type { i32 }
define void @ByteAry_addByte(%struct.ByteAry* %0, i8 zeroext %1) {
%3 = alloca i8
store i8 %1, i8* %3
%4 = call i32 @ByteAry_add(%struct.ByteAry* %0, i8* %3, i32 1)
ret void
}
void ufshpb_reset_host(struct ufs_hba *hba) {}


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

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

LLVM IR (-O0):
%struct.ufs_hba = type opaque
define void @ufshpb_reset_host(%struct.ufs_hba* %0) {
%2 = alloca %struct.ufs_hba*
store %struct.ufs_hba* %0, %struct.ufs_hba** %2
ret void
}

LLVM IR (-O2):
%struct.ufs_hba = type opaque
define void @ufshpb_reset_host(%struct.ufs_hba* nocapture %0) {
ret void
}