xunge/DecIR huggingface dataset:
/* Variables and functions */
float fabs(float);
int MathFloatEqual(float a, float b) { return fabs(a - b) < 0.00001f; }


x86 assembly (clang, -O0):
<MathFloatEqual>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
subss  -0x8(%rbp),%xmm0
call   1030 <fabs@plt>
movaps %xmm0,%xmm1
movss  0xec4(%rip),%xmm0
ucomiss %xmm1,%xmm0
seta   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MathFloatEqual>:
subss  %xmm1,%xmm0
andps  0xef5(%rip),%xmm0
movss  0xefd(%rip),%xmm1
xor    %eax,%eax
ucomiss %xmm0,%xmm1
seta   %al
ret

LLVM IR (-O0):
define i32 @MathFloatEqual(float %0, float %1) {
%3 = alloca float
%4 = alloca float
store float %0, float* %3
store float %1, float* %4
%5 = load float, float* %3
%6 = load float, float* %4
%7 = fsub float %5, %6
%8 = call float @fabs(float %7)
%9 = fcmp olt float %8, 0x3EE4F8B580000000
%10 = zext i1 %9 to i32
ret i32 %10
}

LLVM IR (-O2):
define i32 @MathFloatEqual(float %0, float %1) {
%3 = fsub float %0, %1
%4 = tail call float @llvm.fabs.f32(float %3)
%5 = fcmp olt float %4, 0x3EE4F8B580000000
%6 = zext i1 %5 to i32
ret i32 %6
}
/* Variables and functions */
bool nrf52_errata_68(void) { return false; }


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

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

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

LLVM IR (-O2):
define i32 @nrf52_errata_68() {
ret i32 0
}
int big_calc2(int i, int *array) { return i; }


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

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

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

LLVM IR (-O2):
define i32 @big_calc2(i32 returned %0, i32* nocapture readnone %1) {
ret i32 %0
}
/* Variables and functions */
double RAND_MAX;
scalar_t__ rand_r(unsigned int *);
int tryHit(unsigned int *seed) {
  double x = ((double)rand_r(seed)) / RAND_MAX;
  double y = ((double)rand_r(seed)) / RAND_MAX;
  return x * x + y * y <= 1.0;
}


x86 assembly (clang, -O0):
<tryHit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <rand_r@plt>
cvtsi2sd %rax,%xmm0
mov    0x2eb7(%rip),%rax
divsd  (%rax),%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <rand_r@plt>
cvtsi2sd %rax,%xmm0
mov    0x2e99(%rip),%rax
divsd  (%rax),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm2
movsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xe84(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
and    $0x1,%al
movzbl %al,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tryHit>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1030 <rand_r@plt>
cvtsi2sd %rax,%xmm0
mov    0x2ec0(%rip),%r14
divsd  (%r14),%xmm0
movsd  %xmm0,(%rsp)
mov    %rbx,%rdi
call   1030 <rand_r@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
divsd  (%r14),%xmm0
mulsd  %xmm0,%xmm0
movsd  (%rsp),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
movsd  0xea0(%rip),%xmm0
xor    %eax,%eax
ucomisd %xmm1,%xmm0
setae  %al
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@RAND_MAX = global double 0.000000e+00
define i32 @tryHit(i32* %0) {
%2 = alloca i32*
%3 = alloca double
%4 = alloca double
store i32* %0, i32** %2
%5 = load i32*, i32** %2
%6 = call i64 @rand_r(i32* %5)
%7 = sitofp i64 %6 to double
%8 = load double, double* @RAND_MAX
%9 = fdiv double %7, %8
store double %9, double* %3
%10 = load i32*, i32** %2
%11 = call i64 @rand_r(i32* %10)
%12 = sitofp i64 %11 to double
%13 = load double, double* @RAND_MAX
%14 = fdiv double %12, %13
store double %14, double* %4
%15 = load double, double* %3
%16 = load double, double* %3
%17 = load double, double* %4
%18 = load double, double* %4
%19 = fmul double %17, %18
%20 = call double @llvm.fmuladd.f64(double %15, double %16, double %19)
%21 = fcmp ole double %20, 1.000000e+00
%22 = zext i1 %21 to i32
ret i32 %22
}

LLVM IR (-O2):
@RAND_MAX = global double 0.000000e+00
define i32 @tryHit(i32* %0) {
%2 = tail call i64 @rand_r(i32* %0)
%3 = sitofp i64 %2 to double
%4 = load double, double* @RAND_MAX
%5 = fdiv double %3, %4
%6 = tail call i64 @rand_r(i32* %0)
%7 = sitofp i64 %6 to double
%8 = load double, double* @RAND_MAX
%9 = fdiv double %7, %8
%10 = fmul double %9, %9
%11 = tail call double @llvm.fmuladd.f64(double %5, double %5, double %10)
%12 = fcmp ole double %11, 1.000000e+00
%13 = zext i1 %12 to i32
ret i32 %13
}
void ExceptionHandlingUnitialize() {}


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

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

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

LLVM IR (-O2):
define void @ExceptionHandlingUnitialize() {
ret void
}
double Sleef_fma(double x, double y, double z) {
  return __builtin_fma(x, y, z);
}


x86 assembly (clang, -O0):
<Sleef_fma>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
call   1030 <fma@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Sleef_fma>:
jmp    1030 <fma@plt>

LLVM IR (-O0):
define double @Sleef_fma(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%7 = load double, double* %4
%8 = load double, double* %5
%9 = load double, double* %6
%10 = call double @llvm.fma.f64(double %7, double %8, double %9)
ret double %10
}

LLVM IR (-O2):
define double @Sleef_fma(double %0, double %1, double %2) {
%4 = tail call double @llvm.fma.f64(double %0, double %1, double %2)
ret double %4
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, char *);
void _Q_qtoux(void) {
  printf("Unimplemented %s called, exiting\n", "_Q_qtoux");
  exit(-1);
}


x86 assembly (clang, -O0):
<_Q_qtoux>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xef0(%rip),%rsi
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

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

LLVM IR (-O0):
@.str = [34 x i8] c"Unimplemented %s called, exiting\0A\00"
@.str.1 = [9 x i8] c"_Q_qtoux\00"
define void @_Q_qtoux() {
%1 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @exit(i32 -1)
unreachable
}

LLVM IR (-O2):
@.str = [34 x i8] c"Unimplemented %s called, exiting\0A\00"
@.str.1 = [9 x i8] c"_Q_qtoux\00"
define void @_Q_qtoux() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @exit(i32 -1)
unreachable
}
/* Type definitions */
typedef int /*<<< orphan*/ GLenum;

/* Variables and functions */
int /*<<< orphan*/ glStencilOp(int /*<<< orphan*/, int /*<<< orphan*/,
                               int /*<<< orphan*/);
void StencilOp(GLenum fail, GLenum zfail, GLenum zpass) {
  glStencilOp(fail, zfail, zpass);
}


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

x86 assembly (clang, -O2):
<StencilOp>:
jmp    1030 <glStencilOp@plt>

LLVM IR (-O0):
define void @StencilOp(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* %4
%8 = load i32, i32* %5
%9 = load i32, i32* %6
%10 = call i32 @glStencilOp(i32 %7, i32 %8, i32 %9)
ret void
}

LLVM IR (-O2):
define void @StencilOp(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @glStencilOp(i32 %0, i32 %1, i32 %2)
ret void
}
int xmvsprintf_do_div(long *n, unsigned int base) {
  int res;
  res = ((unsigned long)*n) % (unsigned)base;
  *n = ((unsigned long)*n) / (unsigned)base;
  return res;
}


x86 assembly (clang, -O0):
<xmvsprintf_do_div>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    -0xc(%rbp),%ecx
xor    %edx,%edx
div    %rcx
mov    %edx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    -0xc(%rbp),%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xmvsprintf_do_div>:
mov    (%rdi),%rax
mov    %esi,%ecx
mov    %rax,%rdx
shr    $0x20,%rdx
je     1115 <xmvsprintf_do_div+0x15>
xor    %edx,%edx
div    %rcx
jmp    1119 <xmvsprintf_do_div+0x19>
xor    %edx,%edx
div    %ecx
mov    %rax,(%rdi)
mov    %edx,%eax
ret

LLVM IR (-O0):
define i32 @xmvsprintf_do_div(i64* %0, i32 %1) {
%3 = alloca i64*
%4 = alloca i32
%5 = alloca i32
store i64* %0, i64** %3
store i32 %1, i32* %4
%6 = load i64*, i64** %3
%7 = load i64, i64* %6
%8 = load i32, i32* %4
%9 = zext i32 %8 to i64
%10 = urem i64 %7, %9
%11 = trunc i64 %10 to i32
store i32 %11, i32* %5
%12 = load i64*, i64** %3
%13 = load i64, i64* %12
%14 = load i32, i32* %4
%15 = zext i32 %14 to i64
%16 = udiv i64 %13, %15
%17 = load i64*, i64** %3
store i64 %16, i64* %17
%18 = load i32, i32* %5
ret i32 %18
}

LLVM IR (-O2):
define i32 @xmvsprintf_do_div(i64* nocapture %0, i32 %1) {
%3 = load i64, i64* %0
%4 = zext i32 %1 to i64
%5 = urem i64 %3, %4
%6 = trunc i64 %5 to i32
%7 = udiv i64 %3, %4
store i64 %7, i64* %0
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ write_smbios_tables(void *);
void loongson_smbios_init(void) { write_smbios_tables((void *)0x8fffe000); }


x86 assembly (clang, -O0):
<loongson_smbios_init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x8fffe000,%edi
call   1030 <write_smbios_tables@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<loongson_smbios_init>:
mov    $0x8fffe000,%edi
jmp    1030 <write_smbios_tables@plt>

LLVM IR (-O0):
define void @loongson_smbios_init() {
%1 = call i32 @write_smbios_tables(i8* inttoptr (i64 2415910912 to i8*))
ret void
}

LLVM IR (-O2):
define void @loongson_smbios_init() {
%1 = tail call i32 @write_smbios_tables(i8* inttoptr (i64 2415910912 to i8*))
ret void
}
adr0indreg1(r0, r1, x0, x1, p0, p1) unsigned int r0, r1;
unsigned int *p0, *p1;
{
  if ((*((unsigned int *)10000000)) <= (*p1))
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<adr0indreg1>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
mov    $0x989680,%eax
mov    (%rax),%eax
mov    -0x28(%rbp),%rcx
cmp    (%rcx),%eax
ja     1137 <adr0indreg1+0x37>
movl   $0x1,-0x4(%rbp)
jmp    113e <adr0indreg1+0x3e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<adr0indreg1>:
mov    0x989680,%ecx
xor    %eax,%eax
cmp    (%r9),%ecx
setbe  %al
ret

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

LLVM IR (-O2):
define i32 @adr0indreg1(i32 %0, i32 %1, i32 %2, i32 %3, i32* nocapture readnone %4, i32* nocapture %5) {
%7 = load i32, i32* inttoptr (i64 10000000 to i32*)
%8 = load i32, i32* %5
%9 = icmp ule i32 %7, %8
%10 = zext i1 %9 to i32
ret i32 %10
}
/* Type definitions */
typedef int /*<<< orphan*/ wint_t;

/* Variables and functions */
scalar_t__ iswprint(int /*<<< orphan*/);
int /*<<< orphan*/ iswspace(int /*<<< orphan*/);
int iswgraph(wint_t wc) { return !iswspace(wc) && iswprint(wc); }


x86 assembly (clang, -O0):
<iswgraph>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <iswspace@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x5(%rbp)
jne    1155 <iswgraph+0x35>
mov    -0x4(%rbp),%edi
call   1040 <iswprint@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<iswgraph>:
push   %rbx
mov    %edi,%ebx
call   1030 <iswspace@plt>
mov    %eax,%ecx
xor    %eax,%eax
test   %ecx,%ecx
je     1132 <iswgraph+0x12>
pop    %rbx
ret
mov    %ebx,%edi
call   1040 <iswprint@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
setne  %al
pop    %rbx
ret

LLVM IR (-O0):
define i32 @iswgraph(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @iswspace(i32 %3)
%5 = icmp ne i32 %4, 0
br i1 %5, label %10, label %6
6: ; preds = %1
%7 = load i32, i32* %2
%8 = call i64 @iswprint(i32 %7)
%9 = icmp ne i64 %8, 0
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ false, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
define i32 @iswgraph(i32 %0) {
%2 = tail call i32 @iswspace(i32 %0)
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = tail call i64 @iswprint(i32 %0)
%6 = icmp ne i64 %5, 0
%7 = zext i1 %6 to i32
br label %8
8: ; preds = %4, %1
%9 = phi i32 [ 0, %1 ], [ %7, %4 ]
ret i32 %9
}
void ff_hevc_put_hevc_bi_w_qpel_hv32_12_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_bi_w_qpel_hv32_12_sse4() {
ret void
}
void key_2_handler(void) {
  if ((*(volatile unsigned int *)(0x7F008824)) & 2) {
    (*(volatile unsigned int *)(0x7F008824)) &= ~2;
  } else {
    (*(volatile unsigned int *)(0x7F008824)) |= 2;
  }
  return;
}


x86 assembly (clang, -O0):
<key_2_handler>:
push   %rbp
mov    %rsp,%rbp
mov    $0x7f008824,%eax
mov    (%rax),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     112d <key_2_handler+0x2d>
mov    $0x7f008824,%eax
mov    (%rax),%ecx
and    $0xfffffffd,%ecx
mov    $0x7f008824,%eax
mov    %ecx,(%rax)
jmp    113e <key_2_handler+0x3e>
mov    $0x7f008824,%eax
mov    (%rax),%ecx
or     $0x2,%ecx
mov    $0x7f008824,%eax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<key_2_handler>:
mov    0x7f008824,%eax
and    $0x2,%eax
mov    0x7f008824,%ecx
and    $0xfffffffd,%ecx
or     %eax,%ecx
xor    $0x2,%ecx
mov    %ecx,0x7f008824
ret

LLVM IR (-O0):
define void @key_2_handler() {
%1 = load volatile i32, i32* inttoptr (i64 2130741284 to i32*)
%2 = and i32 %1, 2
%3 = icmp ne i32 %2, 0
br i1 %3, label %4, label %7
4: ; preds = %0
%5 = load volatile i32, i32* inttoptr (i64 2130741284 to i32*)
%6 = and i32 %5, -3
store volatile i32 %6, i32* inttoptr (i64 2130741284 to i32*)
br label %10
7: ; preds = %0
%8 = load volatile i32, i32* inttoptr (i64 2130741284 to i32*)
%9 = or i32 %8, 2
store volatile i32 %9, i32* inttoptr (i64 2130741284 to i32*)
br label %10
10: ; preds = %7, %4
ret void
}

LLVM IR (-O2):
define void @key_2_handler() {
%1 = load volatile i32, i32* inttoptr (i64 2130741284 to i32*)
%2 = and i32 %1, 2
%3 = load volatile i32, i32* inttoptr (i64 2130741284 to i32*)
%4 = and i32 %3, -3
%5 = or i32 %2, %4
%6 = xor i32 %5, 2
store volatile i32 %6, i32* inttoptr (i64 2130741284 to i32*)
ret void
}
float similarity_decode_norm(int b) { return (float)b; }


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

x86 assembly (clang, -O2):
<similarity_decode_norm>:
cvtsi2ss %edi,%xmm0
ret

LLVM IR (-O0):
define float @similarity_decode_norm(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = sitofp i32 %3 to float
ret float %4
}

LLVM IR (-O2):
define float @similarity_decode_norm(i32 %0) {
%2 = sitofp i32 %0 to float
ret float %2
}
/* Variables and functions */
int /*<<< orphan*/ SearchLocalGames();
void SearchLocalGamesFunc(void *self) { SearchLocalGames(); }


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

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

LLVM IR (-O0):
define void @SearchLocalGamesFunc(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (...) @SearchLocalGames()
ret void
}

LLVM IR (-O2):
define void @SearchLocalGamesFunc(i8* nocapture readnone %0) {
%2 = tail call i32 (...) @SearchLocalGames()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ SRand3(unsigned long, unsigned long, unsigned long);
scalar_t__ rand();
int /*<<< orphan*/ srand(unsigned int);
scalar_t__ time(int /*<<< orphan*/ *);
void RRand3(void) {
  srand((unsigned)time(NULL));
  SRand3((unsigned long)rand() * (unsigned long)rand(),
         (unsigned long)rand() * (unsigned long)rand(),
         (unsigned long)rand() * (unsigned long)rand());
}


x86 assembly (clang, -O0):
<RRand3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
xor    %eax,%eax
mov    %eax,%edi
call   1050 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
mov    $0x0,%al
call   1060 <rand@plt>
mov    %rax,-0x28(%rbp)
mov    $0x0,%al
call   1060 <rand@plt>
mov    %rax,%rcx
mov    -0x28(%rbp),%rax
imul   %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    $0x0,%al
call   1060 <rand@plt>
mov    %rax,-0x20(%rbp)
mov    $0x0,%al
call   1060 <rand@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
imul   %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    $0x0,%al
call   1060 <rand@plt>
mov    %rax,-0x18(%rbp)
mov    $0x0,%al
call   1060 <rand@plt>
mov    -0x18(%rbp),%rdx
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
imul   %rax,%rdx
call   1030 <SRand3@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<RRand3>:
push   %r15
push   %r14
push   %rbx
xor    %edi,%edi
call   1050 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
xor    %eax,%eax
call   1060 <rand@plt>
mov    %rax,%r14
xor    %eax,%eax
call   1060 <rand@plt>
imul   %rax,%r14
xor    %eax,%eax
call   1060 <rand@plt>
mov    %rax,%r15
xor    %eax,%eax
call   1060 <rand@plt>
imul   %rax,%r15
xor    %eax,%eax
call   1060 <rand@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   1060 <rand@plt>
imul   %rax,%rbx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <SRand3@plt>

LLVM IR (-O0):
define void @RRand3() {
%1 = call i64 @time(i32* null)
%2 = trunc i64 %1 to i32
%3 = call i32 @srand(i32 %2)
%4 = call i64 (...) @rand()
%5 = call i64 (...) @rand()
%6 = mul i64 %4, %5
%7 = call i64 (...) @rand()
%8 = call i64 (...) @rand()
%9 = mul i64 %7, %8
%10 = call i64 (...) @rand()
%11 = call i64 (...) @rand()
%12 = mul i64 %10, %11
%13 = call i32 @SRand3(i64 %6, i64 %9, i64 %12)
ret void
}

LLVM IR (-O2):
define void @RRand3() {
%1 = tail call i64 @time(i32* null)
%2 = trunc i64 %1 to i32
%3 = tail call i32 @srand(i32 %2)
%4 = tail call i64 (...) @rand()
%5 = tail call i64 (...) @rand()
%6 = mul i64 %5, %4
%7 = tail call i64 (...) @rand()
%8 = tail call i64 (...) @rand()
%9 = mul i64 %8, %7
%10 = tail call i64 (...) @rand()
%11 = tail call i64 (...) @rand()
%12 = mul i64 %11, %10
%13 = tail call i32 @SRand3(i64 %6, i64 %9, i64 %12)
ret void
}
void mdp4_primary_vsync_dsi_video(void) {}


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

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

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

LLVM IR (-O2):
define void @mdp4_primary_vsync_dsi_video() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
main() {
  int a = 15;
  printf("%d", a + a + a - a + a + a);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0xf,-0x4(%rbp)
mov    -0x4(%rbp),%esi
add    -0x4(%rbp),%esi
add    -0x4(%rbp),%esi
sub    -0x4(%rbp),%esi
add    -0x4(%rbp),%esi
add    -0x4(%rbp),%esi
lea    0xec8(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x3c,%esi
call   1030 <printf@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 15, i32* %1
%2 = load i32, i32* %1
%3 = load i32, i32* %1
%4 = add nsw i32 %2, %3
%5 = load i32, i32* %1
%6 = add nsw i32 %4, %5
%7 = load i32, i32* %1
%8 = sub nsw i32 %6, %7
%9 = load i32, i32* %1
%10 = add nsw i32 %8, %9
%11 = load i32, i32* %1
%12 = add nsw i32 %10, %11
%13 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %12)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 60)
ret i32 0
}
/* Type definitions */
struct timeval {
  int dummy;
};
typedef int /*<<< orphan*/ fd_set;

/* Variables and functions */
int /*<<< orphan*/ err_sys(char *);
int select(int, int /*<<< orphan*/ *, int /*<<< orphan*/ *,
           int /*<<< orphan*/ *, struct timeval *);
int Select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
           struct timeval *timeout) {
  int n;
  if ((n = select(nfds, readfds, writefds, exceptfds, timeout)) < 0)
    err_sys("select error");
  return n;
}


x86 assembly (clang, -O0):
<Select>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
call   1040 <select@plt>
mov    %eax,-0x2c(%rbp)
cmp    $0x0,%eax
jge    116b <Select+0x4b>
lea    0xe9a(%rip),%rdi
call   1030 <err_sys@plt>
mov    -0x2c(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Select>:
push   %rbx
call   1040 <select@plt>
mov    %eax,%ebx
test   %eax,%eax
jns    1138 <Select+0x18>
lea    0xecd(%rip),%rdi
call   1030 <err_sys@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
%struct.timeval = type { i32 }
@.str = [13 x i8] c"select error\00"
define i32 @Select(i32 %0, i32* %1, i32* %2, i32* %3, %struct.timeval* %4) {
%6 = alloca i32
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca %struct.timeval*
%11 = alloca i32
store i32 %0, i32* %6
store i32* %1, i32** %7
store i32* %2, i32** %8
store i32* %3, i32** %9
store %struct.timeval* %4, %struct.timeval** %10
%12 = load i32, i32* %6
%13 = load i32*, i32** %7
%14 = load i32*, i32** %8
%15 = load i32*, i32** %9
%16 = load %struct.timeval*, %struct.timeval** %10
%17 = call i32 @select(i32 %12, i32* %13, i32* %14, i32* %15, %struct.timeval* %16)
store i32 %17, i32* %11
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %5
%20 = call i32 @err_sys(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
br label %21
21: ; preds = %19, %5
%22 = load i32, i32* %11
ret i32 %22
}

LLVM IR (-O2):
%struct.timeval = type { i32 }
@.str = [13 x i8] c"select error\00"
define i32 @Select(i32 %0, i32* %1, i32* %2, i32* %3, %struct.timeval* %4) {
%6 = tail call i32 @select(i32 %0, i32* %1, i32* %2, i32* %3, %struct.timeval* %4)
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = tail call i32 @err_sys(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
br label %10
10: ; preds = %8, %5
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_stream_set_latency_update_callback() {
  printf("NOT IMPLEMENTED:"
         "pa_stream_set_latency_update_callback"
         "\n");
}


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

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

LLVM IR (-O0):
@.str = [55 x i8] c"NOT IMPLEMENTED:pa_stream_set_latency_update_callback\0A\00"
define i32 @pa_stream_set_latency_update_callback() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@str = [54 x i8] c"NOT IMPLEMENTED:pa_stream_set_latency_update_callback\00"
define i32 @pa_stream_set_latency_update_callback() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ setenv(char *, char const *, int);
void settz(const char *tzname) { setenv("TZ", tzname, 1); }


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

x86 assembly (clang, -O2):
<settz>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
mov    $0x1,%edx
jmp    1030 <setenv@plt>

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

LLVM IR (-O2):
@.str = [3 x i8] c"TZ\00"
define void @settz(i8* %0) {
%2 = tail call i32 @setenv(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %0, i32 1)
ret void
}
/* Variables and functions */
bool SHAREMIND_SET_KEY_LESS_THAN_unsigned(unsigned const k1,
                                          unsigned const k2) {
  return k1 < k2;
}


x86 assembly (clang, -O0):
<SHAREMIND_SET_KEY_LESS_THAN_unsigned>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
setb   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<SHAREMIND_SET_KEY_LESS_THAN_unsigned>:
xor    %eax,%eax
cmp    %esi,%edi
setb   %al
ret

LLVM IR (-O0):
define i32 @SHAREMIND_SET_KEY_LESS_THAN_unsigned(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 = icmp ult i32 %5, %6
%8 = zext i1 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @SHAREMIND_SET_KEY_LESS_THAN_unsigned(i32 %0, i32 %1) {
%3 = icmp ult i32 %0, %1
%4 = zext i1 %3 to i32
ret i32 %4
}
XSetClipOrigin() {}


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

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

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

LLVM IR (-O2):
define i32 @XSetClipOrigin() {
ret i32 undef
}
/* Variables and functions */
char strlen(char const *);
char morse_to_char(char morse) {
  static const char morse_table[] =
      "?etianmsurwdkgohvf\x7Fl\xapjbxcyzq??54?3???2??+????16=/?????7???8?90";
  if (morse >= strlen(morse_table))
    return '?';
  return morse_table[morse];
}


x86 assembly (clang, -O0):
<morse_to_char>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x2(%rbp)
movsbl -0x2(%rbp),%eax
mov    %eax,-0x8(%rbp)
lea    0xed4(%rip),%rdi
call   1030 <strlen@plt>
mov    %al,%cl
mov    -0x8(%rbp),%eax
movsbl %cl,%ecx
cmp    %ecx,%eax
jl     114a <morse_to_char+0x3a>
movb   $0x3f,-0x1(%rbp)
jmp    115c <morse_to_char+0x4c>
movsbq -0x2(%rbp),%rcx
lea    0xeaa(%rip),%rax
mov    (%rax,%rcx,1),%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<morse_to_char>:
push   %r14
push   %rbx
push   %rax
mov    %edi,%ebx
lea    0xee3(%rip),%r14
mov    %r14,%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    $0x3f,%al
cmp    %bl,%cl
jle    1135 <morse_to_char+0x25>
movsbq %bl,%rax
mov    (%rax,%r14,1),%al
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@morse_to_char.morse_table = internal constant [64 x i8] c"?etianmsurwdkgohvf\7Fl\0Apjbxcyzq??54?3???2??+????16=/?????7???8?90\00"
define signext i8 @morse_to_char(i8 signext %0) {
%2 = alloca i8
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
%6 = call signext i8 @strlen(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @morse_to_char.morse_table, i64 0, i64 0))
%7 = sext i8 %6 to i32
%8 = icmp sge i32 %5, %7
br i1 %8, label %9, label %10
9: ; preds = %1
store i8 63, i8* %2
br label %15
10: ; preds = %1
%11 = load i8, i8* %3
%12 = sext i8 %11 to i64
%13 = getelementptr inbounds [64 x i8], [64 x i8]* @morse_to_char.morse_table, i64 0, i64 %12
%14 = load i8, i8* %13
store i8 %14, i8* %2
br label %15
15: ; preds = %10, %9
%16 = load i8, i8* %2
ret i8 %16
}

LLVM IR (-O2):
@morse_to_char.morse_table = internal constant [64 x i8] c"?etianmsurwdkgohvf\7Fl\0Apjbxcyzq??54?3???2??+????16=/?????7???8?90\00"
define signext i8 @morse_to_char(i8 signext %0) {
%2 = tail call signext i8 @strlen(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @morse_to_char.morse_table, i64 0, i64 0))
%3 = icmp sgt i8 %2, %0
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = sext i8 %0 to i64
%6 = getelementptr inbounds [64 x i8], [64 x i8]* @morse_to_char.morse_table, i64 0, i64 %5
%7 = load i8, i8* %6
br label %8
8: ; preds = %1, %4
%9 = phi i8 [ %7, %4 ], [ 63, %1 ]
ret i8 %9
}
/* Variables and functions */
int /*<<< orphan*/ Get_Date_Time(int /*<<< orphan*/);
void IF_timeC(void) { Get_Date_Time(0); }


x86 assembly (clang, -O0):
<IF_timeC>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <Get_Date_Time@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<IF_timeC>:
xor    %edi,%edi
jmp    1030 <Get_Date_Time@plt>

LLVM IR (-O0):
define void @IF_timeC() {
%1 = call i32 @Get_Date_Time(i32 0)
ret void
}

LLVM IR (-O2):
define void @IF_timeC() {
%1 = tail call i32 @Get_Date_Time(i32 0)
ret void
}
/* Variables and functions */
size_t char_length(char const *);
size_t step_right(const char *buf, size_t pos) {
  return pos + char_length(buf + pos);
}


x86 assembly (clang, -O0):
<step_right>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
add    -0x10(%rbp),%rdi
call   1030 <char_length@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
add    %rcx,%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<step_right>:
push   %rbx
mov    %rsi,%rbx
add    %rsi,%rdi
call   1030 <char_length@plt>
add    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i64 @step_right(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 = load i64, i64* %4
%8 = getelementptr inbounds i8, i8* %6, i64 %7
%9 = call i64 @char_length(i8* %8)
%10 = add i64 %5, %9
ret i64 %10
}

LLVM IR (-O2):
define i64 @step_right(i8* %0, i64 %1) {
%3 = getelementptr inbounds i8, i8* %0, i64 %1
%4 = tail call i64 @char_length(i8* %3)
%5 = add i64 %4, %1
ret i64 %5
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int, void *, double);
int /*<<< orphan*/ free(void *);
int /*<<< orphan*/ stdout;
void table_key_value_destroy(const void *key, void *value, void *arg) {
  { arg = arg; }
  fprintf(stdout, "\tdestroyed {key=>%d,value=>{object=>0x%p,value=>%.3f}}\n",
          (int)key, value, *(double *)value);
  free(value);
}


x86 assembly (clang, -O0):
<table_key_value_destroy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    0x2e9d(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    %eax,%edx
mov    -0x10(%rbp),%rcx
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
lea    0xea2(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<table_key_value_destroy>:
push   %rbx
mov    %rsi,%rbx
mov    %rdi,%rdx
mov    0x2eb2(%rip),%rax
mov    (%rax),%edi
movsd  (%rsi),%xmm0
lea    0xec5(%rip),%rsi
mov    %rbx,%rcx
call   1040 <fprintf@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <free@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [56 x i8] c"\09destroyed {key=>%d,value=>{object=>0x%p,value=>%.3f}}\0A\00"
define void @table_key_value_destroy(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load i8*, i8** %6
store i8* %7, i8** %6
%8 = load i32, i32* @stdout
%9 = load i8*, i8** %4
%10 = ptrtoint i8* %9 to i32
%11 = load i8*, i8** %5
%12 = load i8*, i8** %5
%13 = bitcast i8* %12 to double*
%14 = load double, double* %13
%15 = call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0), i32 %10, i8* %11, double %14)
%16 = load i8*, i8** %5
%17 = call i32 @free(i8* %16)
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [56 x i8] c"\09destroyed {key=>%d,value=>{object=>0x%p,value=>%.3f}}\0A\00"
define void @table_key_value_destroy(i8* %0, i8* %1, i8* nocapture readnone %2) {
%4 = load i32, i32* @stdout
%5 = ptrtoint i8* %0 to i64
%6 = trunc i64 %5 to i32
%7 = bitcast i8* %1 to double*
%8 = load double, double* %7
%9 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0), i32 %6, i8* %1, double %8)
%10 = tail call i32 @free(i8* %1)
ret void
}
void *__memset_generic(void *s, char c, int count) {
  int d0, d1;
  __asm__ __volatile__("rep\n\t"
                       "stosb"
                       : "=&c"(d0), "=&D"(d1)
                       : "a"(c), "1"(s), "0"(count)
                       : "memory");
  return s;
}


x86 assembly (clang, -O0):
<__memset_generic>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x9(%rbp),%al
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%ecx
rep stos %al,%es:(%rdi)
mov    %ecx,-0x14(%rbp)
mov    %edi,%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<__memset_generic>:
mov    %edx,%ecx
mov    %esi,%eax
mov    %rdi,%rdx
rep stos %al,%es:(%rdi)
mov    %rdx,%rax
ret

LLVM IR (-O0):
define i8* @__memset_generic(i8* %0, i8 signext %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i8* %0, i8** %4
store i8 %1, i8* %5
store i32 %2, i32* %6
%9 = load i8, i8* %5
%10 = load i8*, i8** %4
%11 = load i32, i32* %6
%12 = call { i32, i8* } asm sideeffect "rep\0A\09stosb", "=&{cx},=&{di},{ax},1,0,~{memory},~{dirflag},~{fpsr},~{flags}"(i8 %9, i8* %10, i32 %11)
%13 = extractvalue { i32, i8* } %12, 0
%14 = extractvalue { i32, i8* } %12, 1
store i32 %13, i32* %7
%15 = ptrtoint i8* %14 to i64
%16 = trunc i64 %15 to i32
store i32 %16, i32* %8
%17 = load i8*, i8** %4
ret i8* %17
}

LLVM IR (-O2):
define i8* @__memset_generic(i8* returned %0, i8 signext %1, i32 %2) {
%4 = tail call { i32, i8* } asm sideeffect "rep\0A\09stosb", "=&{cx},=&{di},{ax},1,0,~{memory},~{dirflag},~{fpsr},~{flags}"(i8 %1, i8* %0, i32 %2)
ret i8* %0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void callback_func(void *arg) { printf("Hi, it's call back\n"); }


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

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

LLVM IR (-O0):
@.str = [20 x i8] c"Hi, it's call back\0A\00"
define void @callback_func(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [19 x i8] c"Hi, it's call back\00"
define void @callback_func(i8* nocapture readnone %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int ENXIO;
int nc_pm8xxx_mpp_config_analog_input(unsigned mpp, unsigned level,
                                      unsigned control) {
  return -ENXIO;
}


x86 assembly (clang, -O0):
<nc_pm8xxx_mpp_config_analog_input>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
xor    %eax,%eax
mov    0x2eca(%rip),%rcx
sub    (%rcx),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<nc_pm8xxx_mpp_config_analog_input>:
mov    0x2ed9(%rip),%rcx
xor    %eax,%eax
sub    (%rcx),%eax
ret

LLVM IR (-O0):
@ENXIO = global i32 0
define i32 @nc_pm8xxx_mpp_config_analog_input(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* @ENXIO
%8 = sub nsw i32 0, %7
ret i32 %8
}

LLVM IR (-O2):
@ENXIO = global i32 0
define i32 @nc_pm8xxx_mpp_config_analog_input(i32 %0, i32 %1, i32 %2) {
%4 = load i32, i32* @ENXIO
%5 = sub nsw i32 0, %4
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ gentable();
int /*<<< orphan*/ getinput();
int /*<<< orphan*/ initmaps();
int /*<<< orphan*/ parsearg(int, char **);
int /*<<< orphan*/ writetable();
main(int argc, char *argv[]) {
  parsearg(argc, argv);
  initmaps();
  getinput();
  gentable();
  writetable();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1070 <parsearg@plt>
mov    $0x0,%al
call   1060 <initmaps@plt>
mov    $0x0,%al
call   1040 <getinput@plt>
mov    $0x0,%al
call   1050 <gentable@plt>
mov    $0x0,%al
call   1030 <writetable@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
call   1070 <parsearg@plt>
xor    %eax,%eax
call   1060 <initmaps@plt>
xor    %eax,%eax
call   1040 <getinput@plt>
xor    %eax,%eax
call   1050 <gentable@plt>
xor    %eax,%eax
call   1030 <writetable@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = load i32, i32* %3
%6 = load i8**, i8*** %4
%7 = call i32 @parsearg(i32 %5, i8** %6)
%8 = call i32 (...) @initmaps()
%9 = call i32 (...) @getinput()
%10 = call i32 (...) @gentable()
%11 = call i32 (...) @writetable()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 @parsearg(i32 %0, i8** %1)
%4 = tail call i32 (...) @initmaps()
%5 = tail call i32 (...) @getinput()
%6 = tail call i32 (...) @gentable()
%7 = tail call i32 (...) @writetable()
ret i32 0
}
int is_digit(char c) { return (c >= '0' && c <= '9'); }


x86 assembly (clang, -O0):
<is_digit>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x30,%ecx
mov    %al,-0x2(%rbp)
jl     1129 <is_digit+0x29>
movsbl -0x1(%rbp),%eax
cmp    $0x39,%eax
setle  %al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_digit>:
add    $0xd0,%dil
xor    %eax,%eax
cmp    $0xa,%dil
setb   %al
ret

LLVM IR (-O0):
define i32 @is_digit(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = icmp sge i32 %4, 48
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = icmp sle i32 %8, 57
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ false, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
define i32 @is_digit(i8 signext %0) {
%2 = add i8 %0, -48
%3 = icmp ult i8 %2, 10
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Variables and functions */
unsigned int aux_hasing(unsigned int, int /*<<< orphan*/);
unsigned int hashing(const char *key, unsigned int max) {
  unsigned int hkey = 0;
  while (*key)
    hkey = aux_hasing(hkey, *key++);
  hkey %= max;
  return hkey;
}


x86 assembly (clang, -O0):
<hashing>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     1155 <hashing+0x45>
mov    -0x10(%rbp),%edi
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movsbl (%rax),%esi
call   1030 <aux_hasing@plt>
mov    %eax,-0x10(%rbp)
jmp    1126 <hashing+0x16>
mov    -0xc(%rbp),%ecx
mov    -0x10(%rbp),%eax
xor    %edx,%edx
div    %ecx
mov    %edx,-0x10(%rbp)
mov    -0x10(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hashing>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    (%rdi),%cl
test   %cl,%cl
je     1147 <hashing+0x37>
mov    %rdi,%rbx
add    $0x1,%rbx
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsbl %cl,%esi
mov    %eax,%edi
call   1030 <aux_hasing@plt>
movzbl (%rbx),%ecx
add    $0x1,%rbx
test   %cl,%cl
jne    1130 <hashing+0x20>
jmp    1149 <hashing+0x39>
xor    %eax,%eax
xor    %edx,%edx
div    %ebp
mov    %edx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @hashing(i8* nocapture %0, i32 %1) {
%3 = load i8, i8* %0
%4 = icmp eq i8 %3, 0
br i1 %4, label %14, label %5
5: ; preds = %2, %5
%6 = phi i8 [ %12, %5 ], [ %3, %2 ]
%7 = phi i32 [ %11, %5 ], [ 0, %2 ]
%8 = phi i8* [ %9, %5 ], [ %0, %2 ]
%9 = getelementptr inbounds i8, i8* %8, i64 1
%10 = sext i8 %6 to i32
%11 = tail call i32 @aux_hasing(i32 %7, i32 %10)
%12 = load i8, i8* %9
%13 = icmp eq i8 %12, 0
br i1 %13, label %14, label %5
14: ; preds = %5, %2
%15 = phi i32 [ 0, %2 ], [ %11, %5 ]
%16 = urem i32 %15, %1
ret i32 %16
}
void imx5_pm_init(void) {}


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

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

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

LLVM IR (-O2):
define void @imx5_pm_init() {
ret void
}
int main(int argc, char *argv[]) {
  argc = argc;
  argv[0] = argv[0];
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
store i32 %6, i32* %4
%7 = load i8**, i8*** %5
%8 = getelementptr inbounds i8*, i8** %7, i64 0
%9 = load i8*, i8** %8
%10 = load i8**, i8*** %5
%11 = getelementptr inbounds i8*, i8** %10, i64 0
store i8* %9, i8** %11
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
ret i32 0
}
int a_twist_r_on_eflip(eflip)
int eflip;
{
  int temp_arr[12];
  a_eflip_unpack(eflip, temp_arr);
  four_cycle(temp_arr, 8, 5, 10, 1);
  return a_eflip_pack(temp_arr);
}


x86 assembly (clang, -O0):
<a_twist_r_on_eflip>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x40(%rbp),%rsi
mov    $0x0,%al
call   1030 <a_eflip_unpack@plt>
lea    -0x40(%rbp),%rdi
mov    $0x8,%esi
mov    $0x5,%edx
mov    $0xa,%ecx
mov    $0x1,%r8d
mov    $0x0,%al
call   1040 <four_cycle@plt>
lea    -0x40(%rbp),%rdi
mov    $0x0,%al
call   1050 <a_eflip_pack@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<a_twist_r_on_eflip>:
push   %rbx
sub    $0x30,%rsp
mov    %rsp,%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <a_eflip_unpack@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
mov    $0x5,%edx
mov    $0xa,%ecx
mov    $0x1,%r8d
xor    %eax,%eax
call   1040 <four_cycle@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <a_eflip_pack@plt>
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @a_twist_r_on_eflip(i32 %0) {
%2 = alloca i32
%3 = alloca [12 x i32]
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = getelementptr inbounds [12 x i32], [12 x i32]* %3, i64 0, i64 0
%6 = call i32 (i32, i32*, ...) bitcast (i32 (...)* @a_eflip_unpack to i32 (i32, i32*, ...)*)(i32 %4, i32* %5)
%7 = getelementptr inbounds [12 x i32], [12 x i32]* %3, i64 0, i64 0
%8 = call i32 (i32*, i32, i32, i32, i32, ...) bitcast (i32 (...)* @four_cycle to i32 (i32*, i32, i32, i32, i32, ...)*)(i32* %7, i32 8, i32 5, i32 10, i32 1)
%9 = getelementptr inbounds [12 x i32], [12 x i32]* %3, i64 0, i64 0
%10 = call i32 (i32*, ...) bitcast (i32 (...)* @a_eflip_pack to i32 (i32*, ...)*)(i32* %9)
ret i32 %10
}

LLVM IR (-O2):
define i32 @a_twist_r_on_eflip(i32 %0) {
%2 = alloca [12 x i32]
%3 = bitcast [12 x i32]* %2 to i8*
%4 = getelementptr inbounds [12 x i32], [12 x i32]* %2, i64 0, i64 0
%5 = call i32 (i32, i32*, ...) bitcast (i32 (...)* @a_eflip_unpack to i32 (i32, i32*, ...)*)(i32 %0, i32* %4)
%6 = call i32 (i32*, i32, i32, i32, i32, ...) bitcast (i32 (...)* @four_cycle to i32 (i32*, i32, i32, i32, i32, ...)*)(i32* %4, i32 8, i32 5, i32 10, i32 1)
%7 = call i32 (i32*, ...) bitcast (i32 (...)* @a_eflip_pack to i32 (i32*, ...)*)(i32* %4)
ret i32 %7
}