xunge/DecIR huggingface dataset:
int isword(c)
int c;
{
  static char special[] = ".%_-$@";
  return (isalnum(c) || isin(special, c));
}


x86 assembly (clang, -O0):
<isword>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <isalnum@plt>
mov    %eax,%ecx
mov    $0x1,%al
cmp    $0x0,%ecx
mov    %al,-0x5(%rbp)
jne    115d <isword+0x3d>
mov    -0x4(%rbp),%esi
lea    0x2ee3(%rip),%rdi
mov    $0x0,%al
call   1040 <isin@plt>
cmp    $0x0,%eax
setne  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isword>:
push   %rbx
mov    %edi,%ebx
call   1030 <isalnum@plt>
mov    %eax,%ecx
mov    $0x1,%eax
test   %ecx,%ecx
je     1135 <isword+0x15>
pop    %rbx
ret
lea    0x2ef4(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <isin@plt>
mov    %eax,%ecx
xor    %eax,%eax
test   %ecx,%ecx
setne  %al
pop    %rbx
ret

LLVM IR (-O0):
@isword.special = internal global [7 x i8] c".%_-$@\00"
define i32 @isword(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @isalnum(i32 %3)
%5 = icmp ne i32 %4, 0
br i1 %5, label %10, label %6
6: ; preds = %1
%7 = load i32, i32* %2
%8 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @isin to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @isword.special, i64 0, i64 0), i32 %7)
%9 = icmp ne i32 %8, 0
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ true, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
@isword.special = internal global [7 x i8] c".%_-$@\00"
define i32 @isword(i32 %0) {
%2 = tail call i32 @isalnum(i32 %0)
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @isin to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @isword.special, i64 0, i64 0), i32 %0)
%6 = icmp ne i32 %5, 0
%7 = zext i1 %6 to i32
br label %8
8: ; preds = %4, %1
%9 = phi i32 [ 1, %1 ], [ %7, %4 ]
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ appendCODE(int /*<<< orphan*/);
int /*<<< orphan*/ makeCODEi2c(int /*<<< orphan*/ *);
void code_i2c() { appendCODE(makeCODEi2c(NULL)); }


x86 assembly (clang, -O0):
<code_i2c>:
push   %rbp
mov    %rsp,%rbp
xor    %eax,%eax
mov    %eax,%edi
call   1040 <makeCODEi2c@plt>
mov    %eax,%edi
call   1030 <appendCODE@plt>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @code_i2c() {
%1 = call i32 @makeCODEi2c(i32* null)
%2 = call i32 @appendCODE(i32 %1)
ret void
}

LLVM IR (-O2):
define void @code_i2c() {
%1 = tail call i32 @makeCODEi2c(i32* null)
%2 = tail call i32 @appendCODE(i32 %1)
ret void
}
int f(char *p) {}


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

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

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

LLVM IR (-O2):
define i32 @f(i8* nocapture readnone %0) {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ _hmt_register_covercase(char *, char *);
void _hmt_covercase_HMM_SquareRootF_init(void) {
  _hmt_register_covercase("HMM_SquareRootF", "1");
}


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

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

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

LLVM IR (-O2):
@.str = [16 x i8] c"HMM_SquareRootF\00"
@.str.1 = [2 x i8] c"1\00"
define void @_hmt_covercase_HMM_SquareRootF_init() {
%1 = tail call i32 @_hmt_register_covercase(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ skipstr_easy_test();
int main() {
  skipstr_easy_test();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @skipstr_easy_test()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ initTime(int, int /*<<< orphan*/);
int main() {
  initTime(5, 0);
  for (;;) {
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x5,%edi
xor    %esi,%esi
call   1030 <initTime@plt>
jmp    112b <main+0x1b>

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x5,%edi
xor    %esi,%esi
call   1030 <initTime@plt>
nopl   (%rax)
jmp    1120 <main+0x10>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @initTime(i32 5, i32 0)
br label %3
3: ; preds = %3, %0
br label %3
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @initTime(i32 5, i32 0)
br label %2
2: ; preds = %2, %0
br label %2
}
int next_left(char H[], int i, int len) {
  int j;
  for (j = i - 1; H[j] == 'c' && j >= 0; j--)
    ;
  return j;
}


x86 assembly (clang, -O0):
<next_left>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
xor    %eax,%eax
cmp    $0x63,%ecx
mov    %al,-0x15(%rbp)
jne    113b <next_left+0x3b>
cmpl   $0x0,-0x14(%rbp)
setge  %al
mov    %al,-0x15(%rbp)
mov    -0x15(%rbp),%al
test   $0x1,%al
jne    114b <next_left+0x4b>
jmp    115e <next_left+0x5e>
jmp    1150 <next_left+0x50>
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
jmp    1117 <next_left+0x17>
mov    -0x14(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<next_left>:
movslq %esi,%rcx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    -0x1(%rcx),%rax
cmpb   $0x63,-0x1(%rdi,%rcx,1)
jne    1123 <next_left+0x23>
test   %rcx,%rcx
mov    %rax,%rcx
jg     1110 <next_left+0x10>
ret

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

LLVM IR (-O2):
define i32 @next_left(i8* nocapture %0, i32 %1, i32 %2) {
%4 = sext i32 %1 to i64
br label %5
5: ; preds = %5, %3
%6 = phi i64 [ %7, %5 ], [ %4, %3 ]
%7 = add nsw i64 %6, -1
%8 = getelementptr inbounds i8, i8* %0, i64 %7
%9 = load i8, i8* %8
%10 = icmp eq i8 %9, 99
%11 = icmp sgt i64 %6, 0
%12 = select i1 %10, i1 %11, i1 false
br i1 %12, label %5, label %13
13: ; preds = %5
%14 = trunc i64 %7 to i32
ret i32 %14
}
int radar11185138_foo() {
  int x, y;
  x = y = 0;
  return y;
}


x86 assembly (clang, -O0):
<radar11185138_foo>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0x4(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @radar11185138_foo() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int f1();
int f2();
int main() {
  assert(f1() == 1);
  assert(f2() == 2);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <f1@plt>
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    $0x0,%al
call   1030 <f2@plt>
cmp    $0x2,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1050 <f1@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1040 <assert@plt>
xor    %eax,%eax
call   1030 <f2@plt>
xor    %edi,%edi
cmp    $0x2,%eax
sete   %dil
call   1040 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 (...) @f1()
%2 = icmp eq i32 %1, 1
%3 = zext i1 %2 to i32
%4 = call i32 @assert(i32 %3)
%5 = call i32 (...) @f2()
%6 = icmp eq i32 %5, 2
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 %7)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @f1()
%2 = icmp eq i32 %1, 1
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 %3)
%5 = tail call i32 (...) @f2()
%6 = icmp eq i32 %5, 2
%7 = zext i1 %6 to i32
%8 = tail call i32 @assert(i32 %7)
ret i32 0
}
void av_image_check_size() {}


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

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

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

LLVM IR (-O2):
define void @av_image_check_size() {
ret void
}
double C_uniform_cdf(const double *p) {
  return (0.5 *
          ((*p + 1. < 0. ? 0. : *p + 1.) - (*p - 1. < 0. ? 0. : *p - 1.)));
}


x86 assembly (clang, -O0):
<C_uniform_cdf>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsd  0xeec(%rip),%xmm1
addsd  (%rax),%xmm1
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jbe    1132 <C_uniform_cdf+0x32>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    1147 <C_uniform_cdf+0x47>
mov    -0x8(%rbp),%rax
movsd  0xec2(%rip),%xmm0
addsd  (%rax),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
movsd  0xe9f(%rip),%xmm0
subsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jbe    117f <C_uniform_cdf+0x7f>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
jmp    1198 <C_uniform_cdf+0x98>
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0xe71(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm0
subsd  %xmm0,%xmm1
movsd  0xe5a(%rip),%xmm0
mulsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<C_uniform_cdf>:
movsd  (%rdi),%xmm1
movsd  0xef4(%rip),%xmm2
addsd  %xmm1,%xmm2
xorpd  %xmm3,%xmm3
xorpd  %xmm0,%xmm0
maxsd  %xmm2,%xmm0
addsd  0xee4(%rip),%xmm1
maxsd  %xmm1,%xmm3
subsd  %xmm3,%xmm0
mulsd  0xedc(%rip),%xmm0
ret

LLVM IR (-O0):
define double @C_uniform_cdf(double* %0) {
%2 = alloca double*
store double* %0, double** %2
%3 = load double*, double** %2
%4 = load double, double* %3
%5 = fadd double %4, 1.000000e+00
%6 = fcmp olt double %5, 0.000000e+00
br i1 %6, label %7, label %8
7: ; preds = %1
br label %12
8: ; preds = %1
%9 = load double*, double** %2
%10 = load double, double* %9
%11 = fadd double %10, 1.000000e+00
br label %12
12: ; preds = %8, %7
%13 = phi double [ 0.000000e+00, %7 ], [ %11, %8 ]
%14 = load double*, double** %2
%15 = load double, double* %14
%16 = fsub double %15, 1.000000e+00
%17 = fcmp olt double %16, 0.000000e+00
br i1 %17, label %18, label %19
18: ; preds = %12
br label %23
19: ; preds = %12
%20 = load double*, double** %2
%21 = load double, double* %20
%22 = fsub double %21, 1.000000e+00
br label %23
23: ; preds = %19, %18
%24 = phi double [ 0.000000e+00, %18 ], [ %22, %19 ]
%25 = fsub double %13, %24
%26 = fmul double 5.000000e-01, %25
ret double %26
}

LLVM IR (-O2):
define double @C_uniform_cdf(double* nocapture %0) {
%2 = load double, double* %0
%3 = fadd double %2, 1.000000e+00
%4 = fcmp olt double %3, 0.000000e+00
%5 = select i1 %4, double 0.000000e+00, double %3
%6 = fadd double %2, -1.000000e+00
%7 = fcmp olt double %6, 0.000000e+00
%8 = select i1 %7, double 0.000000e+00, double %6
%9 = fsub double %5, %8
%10 = fmul double %9, 5.000000e-01
ret double %10
}
/* Variables and functions */
int strcmp(char *const, char *const);
int revnamesort(const void *p1, const void *p2) {
  return -strcmp(*(char *const *)p1, *(char *const *)p2);
}


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

x86 assembly (clang, -O2):
<revnamesort>:
push   %rax
mov    (%rdi),%rdi
mov    (%rsi),%rsi
call   1030 <strcmp@plt>
neg    %eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @revnamesort(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 = bitcast i8* %5 to i8**
%7 = load i8*, i8** %6
%8 = load i8*, i8** %4
%9 = bitcast i8* %8 to i8**
%10 = load i8*, i8** %9
%11 = call i32 @strcmp(i8* %7, i8* %10)
%12 = sub nsw i32 0, %11
ret i32 %12
}

LLVM IR (-O2):
define i32 @revnamesort(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i8**
%4 = load i8*, i8** %3
%5 = bitcast i8* %1 to i8**
%6 = load i8*, i8** %5
%7 = tail call i32 @strcmp(i8* dereferenceable(1) %4, i8* dereferenceable(1) %6)
%8 = sub nsw i32 0, %7
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ DasPrintInstruction(int, int);
int DbgGetValueByAddress(unsigned short);
void DasPrintInstructionAtAddr(unsigned short LinearAddress) {
  int Value;
  int ExtraCode = 0;
  Value = DbgGetValueByAddress(LinearAddress);
  if ((DbgGetValueByAddress(LinearAddress - 1)) == 6)
    ExtraCode = 1;
  DasPrintInstruction(ExtraCode, Value);
}


x86 assembly (clang, -O0):
<DasPrintInstructionAtAddr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
movl   $0x0,-0xc(%rbp)
movzwl -0x2(%rbp),%edi
call   1040 <DbgGetValueByAddress@plt>
mov    %eax,-0x8(%rbp)
movzwl -0x2(%rbp),%eax
sub    $0x1,%eax
movzwl %ax,%edi
call   1040 <DbgGetValueByAddress@plt>
cmp    $0x6,%eax
jne    1161 <DasPrintInstructionAtAddr+0x41>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <DasPrintInstruction@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DasPrintInstructionAtAddr>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebx
call   1040 <DbgGetValueByAddress@plt>
mov    %eax,%ebp
add    $0xffffffff,%ebx
movzwl %bx,%edi
call   1040 <DbgGetValueByAddress@plt>
xor    %edi,%edi
cmp    $0x6,%eax
sete   %dil
mov    %ebp,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <DasPrintInstruction@plt>

LLVM IR (-O0):
define void @DasPrintInstructionAtAddr(i16 zeroext %0) {
%2 = alloca i16
%3 = alloca i32
%4 = alloca i32
store i16 %0, i16* %2
store i32 0, i32* %4
%5 = load i16, i16* %2
%6 = call i32 @DbgGetValueByAddress(i16 zeroext %5)
store i32 %6, i32* %3
%7 = load i16, i16* %2
%8 = zext i16 %7 to i32
%9 = sub nsw i32 %8, 1
%10 = trunc i32 %9 to i16
%11 = call i32 @DbgGetValueByAddress(i16 zeroext %10)
%12 = icmp eq i32 %11, 6
br i1 %12, label %13, label %14
13: ; preds = %1
store i32 1, i32* %4
br label %14
14: ; preds = %13, %1
%15 = load i32, i32* %4
%16 = load i32, i32* %3
%17 = call i32 @DasPrintInstruction(i32 %15, i32 %16)
ret void
}

LLVM IR (-O2):
define void @DasPrintInstructionAtAddr(i16 zeroext %0) {
%2 = tail call i32 @DbgGetValueByAddress(i16 zeroext %0)
%3 = add i16 %0, -1
%4 = tail call i32 @DbgGetValueByAddress(i16 zeroext %3)
%5 = icmp eq i32 %4, 6
%6 = zext i1 %5 to i32
%7 = tail call i32 @DasPrintInstruction(i32 %6, i32 %2)
ret void
}
void foo() {
  char *ap;
  ap[1] == '-' && ap[2] == 0;
}


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
mov    -0x8(%rbp),%rax
movsbl 0x1(%rax),%ecx
xor    %eax,%eax
cmp    $0x2d,%ecx
mov    %al,-0x9(%rbp)
jne    112b <foo+0x2b>
mov    -0x8(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x0,%eax
sete   %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
pop    %rbp
ret

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

LLVM IR (-O0):
define void @foo() {
%1 = alloca i8*
%2 = load i8*, i8** %1
%3 = getelementptr inbounds i8, i8* %2, i64 1
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
%6 = icmp eq i32 %5, 45
br i1 %6, label %7, label %13
7: ; preds = %0
%8 = load i8*, i8** %1
%9 = getelementptr inbounds i8, i8* %8, i64 2
%10 = load i8, i8* %9
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 0
br label %13
13: ; preds = %7, %0
%14 = phi i1 [ false, %0 ], [ %12, %7 ]
%15 = zext i1 %14 to i32
ret void
}

LLVM IR (-O2):
define void @foo() {
ret void
}
/* Variables and functions */
int fibDP(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main(int argc, char const *argv[]) {
  int n, result;
  printf("Enter a Number to find the Fibonacci using DP apporach: ");
  scanf("%d", &n);
  result = fibDP(n);
  printf("\n Fibonacci of %d is: %d", n, result);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef4(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x14(%rbp),%edi
call   1050 <fibDP@plt>
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xebd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%edi
call   1050 <fibDP@plt>
mov    0x4(%rsp),%esi
lea    0xed5(%rip),%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [57 x i8] c"Enter a Number to find the Fibonacci using DP apporach: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [25 x i8] c"\0A Fibonacci of %d is: %d\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
%10 = load i32, i32* %6
%11 = call i32 @fibDP(i32 %10)
store i32 %11, i32* %7
%12 = load i32, i32* %6
%13 = load i32, i32* %7
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 %12, i32 %13)
ret i32 0
}

LLVM IR (-O2):
@.str = [57 x i8] c"Enter a Number to find the Fibonacci using DP apporach: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [25 x i8] c"\0A Fibonacci of %d is: %d\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%7 = load i32, i32* %3
%8 = call i32 @fibDP(i32 %7)
%9 = load i32, i32* %3
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 %9, i32 %8)
ret i32 0
}
signed short sfx_sign_extend(unsigned b, int x) {
  int m = 1 << (b - 1);
  x = x & ((1 << b) - 1);
  return (x ^ m) - m;
}


x86 assembly (clang, -O0):
<sfx_sign_extend>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
mov    $0x1,%eax
shl    %cl,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    -0x4(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
sub    $0x1,%ecx
and    %ecx,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
xor    -0xc(%rbp),%eax
sub    -0xc(%rbp),%eax
cwtl
pop    %rbp
ret

x86 assembly (clang, -O2):
<sfx_sign_extend>:
lea    -0x1(%rdi),%r8d
mov    $0x1,%edx
mov    %r8d,%ecx
shl    %cl,%edx
mov    $0xffffffff,%eax
mov    %edi,%ecx
shl    %cl,%eax
not    %eax
and    %esi,%eax
btc    %r8d,%eax
sub    %edx,%eax
ret

LLVM IR (-O0):
define signext i16 @sfx_sign_extend(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %3
%7 = sub i32 %6, 1
%8 = shl i32 1, %7
store i32 %8, i32* %5
%9 = load i32, i32* %4
%10 = load i32, i32* %3
%11 = shl i32 1, %10
%12 = sub nsw i32 %11, 1
%13 = and i32 %9, %12
store i32 %13, i32* %4
%14 = load i32, i32* %4
%15 = load i32, i32* %5
%16 = xor i32 %14, %15
%17 = load i32, i32* %5
%18 = sub nsw i32 %16, %17
%19 = trunc i32 %18 to i16
ret i16 %19
}

LLVM IR (-O2):
define signext i16 @sfx_sign_extend(i32 %0, i32 %1) {
%3 = add i32 %0, -1
%4 = shl nuw i32 1, %3
%5 = shl nsw i32 -1, %0
%6 = xor i32 %5, -1
%7 = and i32 %6, %1
%8 = xor i32 %7, %4
%9 = sub nsw i32 %8, %4
%10 = trunc i32 %9 to i16
ret i16 %10
}
void jachs21(double *p, double *jac, int m, int n, void *data) {
  register int j = 0;
  jac[j++] = 0.1;
  jac[j++] = 0.0;
  jac[j++] = 0.0;
  jac[j++] = 1.0;
}


x86 assembly (clang, -O0):
<jachs21>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
movsd  0xed1(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
movsd  0xe76(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
pop    %rbp
ret

x86 assembly (clang, -O2):
<jachs21>:
movabs $0x3fb999999999999a,%rax
99 b9 3f
mov    %rax,(%rsi)
xorps  %xmm0,%xmm0
movups %xmm0,0x8(%rsi)
movabs $0x3ff0000000000000,%rax
mov    %rax,0x18(%rsi)
ret

LLVM IR (-O0):
define void @jachs21(double* %0, double* %1, i32 %2, i32 %3, i8* %4) {
%6 = alloca double*
%7 = alloca double*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i32
store double* %0, double** %6
store double* %1, double** %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i8* %4, i8** %10
store i32 0, i32* %11
%12 = load double*, double** %7
%13 = load i32, i32* %11
%14 = add nsw i32 %13, 1
store i32 %14, i32* %11
%15 = sext i32 %13 to i64
%16 = getelementptr inbounds double, double* %12, i64 %15
store double 1.000000e-01, double* %16
%17 = load double*, double** %7
%18 = load i32, i32* %11
%19 = add nsw i32 %18, 1
store i32 %19, i32* %11
%20 = sext i32 %18 to i64
%21 = getelementptr inbounds double, double* %17, i64 %20
store double 0.000000e+00, double* %21
%22 = load double*, double** %7
%23 = load i32, i32* %11
%24 = add nsw i32 %23, 1
store i32 %24, i32* %11
%25 = sext i32 %23 to i64
%26 = getelementptr inbounds double, double* %22, i64 %25
store double 0.000000e+00, double* %26
%27 = load double*, double** %7
%28 = load i32, i32* %11
%29 = add nsw i32 %28, 1
store i32 %29, i32* %11
%30 = sext i32 %28 to i64
%31 = getelementptr inbounds double, double* %27, i64 %30
store double 1.000000e+00, double* %31
ret void
}

LLVM IR (-O2):
define void @jachs21(double* nocapture readnone %0, double* nocapture writeonly %1, i32 %2, i32 %3, i8* nocapture readnone %4) {
store double 1.000000e-01, double* %1
%6 = getelementptr inbounds double, double* %1, i64 1
%7 = getelementptr inbounds double, double* %1, i64 3
%8 = bitcast double* %6 to i8*
store double 1.000000e+00, double* %7
ret void
}
void send_sigurg(void) { nsc_assert(0, __func__); }


x86 assembly (clang, -O0):
<send_sigurg>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
lea    0xee3(%rip),%rsi
mov    $0x0,%al
call   1030 <nsc_assert@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<send_sigurg>:
lea    0xee9(%rip),%rsi
xor    %edi,%edi
xor    %eax,%eax
jmp    1030 <nsc_assert@plt>

LLVM IR (-O0):
@__func__.send_sigurg = [12 x i8] c"send_sigurg\00"
define void @send_sigurg() {
%1 = call i32 (i32, i8*, ...) bitcast (i32 (...)* @nsc_assert to i32 (i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @__func__.send_sigurg, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@__func__.send_sigurg = [12 x i8] c"send_sigurg\00"
define void @send_sigurg() {
%1 = tail call i32 (i32, i8*, ...) bitcast (i32 (...)* @nsc_assert to i32 (i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @__func__.send_sigurg, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, char const *, char const *);
int /*<<< orphan*/ puts(char const *);
void x_arg_error(const char *x, const char *name, const char *try) {
  printf("%s argument for option \"%s\".  ", x, name);
  puts(try);
  exit(1);
}


x86 assembly (clang, -O0):
<x_arg_error>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
lea    0xead(%rip),%rdi
call   1040 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<x_arg_error>:
push   %rbx
mov    %rdx,%rbx
mov    %rsi,%rdx
mov    %rdi,%rsi
lea    0xebf(%rip),%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [31 x i8] c"%s argument for option \22%s\22. \00"
define void @x_arg_error(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load i8*, i8** %4
%8 = load i8*, i8** %5
%9 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i8* %7, i8* %8)
%10 = load i8*, i8** %6
%11 = call i32 @puts(i8* %10)
%12 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [31 x i8] c"%s argument for option \22%s\22. \00"
define void @x_arg_error(i8* %0, i8* %1, i8* nocapture %2) {
%4 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1)
%5 = tail call i32 @puts(i8* dereferenceable(1) %2)
%6 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
unsigned int sys_call(int, unsigned int, unsigned int, unsigned int,
                      int /*<<< orphan*/);
unsigned int ioc_read(unsigned int lba, void *buffer, unsigned int count) {
  return sys_call(0x16, lba, (unsigned int)buffer, count, 0);
}


x86 assembly (clang, -O0):
<ioc_read>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x10(%rbp),%rax
mov    %eax,%edx
mov    -0x14(%rbp),%ecx
mov    $0x16,%edi
xor    %r8d,%r8d
call   1030 <sys_call@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ioc_read>:
mov    %edx,%ecx
mov    %rsi,%rdx
mov    %edi,%esi
mov    $0x16,%edi
xor    %r8d,%r8d
jmp    1030 <sys_call@plt>

LLVM IR (-O0):
define i32 @ioc_read(i32 %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
store i32 %0, i32* %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i32, i32* %4
%8 = load i8*, i8** %5
%9 = ptrtoint i8* %8 to i32
%10 = load i32, i32* %6
%11 = call i32 @sys_call(i32 22, i32 %7, i32 %9, i32 %10, i32 0)
ret i32 %11
}

LLVM IR (-O2):
define i32 @ioc_read(i32 %0, i8* %1, i32 %2) {
%4 = ptrtoint i8* %1 to i64
%5 = trunc i64 %4 to i32
%6 = tail call i32 @sys_call(i32 22, i32 %0, i32 %5, i32 %2, i32 0)
ret i32 %6
}
void joy_close(void) { return; }


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

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

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

LLVM IR (-O2):
define void @joy_close() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ strcmp(char *, char const *);
int dcc_argv_search(char **a, const char *needle) {
  for (; *a; a++)
    if (!strcmp(*a, needle))
      return 1;
  return 0;
}


x86 assembly (clang, -O0):
<dcc_argv_search>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
je     1169 <dcc_argv_search+0x59>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1153 <dcc_argv_search+0x43>
movl   $0x1,-0x4(%rbp)
jmp    1170 <dcc_argv_search+0x60>
jmp    1158 <dcc_argv_search+0x48>
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
jmp    1120 <dcc_argv_search+0x10>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dcc_argv_search>:
push   %rbp
push   %r14
push   %rbx
mov    %rdi,%rbp
mov    (%rdi),%rdi
xor    %r14d,%r14d
test   %rdi,%rdi
je     1151 <dcc_argv_search+0x41>
mov    %rsi,%rbx
add    $0x8,%rbp
nopl   0x0(%rax)
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %eax,%eax
je     114b <dcc_argv_search+0x3b>
mov    0x0(%rbp),%rdi
add    $0x8,%rbp
test   %rdi,%rdi
jne    1130 <dcc_argv_search+0x20>
jmp    1151 <dcc_argv_search+0x41>
mov    $0x1,%r14d
mov    %r14d,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @dcc_argv_search(i8** nocapture %0, i8* nocapture %1) {
%3 = load i8*, i8** %0
%4 = icmp eq i8* %3, null
br i1 %4, label %14, label %8
5: ; preds = %8
%6 = load i8*, i8** %13
%7 = icmp eq i8* %6, null
br i1 %7, label %14, label %8
8: ; preds = %2, %5
%9 = phi i8* [ %6, %5 ], [ %3, %2 ]
%10 = phi i8** [ %13, %5 ], [ %0, %2 ]
%11 = tail call i32 @strcmp(i8* %9, i8* dereferenceable(1) %1)
%12 = icmp eq i32 %11, 0
%13 = getelementptr inbounds i8*, i8** %10, i64 1
br i1 %12, label %14, label %5
14: ; preds = %8, %5, %2
%15 = phi i32 [ 0, %2 ], [ 0, %5 ], [ 1, %8 ]
ret i32 %15
}
/* Variables and functions */
int /*<<< orphan*/ io_program_out(int, int);
void pic16n_increment_address(void) { io_program_out(0xF8, 8); }


x86 assembly (clang, -O0):
<pic16n_increment_address>:
push   %rbp
mov    %rsp,%rbp
mov    $0xf8,%edi
mov    $0x8,%esi
call   1030 <io_program_out@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<pic16n_increment_address>:
mov    $0xf8,%edi
mov    $0x8,%esi
jmp    1030 <io_program_out@plt>

LLVM IR (-O0):
define void @pic16n_increment_address() {
%1 = call i32 @io_program_out(i32 248, i32 8)
ret void
}

LLVM IR (-O2):
define void @pic16n_increment_address() {
%1 = tail call i32 @io_program_out(i32 248, i32 8)
ret void
}
mlreply(prompt, buf, nbuf) char *prompt;
char *buf;
{ return (nextarg(prompt, buf, nbuf, ctoec((int)'\r'))); }


x86 assembly (clang, -O0):
<mlreply>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    $0xd,%edi
mov    $0x0,%al
call   1030 <ctoec@plt>
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x18(%rbp),%edx
mov    %eax,%ecx
mov    $0x0,%al
call   1040 <nextarg@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mlreply>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %rsi,%rbx
mov    %rdi,%rbp
mov    $0xd,%edi
xor    %eax,%eax
call   1030 <ctoec@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r14d,%edx
mov    %eax,%ecx
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <nextarg@plt>

LLVM IR (-O0):
define i32 @mlreply(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i8*, i8** %4
%8 = load i8*, i8** %5
%9 = load i32, i32* %6
%10 = call i32 (i32, ...) bitcast (i32 (...)* @ctoec to i32 (i32, ...)*)(i32 13)
%11 = call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @nextarg to i32 (i8*, i8*, i32, i32, ...)*)(i8* %7, i8* %8, i32 %9, i32 %10)
ret i32 %11
}

LLVM IR (-O2):
define i32 @mlreply(i8* %0, i8* %1, i32 %2) {
%4 = tail call i32 (i32, ...) bitcast (i32 (...)* @ctoec to i32 (i32, ...)*)(i32 13)
%5 = tail call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @nextarg to i32 (i8*, i8*, i32, i32, ...)*)(i8* %0, i8* %1, i32 %2, i32 %4)
ret i32 %5
}
int securestore_key_read(char *keyname, char *keybuf, unsigned int keylen) {
  return -1;
}


x86 assembly (clang, -O0):
<securestore_key_read>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    $0xffffffff,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @securestore_key_read(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
ret i32 -1
}

LLVM IR (-O2):
define i32 @securestore_key_read(i8* nocapture readnone %0, i8* nocapture readnone %1, i32 %2) {
ret i32 -1
}
void rnx_clear(void) {}


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

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

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

LLVM IR (-O2):
define void @rnx_clear() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ close(int);
void scamper_ip4_close(int fd) {
  close(fd);
  return;
}


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

x86 assembly (clang, -O2):
<scamper_ip4_close>:
jmp    1030 <close@plt>

LLVM IR (-O0):
define void @scamper_ip4_close(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @close(i32 %3)
ret void
}

LLVM IR (-O2):
define void @scamper_ip4_close(i32 %0) {
%2 = tail call i32 @close(i32 %0)
ret void
}
double Sleef_ldexp(double x, int k) { return __builtin_ldexp(x, k); }


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

x86 assembly (clang, -O2):
<Sleef_ldexp>:
jmp    1030 <ldexp@plt>

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

LLVM IR (-O2):
define double @Sleef_ldexp(double %0, i32 %1) {
%3 = tail call double @ldexp(double %0, i32 %1)
ret double %3
}
int islower(c)
char c;
{ return c >= 'a' && c <= 'z'; }


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

x86 assembly (clang, -O2):
<islower>:
shl    $0x18,%edi
add    $0x9fffffff,%edi
xor    %eax,%eax
cmp    $0x1affffff,%edi
setb   %al
ret

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

LLVM IR (-O2):
define i32 @islower(i32 %0) {
%2 = shl i32 %0, 24
%3 = add i32 %2, -1610612737
%4 = icmp ult i32 %3, 452984831
%5 = zext i1 %4 to i32
ret i32 %5
}
void FreeArrayOfUnits(int **array_of_units, int sudoku_size) {
  int i;
  for (i = 0; i < 3 * sudoku_size; i++) {
    free(array_of_units[i]);
  }
  free(array_of_units);
}


x86 assembly (clang, -O0):
<FreeArrayOfUnits>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
imul   $0x3,-0xc(%rbp),%ecx
cmp    %ecx,%eax
jge    1154 <FreeArrayOfUnits+0x44>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1126 <FreeArrayOfUnits+0x16>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<FreeArrayOfUnits>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r14
test   %esi,%esi
jle    1142 <FreeArrayOfUnits+0x32>
lea    (%rsi,%rsi,2),%eax
cmp    $0x2,%eax
mov    $0x1,%r15d
cmovge %eax,%r15d
xor    %ebx,%ebx
xchg   %ax,%ax
mov    (%r14,%rbx,8),%rdi
call   1030 <free@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    1130 <FreeArrayOfUnits+0x20>
mov    %r14,%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @FreeArrayOfUnits(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
br label %6
6: ; preds = %18, %2
%7 = load i32, i32* %5
%8 = load i32, i32* %4
%9 = mul nsw i32 3, %8
%10 = icmp slt i32 %7, %9
br i1 %10, label %11, label %21
11: ; preds = %6
%12 = load i32**, i32*** %3
%13 = load i32, i32* %5
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32*, i32** %12, i64 %14
%16 = load i32*, i32** %15
%17 = bitcast i32* %16 to i8*
br label %18
18: ; preds = %11
%19 = load i32, i32* %5
%20 = add nsw i32 %19, 1
store i32 %20, i32* %5
br label %6
21: ; preds = %6
%22 = load i32**, i32*** %3
%23 = bitcast i32** %22 to i8*
ret void
}

LLVM IR (-O2):
define void @FreeArrayOfUnits(i32** nocapture %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %15
4: ; preds = %2
%5 = mul i32 %1, 3
%6 = call i32 @llvm.smax.i32(i32 %5, i32 1)
%7 = zext i32 %6 to i64
br label %8
8: ; preds = %4, %8
%9 = phi i64 [ 0, %4 ], [ %13, %8 ]
%10 = getelementptr inbounds i32*, i32** %0, i64 %9
%11 = bitcast i32** %10 to i8**
%12 = load i8*, i8** %11
tail call void @free(i8* %12)
%13 = add nuw nsw i64 %9, 1
%14 = icmp eq i64 %13, %7
br i1 %14, label %15, label %8
15: ; preds = %8, %2
%16 = bitcast i32** %0 to i8*
tail call void @free(i8* %16)
ret void
}
/* Variables and functions */
double exp(double);
double Exp(double a, double b) { return exp(a); }


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

x86 assembly (clang, -O2):
<Exp>:
jmp    1030 <exp@plt>

LLVM IR (-O0):
define double @Exp(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = load double, double* %3
%6 = call double @exp(double %5)
ret double %6
}

LLVM IR (-O2):
define double @Exp(double %0, double %1) {
%3 = tail call double @exp(double %0)
ret double %3
}
int Fib(int n) {
  if (n == 0)
    return 0;
  else if (n == 1)
    return 1;
  else
    return Fib(n - 1) + Fib(n - 2);
}


x86 assembly (clang, -O0):
<Fib>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    1131 <Fib+0x21>
movl   $0x0,-0x4(%rbp)
jmp    116a <Fib+0x5a>
cmpl   $0x1,-0x8(%rbp)
jne    1147 <Fib+0x37>
movl   $0x1,-0x4(%rbp)
jmp    116a <Fib+0x5a>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
call   1030 <Fib@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%edi
sub    $0x2,%edi
call   1030 <Fib@plt>
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Fib>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebx
xor    %ebp,%ebp
cmp    $0x2,%ebx
jb     1132 <Fib+0x22>
nopl   0x0(%rax)
lea    -0x1(%rbx),%edi
call   1030 <Fib@plt>
add    %eax,%ebp
add    $0xfffffffe,%ebx
cmp    $0x2,%ebx
jae    1120 <Fib+0x10>
add    %ebp,%ebx
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @Fib(i32 %0) {
br label %2
2: ; preds = %6, %1
%3 = phi i32 [ 0, %1 ], [ %10, %6 ]
%4 = phi i32 [ %0, %1 ], [ %9, %6 ]
%5 = icmp ult i32 %4, 2
br i1 %5, label %11, label %6
6: ; preds = %2
%7 = add nsw i32 %4, -1
%8 = tail call i32 @Fib(i32 %7)
%9 = add nsw i32 %4, -2
%10 = add nsw i32 %8, %3
br label %2
11: ; preds = %2
%12 = add nsw i32 %4, %3
ret i32 %12
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *);
void printf_spaces(FILE *f, int inc) {
  while (--inc >= 0)
    fprintf(f, "  ");
}


x86 assembly (clang, -O0):
<printf_spaces>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
cmp    $0x0,%eax
jl     1146 <printf_spaces+0x36>
mov    -0x8(%rbp),%rdi
lea    0xec4(%rip),%rsi
call   1030 <fprintf@plt>
jmp    111f <printf_spaces+0xf>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printf_spaces>:
push   %r15
push   %r14
push   %rbx
test   %esi,%esi
jle    114d <printf_spaces+0x3d>
mov    %esi,%ebx
mov    %rdi,%r14
add    $0x1,%ebx
lea    0xed8(%rip),%r15
nopl   0x0(%rax,%rax,1)
mov    $0x2,%esi
mov    $0x1,%edx
mov    %r15,%rdi
mov    %r14,%rcx
call   1030 <fwrite@plt>
add    $0xffffffff,%ebx
cmp    $0x1,%ebx
ja     1130 <printf_spaces+0x20>
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c" \00"
define void @printf_spaces(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
br label %5
5: ; preds = %9, %2
%6 = load i32, i32* %4
%7 = add nsw i32 %6, -1
store i32 %7, i32* %4
%8 = icmp sge i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %5
%10 = load i32*, i32** %3
%11 = call i32 @fprintf(i32* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
br label %5
12: ; preds = %5
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c" \00"
define void @printf_spaces(i32* nocapture %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %9
4: ; preds = %2, %4
%5 = phi i32 [ %6, %4 ], [ %1, %2 ]
%6 = add nsw i32 %5, -1
%7 = tail call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i64 2, i64 1, i32* %0)
%8 = icmp ugt i32 %5, 1
br i1 %8, label %4, label %9
9: ; preds = %4, %2
ret void
}
/* Variables and functions */
char *U_WMRCORENONE_set(char *);
char *U_WMRB1_set(void) { return U_WMRCORENONE_set("U_WMRB1"); }


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

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

LLVM IR (-O0):
@.str = [8 x i8] c"U_WMRB1\00"
define i8* @U_WMRB1_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_WMRB1\00"
define i8* @U_WMRB1_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 */
scalar_t__ is_white(char const);
char white2space(const char c) {
  if (is_white(c))
    return (' ');
  else
    return (c);
}


x86 assembly (clang, -O0):
<white2space>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x2(%rbp)
movsbl -0x2(%rbp),%edi
call   1030 <is_white@plt>
cmp    $0x0,%rax
je     113a <white2space+0x2a>
movb   $0x20,-0x1(%rbp)
jmp    1140 <white2space+0x30>
mov    -0x2(%rbp),%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<white2space>:
push   %rbx
mov    %edi,%ebx
call   1030 <is_white@plt>
test   %rax,%rax
mov    $0x20,%eax
cmove  %ebx,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define signext i8 @white2space(i8 signext %0) {
%2 = tail call i64 @is_white(i8 signext %0)
%3 = icmp eq i64 %2, 0
%4 = select i1 %3, i8 %0, i8 32
ret i8 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void kazymasikfunc() { printf("Meg mindig en vagyok a kazy\n"); }


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

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

LLVM IR (-O0):
@.str = [29 x i8] c"Meg mindig en vagyok a kazy\0A\00"
define void @kazymasikfunc() {
%1 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [28 x i8] c"Meg mindig en vagyok a kazy\00"
define void @kazymasikfunc() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str, i64 0, i64 0))
ret void
}