xunge/DecIR huggingface dataset:
double Dirichlet_data(double x, double y, double t) {
  return x * x + y * y + 4 * t;
}


x86 assembly (clang, -O0):
<Dirichlet_data>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x8(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  0xec4(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<Dirichlet_data>:
mulsd  %xmm1,%xmm1
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
mulsd  0xeec(%rip),%xmm2
addsd  %xmm2,%xmm0
ret

LLVM IR (-O0):
define double @Dirichlet_data(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* %4
%9 = load double, double* %5
%10 = load double, double* %5
%11 = fmul double %9, %10
%12 = call double @llvm.fmuladd.f64(double %7, double %8, double %11)
%13 = load double, double* %6
%14 = call double @llvm.fmuladd.f64(double 4.000000e+00, double %13, double %12)
ret double %14
}

LLVM IR (-O2):
define double @Dirichlet_data(double %0, double %1, double %2) {
%4 = fmul double %1, %1
%5 = tail call double @llvm.fmuladd.f64(double %0, double %0, double %4)
%6 = tail call double @llvm.fmuladd.f64(double %2, double 4.000000e+00, double %5)
ret double %6
}
/* Variables and functions */
int /*<<< orphan*/ boolExpression();
int /*<<< orphan*/ init();
int main(int argc, const char *argv[]) {
  init();
  boolExpression();
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <init@plt>
xor    %eax,%eax
call   1040 <boolExpression@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**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (...) @init()
%7 = call i32 (...) @boolExpression()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @init()
%4 = tail call i32 (...) @boolExpression()
ret i32 0
}
/* Variables and functions */
scalar_t__ tge_get_whole_seconds(double const);
long tge_get_fractional_microseconds(const double seconds) {
  const double whole_secs = (double)tge_get_whole_seconds(seconds);
  const double fractional_part = seconds - whole_secs;
  return (long)(fractional_part * 1000000);
}


x86 assembly (clang, -O0):
<tge_get_fractional_microseconds>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <tge_get_whole_seconds@plt>
cvtsi2sd %rax,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xeb8(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
cvttsd2si %xmm0,%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tge_get_fractional_microseconds>:
push   %rax
movsd  %xmm0,(%rsp)
call   1030 <tge_get_whole_seconds@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
movsd  (%rsp),%xmm1
subsd  %xmm0,%xmm1
mulsd  0xecc(%rip),%xmm1
cvttsd2si %xmm1,%rax
pop    %rcx
ret

LLVM IR (-O0):
define i64 @tge_get_fractional_microseconds(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
store double %0, double* %2
%5 = load double, double* %2
%6 = call i64 @tge_get_whole_seconds(double %5)
%7 = sitofp i64 %6 to double
store double %7, double* %3
%8 = load double, double* %2
%9 = load double, double* %3
%10 = fsub double %8, %9
store double %10, double* %4
%11 = load double, double* %4
%12 = fmul double %11, 1.000000e+06
%13 = fptosi double %12 to i64
ret i64 %13
}

LLVM IR (-O2):
define i64 @tge_get_fractional_microseconds(double %0) {
%2 = tail call i64 @tge_get_whole_seconds(double %0)
%3 = sitofp i64 %2 to double
%4 = fsub double %0, %3
%5 = fmul double %4, 1.000000e+06
%6 = fptosi double %5 to i64
ret i64 %6
}
const char *TDF_Version() { return "2654-20140211.1"; }


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

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

LLVM IR (-O0):
@.str = [16 x i8] c"2654-20140211.1\00"
define i8* @TDF_Version() {
ret i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [16 x i8] c"2654-20140211.1\00"
define i8* @TDF_Version() {
ret i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0)
}
int sys$dlcefc(void *name) {
  return ({
    unsigned long resultvar;
    register long int _a1 asm("rdi") = (long)(name);
    asm volatile("movq %1, %%rax\n\t"
                 "int $0x81\n\t"
                 : "=a"(resultvar)
                 : "i"(44), "r"(_a1)
                 : "memory", "cc", "r11", "cx");
    (long)resultvar;
  });
}


x86 assembly (clang, -O0):
<sys$dlcefc>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0x2c,%rax
int    $0x81
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<sys$dlcefc>:
mov    $0x2c,%rax
int    $0x81
ret

LLVM IR (-O0):
define i32 @"sys$dlcefc"(i8* %0) {
%2 = alloca i8*
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
store i8* %0, i8** %2
%6 = load i8*, i8** %2
%7 = ptrtoint i8* %6 to i64
store i64 %7, i64* %4
%8 = load i64, i64* %4
%9 = call i64 asm sideeffect "movq $1, %rax\0A\09int $$0x81\0A\09", "={ax},i,{rdi},~{memory},~{cc},~{r11},~{cx},~{dirflag},~{fpsr},~{flags}"(i32 44, i64 %8)
store i64 %9, i64* %3
%10 = load i64, i64* %3
store i64 %10, i64* %5
%11 = load i64, i64* %5
%12 = trunc i64 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
define i32 @"sys$dlcefc"(i8* %0) {
%2 = ptrtoint i8* %0 to i64
%3 = tail call i64 asm sideeffect "movq $1, %rax\0A\09int $$0x81\0A\09", "={ax},i,{rdi},~{memory},~{cc},~{r11},~{cx},~{dirflag},~{fpsr},~{flags}"(i32 44, i64 %2)
%4 = trunc i64 %3 to i32
ret i32 %4
}
int mod(int a) {
  int b = (a > 0) ? a : -a;
  return b;
}


x86 assembly (clang, -O0):
<mod>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jle    111c <mod+0x1c>
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    1124 <mod+0x24>
xor    %eax,%eax
sub    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @mod(i32 %0) {
%2 = tail call i32 @llvm.abs.i32(i32 %0, i1 true)
ret i32 %2
}
/* Type definitions */
typedef int /*<<< orphan*/ vetor;

/* Variables and functions */
int maximoR(int, int *);
int /*<<< orphan*/ printf(char *, int);
void main(void) {
  int vetor[] = {10, 11, 12, 1, 98, 2};
  int y = sizeof(vetor) / sizeof(int);
  printf("%d\n", maximoR(y, vetor));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0xed1(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xece(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xecb(%rip),%rax
mov    %rax,-0x10(%rbp)
movl   $0x6,-0x24(%rbp)
mov    -0x24(%rbp),%edi
lea    -0x20(%rbp),%rsi
call   1030 <maximoR@plt>
mov    %eax,%esi
lea    0xeb3(%rip),%rdi
call   1040 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
mov    0xee5(%rip),%rax
mov    %rax,0x10(%rsp)
movaps 0xec9(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rsi
mov    $0x6,%edi
call   1030 <maximoR@plt>
lea    0xec9(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
@__const.main.vetor = [6 x i32] [i32 10, i32 11, i32 12, i32 1, i32 98, i32 2]
@.str = [4 x i8] c"%d\0A\00"
define void @main() {
%1 = alloca [6 x i32]
%2 = alloca i32
%3 = bitcast [6 x i32]* %1 to i8*
store i32 6, i32* %2
%4 = load i32, i32* %2
%5 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 0
%6 = call i32 @maximoR(i32 %4, i32* %5)
%7 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %6)
ret void
}

LLVM IR (-O2):
@__const.main.vetor = [6 x i32] [i32 10, i32 11, i32 12, i32 1, i32 98, i32 2]
@.str = [4 x i8] c"%d\0A\00"
define void @main() {
%1 = alloca [6 x i32]
%2 = bitcast [6 x i32]* %1 to i8*
%3 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 0
%4 = call i32 @maximoR(i32 6, i32* %3)
%5 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ cr_1();
int /*<<< orphan*/ cr_2();
int /*<<< orphan*/ cr_3();
int main() {
  cr_1();
  cr_2();
  cr_3();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1050 <cr_1@plt>
mov    $0x0,%al
call   1030 <cr_2@plt>
mov    $0x0,%al
call   1040 <cr_3@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1050 <cr_1@plt>
xor    %eax,%eax
call   1030 <cr_2@plt>
xor    %eax,%eax
call   1040 <cr_3@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @cr_1()
%3 = call i32 (...) @cr_2()
%4 = call i32 (...) @cr_3()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @cr_1()
%2 = tail call i32 (...) @cr_2()
%3 = tail call i32 (...) @cr_3()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ indigoFree(int);
int indigoLoadSmarts(int);
int indigoReadBuffer(char const *, int);
__attribute__((visibility("default"))) int
indigoLoadSmartsFromBuffer(const char *buf, int size) {
  int source = indigoReadBuffer(buf, size);
  int result;
  if (source <= 0)
    return -1;
  result = indigoLoadSmarts(source);
  indigoFree(source);
  return result;
}


x86 assembly (clang, -O0):
<indigoLoadSmartsFromBuffer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1040 <indigoReadBuffer@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jg     1164 <indigoLoadSmartsFromBuffer+0x34>
movl   $0xffffffff,-0x4(%rbp)
jmp    117d <indigoLoadSmartsFromBuffer+0x4d>
mov    -0x18(%rbp),%edi
call   1050 <indigoLoadSmarts@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%edi
call   1030 <indigoFree@plt>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<indigoLoadSmartsFromBuffer>:
push   %rbp
push   %rbx
push   %rax
call   1040 <indigoReadBuffer@plt>
test   %eax,%eax
jle    1152 <indigoLoadSmartsFromBuffer+0x22>
mov    %eax,%ebx
mov    %eax,%edi
call   1050 <indigoLoadSmarts@plt>
mov    %eax,%ebp
mov    %ebx,%edi
call   1030 <indigoFree@plt>
mov    %ebp,%eax
jmp    1157 <indigoLoadSmartsFromBuffer+0x27>
mov    $0xffffffff,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @indigoLoadSmartsFromBuffer(i8* %0, i32 %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
%8 = load i8*, i8** %4
%9 = load i32, i32* %5
%10 = call i32 @indigoReadBuffer(i8* %8, i32 %9)
store i32 %10, i32* %6
%11 = load i32, i32* %6
%12 = icmp sle i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %2
store i32 -1, i32* %3
br label %20
14: ; preds = %2
%15 = load i32, i32* %6
%16 = call i32 @indigoLoadSmarts(i32 %15)
store i32 %16, i32* %7
%17 = load i32, i32* %6
%18 = call i32 @indigoFree(i32 %17)
%19 = load i32, i32* %7
store i32 %19, i32* %3
br label %20
20: ; preds = %14, %13
%21 = load i32, i32* %3
ret i32 %21
}

LLVM IR (-O2):
define i32 @indigoLoadSmartsFromBuffer(i8* %0, i32 %1) {
%3 = tail call i32 @indigoReadBuffer(i8* %0, i32 %1)
%4 = icmp slt i32 %3, 1
br i1 %4, label %8, label %5
5: ; preds = %2
%6 = tail call i32 @indigoLoadSmarts(i32 %3)
%7 = tail call i32 @indigoFree(i32 %3)
br label %8
8: ; preds = %2, %5
%9 = phi i32 [ %6, %5 ], [ -1, %2 ]
ret i32 %9
}
void foo_1_2_2_1_1_2_2_2_1() {}


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

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

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

LLVM IR (-O2):
define void @foo_1_2_2_1_1_2_2_2_1() {
ret void
}
/* Variables and functions */
long double foo(long double);
int main(int argc, char *argv[]) {
  long double arg1 = 3.45;
  long double ret = foo(arg1);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
fldl   0xed4(%rip)
fstpt  -0x20(%rbp)
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1030 <foo@plt>
fstpt  -0x30(%rbp)
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
fldl   0xee6(%rip)
fstpt  (%rsp)
call   1030 <foo@plt>
fstp   %st(0)
xor    %eax,%eax
add    $0x18,%rsp
ret

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call x86_fp80 @foo(x86_fp80 0xK4000DCCCCCCCCCCCD000)
ret i32 0
}
/* Variables and functions */
int strcmp(char *, char *);
int array_cmp_str_dsc(const void *a, const void *b) {
  return strcmp((char *)b, (char *)a);
}


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

x86 assembly (clang, -O2):
<array_cmp_str_dsc>:
mov    %rdi,%rax
mov    %rsi,%rdi
mov    %rax,%rsi
jmp    1030 <strcmp@plt>

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

LLVM IR (-O2):
define i32 @array_cmp_str_dsc(i8* nocapture %0, i8* nocapture %1) {
%3 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(1) %0)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ WNOHANG;
int /*<<< orphan*/ puts(char *);
scalar_t__ waitpid(int, int /*<<< orphan*/ *, int /*<<< orphan*/);
void catch_child(int signo) {
  puts("Child exitted!\n");
  while (waitpid(-1, NULL, WNOHANG) > 0)
    continue;
}


x86 assembly (clang, -O0):
<catch_child>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xece(%rip),%rdi
call   1030 <puts@plt>
mov    0x2eaa(%rip),%rax
mov    (%rax),%edx
mov    $0xffffffff,%edi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <waitpid@plt>
cmp    $0x0,%rax
jle    115d <catch_child+0x3d>
jmp    1137 <catch_child+0x17>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<catch_child>:
push   %rbx
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
mov    0x2eb4(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    (%rbx),%edx
mov    $0xffffffff,%edi
xor    %esi,%esi
call   1040 <waitpid@plt>
test   %rax,%rax
jg     1140 <catch_child+0x20>
pop    %rbx
ret

LLVM IR (-O0):
@.str = [16 x i8] c"Child exitted!\0A\00"
@WNOHANG = global i32 0
define void @catch_child(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @puts(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
br label %4
4: ; preds = %8, %1
%5 = load i32, i32* @WNOHANG
%6 = call i64 @waitpid(i32 -1, i32* null, i32 %5)
%7 = icmp sgt i64 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %4
br label %4
9: ; preds = %4
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"Child exitted!\0A\00"
@WNOHANG = global i32 0
define void @catch_child(i32 %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
br label %3
3: ; preds = %3, %1
%4 = load i32, i32* @WNOHANG
%5 = tail call i64 @waitpid(i32 -1, i32* null, i32 %4)
%6 = icmp sgt i64 %5, 0
br i1 %6, label %3, label %7
7: ; preds = %3
ret void
}
unsigned long int divisibility(unsigned long int a, unsigned long int b) {
  if (!(a % b))
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<divisibility>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
xor    %ecx,%ecx
mov    %ecx,%edx
divq   -0x18(%rbp)
cmp    $0x0,%rdx
jne    112f <divisibility+0x2f>
movq   $0x1,-0x8(%rbp)
jmp    1137 <divisibility+0x37>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<divisibility>:
mov    %rdi,%rax
mov    %rdi,%rcx
or     %rsi,%rcx
shr    $0x20,%rcx
je     1116 <divisibility+0x16>
xor    %edx,%edx
div    %rsi
jmp    111a <divisibility+0x1a>
xor    %edx,%edx
div    %esi
xor    %eax,%eax
test   %rdx,%rdx
sete   %al
ret

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

LLVM IR (-O2):
define i64 @divisibility(i64 %0, i64 %1) {
%3 = urem i64 %0, %1
%4 = icmp eq i64 %3, 0
%5 = zext i1 %4 to i64
ret i64 %5
}
/* Type definitions */
typedef scalar_t__ const off_t;

/* Variables and functions */
int /*<<< orphan*/ fail_file();
scalar_t__ lseek(int const, scalar_t__ const, int const);
int /*<<< orphan*/ perror(char *);
off_t ulseek(int const fd, off_t const offset, int const whence) {
  off_t const w = lseek(fd, offset, whence);
  if ((off_t)-1 == w) {
    perror("lseek");
    fail_file();
  }
  return w;
}


x86 assembly (clang, -O0):
<ulseek>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1040 <lseek@plt>
mov    %rax,-0x20(%rbp)
mov    $0xffffffffffffffff,%rax
cmp    -0x20(%rbp),%rax
jne    1179 <ulseek+0x49>
lea    0xe93(%rip),%rdi
call   1050 <perror@plt>
mov    $0x0,%al
call   1030 <fail_file@plt>
mov    -0x20(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ulseek>:
push   %rbx
call   1040 <lseek@plt>
mov    %rax,%rbx
cmp    $0xffffffffffffffff,%rax
je     1144 <ulseek+0x14>
mov    %rbx,%rax
pop    %rbx
ret
lea    0xeb5(%rip),%rdi
call   1050 <perror@plt>
xor    %eax,%eax
call   1030 <fail_file@plt>
jmp    113f <ulseek+0xf>

LLVM IR (-O0):
@.str = [6 x i8] c"lseek\00"
define i64 @ulseek(i32 %0, i64 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i64
%6 = alloca i32
%7 = alloca i64
store i32 %0, i32* %4
store i64 %1, i64* %5
store i32 %2, i32* %6
%8 = load i32, i32* %4
%9 = load i64, i64* %5
%10 = load i32, i32* %6
%11 = call i64 @lseek(i32 %8, i64 %9, i32 %10)
store i64 %11, i64* %7
%12 = load i64, i64* %7
%13 = icmp eq i64 -1, %12
br i1 %13, label %14, label %17
14: ; preds = %3
%15 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%16 = call i32 (...) @fail_file()
br label %17
17: ; preds = %14, %3
%18 = load i64, i64* %7
ret i64 %18
}

LLVM IR (-O2):
@.str = [6 x i8] c"lseek\00"
define i64 @ulseek(i32 %0, i64 %1, i32 %2) {
%4 = tail call i64 @lseek(i32 %0, i64 %1, i32 %2)
%5 = icmp eq i64 %4, -1
br i1 %5, label %6, label %9
6: ; preds = %3
%7 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 (...) @fail_file()
br label %9
9: ; preds = %6, %3
ret i64 %4
}
/* Type definitions */
struct set {
  int dummy;
};

/* Variables and functions */
int set_prefix(struct set *, void *, int /*<<< orphan*/);
int /*<<< orphan*/ strlen(char *);
bool set_prefix_string(struct set *t, char *s) {
  return set_prefix(t, (void *)s, strlen(s));
}


x86 assembly (clang, -O0):
<set_prefix_string>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    %eax,%edx
call   1040 <set_prefix@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_prefix_string>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
call   1030 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <set_prefix@plt>

LLVM IR (-O0):
%struct.set = type { i32 }
define i32 @set_prefix_string(%struct.set* %0, i8* %1) {
%3 = alloca %struct.set*
%4 = alloca i8*
store %struct.set* %0, %struct.set** %3
store i8* %1, i8** %4
%5 = load %struct.set*, %struct.set** %3
%6 = load i8*, i8** %4
%7 = load i8*, i8** %4
%8 = call i32 @strlen(i8* %7)
%9 = call i32 @set_prefix(%struct.set* %5, i8* %6, i32 %8)
ret i32 %9
}

LLVM IR (-O2):
%struct.set = type { i32 }
define i32 @set_prefix_string(%struct.set* %0, i8* %1) {
%3 = tail call i32 @strlen(i8* %1)
%4 = tail call i32 @set_prefix(%struct.set* %0, i8* %1, i32 %3)
ret i32 %4
}
/* Variables and functions */
int integer_cmp(const void *a, const void *b) {
  if ((intptr_t)a < (intptr_t)b)
    return -1;
  if ((intptr_t)a > (intptr_t)b)
    return +1;
  return 0;
}


x86 assembly (clang, -O0):
<integer_cmp>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
cmp    %rcx,%rax
jge    1129 <integer_cmp+0x29>
movl   $0xffffffff,-0x4(%rbp)
jmp    114d <integer_cmp+0x4d>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
cmp    %rcx,%rax
jle    1146 <integer_cmp+0x46>
movl   $0x1,-0x4(%rbp)
jmp    114d <integer_cmp+0x4d>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<integer_cmp>:
xor    %ecx,%ecx
cmp    %rsi,%rdi
setg   %cl
mov    $0xffffffff,%eax
cmovge %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @integer_cmp(i8* readnone %0, i8* readnone %1) {
%3 = icmp slt i8* %0, %1
%4 = icmp sgt i8* %0, %1
%5 = zext i1 %4 to i32
%6 = select i1 %3, i32 -1, i32 %5
ret i32 %6
}
/* Type definitions */
struct buf {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ buf_concat_len(struct buf *, char *, int);
void buf_append_byte(struct buf *b, char c) { buf_concat_len(b, &c, 1); }


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

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

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

LLVM IR (-O2):
%struct.buf = type { i32 }
define void @buf_append_byte(%struct.buf* %0, i8 signext %1) {
%3 = alloca i8
store i8 %1, i8* %3
%4 = call i32 @buf_concat_len(%struct.buf* %0, i8* %3, i32 1)
ret void
}
void __attribute__((unused)) ffi_cparser_free(void) { return; }


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

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

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

LLVM IR (-O2):
define void @ffi_cparser_free() {
ret void
}
void GB_DIV_f_FP64(double *z, const double *x, const double *y) {
  (*z) = (*x) / (*y);
}


x86 assembly (clang, -O0):
<GB_DIV_f_FP64>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
divsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<GB_DIV_f_FP64>:
movsd  (%rsi),%xmm0
divsd  (%rdx),%xmm0
movsd  %xmm0,(%rdi)
ret

LLVM IR (-O0):
define void @GB_DIV_f_FP64(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** %5
%8 = load double, double* %7
%9 = load double*, double** %6
%10 = load double, double* %9
%11 = fdiv double %8, %10
%12 = load double*, double** %4
store double %11, double* %12
ret void
}

LLVM IR (-O2):
define void @GB_DIV_f_FP64(double* nocapture writeonly %0, double* nocapture %1, double* nocapture %2) {
%4 = load double, double* %1
%5 = load double, double* %2
%6 = fdiv double %4, %5
store double %6, double* %0
ret void
}
int libCMP0060(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @libCMP0060() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, float);
int main(void) {
  float t[5] = {1E0, 1E1, 1E2, 1E3, 1E4};
  printf("%f", t[0] + t[2] + t[3]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeda(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xed7(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xed5(%rip),%eax
mov    %eax,-0x10(%rbp)
movss  -0x20(%rbp),%xmm0
addss  -0x18(%rbp),%xmm0
addss  -0x14(%rbp),%xmm0
lea    0xec0(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@__const.main.t = [5 x float] [float 1.000000e+00, float 1.000000e+01, float 1.000000e+02, float 1.000000e+03, float 1.000000e+04]
@.str = [3 x i8] c"%f\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x float]
store i32 0, i32* %1
%3 = bitcast [5 x float]* %2 to i8*
%4 = getelementptr inbounds [5 x float], [5 x float]* %2, i64 0, i64 0
%5 = load float, float* %4
%6 = getelementptr inbounds [5 x float], [5 x float]* %2, i64 0, i64 2
%7 = load float, float* %6
%8 = fadd float %5, %7
%9 = getelementptr inbounds [5 x float], [5 x float]* %2, i64 0, i64 3
%10 = load float, float* %9
%11 = fadd float %8, %10
%12 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float %11)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float 1.101000e+03)
ret i32 0
}
/* Variables and functions */
int clone(void *, void *, int, void *, int, int, int);
int main(void) {
  int a = clone((void *)1, (void *)2, 3, (void *)4, 5, 6, 7);
  if (a != 28)
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
mov    $0x5,%r8d
mov    $0x6,%r9d
movl   $0x7,(%rsp)
call   1030 <clone@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x1c,-0x8(%rbp)
je     1164 <main+0x54>
movl   $0x1,-0x4(%rbp)
jmp    116b <main+0x5b>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movl   $0x7,(%rsp)
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x4,%ecx
mov    $0x3,%edx
mov    $0x5,%r8d
mov    $0x6,%r9d
call   1030 <clone@plt>
xor    %ecx,%ecx
cmp    $0x1c,%eax
setne  %cl
mov    %ecx,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @clone(i8* inttoptr (i64 1 to i8*), i8* inttoptr (i64 2 to i8*), i32 3, i8* inttoptr (i64 4 to i8*), i32 5, i32 6, i32 7)
%2 = icmp ne i32 %1, 28
%3 = zext i1 %2 to i32
ret i32 %3
}
void free_array2D_contiguous(double **array2D) {
  free(array2D[0]);
  free(array2D);
}


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

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

LLVM IR (-O0):
define void @free_array2D_contiguous(double** %0) {
%2 = alloca double**
store double** %0, double*** %2
%3 = load double**, double*** %2
%4 = getelementptr inbounds double*, double** %3, i64 0
%5 = load double*, double** %4
%6 = bitcast double* %5 to i8*
%7 = load double**, double*** %2
%8 = bitcast double** %7 to i8*
ret void
}

LLVM IR (-O2):
define void @free_array2D_contiguous(double** nocapture %0) {
%2 = bitcast double** %0 to i8**
%3 = load i8*, i8** %2
tail call void @free(i8* %3)
%4 = bitcast double** %0 to i8*
tail call void @free(i8* %4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Cvar_Set2(char const *, char const *, int /*<<< orphan*/);
void Cvar_Set(const char *var_name, const char *value) {
  (void)Cvar_Set2(var_name, value, 0);
}


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

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

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

LLVM IR (-O2):
define void @Cvar_Set(i8* %0, i8* %1) {
%3 = tail call i32 @Cvar_Set2(i8* %0, i8* %1, i32 0)
ret void
}
/* Type definitions */
typedef scalar_t__ uint32_t;

/* Variables and functions */
void SSIIntClear(uint32_t ui32Base, uint32_t ui32IntFlags) {
  ;
  (*((volatile uint32_t *)(ui32Base + 0x00000020))) = ui32IntFlags;
}


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

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

LLVM IR (-O0):
define void @SSIIntClear(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %4
%6 = load i64, i64* %3
%7 = add nsw i64 %6, 32
%8 = inttoptr i64 %7 to i64*
store volatile i64 %5, i64* %8
ret void
}

LLVM IR (-O2):
define void @SSIIntClear(i64 %0, i64 %1) {
%3 = add nsw i64 %0, 32
%4 = inttoptr i64 %3 to i64*
store volatile i64 %1, i64* %4
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, double, double, double, double);
int main() {
  printf(
      "섭씨 %5.1lf도는 화씨 %5.1lf도이다.\n화씨 %5.1lf도는 섭씨 %5.1lf도이다.",
      21.6, (21.6 * 1.8) + 32, 110.3, (110.3 - 32) * 0.55);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xefa(%rip),%rdi
movsd  0xed2(%rip),%xmm0
movsd  0xed2(%rip),%xmm1
movsd  0xed2(%rip),%xmm2
movsd  0xed2(%rip),%xmm3
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf08(%rip),%rdi
movsd  0xee0(%rip),%xmm0
movsd  0xee0(%rip),%xmm1
movsd  0xee0(%rip),%xmm2
movsd  0xee0(%rip),%xmm3
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [88 x i8] c"\EC\84\AD\EC\94\A8 %5.1lf\EB\8F\84\EB\8A\94 \ED\99\94\EC\94\A8 %5.1lf\EB\8F\84\EC\9D\B4\EB\8B\A4.\0A\ED\99\94\EC\94\A8 %5.1lf\EB\8F\84\EB\8A\94 \EC\84\AD\EC\94\A8 %5.1lf\EB\8F\84\EC\9D\B4\EB\8B\A4.\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str, i64 0, i64 0), double 2.160000e+01, double 7.088000e+01, double 1.103000e+02, double 0x40458851EB851EB9)
ret i32 0
}

LLVM IR (-O2):
@.str = [88 x i8] c"\EC\84\AD\EC\94\A8 %5.1lf\EB\8F\84\EB\8A\94 \ED\99\94\EC\94\A8 %5.1lf\EB\8F\84\EC\9D\B4\EB\8B\A4.\0A\ED\99\94\EC\94\A8 %5.1lf\EB\8F\84\EB\8A\94 \EC\84\AD\EC\94\A8 %5.1lf\EB\8F\84\EC\9D\B4\EB\8B\A4.\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str, i64 0, i64 0), double 2.160000e+01, double 7.088000e+01, double 1.103000e+02, double 0x40458851EB851EB9)
ret i32 0
}
int is_in_list(int *list, int len, int x) {
  int i, found = 0;
  for (i = 0; i < len; i++) {
    if (list[i] == x) {
      found = 1;
      i = len;
    }
  }
  return found;
}


x86 assembly (clang, -O0):
<is_in_list>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    115c <is_in_list+0x5c>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x10(%rbp),%eax
jne    1149 <is_in_list+0x49>
movl   $0x1,-0x18(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
jmp    114e <is_in_list+0x4e>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    111c <is_in_list+0x1c>
mov    -0x18(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_in_list>:
xor    %eax,%eax
test   %esi,%esi
jle    1124 <is_in_list+0x24>
mov    $0x1,%r8d
xor    %ecx,%ecx
xchg   %ax,%ax
movslq %ecx,%rcx
cmp    %edx,(%rdi,%rcx,4)
cmove  %esi,%ecx
cmove  %r8d,%eax
add    $0x1,%ecx
cmp    %esi,%ecx
jl     1110 <is_in_list+0x10>
ret

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

LLVM IR (-O2):
define i32 @is_in_list(i32* nocapture %0, i32 %1, i32 %2) {
%4 = icmp sgt i32 %1, 0
br i1 %4, label %5, label %16
5: ; preds = %3, %5
%6 = phi i32 [ %13, %5 ], [ 0, %3 ]
%7 = phi i32 [ %14, %5 ], [ 0, %3 ]
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i32, i32* %0, i64 %8
%10 = load i32, i32* %9
%11 = icmp eq i32 %10, %2
%12 = select i1 %11, i32 %1, i32 %7
%13 = select i1 %11, i32 1, i32 %6
%14 = add nsw i32 %12, 1
%15 = icmp slt i32 %14, %1
br i1 %15, label %5, label %16
16: ; preds = %5, %3
%17 = phi i32 [ 0, %3 ], [ %13, %5 ]
ret i32 %17
}
unsigned xrop3_215_1_0(unsigned char s, unsigned char t) {
  unsigned D = 0x00ff;
  unsigned S = ((unsigned)s << 8) | s;
  unsigned T = ((unsigned)t << 8) | t;
  unsigned stk1;
  unsigned stk2;
  stk2 = T ^ S;
  stk1 = D & stk2;
  stk1 = ~stk1;
  return (stk1 & (~S)) | (D & S);
}


x86 assembly (clang, -O0):
<xrop3_215_1_0>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movl   $0xff,-0x8(%rbp)
movzbl -0x1(%rbp),%eax
shl    $0x8,%eax
movzbl -0x1(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0xc(%rbp)
movzbl -0x2(%rbp),%eax
shl    $0x8,%eax
movzbl -0x2(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
xor    -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
and    -0x18(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
xor    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    -0xc(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
mov    -0x8(%rbp),%ecx
and    -0xc(%rbp),%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xrop3_215_1_0>:
mov    %edi,%eax
shl    $0x8,%eax
or     %edi,%eax
xor    %edi,%esi
or     %esi,%eax
not    %eax
or     %edi,%eax
ret

LLVM IR (-O0):
define i32 @xrop3_215_1_0(i8 zeroext %0, i8 zeroext %1) {
%3 = alloca i8
%4 = alloca i8
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i8 %0, i8* %3
store i8 %1, i8* %4
store i32 255, i32* %5
%10 = load i8, i8* %3
%11 = zext i8 %10 to i32
%12 = shl i32 %11, 8
%13 = load i8, i8* %3
%14 = zext i8 %13 to i32
%15 = or i32 %12, %14
store i32 %15, i32* %6
%16 = load i8, i8* %4
%17 = zext i8 %16 to i32
%18 = shl i32 %17, 8
%19 = load i8, i8* %4
%20 = zext i8 %19 to i32
%21 = or i32 %18, %20
store i32 %21, i32* %7
%22 = load i32, i32* %7
%23 = load i32, i32* %6
%24 = xor i32 %22, %23
store i32 %24, i32* %9
%25 = load i32, i32* %5
%26 = load i32, i32* %9
%27 = and i32 %25, %26
store i32 %27, i32* %8
%28 = load i32, i32* %8
%29 = xor i32 %28, -1
store i32 %29, i32* %8
%30 = load i32, i32* %8
%31 = load i32, i32* %6
%32 = xor i32 %31, -1
%33 = and i32 %30, %32
%34 = load i32, i32* %5
%35 = load i32, i32* %6
%36 = and i32 %34, %35
%37 = or i32 %33, %36
ret i32 %37
}

LLVM IR (-O2):
define i32 @xrop3_215_1_0(i8 zeroext %0, i8 zeroext %1) {
%3 = zext i8 %0 to i32
%4 = mul nuw nsw i32 %3, 257
%5 = xor i8 %1, %0
%6 = zext i8 %5 to i32
%7 = or i32 %4, %6
%8 = xor i32 %7, -1
%9 = or i32 %8, %3
ret i32 %9
}
int linew(const int side, int row) {
  int width = 0;
  if (row < side - 1 || (row >= 2 * side - 1 && row < 3 * side - 2)) {
    width = row + 1;
  } else {
    width = 4 * side - 3 - row;
  }
  return width;
}


x86 assembly (clang, -O0):
<linew>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jl     1148 <linew+0x48>
mov    -0x8(%rbp),%eax
mov    -0x4(%rbp),%ecx
shl    $0x1,%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jl     1156 <linew+0x56>
mov    -0x8(%rbp),%eax
imul   $0x3,-0x4(%rbp),%ecx
sub    $0x2,%ecx
cmp    %ecx,%eax
jge    1156 <linew+0x56>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1165 <linew+0x65>
mov    -0x4(%rbp),%eax
shl    $0x2,%eax
sub    $0x3,%eax
sub    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<linew>:
mov    %esi,%eax
lea    -0x1(%rdi),%ecx
cmp    %esi,%ecx
jg     111d <linew+0x1d>
lea    (%rdi,%rdi,1),%ecx
add    $0xffffffff,%ecx
cmp    %eax,%ecx
jg     1121 <linew+0x21>
lea    (%rdi,%rdi,2),%ecx
add    $0xfffffffe,%ecx
cmp    %eax,%ecx
jle    1121 <linew+0x21>
add    $0x1,%eax
ret
shl    $0x2,%edi
sub    %eax,%edi
add    $0xfffffffd,%edi
mov    %edi,%eax
ret

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

LLVM IR (-O2):
define i32 @linew(i32 %0, i32 %1) {
%3 = add nsw i32 %0, -1
%4 = icmp sgt i32 %3, %1
br i1 %4, label %13, label %5
5: ; preds = %2
%6 = shl nsw i32 %0, 1
%7 = add nsw i32 %6, -1
%8 = icmp sgt i32 %7, %1
br i1 %8, label %15, label %9
9: ; preds = %5
%10 = mul nsw i32 %0, 3
%11 = add nsw i32 %10, -2
%12 = icmp sgt i32 %11, %1
br i1 %12, label %13, label %15
13: ; preds = %9, %2
%14 = add nsw i32 %1, 1
br label %19
15: ; preds = %9, %5
%16 = shl nsw i32 %0, 2
%17 = add nsw i32 %16, -3
%18 = sub i32 %17, %1
br label %19
19: ; preds = %15, %13
%20 = phi i32 [ %14, %13 ], [ %18, %15 ]
ret i32 %20
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main() {
  printf("Hello world\n");
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%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
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [13 x i8] c"Hello world\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [12 x i8] c"Hello world\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int *my_malloc2(int);
void n2af1() {
  int *p = my_malloc2(12);
  return;
}


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

x86 assembly (clang, -O2):
<n2af1>:
mov    $0xc,%edi
jmp    1030 <my_malloc2@plt>

LLVM IR (-O0):
define void @n2af1() {
%1 = alloca i32*
%2 = call i32* @my_malloc2(i32 12)
store i32* %2, i32** %1
ret void
}

LLVM IR (-O2):
define void @n2af1() {
%1 = tail call i32* @my_malloc2(i32 12)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ SOCK_STREAM;
int do_open_server_socket(int, int /*<<< orphan*/);
int open_server_socket(int port) {
  return (do_open_server_socket(port, SOCK_STREAM));
}


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

x86 assembly (clang, -O2):
<open_server_socket>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%esi
jmp    1030 <do_open_server_socket@plt>

LLVM IR (-O0):
@SOCK_STREAM = global i32 0
define i32 @open_server_socket(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* @SOCK_STREAM
%5 = call i32 @do_open_server_socket(i32 %3, i32 %4)
ret i32 %5
}

LLVM IR (-O2):
@SOCK_STREAM = global i32 0
define i32 @open_server_socket(i32 %0) {
%2 = load i32, i32* @SOCK_STREAM
%3 = tail call i32 @do_open_server_socket(i32 %0, i32 %2)
ret i32 %3
}
void lsmVarintWrite32(unsigned char *z, unsigned int y) {
  z[0] = (unsigned char)(y >> 24);
  z[1] = (unsigned char)(y >> 16);
  z[2] = (unsigned char)(y >> 8);
  z[3] = (unsigned char)(y);
}


x86 assembly (clang, -O0):
<lsmVarintWrite32>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
shr    $0x18,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
mov    -0xc(%rbp),%eax
shr    $0x10,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,0x1(%rax)
mov    -0xc(%rbp),%eax
shr    $0x8,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,0x2(%rax)
mov    -0xc(%rbp),%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,0x3(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<lsmVarintWrite32>:
bswap  %esi
mov    %esi,(%rdi)
ret

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

LLVM IR (-O2):
define void @lsmVarintWrite32(i8* nocapture writeonly %0, i32 %1) {
%3 = lshr i32 %1, 24
%4 = trunc i32 %3 to i8
store i8 %4, i8* %0
%5 = lshr i32 %1, 16
%6 = trunc i32 %5 to i8
%7 = getelementptr inbounds i8, i8* %0, i64 1
store i8 %6, i8* %7
%8 = lshr i32 %1, 8
%9 = trunc i32 %8 to i8
%10 = getelementptr inbounds i8, i8* %0, i64 2
store i8 %9, i8* %10
%11 = trunc i32 %1 to i8
%12 = getelementptr inbounds i8, i8* %0, i64 3
store i8 %11, i8* %12
ret void
}