xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ utl_time_fmt(char *, int /*<<< orphan*/);
int /*<<< orphan*/ utl_time_time();
const char *utl_time_str_time(char pStr[(20) + 1]) {
  utl_time_fmt(pStr, utl_time_time());
  return pStr;
}


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

x86 assembly (clang, -O2):
<utl_time_str_time>:
push   %rbx
mov    %rdi,%rbx
xor    %eax,%eax
call   1030 <utl_time_time@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <utl_time_fmt@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @utl_time_str_time(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (...) @utl_time_time()
%5 = call i32 @utl_time_fmt(i8* %3, i32 %4)
%6 = load i8*, i8** %2
ret i8* %6
}

LLVM IR (-O2):
define i8* @utl_time_str_time(i8* returned %0) {
%2 = tail call i32 (...) @utl_time_time()
%3 = tail call i32 @utl_time_fmt(i8* %0, i32 %2)
ret i8* %0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int strStr(char *, char *);
int main(int argc, char *argv[]) {
  printf("%d\n", strStr(argv[1], argv[2]));
  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    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
call   1040 <strStr@plt>
mov    %eax,%esi
lea    0xeac(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [4 x i8] c"%d\0A\00"
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 i8**, i8*** %5
%7 = getelementptr inbounds i8*, i8** %6, i64 1
%8 = load i8*, i8** %7
%9 = load i8**, i8*** %5
%10 = getelementptr inbounds i8*, i8** %9, i64 2
%11 = load i8*, i8** %10
%12 = call i32 @strStr(i8* %8, i8* %11)
%13 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %12)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = getelementptr inbounds i8*, i8** %1, i64 1
%4 = load i8*, i8** %3
%5 = getelementptr inbounds i8*, i8** %1, i64 2
%6 = load i8*, i8** %5
%7 = tail call i32 @strStr(i8* %4, i8* %6)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %7)
ret i32 0
}
void setmode(int fd, int mode) { return; }


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

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

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

LLVM IR (-O2):
define void @setmode(i32 %0, i32 %1) {
ret void
}
/* Type definitions */
typedef int uint64_t;

/* Variables and functions */
uint64_t Rotate(uint64_t val, int shift) {
  return shift == 0 ? val : ((val >> shift) | (val << (64 - shift)));
}


x86 assembly (clang, -O0):
<Rotate>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    111f <Rotate+0x1f>
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    113b <Rotate+0x3b>
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
sar    %cl,%eax
mov    -0x4(%rbp),%edx
mov    $0x40,%ecx
sub    -0x8(%rbp),%ecx
shl    %cl,%edx
mov    %edx,%ecx
or     %ecx,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<Rotate>:
mov    %edi,%edx
mov    %esi,%ecx
sar    %cl,%edx
neg    %cl
mov    %edi,%eax
shl    %cl,%eax
or     %edx,%eax
test   %esi,%esi
cmove  %edi,%eax
ret

LLVM IR (-O0):
define i32 @Rotate(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = load i32, i32* %3
br label %18
9: ; preds = %2
%10 = load i32, i32* %3
%11 = load i32, i32* %4
%12 = ashr i32 %10, %11
%13 = load i32, i32* %3
%14 = load i32, i32* %4
%15 = sub nsw i32 64, %14
%16 = shl i32 %13, %15
%17 = or i32 %12, %16
br label %18
18: ; preds = %9, %7
%19 = phi i32 [ %8, %7 ], [ %17, %9 ]
ret i32 %19
}

LLVM IR (-O2):
define i32 @Rotate(i32 %0, i32 %1) {
%3 = icmp eq i32 %1, 0
%4 = ashr i32 %0, %1
%5 = sub nsw i32 64, %1
%6 = shl i32 %0, %5
%7 = or i32 %6, %4
%8 = select i1 %3, i32 %0, i32 %7
ret i32 %8
}
/* Variables and functions */
char *U_WMRCORENONE_set(char *);
char *U_WMR96_set(void) { return U_WMRCORENONE_set("U_WMR96"); }


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

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

LLVM IR (-O0):
@.str = [8 x i8] c"U_WMR96\00"
define i8* @U_WMR96_set() {
%1 = call i8* @U_WMRCORENONE_set(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}

LLVM IR (-O2):
@.str = [8 x i8] c"U_WMR96\00"
define i8* @U_WMR96_set() {
%1 = tail call i8* @U_WMRCORENONE_set(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}
/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ FAIL(char *);
int /*<<< orphan*/ PASS(char *);
scalar_t__ foo();
int main() {
  if (foo())
    PASS("init-libSystem-first");
  else
    FAIL("init-libSystem-first");
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <foo@plt>
cmp    $0x0,%rax
je     1161 <main+0x31>
lea    0xea9(%rip),%rdi
call   1040 <PASS@plt>
jmp    116d <main+0x3d>
lea    0xe98(%rip),%rdi
call   1050 <FAIL@plt>
mov    0x2e6c(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <foo@plt>
lea    0xec1(%rip),%rdi
test   %rax,%rax
je     114b <main+0x1b>
call   1040 <PASS@plt>
jmp    1150 <main+0x20>
call   1050 <FAIL@plt>
mov    0x2e89(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [21 x i8] c"init-libSystem-first\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i64 (...) @foo()
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @PASS(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
br label %8
6: ; preds = %0
%7 = call i32 @FAIL(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %6, %4
%9 = load i32, i32* @EXIT_SUCCESS
ret i32 %9
}

LLVM IR (-O2):
@.str = [21 x i8] c"init-libSystem-first\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = tail call i64 (...) @foo()
%2 = icmp eq i64 %1, 0
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 @PASS(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
br label %7
5: ; preds = %0
%6 = tail call i32 @FAIL(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
br label %7
7: ; preds = %5, %3
%8 = load i32, i32* @EXIT_SUCCESS
ret i32 %8
}
int isPositiveMemoryAmount(int memory_amount) { return memory_amount > 0; }


x86 assembly (clang, -O0):
<isPositiveMemoryAmount>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
setg   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isPositiveMemoryAmount>:
xor    %eax,%eax
test   %edi,%edi
setg   %al
ret

LLVM IR (-O0):
define i32 @isPositiveMemoryAmount(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sgt i32 %3, 0
%5 = zext i1 %4 to i32
ret i32 %5
}

LLVM IR (-O2):
define i32 @isPositiveMemoryAmount(i32 %0) {
%2 = icmp sgt i32 %0, 0
%3 = zext i1 %2 to i32
ret i32 %3
}
int overlap() {}


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

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

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

LLVM IR (-O2):
define i32 @overlap() {
ret i32 undef
}
int main() {
  __asm__("jmp    aroundexit");
  __asm__("doexit:          ");
  __asm__("       movl   $1,%eax       # exit");
  __asm__("       movl   $0,%ebx       # exit code");
  __asm__("       int    $0x80         # kernel");
  __asm__("aroundexit: call doexit");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
jmp    111c <aroundexit>

x86 assembly (clang, -O2):
<main>:
jmp    110e <aroundexit>

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

LLVM IR (-O2):
define i32 @main() {
tail call void asm sideeffect "jmp aroundexit", "~{dirflag},~{fpsr},~{flags}"()
tail call void asm sideeffect "doexit: ", "~{dirflag},~{fpsr},~{flags}"()
tail call void asm sideeffect " movl $$1,%eax # exit", "~{dirflag},~{fpsr},~{flags}"()
tail call void asm sideeffect " movl $$0,%ebx # exit code", "~{dirflag},~{fpsr},~{flags}"()
tail call void asm sideeffect " int $$0x80 # kernel", "~{dirflag},~{fpsr},~{flags}"()
tail call void asm sideeffect "aroundexit: call doexit", "~{dirflag},~{fpsr},~{flags}"()
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ readl(void *);
uint32_t read_pxmsks(unsigned port) {
  return readl((void *)0xb0010000 + (port * 0x100) + (0x24));
}


x86 assembly (clang, -O0):
<read_pxmsks>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
shl    $0x8,%eax
mov    %eax,%eax
mov    $0xb0010000,%edi
add    %rax,%rdi
add    $0x24,%rdi
call   1030 <readl@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_pxmsks>:
shl    $0x8,%edi
mov    $0xb0010024,%eax
add    %rax,%rdi
jmp    1030 <readl@plt>

LLVM IR (-O0):
define i32 @read_pxmsks(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = mul i32 %3, 256
%5 = zext i32 %4 to i64
%6 = getelementptr i8, i8* inttoptr (i64 2952855552 to i8*), i64 %5
%7 = getelementptr i8, i8* %6, i64 36
%8 = call i32 @readl(i8* %7)
ret i32 %8
}

LLVM IR (-O2):
define i32 @read_pxmsks(i32 %0) {
%2 = shl i32 %0, 8
%3 = zext i32 %2 to i64
%4 = getelementptr i8, i8* inttoptr (i64 2952855552 to i8*), i64 %3
%5 = getelementptr i8, i8* %4, i64 36
%6 = tail call i32 @readl(i8* %5)
ret i32 %6
}
double ls_cost_nm3_sq(double x) { return x * x; }


x86 assembly (clang, -O0):
<ls_cost_nm3_sq>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<ls_cost_nm3_sq>:
mulsd  %xmm0,%xmm0
ret

LLVM IR (-O0):
define double @ls_cost_nm3_sq(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = load double, double* %2
%5 = fmul double %3, %4
ret double %5
}

LLVM IR (-O2):
define double @ls_cost_nm3_sq(double %0) {
%2 = fmul double %0, %0
ret double %2
}
/* Variables and functions */
int /*<<< orphan*/ abort();
double pow(double, int);
double sqrt(double);
int main() {
  double x = -1.0;
  if (sqrt(pow(x, 2)) != 1.0)
    abort();
  if (sqrt(x * x) != 1.0)
    abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xec1(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
call   1050 <sqrt@plt>
movsd  0xe98(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    117d <main+0x4d>
jp     117d <main+0x4d>
jmp    1184 <main+0x54>
mov    $0x0,%al
call   1030 <abort@plt>
movsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
call   1050 <sqrt@plt>
movsd  0xe65(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    11b0 <main+0x80>
jp     11b0 <main+0x80>
jmp    11b7 <main+0x87>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movsd  0xec7(%rip),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1153 <main+0x23>
sqrtsd %xmm0,%xmm0
jmp    1158 <main+0x28>
call   1050 <sqrt@plt>
ucomisd 0xea8(%rip),%xmm0
jne    1168 <main+0x38>
jp     1168 <main+0x38>
xor    %eax,%eax
pop    %rcx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca double
store i32 0, i32* %1
store double -1.000000e+00, double* %2
%3 = load double, double* %2
%4 = call double @pow(double %3, i32 2)
%5 = call double @sqrt(double %4)
%6 = fcmp une double %5, 1.000000e+00
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 (...) @abort()
unreachable
9: ; preds = %0
%10 = load double, double* %2
%11 = load double, double* %2
%12 = fmul double %10, %11
%13 = call double @sqrt(double %12)
%14 = fcmp une double %13, 1.000000e+00
br i1 %14, label %15, label %17
15: ; preds = %9
%16 = call i32 (...) @abort()
unreachable
17: ; preds = %9
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call double @pow(double -1.000000e+00, i32 2)
%2 = tail call double @sqrt(double %1)
%3 = fcmp une double %2, 1.000000e+00
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = tail call i32 (...) @abort()
unreachable
6: ; preds = %0
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ pr_info(char *, int);
int sci_get_chip_id();
int soc_id_is_sc9832av0(void) {
  pr_info("chip id is %x\n", sci_get_chip_id());
  return ((sci_get_chip_id() & (0xFFFFF000)) == ((0x96301000) & (0xFFFFF000)));
}


x86 assembly (clang, -O0):
<soc_id_is_sc9832av0>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <sci_get_chip_id@plt>
mov    %eax,%esi
lea    0xecc(%rip),%rdi
call   1030 <pr_info@plt>
mov    $0x0,%al
call   1040 <sci_get_chip_id@plt>
and    $0xfffff000,%eax
cmp    $0x96301000,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<soc_id_is_sc9832av0>:
push   %rax
xor    %eax,%eax
call   1040 <sci_get_chip_id@plt>
lea    0xed1(%rip),%rdi
mov    %eax,%esi
call   1030 <pr_info@plt>
xor    %eax,%eax
call   1040 <sci_get_chip_id@plt>
and    $0xfffff000,%eax
xor    %ecx,%ecx
cmp    $0x96301000,%eax
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [15 x i8] c"chip id is %x\0A\00"
define i32 @soc_id_is_sc9832av0() {
%1 = call i32 (...) @sci_get_chip_id()
%2 = call i32 @pr_info(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = call i32 (...) @sci_get_chip_id()
%4 = and i32 %3, -4096
%5 = icmp eq i32 %4, -1775235072
%6 = zext i1 %5 to i32
ret i32 %6
}

LLVM IR (-O2):
@.str = [15 x i8] c"chip id is %x\0A\00"
define i32 @soc_id_is_sc9832av0() {
%1 = tail call i32 (...) @sci_get_chip_id()
%2 = tail call i32 @pr_info(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = tail call i32 (...) @sci_get_chip_id()
%4 = and i32 %3, -4096
%5 = icmp eq i32 %4, -1775235072
%6 = zext i1 %5 to i32
ret i32 %6
}
int hey(int a) {
  int x, y, z;
  z = x ?: y;
}


x86 assembly (clang, -O0):
<hey>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
cmp    $0x0,%eax
je     1121 <hey+0x21>
mov    -0x18(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    1127 <hey+0x27>
mov    -0x10(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @hey(i32 %0) {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ hexdecodemap();
int /*<<< orphan*/ hexencodemap();
int /*<<< orphan*/ urlencodemap();
int /*<<< orphan*/ urlencodeminmap();
int main() {
  urlencodemap();
  urlencodeminmap();
  hexdecodemap();
  hexencodemap();
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <urlencodemap@plt>
xor    %eax,%eax
call   1060 <urlencodeminmap@plt>
xor    %eax,%eax
call   1030 <hexdecodemap@plt>
xor    %eax,%eax
call   1050 <hexencodemap@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @urlencodemap()
%3 = call i32 (...) @urlencodeminmap()
%4 = call i32 (...) @hexdecodemap()
%5 = call i32 (...) @hexencodemap()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @urlencodemap()
%2 = tail call i32 (...) @urlencodeminmap()
%3 = tail call i32 (...) @hexdecodemap()
%4 = tail call i32 (...) @hexencodemap()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ cmd_printHexByte(unsigned char);
void cmd_printHexWord(unsigned short wd) {
  cmd_printHexByte((unsigned char)((wd & 0xFF00) >> 8));
  cmd_printHexByte((unsigned char)(wd & 0xFF));
}


x86 assembly (clang, -O0):
<cmd_printHexWord>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
movzwl -0x2(%rbp),%eax
and    $0xff00,%eax
sar    $0x8,%eax
movzbl %al,%edi
call   1030 <cmd_printHexByte@plt>
movzwl -0x2(%rbp),%eax
and    $0xff,%eax
movzbl %al,%edi
call   1030 <cmd_printHexByte@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmd_printHexWord>:
push   %rbx
mov    %edi,%ebx
shr    $0x8,%edi
call   1030 <cmd_printHexByte@plt>
movzbl %bl,%edi
pop    %rbx
jmp    1030 <cmd_printHexByte@plt>

LLVM IR (-O0):
define void @cmd_printHexWord(i16 zeroext %0) {
%2 = alloca i16
store i16 %0, i16* %2
%3 = load i16, i16* %2
%4 = zext i16 %3 to i32
%5 = and i32 %4, 65280
%6 = ashr i32 %5, 8
%7 = trunc i32 %6 to i8
%8 = call i32 @cmd_printHexByte(i8 zeroext %7)
%9 = load i16, i16* %2
%10 = zext i16 %9 to i32
%11 = and i32 %10, 255
%12 = trunc i32 %11 to i8
%13 = call i32 @cmd_printHexByte(i8 zeroext %12)
ret void
}

LLVM IR (-O2):
define void @cmd_printHexWord(i16 zeroext %0) {
%2 = lshr i16 %0, 8
%3 = trunc i16 %2 to i8
%4 = tail call i32 @cmd_printHexByte(i8 zeroext %3)
%5 = trunc i16 %0 to i8
%6 = tail call i32 @cmd_printHexByte(i8 zeroext %5)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ match_and_replace(int);
int main(int argc, char **argv) {
  match_and_replace(5000);
  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    $0x1388,%edi
call   1030 <match_and_replace@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1388,%edi
call   1030 <match_and_replace@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 @match_and_replace(i32 5000)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @match_and_replace(i32 5000)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ appendCODE(int /*<<< orphan*/);
int /*<<< orphan*/ makeCODEgetfield(char *, int /*<<< orphan*/ *);
void code_getfield(char *arg) { appendCODE(makeCODEgetfield(arg, NULL)); }


x86 assembly (clang, -O0):
<code_getfield>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <makeCODEgetfield@plt>
mov    %eax,%edi
call   1030 <appendCODE@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<code_getfield>:
push   %rax
xor    %esi,%esi
call   1040 <makeCODEgetfield@plt>
mov    %eax,%edi
pop    %rax
jmp    1030 <appendCODE@plt>

LLVM IR (-O0):
define void @code_getfield(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @makeCODEgetfield(i8* %3, i32* null)
%5 = call i32 @appendCODE(i32 %4)
ret void
}

LLVM IR (-O2):
define void @code_getfield(i8* %0) {
%2 = tail call i32 @makeCODEgetfield(i8* %0, i32* null)
%3 = tail call i32 @appendCODE(i32 %2)
ret void
}
void parse_charptr(void *out, char *in) { *(char **)out = in; }


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

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

LLVM IR (-O0):
define void @parse_charptr(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 = bitcast i8* %6 to i8**
store i8* %5, i8** %7
ret void
}

LLVM IR (-O2):
define void @parse_charptr(i8* nocapture writeonly %0, i8* %1) {
%3 = bitcast i8* %0 to i8**
store i8* %1, i8** %3
ret void
}
/* Variables and functions */
int INT_MAX;
int numa_distance(int node1, int node2) { return INT_MAX; }


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

x86 assembly (clang, -O2):
<numa_distance>:
mov    0x2ee1(%rip),%rax
mov    (%rax),%eax
ret

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

LLVM IR (-O2):
@INT_MAX = global i32 0
define i32 @numa_distance(i32 %0, i32 %1) {
%3 = load i32, i32* @INT_MAX
ret i32 %3
}
/* Type definitions */
struct geometry_struct {
  int dummy;
};

/* Variables and functions */
int box_overlaps_cylinder(struct geometry_struct *, struct geometry_struct *);
int cylinder_overlaps_box(struct geometry_struct *geometry_cyl,
                          struct geometry_struct *geometry_box) {
  return box_overlaps_cylinder(geometry_box, geometry_cyl);
}


x86 assembly (clang, -O0):
<cylinder_overlaps_box>:
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 <box_overlaps_cylinder@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.geometry_struct = type { i32 }
define i32 @cylinder_overlaps_box(%struct.geometry_struct* %0, %struct.geometry_struct* %1) {
%3 = alloca %struct.geometry_struct*
%4 = alloca %struct.geometry_struct*
store %struct.geometry_struct* %0, %struct.geometry_struct** %3
store %struct.geometry_struct* %1, %struct.geometry_struct** %4
%5 = load %struct.geometry_struct*, %struct.geometry_struct** %4
%6 = load %struct.geometry_struct*, %struct.geometry_struct** %3
%7 = call i32 @box_overlaps_cylinder(%struct.geometry_struct* %5, %struct.geometry_struct* %6)
ret i32 %7
}

LLVM IR (-O2):
%struct.geometry_struct = type { i32 }
define i32 @cylinder_overlaps_box(%struct.geometry_struct* %0, %struct.geometry_struct* %1) {
%3 = tail call i32 @box_overlaps_cylinder(%struct.geometry_struct* %1, %struct.geometry_struct* %0)
ret i32 %3
}
void UYVYToUVRow_Any_NEON() {}


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

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

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

LLVM IR (-O2):
define void @UYVYToUVRow_Any_NEON() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ triexit(int);
void internalerror() { triexit(1); }


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

x86 assembly (clang, -O2):
<internalerror>:
mov    $0x1,%edi
jmp    1030 <triexit@plt>

LLVM IR (-O0):
define void @internalerror() {
%1 = call i32 @triexit(i32 1)
ret void
}

LLVM IR (-O2):
define void @internalerror() {
%1 = tail call i32 @triexit(i32 1)
ret void
}
void htc_monitor_init(void) { return; }


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

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

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

LLVM IR (-O2):
define void @htc_monitor_init() {
ret void
}
/* Variables and functions */
unsigned short curr_g();
int /*<<< orphan*/ inc_g();
int /*<<< orphan*/ ring_empty();
unsigned short get_n(void) {
  unsigned short n = 0;
  unsigned short org_g;
  org_g = curr_g();
  while (!ring_empty() && n < 5) {
    inc_g();
    n++;
  }
  return n;
}


x86 assembly (clang, -O0):
<get_n>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movw   $0x0,-0x2(%rbp)
mov    $0x0,%al
call   1030 <curr_g@plt>
mov    %ax,-0x4(%rbp)
mov    $0x0,%al
call   1050 <ring_empty@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x5(%rbp)
jne    116d <get_n+0x3d>
movzwl -0x2(%rbp),%eax
cmp    $0x5,%eax
setl   %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
test   $0x1,%al
jne    117d <get_n+0x4d>
jmp    1195 <get_n+0x65>
mov    $0x0,%al
call   1040 <inc_g@plt>
mov    -0x2(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x2(%rbp)
jmp    1149 <get_n+0x19>
movzwl -0x2(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_n>:
push   %rbp
push   %rbx
push   %rax
xor    %ebp,%ebp
xor    %eax,%eax
call   1030 <curr_g@plt>
xor    %eax,%eax
call   1050 <ring_empty@plt>
test   %eax,%eax
jne    116d <get_n+0x3d>
xor    %ebx,%ebx
nopl   0x0(%rax)
xor    %eax,%eax
call   1040 <inc_g@plt>
lea    0x1(%rbx),%ebp
xor    %eax,%eax
call   1050 <ring_empty@plt>
test   %eax,%eax
jne    116d <get_n+0x3d>
cmp    $0x4,%bx
mov    %ebp,%ebx
jb     1150 <get_n+0x20>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define zeroext i16 @get_n() {
%1 = alloca i16
%2 = alloca i16
store i16 0, i16* %1
%3 = call zeroext i16 (...) @curr_g()
store i16 %3, i16* %2
br label %4
4: ; preds = %13, %0
%5 = call i32 (...) @ring_empty()
%6 = icmp ne i32 %5, 0
br i1 %6, label %11, label %7
7: ; preds = %4
%8 = load i16, i16* %1
%9 = zext i16 %8 to i32
%10 = icmp slt i32 %9, 5
br label %11
11: ; preds = %7, %4
%12 = phi i1 [ false, %4 ], [ %10, %7 ]
br i1 %12, label %13, label %17
13: ; preds = %11
%14 = call i32 (...) @inc_g()
%15 = load i16, i16* %1
%16 = add i16 %15, 1
store i16 %16, i16* %1
br label %4
17: ; preds = %11
%18 = load i16, i16* %1
ret i16 %18
}

LLVM IR (-O2):
define zeroext i16 @get_n() {
%1 = tail call zeroext i16 (...) @curr_g()
%2 = tail call i32 (...) @ring_empty()
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %12
4: ; preds = %0, %4
%5 = phi i16 [ %7, %4 ], [ 0, %0 ]
%6 = tail call i32 (...) @inc_g()
%7 = add nuw nsw i16 %5, 1
%8 = tail call i32 (...) @ring_empty()
%9 = icmp eq i32 %8, 0
%10 = icmp ult i16 %5, 4
%11 = select i1 %9, i1 %10, i1 false
br i1 %11, label %4, label %12
12: ; preds = %4, %0
%13 = phi i16 [ 0, %0 ], [ %7, %4 ]
ret i16 %13
}
void pthread_testcancel() {}


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

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

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

LLVM IR (-O2):
define void @pthread_testcancel() {
ret void
}
int stress_set_timer_slack_ns(const char *opt) {
  (void)opt;
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @stress_set_timer_slack_ns(i8* nocapture readnone %0) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void help13(void) {
  printf("  mb                show memory byte at PC\n");
  printf("  mb <addr>         show memory byte at <addr>\n");
  printf("  mb <addr> <data>  set memory byte at <addr> to <data>\n");
}


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

x86 assembly (clang, -O2):
<help13>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf07(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2a(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [44 x i8] c" mb show memory byte at PC\0A\00"
@.str.1 = [48 x i8] c" mb <addr> show memory byte at <addr>\0A\00"
@.str.2 = [57 x i8] c" mb <addr> <data> set memory byte at <addr> to <data>\0A\00"
define void @help13() {
%1 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [43 x i8] c" mb show memory byte at PC\00"
@str.3 = [47 x i8] c" mb <addr> show memory byte at <addr>\00"
@str.4 = [56 x i8] c" mb <addr> <data> set memory byte at <addr> to <data>\00"
define void @help13() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.3, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.4, i64 0, i64 0))
ret void
}
/* Variables and functions */
double pow(double, int);
double q8(double i) {
  double q9;
  if (i > 15) {
    q9 = 9;
  } else if (i <= 5) {
    q9 = 1;
  } else {
    q9 = 1 / (0.0003869 * pow(i + 0.1815, 2) + 0.01081);
  }
  return q9;
}


x86 assembly (clang, -O0):
<q8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xed6(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1146 <q8+0x36>
movsd  0xef4(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    11b3 <q8+0xa3>
movsd  0xeba(%rip),%xmm0
ucomisd -0x8(%rbp),%xmm0
jb     116b <q8+0x5b>
movsd  0xeaf(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    11ae <q8+0x9e>
movsd  0xeb5(%rip),%xmm0
addsd  -0x8(%rbp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xe8b(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xe87(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xe6b(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    11b3 <q8+0xa3>
movsd  -0x10(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<q8>:
push   %rax
ucomisd 0xeef(%rip),%xmm0
jbe    1125 <q8+0x15>
movsd  0xedd(%rip),%xmm0
pop    %rax
ret
movsd  0xeeb(%rip),%xmm1
ucomisd %xmm0,%xmm1
jae    1167 <q8+0x57>
addsd  0xee5(%rip),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movapd %xmm0,%xmm1
mulsd  0xed7(%rip),%xmm1
addsd  0xed7(%rip),%xmm1
movsd  0xeaf(%rip),%xmm0
divsd  %xmm1,%xmm0
pop    %rax
ret
movsd  0xea1(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @q8(double %0) {
%2 = alloca double
%3 = alloca double
store double %0, double* %2
%4 = load double, double* %2
%5 = fcmp ogt double %4, 1.500000e+01
br i1 %5, label %6, label %7
6: ; preds = %1
store double 9.000000e+00, double* %3
br label %18
7: ; preds = %1
%8 = load double, double* %2
%9 = fcmp ole double %8, 5.000000e+00
br i1 %9, label %10, label %11
10: ; preds = %7
store double 1.000000e+00, double* %3
br label %17
11: ; preds = %7
%12 = load double, double* %2
%13 = fadd double %12, 1.815000e-01
%14 = call double @pow(double %13, i32 2)
%15 = call double @llvm.fmuladd.f64(double 3.869000e-04, double %14, double 1.081000e-02)
%16 = fdiv double 1.000000e+00, %15
store double %16, double* %3
br label %17
17: ; preds = %11, %10
br label %18
18: ; preds = %17, %6
%19 = load double, double* %3
ret double %19
}

LLVM IR (-O2):
define double @q8(double %0) {
%2 = fcmp ogt double %0, 1.500000e+01
br i1 %2, label %10, label %3
3: ; preds = %1
%4 = fcmp ugt double %0, 5.000000e+00
br i1 %4, label %5, label %10
5: ; preds = %3
%6 = fadd double %0, 1.815000e-01
%7 = tail call double @pow(double %6, i32 2)
%8 = tail call double @llvm.fmuladd.f64(double %7, double 3.869000e-04, double 1.081000e-02)
%9 = fdiv double 1.000000e+00, %8
br label %10
10: ; preds = %3, %1, %5
%11 = phi double [ %9, %5 ], [ 9.000000e+00, %1 ], [ 1.000000e+00, %3 ]
ret double %11
}
long recursiveFibonacci(long number) {
  if (number < 0) {
    return -1;
  } else if (!number) {
    return 0;
  } else if (number == 1) {
    return 1;
  } else {
    return (recursiveFibonacci(number - 1) + recursiveFibonacci(number - 2));
  }
}


x86 assembly (clang, -O0):
<recursiveFibonacci>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jge    1134 <recursiveFibonacci+0x24>
movq   $0xffffffffffffffff,-0x8(%rbp)
ff
jmp    1190 <recursiveFibonacci+0x80>
cmpq   $0x0,-0x10(%rbp)
jne    114c <recursiveFibonacci+0x3c>
movq   $0x0,-0x8(%rbp)
jmp    1190 <recursiveFibonacci+0x80>
cmpq   $0x1,-0x10(%rbp)
jne    1164 <recursiveFibonacci+0x54>
movq   $0x1,-0x8(%rbp)
jmp    1190 <recursiveFibonacci+0x80>
mov    -0x10(%rbp),%rdi
sub    $0x1,%rdi
call   1030 <recursiveFibonacci@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
sub    $0x2,%rdi
call   1030 <recursiveFibonacci@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<recursiveFibonacci>:
push   %r14
push   %rbx
push   %rax
test   %rdi,%rdi
js     114b <recursiveFibonacci+0x3b>
mov    %rdi,%rbx
xor    %r14d,%r14d
cmp    $0x2,%rbx
jb     1146 <recursiveFibonacci+0x36>
cs nopw 0x0(%rax,%rax,1)
nop
lea    -0x1(%rbx),%rdi
call   1030 <recursiveFibonacci@plt>
add    %rax,%r14
add    $0xfffffffffffffffe,%rbx
cmp    $0x2,%rbx
jae    1130 <recursiveFibonacci+0x20>
add    %r14,%rbx
jmp    1152 <recursiveFibonacci+0x42>
mov    $0xffffffffffffffff,%rbx
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define i64 @recursiveFibonacci(i64 %0) {
%2 = icmp slt i64 %0, 0
br i1 %2, label %14, label %3
3: ; preds = %1, %7
%4 = phi i64 [ %10, %7 ], [ %0, %1 ]
%5 = phi i64 [ %11, %7 ], [ 0, %1 ]
%6 = icmp ult i64 %4, 2
br i1 %6, label %12, label %7
7: ; preds = %3
%8 = add nsw i64 %4, -1
%9 = tail call i64 @recursiveFibonacci(i64 %8)
%10 = add nsw i64 %4, -2
%11 = add nsw i64 %9, %5
br label %3
12: ; preds = %3
%13 = add nsw i64 %4, %5
br label %14
14: ; preds = %12, %1
%15 = phi i64 [ %13, %12 ], [ -1, %1 ]
ret i64 %15
}
/* Variables and functions */
int get_sid_or_null(char *);
int register_new_symbol(char *);
int get_sid(char *sym_name) {
  int id = get_sid_or_null(sym_name);
  if (id == 0)
    return register_new_symbol(sym_name);
  else
    return id;
}


x86 assembly (clang, -O0):
<get_sid>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <get_sid_or_null@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    1153 <get_sid+0x33>
mov    -0x10(%rbp),%rdi
call   1040 <register_new_symbol@plt>
mov    %eax,-0x4(%rbp)
jmp    1159 <get_sid+0x39>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_sid>:
push   %rbx
mov    %rdi,%rbx
call   1030 <get_sid_or_null@plt>
test   %eax,%eax
je     112f <get_sid+0xf>
pop    %rbx
ret
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <register_new_symbol@plt>

LLVM IR (-O0):
define i32 @get_sid(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
%5 = load i8*, i8** %3
%6 = call i32 @get_sid_or_null(i8* %5)
store i32 %6, i32* %4
%7 = load i32, i32* %4
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %1
%10 = load i8*, i8** %3
%11 = call i32 @register_new_symbol(i8* %10)
store i32 %11, i32* %2
br label %14
12: ; preds = %1
%13 = load i32, i32* %4
store i32 %13, i32* %2
br label %14
14: ; preds = %12, %9
%15 = load i32, i32* %2
ret i32 %15
}

LLVM IR (-O2):
define i32 @get_sid(i8* %0) {
%2 = tail call i32 @get_sid_or_null(i8* %0)
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 @register_new_symbol(i8* %0)
br label %6
6: ; preds = %1, %4
%7 = phi i32 [ %5, %4 ], [ %2, %1 ]
ret i32 %7
}
void MessageBufferLayerP__0__Tasklet__run(void) {}


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

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

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

LLVM IR (-O2):
define void @MessageBufferLayerP__0__Tasklet__run() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ dibujar(char *, int, int);
int getRandomNum(int);
void getSide() {
  int randomNum = getRandomNum(3);
  dibujar("side.png", 80 * randomNum, 162);
}


x86 assembly (clang, -O0):
<getSide>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x3,%edi
call   1030 <getRandomNum@plt>
mov    %eax,-0x4(%rbp)
imul   $0x50,-0x4(%rbp),%esi
lea    0xec0(%rip),%rdi
mov    $0xa2,%edx
call   1040 <dibujar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getSide>:
push   %rax
mov    $0x3,%edi
call   1030 <getRandomNum@plt>
shl    $0x4,%eax
lea    (%rax,%rax,4),%esi
lea    0xec8(%rip),%rdi
mov    $0xa2,%edx
pop    %rax
jmp    1040 <dibujar@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"side.png\00"
define void @getSide() {
%1 = alloca i32
%2 = call i32 @getRandomNum(i32 3)
store i32 %2, i32* %1
%3 = load i32, i32* %1
%4 = mul nsw i32 80, %3
%5 = call i32 @dibujar(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %4, i32 162)
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"side.png\00"
define void @getSide() {
%1 = tail call i32 @getRandomNum(i32 3)
%2 = mul nsw i32 %1, 80
%3 = tail call i32 @dibujar(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %2, i32 162)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ __VERIFIER_assert(int);
int main() {
  int x = -50;
  int y;
  while (x < 0) {
    x = x + y;
    y++;
  }
  __VERIFIER_assert(y > 0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xffffffce,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    1147 <main+0x37>
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1126 <main+0x16>
cmpl   $0x0,-0xc(%rbp)
setg   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__VERIFIER_assert@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 -50, i32* %2
br label %4
4: ; preds = %7, %0
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %13
7: ; preds = %4
%8 = load i32, i32* %2
%9 = load i32, i32* %3
%10 = add nsw i32 %8, %9
store i32 %10, i32* %2
%11 = load i32, i32* %3
%12 = add nsw i32 %11, 1
store i32 %12, i32* %3
br label %4
13: ; preds = %4
%14 = load i32, i32* %3
%15 = icmp sgt i32 %14, 0
%16 = zext i1 %15 to i32
%17 = call i32 @__VERIFIER_assert(i32 %16)
%18 = load i32, i32* %1
ret i32 %18
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @__VERIFIER_assert(i32 0)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void nl(void) { printf("\n"); }


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

x86 assembly (clang, -O2):
<nl>:
mov    $0xa,%edi
jmp    1030 <putchar@plt>

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

LLVM IR (-O2):
define void @nl() {
%1 = tail call i32 @putchar(i32 10)
ret void
}
adrx0adr1(r0, r1, x0, x1, p0, p1) unsigned int r0, r1;
unsigned int *p0, *p1;
{
  if ((((unsigned int *)10000000)[x0]) <= (*((unsigned int *)11111111)))
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<adrx0adr1>:
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)
movslq -0x10(%rbp),%rcx
mov    $0x989680,%eax
mov    (%rax,%rcx,4),%eax
mov    $0xa98ac7,%ecx
cmp    (%rcx),%eax
ja     113d <adrx0adr1+0x3d>
movl   $0x1,-0x4(%rbp)
jmp    1144 <adrx0adr1+0x44>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<adrx0adr1>:
movslq %edx,%rax
mov    0x989680(,%rax,4),%ecx
xor    %eax,%eax
cmp    0xa98ac7,%ecx
setbe  %al
ret

LLVM IR (-O0):
define i32 @adrx0adr1(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* %10
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, i32* inttoptr (i64 10000000 to i32*), i64 %15
%17 = load i32, i32* %16
%18 = load i32, i32* inttoptr (i64 11111111 to i32*)
%19 = icmp ule i32 %17, %18
br i1 %19, label %20, label %21
20: ; preds = %6
store i32 1, i32* %7
br label %22
21: ; preds = %6
store i32 0, i32* %7
br label %22
22: ; preds = %21, %20
%23 = load i32, i32* %7
ret i32 %23
}

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

/* Variables and functions */
uint8_t hci_subevent_le_connection_complete_get_role(const uint8_t *event) {
  return event[6];
}


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

x86 assembly (clang, -O2):
<hci_subevent_le_connection_complete_get_role>:
mov    0x18(%rdi),%eax
ret

LLVM IR (-O0):
define i32 @hci_subevent_le_connection_complete_get_role(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = getelementptr inbounds i32, i32* %3, i64 6
%5 = load i32, i32* %4
ret i32 %5
}

LLVM IR (-O2):
define i32 @hci_subevent_le_connection_complete_get_role(i32* nocapture %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 6
%3 = load i32, i32* %2
ret i32 %3
}
signed int fci_bypass_deinit(void *handle) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @fci_bypass_deinit(i8* nocapture readnone %0) {
ret i32 0
}
call2d(d1, i, f2, l, d2, c, f1, s) double d1;
int i;
float f2;
long l;
double d2;
char c;
float f1;
short s;
{
  c = 'a';
  f1 = 0.0;
  s = 5;
  d1 = 0.0;
  i = 6;
  f2 = 0.1;
  l = 7;
  d2 = 0.2;
}


x86 assembly (clang, -O0):
<call2d>:
push   %rbp
mov    %rsp,%rbp
mov    %ecx,%eax
movsd  %xmm3,-0x40(%rbp)
movaps %xmm0,%xmm3
movsd  -0x40(%rbp),%xmm0
cvtsd2ss %xmm1,%xmm1
mov    %dl,%cl
cvtsd2ss %xmm0,%xmm0
movsd  %xmm3,-0x10(%rbp)
mov    %edi,-0x14(%rbp)
movss  %xmm1,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
movsd  %xmm2,-0x28(%rbp)
mov    %cl,-0x29(%rbp)
movss  %xmm0,-0x30(%rbp)
mov    %ax,-0x32(%rbp)
movb   $0x61,-0x29(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x30(%rbp)
movw   $0x5,-0x32(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x10(%rbp)
movl   $0x6,-0x14(%rbp)
movss  0xea0(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
movq   $0x7,-0x20(%rbp)
movsd  0xe83(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @call2d(double %0, i32 %1, double %2, i64 %3, double %4, i32 %5, double %6, i32 %7) {
%9 = alloca i32
%10 = alloca double
%11 = alloca i32
%12 = alloca float
%13 = alloca i64
%14 = alloca double
%15 = alloca i8
%16 = alloca float
%17 = alloca i16
%18 = fptrunc double %2 to float
%19 = trunc i32 %5 to i8
%20 = fptrunc double %6 to float
%21 = trunc i32 %7 to i16
store double %0, double* %10
store i32 %1, i32* %11
store float %18, float* %12
store i64 %3, i64* %13
store double %4, double* %14
store i8 %19, i8* %15
store float %20, float* %16
store i16 %21, i16* %17
store i8 97, i8* %15
store float 0.000000e+00, float* %16
store i16 5, i16* %17
store double 0.000000e+00, double* %10
store i32 6, i32* %11
store float 0x3FB99999A0000000, float* %12
store i64 7, i64* %13
store double 2.000000e-01, double* %14
%22 = load i32, i32* %9
ret i32 %22
}

LLVM IR (-O2):
define i32 @call2d(double %0, i32 %1, double %2, i64 %3, double %4, i32 %5, double %6, i32 %7) {
ret i32 undef
}