xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int main(int argc, char **argv) {
  int unLo;
  int sp = 1;
  int nextD[3];
  int x;
  while (sp > 0) {
    sp--;
    while (1) {
      if (x + 1 <= 100 || x + 1 > 100) {
        break;
      }
    }
    nextD[0] = 2;
    int y = 27;
  }
  assert(1 == 1);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jle    117b <main+0x6b>
mov    -0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x18(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
cmp    $0x64,%eax
jle    115e <main+0x4e>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
cmp    $0x64,%eax
jle    1163 <main+0x53>
jmp    1168 <main+0x58>
jmp    1140 <main+0x30>
movl   $0x2,-0x24(%rbp)
movl   $0x1b,-0x2c(%rbp)
jmp    112d <main+0x1d>
mov    $0x1,%edi
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca [3 x i32]
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %7
br label %11
11: ; preds = %27, %2
%12 = load i32, i32* %7
%13 = icmp sgt i32 %12, 0
br i1 %13, label %14, label %29
14: ; preds = %11
%15 = load i32, i32* %7
%16 = add nsw i32 %15, -1
store i32 %16, i32* %7
br label %17
17: ; preds = %14, %26
%18 = load i32, i32* %9
%19 = add nsw i32 %18, 1
%20 = icmp sle i32 %19, 100
br i1 %20, label %25, label %21
21: ; preds = %17
%22 = load i32, i32* %9
%23 = add nsw i32 %22, 1
%24 = icmp sgt i32 %23, 100
br i1 %24, label %25, label %26
25: ; preds = %21, %17
br label %27
26: ; preds = %21
br label %17
27: ; preds = %25
%28 = getelementptr inbounds [3 x i32], [3 x i32]* %8, i64 0, i64 0
store i32 2, i32* %28
store i32 27, i32* %10
br label %11
29: ; preds = %11
%30 = call i32 @assert(i32 1)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @assert(i32 1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ write(int, unsigned char *, int);
void wontEcho(int f) {
  unsigned char e[3] = {255, 252, 1};
  write(f, e, 3);
}


x86 assembly (clang, -O0):
<wontEcho>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0xede(%rip),%ax
mov    %ax,-0x7(%rbp)
mov    0xed6(%rip),%al
mov    %al,-0x5(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x7(%rbp),%rsi
mov    $0x3,%edx
call   1030 <write@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wontEcho>:
push   %rax
movb   $0x1,0x6(%rsp)
movw   $0xfcff,0x4(%rsp)
lea    0x4(%rsp),%rsi
mov    $0x3,%edx
call   1030 <write@plt>
pop    %rax
ret

LLVM IR (-O0):
@__const.wontEcho.e = [3 x i8] c"\FF\FC\01"
define void @wontEcho(i32 %0) {
%2 = alloca i32
%3 = alloca [3 x i8]
store i32 %0, i32* %2
%4 = bitcast [3 x i8]* %3 to i8*
%5 = load i32, i32* %2
%6 = getelementptr inbounds [3 x i8], [3 x i8]* %3, i64 0, i64 0
%7 = call i32 @write(i32 %5, i8* %6, i32 3)
ret void
}

LLVM IR (-O2):
@__const.wontEcho.e = [3 x i8] c"\FF\FC\01"
define void @wontEcho(i32 %0) {
%2 = alloca [3 x i8]
%3 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%4 = call i32 @write(i32 %0, i8* %3, i32 3)
ret void
}
void do_fstenv(void *p) {
  asm("fldpi ; fld1; fldln2 ; movl 8(%esp), %eax ; fstenv (%eax)");
}


x86 assembly (clang, -O0):
<do_fstenv>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
fldpi
fld1
fldln2
mov    0x8(%esp),%eax
fstenv (%eax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_fstenv>:
fldpi
fld1
fldln2
mov    0x8(%esp),%eax
fstenv (%eax)
ret

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

LLVM IR (-O2):
define void @do_fstenv(i8* nocapture readnone %0) {
tail call void asm sideeffect "fldpi ; fld1; fldln2 ; movl 8(%esp), %eax ; fstenv (%eax)", "~{dirflag},~{fpsr},~{flags}"()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ paste();
void cmd_paste(const char *pf, char **args) { paste(); }


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

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

LLVM IR (-O0):
define void @cmd_paste(i8* %0, i8** %1) {
%3 = alloca i8*
%4 = alloca i8**
store i8* %0, i8** %3
store i8** %1, i8*** %4
%5 = call i32 (...) @paste()
ret void
}

LLVM IR (-O2):
define void @cmd_paste(i8* nocapture readnone %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @paste()
ret void
}
unsigned int _check_times(unsigned x, unsigned y) {
  unsigned long long whole_ans =
      ((unsigned long long)x) * ((unsigned long long)y);
  unsigned word_ans = (unsigned)whole_ans;
  if (word_ans < whole_ans || word_ans > (1 << 28))
    (_throw_badalloc_fn("/scratch/repos/new/home/jordi_armengol_estape/"
                        "c-scraper/outputs/2022-01-22/02-19-57/repos/FauxFaux/"
                        "cyclone/refs/heads/master/bin/genfiles/flags.c",
                        284));
  return word_ans;
}


x86 assembly (clang, -O0):
<_check_times>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
imul   %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%rax
jb     114d <_check_times+0x3d>
cmpl   $0x10000000,-0x14(%rbp)
jbe    1160 <_check_times+0x50>
lea    0xeac(%rip),%rdi
mov    $0x11c,%esi
mov    $0x0,%al
call   1030 <_throw_badalloc_fn@plt>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_check_times>:
push   %rbx
mov    %edi,%eax
mul    %esi
mov    %eax,%ebx
jo     1121 <_check_times+0x11>
cmp    $0x10000001,%ebx
jb     1134 <_check_times+0x24>
lea    0xed8(%rip),%rdi
mov    $0x11c,%esi
xor    %eax,%eax
call   1030 <_throw_badalloc_fn@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/FauxFaux/cyclone/refs/heads/master/bin/genfiles/flags.c\00"
define i32 @_check_times(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i64
%6 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%7 = load i32, i32* %3
%8 = zext i32 %7 to i64
%9 = load i32, i32* %4
%10 = zext i32 %9 to i64
%11 = mul i64 %8, %10
store i64 %11, i64* %5
%12 = load i64, i64* %5
%13 = trunc i64 %12 to i32
store i32 %13, i32* %6
%14 = load i32, i32* %6
%15 = zext i32 %14 to i64
%16 = load i64, i64* %5
%17 = icmp ult i64 %15, %16
br i1 %17, label %21, label %18
18: ; preds = %2
%19 = load i32, i32* %6
%20 = icmp ugt i32 %19, 268435456
br i1 %20, label %21, label %23
21: ; preds = %18, %2
%22 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @_throw_badalloc_fn to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str, i64 0, i64 0), i32 284)
br label %23
23: ; preds = %21, %18
%24 = load i32, i32* %6
ret i32 %24
}

LLVM IR (-O2):
@.str = [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/FauxFaux/cyclone/refs/heads/master/bin/genfiles/flags.c\00"
define i32 @_check_times(i32 %0, i32 %1) {
%3 = tail call { i32, i1 } @llvm.umul.with.overflow.i32(i32 %0, i32 %1)
%4 = extractvalue { i32, i1 } %3, 0
%5 = extractvalue { i32, i1 } %3, 1
%6 = icmp ugt i32 %4, 268435456
%7 = or i1 %5, %6
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @_throw_badalloc_fn to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str, i64 0, i64 0), i32 284)
br label %10
10: ; preds = %2, %8
ret i32 %4
}
int u_cl(const float x) { return (int)x + (x > (int)x); }


x86 assembly (clang, -O0):
<u_cl>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
cvttss2si -0x4(%rbp),%eax
movss  -0x4(%rbp),%xmm0
cvttss2si -0x4(%rbp),%ecx
cvtsi2ss %ecx,%xmm1
ucomiss %xmm1,%xmm0
seta   %cl
and    $0x1,%cl
movzbl %cl,%ecx
add    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<u_cl>:
cvttss2si %xmm0,%ecx
cvttps2dq %xmm0,%xmm1
cvtdq2ps %xmm1,%xmm1
xor    %eax,%eax
ucomiss %xmm1,%xmm0
seta   %al
add    %ecx,%eax
ret

LLVM IR (-O0):
define i32 @u_cl(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fptosi float %3 to i32
%5 = load float, float* %2
%6 = load float, float* %2
%7 = fptosi float %6 to i32
%8 = sitofp i32 %7 to float
%9 = fcmp ogt float %5, %8
%10 = zext i1 %9 to i32
%11 = add nsw i32 %4, %10
ret i32 %11
}

LLVM IR (-O2):
define i32 @u_cl(float %0) {
%2 = fptosi float %0 to i32
%3 = sitofp i32 %2 to float
%4 = fcmp olt float %3, %0
%5 = zext i1 %4 to i32
%6 = add nsw i32 %5, %2
ret i32 %6
}
short test_64_2(short *mem) { return __atomic_fetch_nand(mem + 0, 1, 4); }


x86 assembly (clang, -O0):
<test_64_2>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
movw   $0x1,-0xa(%rbp)
mov    -0xa(%rbp),%cx
mov    %cx,-0x10(%rbp)
mov    (%rax),%ax
mov    %ax,-0xe(%rbp)
mov    -0xe(%rbp),%ax
mov    -0x18(%rbp),%rcx
mov    -0x10(%rbp),%dx
mov    %dx,%si
mov    %ax,%dx
mov    %edx,-0x28(%rbp)
and    %esi,%edx
mov    %edx,-0x24(%rbp)
not    %edx
mov    %edx,-0x20(%rbp)
lock cmpxchg %dx,(%rcx)
sete   %cl
mov    %ax,-0x1a(%rbp)
test   $0x1,%cl
mov    %ax,-0xe(%rbp)
jne    1162 <test_64_2+0x62>
jmp    1125 <test_64_2+0x25>
mov    -0x1a(%rbp),%ax
mov    %ax,-0xc(%rbp)
movswl -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_64_2>:
movzwl (%rdi),%eax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %eax,%ecx
not    %ecx
or     $0xfffe,%ecx
lock cmpxchg %cx,(%rdi)
jne    1110 <test_64_2+0x10>
ret

LLVM IR (-O0):
define signext i16 @test_64_2(i16* %0) {
%2 = alloca i16*
%3 = alloca i16
%4 = alloca i16
store i16* %0, i16** %2
%5 = load i16*, i16** %2
%6 = getelementptr inbounds i16, i16* %5, i64 0
store i16 1, i16* %3
%7 = load i16, i16* %3
%8 = atomicrmw nand i16* %6, i16 %7 acq_rel
store i16 %8, i16* %4
%9 = load i16, i16* %4
ret i16 %9
}

LLVM IR (-O2):
define signext i16 @test_64_2(i16* nocapture %0) {
%2 = atomicrmw nand i16* %0, i16 1 acq_rel
ret i16 %2
}
double dtax(long dax, long day, long drx, long dry) {
  double r = (double)(dax + day) / (drx + dry);
  return ({
    typeof(r) _min1 = (r);
    typeof(1.0) _min2 = (1.0);
    (void)(&_min1 == &_min2);
    _min1 < _min2 ? _min1 : _min2;
  });
}


x86 assembly (clang, -O0):
<dtax>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rax
add    -0x10(%rbp),%rax
cvtsi2sd %rax,%xmm0
mov    -0x18(%rbp),%rax
add    -0x20(%rbp),%rax
cvtsi2sd %rax,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xeb7(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x30(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1171 <dtax+0x71>
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
jmp    117b <dtax+0x7b>
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<dtax>:
add    %rsi,%rdi
cvtsi2sd %rdi,%xmm0
add    %rcx,%rdx
cvtsi2sd %rdx,%xmm1
divsd  %xmm1,%xmm0
minsd  0xee4(%rip),%xmm0
ret

LLVM IR (-O0):
define double @dtax(i64 %0, i64 %1, i64 %2, i64 %3) {
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
store i64 %0, i64* %5
store i64 %1, i64* %6
store i64 %2, i64* %7
store i64 %3, i64* %8
%13 = load i64, i64* %5
%14 = load i64, i64* %6
%15 = add nsw i64 %13, %14
%16 = sitofp i64 %15 to double
%17 = load i64, i64* %7
%18 = load i64, i64* %8
%19 = add nsw i64 %17, %18
%20 = sitofp i64 %19 to double
%21 = fdiv double %16, %20
store double %21, double* %9
%22 = load double, double* %9
store double %22, double* %10
store double 1.000000e+00, double* %11
%23 = icmp eq double* %10, %11
%24 = zext i1 %23 to i32
%25 = load double, double* %10
%26 = load double, double* %11
%27 = fcmp olt double %25, %26
br i1 %27, label %28, label %30
28: ; preds = %4
%29 = load double, double* %10
br label %32
30: ; preds = %4
%31 = load double, double* %11
br label %32
32: ; preds = %30, %28
%33 = phi double [ %29, %28 ], [ %31, %30 ]
store double %33, double* %12
%34 = load double, double* %12
ret double %34
}

LLVM IR (-O2):
define double @dtax(i64 %0, i64 %1, i64 %2, i64 %3) {
%5 = add nsw i64 %1, %0
%6 = sitofp i64 %5 to double
%7 = add nsw i64 %3, %2
%8 = sitofp i64 %7 to double
%9 = fdiv double %6, %8
%10 = fcmp olt double %9, 1.000000e+00
%11 = select i1 %10, double %9, double 1.000000e+00
ret double %11
}
int test_imm_5Euint64_midword_mem(unsigned long long *val) {
  return ((*val >> 16) & (0x5E << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_5Euint64_midword_mem>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rdx
shr    $0x10,%rdx
and    $0x5e,%rdx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @test_imm_5Euint64_midword_mem(i64* %0) {
%2 = alloca i64*
store i64* %0, i64** %2
%3 = load i64*, i64** %2
%4 = load i64, i64* %3
%5 = lshr i64 %4, 16
%6 = and i64 %5, 94
%7 = icmp ne i64 %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_5Euint64_midword_mem(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = and i64 %2, 6160384
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
int Somma(int n) {
  int somma = 0;
  while (--n > 0)
    somma += n;
  return somma;
}


x86 assembly (clang, -O0):
<Somma>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
cmp    $0x0,%eax
jle    112e <Somma+0x2e>
mov    -0x4(%rbp),%eax
add    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
jmp    110e <Somma+0xe>
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<Somma>:
test   %edi,%edi
mov    $0x1,%ecx
cmovle %edi,%ecx
lea    -0x1(%rdi),%eax
sub    %ecx,%edi
mov    %eax,%edx
sub    %ecx,%edx
imul   %edi,%eax
imul   %rdx,%rdi
shr    %rdi
sub    %edi,%eax
ret

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

LLVM IR (-O2):
define i32 @Somma(i32 %0) {
%2 = call i32 @llvm.smin.i32(i32 %0, i32 1)
%3 = sub i32 %0, %2
%4 = add i32 %0, -1
%5 = sub i32 %4, %2
%6 = zext i32 %5 to i33
%7 = zext i32 %3 to i33
%8 = mul i33 %6, %7
%9 = lshr i33 %8, 1
%10 = trunc i33 %9 to i32
%11 = mul i32 %3, %4
%12 = sub i32 %11, %10
ret i32 %12
}
/* Variables and functions */
scalar_t__ strcmp(char const *, char *);
int is_defined(const char *value) { return strcmp(value, "(none)") != 0; }


x86 assembly (clang, -O0):
<is_defined>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
setne  %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_defined>:
push   %rax
lea    0xee8(%rip),%rsi
call   1030 <strcmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
setne  %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"(none)\00"
define i32 @is_defined(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%5 = icmp ne i64 %4, 0
%6 = zext i1 %5 to i32
ret i32 %6
}

LLVM IR (-O2):
@.str = [7 x i8] c"(none)\00"
define i32 @is_defined(i8* %0) {
%2 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%3 = icmp ne i64 %2, 0
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Type definitions */
struct rte_page {
  int dummy;
};

/* Variables and functions */
struct rte_page *compound_head(struct rte_page *);
struct rte_page *rte_virt_to_page(void *);
struct rte_page *rte_virt_to_head_page(void *ptr) {
  struct rte_page *page = rte_virt_to_page(ptr);
  return compound_head(page);
}


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

x86 assembly (clang, -O2):
<rte_virt_to_head_page>:
push   %rax
call   1030 <rte_virt_to_page@plt>
mov    %rax,%rdi
pop    %rax
jmp    1040 <compound_head@plt>

LLVM IR (-O0):
%struct.rte_page = type { i32 }
define %struct.rte_page* @rte_virt_to_head_page(i8* %0) {
%2 = alloca i8*
%3 = alloca %struct.rte_page*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call %struct.rte_page* @rte_virt_to_page(i8* %4)
store %struct.rte_page* %5, %struct.rte_page** %3
%6 = load %struct.rte_page*, %struct.rte_page** %3
%7 = call %struct.rte_page* @compound_head(%struct.rte_page* %6)
ret %struct.rte_page* %7
}

LLVM IR (-O2):
%struct.rte_page = type { i32 }
define %struct.rte_page* @rte_virt_to_head_page(i8* %0) {
%2 = tail call %struct.rte_page* @rte_virt_to_page(i8* %0)
%3 = tail call %struct.rte_page* @compound_head(%struct.rte_page* %2)
ret %struct.rte_page* %3
}
int mmnozenie(int liczba1, int liczba2) { return liczba1 * liczba2; }


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

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

LLVM IR (-O0):
define i32 @mmnozenie(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 = mul nsw i32 %5, %6
ret i32 %7
}

LLVM IR (-O2):
define i32 @mmnozenie(i32 %0, i32 %1) {
%3 = mul nsw i32 %1, %0
ret i32 %3
}
int abs(int i) { return (i & ((1UL << 31) - 1)); }


x86 assembly (clang, -O0):
<abs>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movslq -0x4(%rbp),%rax
and    $0x7fffffff,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<abs>:
mov    %edi,%eax
and    $0x7fffffff,%eax
ret

LLVM IR (-O0):
define i32 @abs(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = sext i32 %3 to i64
%5 = and i64 %4, 2147483647
%6 = trunc i64 %5 to i32
ret i32 %6
}

LLVM IR (-O2):
define i32 @abs(i32 %0) {
%2 = and i32 %0, 2147483647
ret i32 %2
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
char *null_array_UINT32(uint32_t *arr) {
  if (arr == NULL) {
    return "null";
  } else {
    return "non_null";
  }
}


x86 assembly (clang, -O0):
<null_array_UINT32>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1123 <null_array_UINT32+0x23>
lea    0xeea(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    112e <null_array_UINT32+0x2e>
lea    0xed6(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<null_array_UINT32>:
test   %rdi,%rdi
lea    0xefa(%rip),%rcx
lea    0xeef(%rip),%rax
cmove  %rcx,%rax
ret

LLVM IR (-O0):
@.str = [5 x i8] c"null\00"
@.str.1 = [9 x i8] c"non_null\00"
define i8* @null_array_UINT32(i32* %0) {
%2 = alloca i8*
%3 = alloca i32*
store i32* %0, i32** %3
%4 = load i32*, i32** %3
%5 = icmp eq i32* %4, null
br i1 %5, label %6, label %7
6: ; preds = %1
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %2
br label %8
7: ; preds = %1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %8
8: ; preds = %7, %6
%9 = load i8*, i8** %2
ret i8* %9
}

LLVM IR (-O2):
@.str = [5 x i8] c"null\00"
@.str.1 = [9 x i8] c"non_null\00"
define i8* @null_array_UINT32(i32* readnone %0) {
%2 = icmp eq i32* %0, null
%3 = select i1 %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0)
ret i8* %3
}
/* Type definitions */
typedef int int64_t;

/* Variables and functions */
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char const *, int, int);
int /*<<< orphan*/ stdout;
void progress(const char *stage, int64_t num_root_cells, int64_t sfc) {
  if (sfc % 1000 == 0) {
    printf("%s, sfc = %ld (%ld)\r", stage, sfc, num_root_cells);
    fflush(stdout);
  }
}


x86 assembly (clang, -O0):
<progress>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    $0x3e8,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    116a <progress+0x4a>
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%edx
mov    -0xc(%rbp),%ecx
lea    0xea9(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e7d(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<progress>:
imul   $0x26e978d5,%edx,%eax
add    $0x10624d8,%eax
ror    $0x3,%eax
cmp    $0x418936,%eax
jbe    1136 <progress+0x16>
ret
push   %rax
mov    %esi,%ecx
mov    %rdi,%rsi
lea    0xebd(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e91(%rip),%rax
mov    (%rax),%edi
pop    %rax
jmp    1040 <fflush@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"%s, sfc = %ld (%ld)\0D\00"
@stdout = global i32 0
define void @progress(i8* %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* %6
%8 = srem i32 %7, 1000
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %17
10: ; preds = %3
%11 = load i8*, i8** %4
%12 = load i32, i32* %6
%13 = load i32, i32* %5
%14 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %11, i32 %12, i32 %13)
%15 = load i32, i32* @stdout
%16 = call i32 @fflush(i32 %15)
br label %17
17: ; preds = %10, %3
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c"%s, sfc = %ld (%ld)\0D\00"
@stdout = global i32 0
define void @progress(i8* %0, i32 %1, i32 %2) {
%4 = srem i32 %2, 1000
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %3
%7 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %0, i32 %2, i32 %1)
%8 = load i32, i32* @stdout
%9 = tail call i32 @fflush(i32 %8)
br label %10
10: ; preds = %6, %3
ret void
}
/* Variables and functions */
int /*<<< orphan*/ clear_io_bit(int, int);
void TOSH_CLR_CC_RSTN_PIN() { clear_io_bit(-4, 5); }


x86 assembly (clang, -O0):
<TOSH_CLR_CC_RSTN_PIN>:
push   %rbp
mov    %rsp,%rbp
mov    $0xfffffffc,%edi
mov    $0x5,%esi
call   1030 <clear_io_bit@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<TOSH_CLR_CC_RSTN_PIN>:
mov    $0xfffffffc,%edi
mov    $0x5,%esi
jmp    1030 <clear_io_bit@plt>

LLVM IR (-O0):
define void @TOSH_CLR_CC_RSTN_PIN() {
%1 = call i32 @clear_io_bit(i32 -4, i32 5)
ret void
}

LLVM IR (-O2):
define void @TOSH_CLR_CC_RSTN_PIN() {
%1 = tail call i32 @clear_io_bit(i32 -4, i32 5)
ret void
}
int regcomp() {}


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

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

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

LLVM IR (-O2):
define i32 @regcomp() {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ T3D_OutputMessage(char *);
void T3D_PrintBanner(void) {
  T3D_OutputMessage(
      "\nmanip2d  Copyright (C) 2014-2015 Dave Gorst\n"
      "===========================================\n\n"
      "This program comes with ABSOLUTELY NO WARRANTY.\n"
      "This is free software, and you are welcome to redistribute it\n"
      "under certain conditions.\n\n");
}


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

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

LLVM IR (-O0):
@.str = [228 x i8] c"\0Amanip2d Copyright (C) 2014-2015 Dave Gorst\0A===========================================\0A\0AThis program comes with ABSOLUTELY NO WARRANTY.\0AThis is free software, and you are welcome to redistribute it\0Aunder certain conditions.\0A\0A\00"
define void @T3D_PrintBanner() {
%1 = call i32 @T3D_OutputMessage(i8* getelementptr inbounds ([228 x i8], [228 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [228 x i8] c"\0Amanip2d Copyright (C) 2014-2015 Dave Gorst\0A===========================================\0A\0AThis program comes with ABSOLUTELY NO WARRANTY.\0AThis is free software, and you are welcome to redistribute it\0Aunder certain conditions.\0A\0A\00"
define void @T3D_PrintBanner() {
%1 = tail call i32 @T3D_OutputMessage(i8* getelementptr inbounds ([228 x i8], [228 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fail(char *, char *);
void expected(char *s) { fail("%s Expected", s); }


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

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

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

LLVM IR (-O2):
@.str = [12 x i8] c"%s Expected\00"
define void @expected(i8* %0) {
%2 = tail call i32 @fail(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
/* Type definitions */
struct dentry {
  int dummy;
};

/* Variables and functions */
struct dentry *au_h_dptr_i(struct dentry *, int /*<<< orphan*/);
int /*<<< orphan*/ dbstart(struct dentry *);
struct dentry *au_h_dptr(struct dentry *dentry) {
  return au_h_dptr_i(dentry, dbstart(dentry));
}


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

x86 assembly (clang, -O2):
<au_h_dptr>:
push   %rbx
mov    %rdi,%rbx
call   1040 <dbstart@plt>
mov    %rbx,%rdi
mov    %eax,%esi
pop    %rbx
jmp    1030 <au_h_dptr_i@plt>

LLVM IR (-O0):
%struct.dentry = type { i32 }
define %struct.dentry* @au_h_dptr(%struct.dentry* %0) {
%2 = alloca %struct.dentry*
store %struct.dentry* %0, %struct.dentry** %2
%3 = load %struct.dentry*, %struct.dentry** %2
%4 = load %struct.dentry*, %struct.dentry** %2
%5 = call i32 @dbstart(%struct.dentry* %4)
%6 = call %struct.dentry* @au_h_dptr_i(%struct.dentry* %3, i32 %5)
ret %struct.dentry* %6
}

LLVM IR (-O2):
%struct.dentry = type { i32 }
define %struct.dentry* @au_h_dptr(%struct.dentry* %0) {
%2 = tail call i32 @dbstart(%struct.dentry* %0)
%3 = tail call %struct.dentry* @au_h_dptr_i(%struct.dentry* %0, i32 %2)
ret %struct.dentry* %3
}
unsigned __attribute__((visibility("default")))
obstcp_server_frame_payload_sz(const struct obstcp_server_ctx *ctx) {
  return 65535;
}


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

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

LLVM IR (-O0):
%struct.obstcp_server_ctx = type opaque
define i32 @obstcp_server_frame_payload_sz(%struct.obstcp_server_ctx* %0) {
%2 = alloca %struct.obstcp_server_ctx*
store %struct.obstcp_server_ctx* %0, %struct.obstcp_server_ctx** %2
ret i32 65535
}

LLVM IR (-O2):
%struct.obstcp_server_ctx = type opaque
define i32 @obstcp_server_frame_payload_sz(%struct.obstcp_server_ctx* nocapture readnone %0) {
ret i32 65535
}
void gtk_text_buffer_get_modified() {}


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

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

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

LLVM IR (-O2):
define void @gtk_text_buffer_get_modified() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ glad_glPopDebugGroup();
void glPopDebugGroup() { glad_glPopDebugGroup(); }


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *);
int make_ending_of_dump_file(FILE *dump_file) {
  fprintf(dump_file, "</body>\n</html>");
  return 0;
}


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

x86 assembly (clang, -O2):
<make_ending_of_dump_file>:
push   %rax
mov    %rdi,%rcx
lea    0xee5(%rip),%rdi
mov    $0xf,%esi
mov    $0x1,%edx
call   1030 <fwrite@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [16 x i8] c"</body>\0A</html>\00"
define i32 @make_ending_of_dump_file(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @fprintf(i32* %3, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [16 x i8] c"</body>\0A</html>\00"
define i32 @make_ending_of_dump_file(i32* nocapture %0) {
%2 = tail call i64 @fwrite(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i64 15, i64 1, i32* %0)
ret i32 0
}
void foo497(int p) {}


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

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

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

LLVM IR (-O2):
define void @foo497(i32 %0) {
ret void
}
void glmGenerateReverseVector2f(float result[2], const float v[2]) {
  result[0] = -v[0];
  result[1] = -v[1];
}


x86 assembly (clang, -O0):
<glmGenerateReverseVector2f>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movss  0x4(%rax),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0x4(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<glmGenerateReverseVector2f>:
movss  (%rsi),%xmm0
movaps 0xef5(%rip),%xmm1
xorps  %xmm1,%xmm0
movss  %xmm0,(%rdi)
movss  0x4(%rsi),%xmm0
xorps  %xmm1,%xmm0
movss  %xmm0,0x4(%rdi)
ret

LLVM IR (-O0):
define void @glmGenerateReverseVector2f(float* %0, float* %1) {
%3 = alloca float*
%4 = alloca float*
store float* %0, float** %3
store float* %1, float** %4
%5 = load float*, float** %4
%6 = getelementptr inbounds float, float* %5, i64 0
%7 = load float, float* %6
%8 = fneg float %7
%9 = load float*, float** %3
%10 = getelementptr inbounds float, float* %9, i64 0
store float %8, float* %10
%11 = load float*, float** %4
%12 = getelementptr inbounds float, float* %11, i64 1
%13 = load float, float* %12
%14 = fneg float %13
%15 = load float*, float** %3
%16 = getelementptr inbounds float, float* %15, i64 1
store float %14, float* %16
ret void
}

LLVM IR (-O2):
define void @glmGenerateReverseVector2f(float* nocapture writeonly %0, float* nocapture %1) {
%3 = load float, float* %1
%4 = fneg float %3
store float %4, float* %0
%5 = getelementptr inbounds float, float* %1, i64 1
%6 = load float, float* %5
%7 = fneg float %6
%8 = getelementptr inbounds float, float* %0, i64 1
store float %7, float* %8
ret void
}
void av_timecode_adjust_ntsc_framenum2() {}


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

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

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

LLVM IR (-O2):
define void @av_timecode_adjust_ntsc_framenum2() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
scalar_t__ fread(int *, int, int, int /*<<< orphan*/ *);
int readnoOfBit(FILE *comprezFile) {
  int noOfBit = 0;
  if (fread(&noOfBit, sizeof(int), 1, comprezFile) != 0)
    return noOfBit;
  else
    return -1;
}


x86 assembly (clang, -O0):
<readnoOfBit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%rcx
lea    -0x14(%rbp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
call   1030 <fread@plt>
cmp    $0x0,%rax
je     114f <readnoOfBit+0x3f>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1156 <readnoOfBit+0x46>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<readnoOfBit>:
push   %rax
mov    %rdi,%rcx
movl   $0x0,0x4(%rsp)
lea    0x4(%rsp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
call   1030 <fread@plt>
cmp    $0x1,%rax
sbb    %eax,%eax
or     0x4(%rsp),%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @readnoOfBit(i32* nocapture %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%4 = call i64 @fread(i32* %2, i32 4, i32 1, i32* %0)
%5 = icmp eq i64 %4, 0
%6 = load i32, i32* %2
%7 = select i1 %5, i32 -1, i32 %6
ret i32 %7
}
__size(strg) char *strg;
{
  int i;
  i = 1;
  while (*strg++)
    i++;
  return (i);
}


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

x86 assembly (clang, -O2):
<__size>:
cmpb   $0x0,(%rdi)
je     111b <__size+0x1b>
mov    $0x1,%eax
nopw   0x0(%rax,%rax,1)
cmpb   $0x0,(%rdi,%rax,1)
lea    0x1(%rax),%rax
jne    1110 <__size+0x10>
ret
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @__size(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %11, label %4
4: ; preds = %1, %4
%5 = phi i32 [ %8, %4 ], [ 1, %1 ]
%6 = phi i8* [ %7, %4 ], [ %0, %1 ]
%7 = getelementptr inbounds i8, i8* %6, i64 1
%8 = add nuw nsw i32 %5, 1
%9 = load i8, i8* %7
%10 = icmp eq i8 %9, 0
br i1 %10, label %11, label %4
11: ; preds = %4, %1
%12 = phi i32 [ 1, %1 ], [ %8, %4 ]
ret i32 %12
}
/* Variables and functions */
int /*<<< orphan*/ divisores(int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int num = 0;
  scanf("%d", &num);
  divisores(num);
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
movl   $0x0,0x4(%rsp)
lea    0xed0(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%edi
call   1030 <divisores@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = call i32 @divisores(i32 %4)
ret i32 0
}
__attribute__((no, noclone)) signed __int128 t124_3mul(signed __int128 y) {
  signed __int128 r;
  if (__builtin_mul_overflow((signed __int128)(1), y, &r))
    bar();
  return r;
}


x86 assembly (clang, -O0):
<t124_3mul>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x20(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x18(%rbp),%rcx
mov    %rcx,-0x28(%rbp)
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rcx
mov    -0x28(%rbp),%rdi
mov    %rdi,-0x48(%rbp)
sar    $0x3f,%rdi
mov    $0x1,%edx
mov    %rdi,%rax
imul   %rdx
mov    %rdx,%rsi
mov    -0x48(%rbp),%rdx
xor    %rdi,%rsi
xor    %rdi,%rax
or     %rsi,%rax
setne  %al
mov    %rdx,-0x38(%rbp)
mov    %rcx,-0x40(%rbp)
test   $0x1,%al
jne    1173 <t124_3mul+0x63>
jmp    117a <t124_3mul+0x6a>
mov    $0x0,%al
call   1030 <bar@plt>
mov    -0x40(%rbp),%rax
mov    -0x38(%rbp),%rcx
mov    %rcx,-0x8(%rbp)
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%rdx
add    $0x50,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define { i64, i64 } @t124_3mul(i64 %0, i64 %1) {
%3 = alloca i128
%4 = alloca i128
%5 = alloca i128
%6 = alloca i128
%7 = bitcast i128* %4 to { i64, i64 }*
%8 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %7, i32 0, i32 0
store i64 %0, i64* %8
%9 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %7, i32 0, i32 1
store i64 %1, i64* %9
%10 = load i128, i128* %4
store i128 %10, i128* %5
%11 = load i128, i128* %5
%12 = call { i128, i1 } @llvm.smul.with.overflow.i128(i128 1, i128 %11)
%13 = extractvalue { i128, i1 } %12, 1
%14 = extractvalue { i128, i1 } %12, 0
store i128 %14, i128* %6
br i1 %13, label %15, label %17
15: ; preds = %2
%16 = call i32 (...) @bar()
br label %17
17: ; preds = %15, %2
%18 = load i128, i128* %6
store i128 %18, i128* %3
%19 = bitcast i128* %3 to { i64, i64 }*
%20 = load { i64, i64 }, { i64, i64 }* %19
ret { i64, i64 } %20
}

LLVM IR (-O2):
define { i64, i64 } @t124_3mul(i64 %0, i64 %1) {
%3 = insertvalue { i64, i64 } poison, i64 %0, 0
%4 = insertvalue { i64, i64 } %3, i64 %1, 1
ret { i64, i64 } %4
}
/* Variables and functions */
int obj1func2(int);
int obj1func1(int a) { return 42 + obj1func2(a); }


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

x86 assembly (clang, -O2):
<obj1func1>:
push   %rax
call   1030 <obj1func2@plt>
add    $0x2a,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @obj1func1(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @obj1func2(i32 %3)
%5 = add nsw i32 42, %4
ret i32 %5
}

LLVM IR (-O2):
define i32 @obj1func1(i32 %0) {
%2 = tail call i32 @obj1func2(i32 %0)
%3 = add nsw i32 %2, 42
ret i32 %3
}
/* Variables and functions */
int gob_end_slice(char *buf, size_t buf_size) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @gob_end_slice(i8* nocapture readnone %0, i64 %1) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ execl(char *, char *);
int /*<<< orphan*/ printf(char *);
int system(char *);
int main() {
  int r = system("ls -al .");
  if (r == 0) {
    printf("exec success!\n");
  }
  printf("==============================\n");
  execl("/bin/ls", "-al");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
call   1030 <system@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    1164 <main+0x34>
lea    0xeaa(%rip),%rdi
call   1040 <printf@plt>
lea    0xead(%rip),%rdi
call   1040 <printf@plt>
lea    0xec1(%rip),%rdi
lea    0xec2(%rip),%rsi
call   1050 <execl@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <system@plt>
test   %eax,%eax
jne    114d <main+0x1d>
lea    0xeec(%rip),%rdi
call   1030 <puts@plt>
lea    0xec1(%rip),%rdi
call   1030 <puts@plt>
lea    0xea9(%rip),%rdi
lea    0xeaa(%rip),%rsi
call   1050 <execl@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [9 x i8] c"ls -al .\00"
@.str.1 = [15 x i8] c"exec success!\0A\00"
@.str.2 = [32 x i8] c"==============================\0A\00"
@.str.3 = [8 x i8] c"/bin/ls\00"
@.str.4 = [4 x i8] c"-al\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @system(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
store i32 %3, i32* %2
%4 = load i32, i32* %2
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %8
8: ; preds = %6, %0
%9 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @execl(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"ls -al .\00"
@.str.3 = [8 x i8] c"/bin/ls\00"
@.str.4 = [4 x i8] c"-al\00"
@str = [31 x i8] c"==============================\00"
@str.5 = [14 x i8] c"exec success!\00"
define i32 @main() {
%1 = tail call i32 @system(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%2 = icmp eq i32 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.5, i64 0, i64 0))
br label %5
5: ; preds = %3, %0
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str, i64 0, i64 0))
%7 = tail call i32 @execl(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
ret i32 0
}
void gtk_file_chooser_get_filter() {}


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

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

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

LLVM IR (-O2):
define void @gtk_file_chooser_get_filter() {
ret void
}
int recomended_total_number(int total_in_first_angle) {
  int N = total_in_first_angle;
  return N * N * (N / 2);
}


x86 assembly (clang, -O0):
<recomended_total_number>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
imul   -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
imul   %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<recomended_total_number>:
mov    %edi,%eax
shr    $0x1f,%eax
add    %edi,%eax
imul   %edi,%edi
sar    %eax
imul   %edi,%eax
ret

LLVM IR (-O0):
define i32 @recomended_total_number(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
store i32 %4, i32* %3
%5 = load i32, i32* %3
%6 = load i32, i32* %3
%7 = mul nsw i32 %5, %6
%8 = load i32, i32* %3
%9 = sdiv i32 %8, 2
%10 = mul nsw i32 %7, %9
ret i32 %10
}

LLVM IR (-O2):
define i32 @recomended_total_number(i32 %0) {
%2 = mul nsw i32 %0, %0
%3 = sdiv i32 %0, 2
%4 = mul nsw i32 %2, %3
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
void write_core_wrapper(FILE *file, int fmt) {
  (void)fmt;
  (void)file;
}


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

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

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

LLVM IR (-O2):
define void @write_core_wrapper(i32* nocapture %0, i32 %1) {
ret void
}
long djb2(char *str) {
  long hash = 5381;
  int c;
  while ((c = *str++))
    hash = ((hash << 5) + hash) + c;
  return hash;
}


x86 assembly (clang, -O0):
<djb2>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movq   $0x1505,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movsbl (%rax),%eax
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
je     114a <djb2+0x4a>
mov    -0x10(%rbp),%rax
shl    $0x5,%rax
add    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
jmp    1110 <djb2+0x10>
mov    -0x10(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<djb2>:
mov    (%rdi),%cl
test   %cl,%cl
je     112d <djb2+0x2d>
add    $0x1,%rdi
mov    $0x1505,%eax
nop
mov    %rax,%rdx
shl    $0x5,%rdx
add    %rax,%rdx
movsbq %cl,%rax
add    %rdx,%rax
movzbl (%rdi),%ecx
add    $0x1,%rdi
test   %cl,%cl
jne    1110 <djb2+0x10>
ret
mov    $0x1505,%eax
ret

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

LLVM IR (-O2):
define i64 @djb2(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %14, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %12, %4 ], [ %2, %1 ]
%6 = phi i8* [ %8, %4 ], [ %0, %1 ]
%7 = phi i64 [ %11, %4 ], [ 5381, %1 ]
%8 = getelementptr inbounds i8, i8* %6, i64 1
%9 = mul i64 %7, 33
%10 = sext i8 %5 to i64
%11 = add nsw i64 %9, %10
%12 = load i8, i8* %8
%13 = icmp eq i8 %12, 0
br i1 %13, label %14, label %4
14: ; preds = %4, %1
%15 = phi i64 [ 5381, %1 ], [ %11, %4 ]
ret i64 %15
}