xunge/DecIR huggingface dataset:
double factorial(double x) {
  int result = 0;
  for (result = 1; x > 1; x--)
    result *= x;
  return (double)result;
}


x86 assembly (clang, -O0):
<factorial>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x1,-0xc(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xedc(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    115a <factorial+0x5a>
movsd  -0x8(%rbp),%xmm1
cvtsi2sdl -0xc(%rbp),%xmm0
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0xc(%rbp)
movsd  0xebd(%rip),%xmm0
addsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1117 <factorial+0x17>
cvtsi2sdl -0xc(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<factorial>:
movsd  0xef8(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1146 <factorial+0x46>
movsd  0xeea(%rip),%xmm2
movsd  0xeea(%rip),%xmm3
movapd %xmm2,%xmm1
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mulsd  %xmm0,%xmm1
addsd  %xmm3,%xmm0
cvttpd2dq %xmm1,%xmm1
cvtdq2pd %xmm1,%xmm1
ucomisd %xmm2,%xmm0
ja     1130 <factorial+0x30>
movapd %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @factorial(double %0) {
%2 = alloca double
%3 = alloca i32
store double %0, double* %2
store i32 0, i32* %3
store i32 1, i32* %3
br label %4
4: ; preds = %13, %1
%5 = load double, double* %2
%6 = fcmp ogt double %5, 1.000000e+00
br i1 %6, label %7, label %16
7: ; preds = %4
%8 = load double, double* %2
%9 = load i32, i32* %3
%10 = sitofp i32 %9 to double
%11 = fmul double %10, %8
%12 = fptosi double %11 to i32
store i32 %12, i32* %3
br label %13
13: ; preds = %7
%14 = load double, double* %2
%15 = fadd double %14, -1.000000e+00
store double %15, double* %2
br label %4
16: ; preds = %4
%17 = load i32, i32* %3
%18 = sitofp i32 %17 to double
ret double %18
}

LLVM IR (-O2):
define double @factorial(double %0) {
%2 = fcmp ogt double %0, 1.000000e+00
br i1 %2, label %3, label %11
3: ; preds = %1, %3
%4 = phi double [ %9, %3 ], [ 1.000000e+00, %1 ]
%5 = phi double [ %8, %3 ], [ %0, %1 ]
%6 = fmul double %5, %4
%7 = fptosi double %6 to i32
%8 = fadd double %5, -1.000000e+00
%9 = sitofp i32 %7 to double
%10 = fcmp ogt double %8, 1.000000e+00
br i1 %10, label %3, label %11
11: ; preds = %3, %1
%12 = phi double [ 1.000000e+00, %1 ], [ %9, %3 ]
ret double %12
}
int test_26(int a, int b, int c, int d) { return a >= 0 != b >= 0 ? c : d; }


x86 assembly (clang, -O0):
<test_26>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
cmpl   $0x0,-0x4(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%eax
cmpl   $0x0,-0x8(%rbp)
setge  %cl
and    $0x1,%cl
movzbl %cl,%ecx
cmp    %ecx,%eax
je     113c <test_26+0x3c>
mov    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
jmp    1142 <test_26+0x42>
mov    -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_26>:
mov    %edx,%eax
xor    %esi,%edi
cmovns %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_26(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = xor i32 %1, %0
%6 = icmp sgt i32 %5, -1
%7 = select i1 %6, i32 %3, i32 %2
ret i32 %7
}
/* Variables and functions */
int test_client_gzip();
int main() {
  int nret = 0;
  nret = test_client_gzip();
  return -nret;
}


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

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
%3 = call i32 (...) @test_client_gzip()
store i32 %3, i32* %2
%4 = load i32, i32* %2
%5 = sub nsw i32 0, %4
ret i32 %5
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @test_client_gzip()
%2 = sub nsw i32 0, %1
ret i32 %2
}
/* Variables and functions */
void mem_inplace_ident(void *mem __attribute__((unused)),
                       size_t n __attribute__((unused))) {}


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

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

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

LLVM IR (-O2):
define void @mem_inplace_ident(i8* nocapture %0, i64 %1) {
ret void
}
/* Variables and functions */
char *receive_message(void) { return NULL; }


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

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

LLVM IR (-O0):
define i8* @receive_message() {
ret i8* null
}

LLVM IR (-O2):
define noalias i8* @receive_message() {
ret i8* null
}
/* Variables and functions */
int trap_Cvar_Value(char *);
int CG_GetCvar(void *parameter) { return trap_Cvar_Value((char *)parameter); }


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

x86 assembly (clang, -O2):
<CG_GetCvar>:
jmp    1030 <trap_Cvar_Value@plt>

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

LLVM IR (-O2):
define i32 @CG_GetCvar(i8* %0) {
%2 = tail call i32 @trap_Cvar_Value(i8* %0)
ret i32 %2
}
/* Variables and functions */
scalar_t__ strcmp(char const *, char *);
int get_yesno(const char *str) {
  if (strcmp(str, "yes") == 0)
    return (1);
  else if (strcmp(str, "no") == 0)
    return (0);
  else
    return (-1);
}


x86 assembly (clang, -O0):
<get_yesno>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1142 <get_yesno+0x32>
movl   $0x1,-0x4(%rbp)
jmp    116f <get_yesno+0x5f>
mov    -0x10(%rbp),%rdi
lea    0xeb7(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1168 <get_yesno+0x58>
movl   $0x0,-0x4(%rbp)
jmp    116f <get_yesno+0x5f>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_yesno>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     113b <get_yesno+0x2b>
lea    0xed8(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
neg    %rax
sbb    %eax,%eax
pop    %rbx
ret
mov    $0x1,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"yes\00"
@.str.1 = [3 x i8] c"no\00"
define i32 @get_yesno(i8* %0) {
%2 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
br i1 %3, label %8, label %4
4: ; preds = %1
%5 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp ne i64 %5, 0
%7 = sext i1 %6 to i32
br label %8
8: ; preds = %4, %1
%9 = phi i32 [ 1, %1 ], [ %7, %4 ]
ret i32 %9
}
/* Type definitions */
struct table {
  int dummy;
};

/* Variables and functions */
int l_row_cnt_displ(struct table *);
int l_scroll_page_row_cnt(struct table *t) { return l_row_cnt_displ(t) - 2; }


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

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

LLVM IR (-O0):
%struct.table = type { i32 }
define i32 @l_scroll_page_row_cnt(%struct.table* %0) {
%2 = alloca %struct.table*
store %struct.table* %0, %struct.table** %2
%3 = load %struct.table*, %struct.table** %2
%4 = call i32 @l_row_cnt_displ(%struct.table* %3)
%5 = sub nsw i32 %4, 2
ret i32 %5
}

LLVM IR (-O2):
%struct.table = type { i32 }
define i32 @l_scroll_page_row_cnt(%struct.table* %0) {
%2 = tail call i32 @l_row_cnt_displ(%struct.table* %0)
%3 = add nsw i32 %2, -2
ret i32 %3
}
/* Variables and functions */
int shmdt(void *);
int unmap(void *addr) { return shmdt(addr); }


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

x86 assembly (clang, -O2):
<unmap>:
jmp    1030 <shmdt@plt>

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

LLVM IR (-O2):
define i32 @unmap(i8* %0) {
%2 = tail call i32 @shmdt(i8* %0)
ret i32 %2
}
int lib2fun() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @lib2fun() {
ret i32 0
}
unsigned short RdFwVr(void) {
  unsigned short UsVerVal;
  UsVerVal = (unsigned short)((0x0A << 8) | 0x03);
  return (UsVerVal);
}


x86 assembly (clang, -O0):
<RdFwVr>:
push   %rbp
mov    %rsp,%rbp
movw   $0xa03,-0x2(%rbp)
movzwl -0x2(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<RdFwVr>:
mov    $0xa03,%ax
ret

LLVM IR (-O0):
define zeroext i16 @RdFwVr() {
%1 = alloca i16
store i16 2563, i16* %1
%2 = load i16, i16* %1
ret i16 %2
}

LLVM IR (-O2):
define zeroext i16 @RdFwVr() {
ret i16 2563
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void test3(void) { printf("test3\n"); }


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

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

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

LLVM IR (-O2):
@str = [6 x i8] c"test3\00"
define void @test3() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0))
ret void
}
int isascii(int c) { return c >= 0 && c <= 0x7f; }


x86 assembly (clang, -O0):
<isascii>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jl     1120 <isascii+0x20>
cmpl   $0x7f,-0x4(%rbp)
setle  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isascii>:
xor    %eax,%eax
cmp    $0x80,%edi
setb   %al
ret

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

LLVM IR (-O2):
define i32 @isascii(i32 %0) {
%2 = icmp ult i32 %0, 128
%3 = zext i1 %2 to i32
ret i32 %3
}
void foo152(int p) {}


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

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

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

LLVM IR (-O2):
define void @foo152(i32 %0) {
ret void
}
int start_with(char *str, char *pre) {
  for (;; str++, pre++) {
    if (!*pre) {
      return 0;
    } else if (*str != *pre) {
      return -1;
    }
  }
}


x86 assembly (clang, -O0):
<start_with>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmpb   $0x0,(%rax)
jne    1125 <start_with+0x25>
movl   $0x0,-0x4(%rbp)
jmp    116e <start_with+0x6e>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
mov    -0x18(%rbp),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     1147 <start_with+0x47>
movl   $0xffffffff,-0x4(%rbp)
jmp    116e <start_with+0x6e>
jmp    114c <start_with+0x4c>
jmp    1151 <start_with+0x51>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    110c <start_with+0xc>
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<start_with>:
mov    (%rsi),%al
test   %al,%al
je     1122 <start_with+0x22>
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
cmp    %al,(%rdi,%rcx,1)
jne    1125 <start_with+0x25>
movzbl 0x1(%rsi,%rcx,1),%eax
add    $0x1,%rcx
test   %al,%al
jne    1110 <start_with+0x10>
xor    %eax,%eax
ret
mov    $0xffffffff,%eax
ret

LLVM IR (-O0):
define i32 @start_with(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 = %22, %2
%7 = load i8*, i8** %5
%8 = load i8, i8* %7
%9 = icmp ne i8 %8, 0
br i1 %9, label %11, label %10
10: ; preds = %6
store i32 0, i32* %3
br label %27
11: ; preds = %6
%12 = load i8*, i8** %4
%13 = load i8, i8* %12
%14 = sext i8 %13 to i32
%15 = load i8*, i8** %5
%16 = load i8, i8* %15
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %14, %17
br i1 %18, label %19, label %20
19: ; preds = %11
store i32 -1, i32* %3
br label %27
20: ; preds = %11
br label %21
21: ; preds = %20
br label %22
22: ; preds = %21
%23 = load i8*, i8** %4
%24 = getelementptr inbounds i8, i8* %23, i32 1
store i8* %24, i8** %4
%25 = load i8*, i8** %5
%26 = getelementptr inbounds i8, i8* %25, i32 1
store i8* %26, i8** %5
br label %6
27: ; preds = %19, %10
%28 = load i32, i32* %3
ret i32 %28
}

LLVM IR (-O2):
define i32 @start_with(i8* nocapture %0, i8* nocapture %1) {
%3 = load i8, i8* %1
%4 = icmp eq i8 %3, 0
br i1 %4, label %16, label %5
5: ; preds = %2, %11
%6 = phi i8 [ %14, %11 ], [ %3, %2 ]
%7 = phi i8* [ %13, %11 ], [ %1, %2 ]
%8 = phi i8* [ %12, %11 ], [ %0, %2 ]
%9 = load i8, i8* %8
%10 = icmp eq i8 %9, %6
br i1 %10, label %11, label %16
11: ; preds = %5
%12 = getelementptr inbounds i8, i8* %8, i64 1
%13 = getelementptr inbounds i8, i8* %7, i64 1
%14 = load i8, i8* %13
%15 = icmp eq i8 %14, 0
br i1 %15, label %16, label %5
16: ; preds = %11, %5, %2
%17 = phi i32 [ 0, %2 ], [ -1, %5 ], [ 0, %11 ]
ret i32 %17
}
/* Variables and functions */
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
char *malloc(int);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ stdin;
int main(int argc, char const *argv[]) {
  char *buffer;
  buffer = malloc(1 << 31);
  fgets(buffer, 1024, stdin);
  printf("%s\n", buffer);
  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)
mov    $0x80000000,%edi
call   1050 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    0x2e89(%rip),%rax
mov    (%rax),%edx
mov    $0x400,%esi
call   1040 <fgets@plt>
mov    -0x18(%rbp),%rsi
lea    0xe8a(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x80000000,%edi
call   1050 <malloc@plt>
mov    %rax,%rbx
mov    0x2ea3(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    $0x400,%esi
call   1040 <fgets@plt>
lea    0xea5(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@stdin = global i32 0
@.str = [4 x i8] c"%s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i8* @malloc(i32 -2147483648)
store i8* %7, i8** %6
%8 = load i8*, i8** %6
%9 = load i32, i32* @stdin
%10 = call i32 @fgets(i8* %8, i32 1024, i32 %9)
%11 = load i8*, i8** %6
%12 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %11)
ret i32 0
}

LLVM IR (-O2):
@stdin = global i32 0
@.str = [4 x i8] c"%s\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call dereferenceable_or_null(2147483648) i8* @malloc(i32 -2147483648)
%4 = load i32, i32* @stdin
%5 = tail call i32 @fgets(i8* %3, i32 1024, i32 %4)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %3)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ _Warning(long, char *);
void Warning_UsingAsForHandlerReturnTypeDeprecated(long p_position) {
  _Warning(p_position, "Deprecated syntax: use 'returns <Type>'");
}


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

x86 assembly (clang, -O2):
<Warning_UsingAsForHandlerReturnTypeDeprecated>:
lea    0xee9(%rip),%rsi
jmp    1030 <_Warning@plt>

LLVM IR (-O0):
@.str = [40 x i8] c"Deprecated syntax: use 'returns <Type>'\00"
define void @Warning_UsingAsForHandlerReturnTypeDeprecated(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = call i32 @_Warning(i64 %3, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [40 x i8] c"Deprecated syntax: use 'returns <Type>'\00"
define void @Warning_UsingAsForHandlerReturnTypeDeprecated(i64 %0) {
%2 = tail call i32 @_Warning(i64 %0, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
scalar_t__ cset82(unsigned char const *, int const, int /*<<< orphan*/, int,
                  int, int *, int *, char *);
int x1__3(const unsigned char *data, const int data_len, int *p_err_no,
          int *p_err_posn, char err_msg[50]) {
  return data_len >= 1 && data_len <= 3 &&
         cset82(data, data_len, 0, 1, 3, p_err_no, p_err_posn, err_msg);
}


x86 assembly (clang, -O0):
<x1__3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
xor    %eax,%eax
cmpl   $0x1,-0xc(%rbp)
mov    %al,-0x29(%rbp)
jl     1181 <x1__3+0x71>
xor    %eax,%eax
cmpl   $0x3,-0xc(%rbp)
mov    %al,-0x29(%rbp)
jg     1181 <x1__3+0x71>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
xor    %edx,%edx
mov    $0x1,%ecx
mov    $0x3,%r8d
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <cset82@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x29(%rbp)
mov    -0x29(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<x1__3>:
mov    %rcx,%r10
lea    -0x1(%rsi),%ecx
xor    %eax,%eax
cmp    $0x2,%ecx
ja     114d <x1__3+0x3d>
push   %rax
mov    %r8,%r11
mov    %rdx,%r9
xor    %edx,%edx
mov    $0x1,%ecx
mov    $0x3,%r8d
push   %r11
push   %r10
call   1030 <cset82@plt>
add    $0x10,%rsp
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
setne  %al
add    $0x8,%rsp
ret

LLVM IR (-O0):
define i32 @x1__3(i8* %0, i32 %1, i32* %2, i32* %3, i8* %4) {
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i8*
store i8* %0, i8** %6
store i32 %1, i32* %7
store i32* %2, i32** %8
store i32* %3, i32** %9
store i8* %4, i8** %10
%11 = load i32, i32* %7
%12 = icmp sge i32 %11, 1
br i1 %12, label %13, label %24
13: ; preds = %5
%14 = load i32, i32* %7
%15 = icmp sle i32 %14, 3
br i1 %15, label %16, label %24
16: ; preds = %13
%17 = load i8*, i8** %6
%18 = load i32, i32* %7
%19 = load i32*, i32** %8
%20 = load i32*, i32** %9
%21 = load i8*, i8** %10
%22 = call i64 @cset82(i8* %17, i32 %18, i32 0, i32 1, i32 3, i32* %19, i32* %20, i8* %21)
%23 = icmp ne i64 %22, 0
br label %24
24: ; preds = %16, %13, %5
%25 = phi i1 [ false, %13 ], [ false, %5 ], [ %23, %16 ]
%26 = zext i1 %25 to i32
ret i32 %26
}

LLVM IR (-O2):
define i32 @x1__3(i8* %0, i32 %1, i32* %2, i32* %3, i8* %4) {
%6 = add i32 %1, -1
%7 = icmp ult i32 %6, 3
br i1 %7, label %8, label %12
8: ; preds = %5
%9 = tail call i64 @cset82(i8* %0, i32 %1, i32 0, i32 1, i32 3, i32* %2, i32* %3, i8* %4)
%10 = icmp ne i64 %9, 0
%11 = zext i1 %10 to i32
br label %12
12: ; preds = %8, %5
%13 = phi i32 [ 0, %5 ], [ %11, %8 ]
ret i32 %13
}
/* Variables and functions */
char const *strchr(char const *, char);
const char *gu_str_next(const char *str) { return strchr(str, '\0') + 1; }


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

x86 assembly (clang, -O2):
<gu_str_next>:
push   %rbx
mov    %rdi,%rbx
call   1030 <strlen@plt>
add    %rbx,%rax
add    $0x1,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @gu_str_next(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i8* @strchr(i8* %3, i8 signext 0)
%5 = getelementptr inbounds i8, i8* %4, i64 1
ret i8* %5
}

LLVM IR (-O2):
define i8* @gu_str_next(i8* %0) {
%2 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%3 = getelementptr i8, i8* %0, i64 %2
%4 = getelementptr inbounds i8, i8* %3, i64 1
ret i8* %4
}
/* Variables and functions */
int /*<<< orphan*/ AT_FDCWD;
int unlinkat(int /*<<< orphan*/, char const *, int /*<<< orphan*/);
int unlink(const char *path) { return unlinkat(AT_FDCWD, path, 0); }


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

x86 assembly (clang, -O2):
<unlink>:
mov    %rdi,%rsi
mov    0x2ebe(%rip),%rax
mov    (%rax),%edi
xor    %edx,%edx
jmp    1030 <unlinkat@plt>

LLVM IR (-O0):
@AT_FDCWD = global i32 0
define i32 @unlink(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @AT_FDCWD
%4 = load i8*, i8** %2
%5 = call i32 @unlinkat(i32 %3, i8* %4, i32 0)
ret i32 %5
}

LLVM IR (-O2):
@AT_FDCWD = global i32 0
define i32 @unlink(i8* %0) {
%2 = load i32, i32* @AT_FDCWD
%3 = tail call i32 @unlinkat(i32 %2, i8* %0, i32 0)
ret i32 %3
}
coords_f2u(i, vf, cb, sht, flt, dub, intype, inmult, ubuf) int i, inmult, *vf;
char *cb, intype, *ubuf;
short *sht;
float *flt;
double *dub;
{ norm_f2u(i, vf, cb, sht, flt, dub, intype, inmult, ubuf); }


x86 assembly (clang, -O0):
<coords_f2u>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    %al,-0x31(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%r9
movsbl -0x31(%rbp),%r11d
mov    0x18(%rbp),%r10d
mov    0x20(%rbp),%rax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %rax,0x10(%rsp)
mov    $0x0,%al
call   1030 <norm_f2u@plt>
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<coords_f2u>:
push   %rax
movsbl 0x10(%rsp),%r10d
mov    0x18(%rsp),%r11d
sub    $0x8,%rsp
xor    %eax,%eax
push   0x28(%rsp)
push   %r11
push   %r10
call   1030 <norm_f2u@plt>
add    $0x20,%rsp
pop    %rcx
ret

LLVM IR (-O0):
define i32 @coords_f2u(i32 %0, i32* %1, i8* %2, i16* %3, float* %4, double* %5, i32 %6, i32 %7, i8* %8) {
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32*
%13 = alloca i8*
%14 = alloca i16*
%15 = alloca float*
%16 = alloca double*
%17 = alloca i8
%18 = alloca i32
%19 = alloca i8*
%20 = trunc i32 %6 to i8
store i32 %0, i32* %11
store i32* %1, i32** %12
store i8* %2, i8** %13
store i16* %3, i16** %14
store float* %4, float** %15
store double* %5, double** %16
store i8 %20, i8* %17
store i32 %7, i32* %18
store i8* %8, i8** %19
%21 = load i32, i32* %11
%22 = load i32*, i32** %12
%23 = load i8*, i8** %13
%24 = load i16*, i16** %14
%25 = load float*, float** %15
%26 = load double*, double** %16
%27 = load i8, i8* %17
%28 = sext i8 %27 to i32
%29 = load i32, i32* %18
%30 = load i8*, i8** %19
%31 = call i32 (i32, i32*, i8*, i16*, float*, double*, i32, i32, i8*, ...) bitcast (i32 (...)* @norm_f2u to i32 (i32, i32*, i8*, i16*, float*, double*, i32, i32, i8*, ...)*)(i32 %21, i32* %22, i8* %23, i16* %24, float* %25, double* %26, i32 %28, i32 %29, i8* %30)
%32 = load i32, i32* %10
ret i32 %32
}

LLVM IR (-O2):
define i32 @coords_f2u(i32 %0, i32* %1, i8* %2, i16* %3, float* %4, double* %5, i32 %6, i32 %7, i8* %8) {
%10 = shl i32 %6, 24
%11 = ashr exact i32 %10, 24
%12 = tail call i32 (i32, i32*, i8*, i16*, float*, double*, i32, i32, i8*, ...) bitcast (i32 (...)* @norm_f2u to i32 (i32, i32*, i8*, i16*, float*, double*, i32, i32, i8*, ...)*)(i32 %0, i32* %1, i8* %2, i16* %3, float* %4, double* %5, i32 %11, i32 %7, i8* %8)
ret i32 undef
}
void __DELETE_java_util_Hashtable(void *me, void *client_data) {}


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

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

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

LLVM IR (-O2):
define void @__DELETE_java_util_Hashtable(i8* nocapture %0, i8* nocapture %1) {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int service_rdp_init(char *ip, int sp, unsigned char options, char *miscptr,
                     FILE *fp, int port) {
  return 0;
}


x86 assembly (clang, -O0):
<service_rdp_init>:
push   %rbp
mov    %rsp,%rbp
mov    %dl,%al
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %al,-0xd(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9d,-0x24(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @service_rdp_init(i8* %0, i32 %1, i8 zeroext %2, i8* %3, i32* %4, i32 %5) {
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i8
%10 = alloca i8*
%11 = alloca i32*
%12 = alloca i32
store i8* %0, i8** %7
store i32 %1, i32* %8
store i8 %2, i8* %9
store i8* %3, i8** %10
store i32* %4, i32** %11
store i32 %5, i32* %12
ret i32 0
}

LLVM IR (-O2):
define i32 @service_rdp_init(i8* nocapture readnone %0, i32 %1, i8 zeroext %2, i8* nocapture readnone %3, i32* nocapture readnone %4, i32 %5) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ manual_test(int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *);
int main(void) {
  int n, m, i;
  printf("How many tests you want: ");
  scanf("%d", &m);
  printf("Give the degree : ");
  scanf("%d", &n);
  manual_test(n);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
call   1030 <printf@plt>
lea    0xec8(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xebb(%rip),%rdi
call   1030 <printf@plt>
lea    0xeac(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x8(%rbp),%edi
call   1040 <manual_test@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xec4(%rip),%rdi
call   1030 <printf@plt>
lea    0xed2(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    0x8(%rsp),%edi
call   1040 <manual_test@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [26 x i8] c"How many tests you want: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [19 x i8] c"Give the degree : \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 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 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%9 = load i32, i32* %2
%10 = call i32 @manual_test(i32 %9)
ret i32 0
}

LLVM IR (-O2):
@.str = [26 x i8] c"How many tests you want: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [19 x i8] c"Give the degree : \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 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* %2)
%7 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%9 = load i32, i32* %1
%10 = call i32 @manual_test(i32 %9)
ret i32 0
}
int aug_plugin_api_version_major() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @aug_plugin_api_version_major() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ TestBinomialDistribution();
int /*<<< orphan*/ TestPQue();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main(int argc, char **argv) {
  srand(time(NULL));
  TestPQue();
  TestBinomialDistribution();
  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)
xor    %eax,%eax
mov    %eax,%edi
call   1060 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
mov    $0x0,%al
call   1040 <TestPQue@plt>
mov    $0x0,%al
call   1030 <TestBinomialDistribution@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1060 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
xor    %eax,%eax
call   1040 <TestPQue@plt>
xor    %eax,%eax
call   1030 <TestBinomialDistribution@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 @time(i32* null)
%7 = call i32 @srand(i32 %6)
%8 = call i32 (...) @TestPQue()
%9 = call i32 (...) @TestBinomialDistribution()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @time(i32* null)
%4 = tail call i32 @srand(i32 %3)
%5 = tail call i32 (...) @TestPQue()
%6 = tail call i32 (...) @TestBinomialDistribution()
ret i32 0
}
unsigned long get_macb_pclk_rate(unsigned int dev_id) { return 83000000; }


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

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

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

LLVM IR (-O2):
define i64 @get_macb_pclk_rate(i32 %0) {
ret i64 83000000
}
/* Type definitions */
typedef int /*<<< orphan*/ int64_t;

/* Variables and functions */
float sqrtf(int /*<<< orphan*/);
int /*<<< orphan*/ stdlib_strided_snanvariancetk(int /*<<< orphan*/ const,
                                                 float const, float const *,
                                                 int /*<<< orphan*/ const);
float stdlib_strided_snanstdevtk(const int64_t N, const float correction,
                                 const float *X, const int64_t stride) {
  return sqrtf(stdlib_strided_snanvariancetk(N, correction, X, stride));
}


x86 assembly (clang, -O0):
<stdlib_strided_snanstdevtk>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
movss  %xmm0,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x4(%rbp),%edi
movss  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <stdlib_strided_snanvariancetk@plt>
mov    %eax,%edi
call   1040 <sqrtf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stdlib_strided_snanstdevtk>:
push   %rax
call   1030 <stdlib_strided_snanvariancetk@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <sqrtf@plt>

LLVM IR (-O0):
define float @stdlib_strided_snanstdevtk(i32 %0, float %1, float* %2, i32 %3) {
%5 = alloca i32
%6 = alloca float
%7 = alloca float*
%8 = alloca i32
store i32 %0, i32* %5
store float %1, float* %6
store float* %2, float** %7
store i32 %3, i32* %8
%9 = load i32, i32* %5
%10 = load float, float* %6
%11 = load float*, float** %7
%12 = load i32, i32* %8
%13 = call i32 @stdlib_strided_snanvariancetk(i32 %9, float %10, float* %11, i32 %12)
%14 = call float @sqrtf(i32 %13)
ret float %14
}

LLVM IR (-O2):
define float @stdlib_strided_snanstdevtk(i32 %0, float %1, float* %2, i32 %3) {
%5 = tail call i32 @stdlib_strided_snanvariancetk(i32 %0, float %1, float* %2, i32 %3)
%6 = tail call float @sqrtf(i32 %5)
ret float %6
}
void rop3_94_0_0(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  unsigned char stk3;
  unsigned char stk4;
  stk4 = ~*D;
  stk3 = S & stk4;
  stk2 = T | stk3;
  stk1 = *D ^ stk2;
  *D = stk1;
}


x86 assembly (clang, -O0):
<rop3_94_0_0>:
push   %rbp
mov    %rsp,%rbp
mov    %dl,%al
mov    %sil,%cl
mov    %rdi,-0x8(%rbp)
mov    %cl,-0x9(%rbp)
mov    %al,-0xa(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
xor    $0xffffffff,%eax
mov    %al,-0xe(%rbp)
movzbl -0x9(%rbp),%eax
movzbl -0xe(%rbp),%ecx
and    %ecx,%eax
mov    %al,-0xd(%rbp)
movzbl -0xa(%rbp),%eax
movzbl -0xd(%rbp),%ecx
or     %ecx,%eax
mov    %al,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
movzbl -0xc(%rbp),%ecx
xor    %ecx,%eax
mov    %al,-0xb(%rbp)
mov    -0xb(%rbp),%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<rop3_94_0_0>:
mov    (%rdi),%al
mov    %eax,%ecx
not    %cl
and    %sil,%cl
or     %dl,%cl
xor    %al,%cl
mov    %cl,(%rdi)
ret

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

LLVM IR (-O2):
define void @rop3_94_0_0(i8* nocapture %0, i8 zeroext %1, i8 zeroext %2) {
%4 = load i8, i8* %0
%5 = xor i8 %4, -1
%6 = and i8 %5, %1
%7 = or i8 %6, %2
%8 = xor i8 %7, %4
store i8 %8, i8* %0
ret void
}
void g_type_interfaces() {}


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

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

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

LLVM IR (-O2):
define void @g_type_interfaces() {
ret void
}
/* Variables and functions */
int maxProfit(int *, int);
int /*<<< orphan*/ printf(char *, int);
int main(int argc, char *argv[]) {
  int a[] = {3, 4, 1, 2};
  printf("%d\n", maxProfit(a, 4));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0xeca(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xec7(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    -0x20(%rbp),%rdi
mov    $0x4,%esi
call   1040 <maxProfit@plt>
mov    %eax,%esi
lea    0xeb4(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movaps 0xed5(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rdi
mov    $0x4,%esi
call   1040 <maxProfit@plt>
lea    0xecd(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

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

LLVM IR (-O2):
@__const.main.a = [4 x i32] [i32 3, i32 4, i32 1, i32 2]
@.str = [4 x i8] c"%d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [4 x i32]
%4 = bitcast [4 x i32]* %3 to i8*
%5 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 0
%6 = call i32 @maxProfit(i32* %5, i32 4)
%7 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %6)
ret i32 0
}
char *PlatformName() { return "Windows"; }


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

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

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

LLVM IR (-O2):
@.str = [8 x i8] c"Windows\00"
define i8* @PlatformName() {
ret i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void help() {
  printf("fakeaps [atheros raw device] [channel it is tuned to]\n");
}


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

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

LLVM IR (-O0):
@.str = [55 x i8] c"fakeaps [atheros raw device] [channel it is tuned to]\0A\00"
define void @help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [54 x i8] c"fakeaps [atheros raw device] [channel it is tuned to]\00"
define void @help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fatal1(char *);
void nomem(void) { fatal1("out of memory"); }


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

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

LLVM IR (-O0):
@.str = [14 x i8] c"out of memory\00"
define void @nomem() {
%1 = call i32 @fatal1(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"out of memory\00"
define void @nomem() {
%1 = tail call i32 @fatal1(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void subproj_function() { printf("Subproject function called.\n"); }


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

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

LLVM IR (-O0):
@.str = [29 x i8] c"Subproject function called.\0A\00"
define void @subproj_function() {
%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"Subproject function called.\00"
define void @subproj_function() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int run_game();
int main(void) {
  int ret = run_game();
  if (ret) {
    return 1;
  } else {
    return 0;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <run_game@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     113f <main+0x2f>
movl   $0x1,-0x4(%rbp)
jmp    1146 <main+0x36>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <run_game@plt>
xor    %ecx,%ecx
test   %eax,%eax
setne  %cl
mov    %ecx,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @run_game()
%2 = icmp ne i32 %1, 0
%3 = zext i1 %2 to i32
ret i32 %3
}
int netx_is_header_recvd(char *buf) { return -1; }


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

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

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

LLVM IR (-O2):
define i32 @netx_is_header_recvd(i8* nocapture readnone %0) {
ret i32 -1
}
void thread_yield() {
  asm("pause");
  ;
}


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

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

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

LLVM IR (-O2):
define void @thread_yield() {
tail call void asm sideeffect "pause", "~{dirflag},~{fpsr},~{flags}"()
ret void
}
void I420Rotate() {}


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

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

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

LLVM IR (-O2):
define void @I420Rotate() {
ret void
}
/* Variables and functions */
int LZ4_compressHC2_limitedOutput_withStateHC(void *, char const *, char *, int,
                                              int, int /*<<< orphan*/);
int LZ4_compressHC_limitedOutput_withStateHC(void *state, const char *source,
                                             char *dest, int inputSize,
                                             int maxOutputSize) {
  return LZ4_compressHC2_limitedOutput_withStateHC(state, source, dest,
                                                   inputSize, maxOutputSize, 0);
}


x86 assembly (clang, -O0):
<LZ4_compressHC_limitedOutput_withStateHC>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
xor    %r9d,%r9d
call   1030 <LZ4_compressHC2_limitedOutput_withStateHC@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<LZ4_compressHC_limitedOutput_withStateHC>:
xor    %r9d,%r9d
jmp    1030 <LZ4_compressHC2_limitedOutput_withStateHC@plt>

LLVM IR (-O0):
define i32 @LZ4_compressHC_limitedOutput_withStateHC(i8* %0, i8* %1, i8* %2, i32 %3, i32 %4) {
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
store i8* %0, i8** %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%11 = load i8*, i8** %6
%12 = load i8*, i8** %7
%13 = load i8*, i8** %8
%14 = load i32, i32* %9
%15 = load i32, i32* %10
%16 = call i32 @LZ4_compressHC2_limitedOutput_withStateHC(i8* %11, i8* %12, i8* %13, i32 %14, i32 %15, i32 0)
ret i32 %16
}

LLVM IR (-O2):
define i32 @LZ4_compressHC_limitedOutput_withStateHC(i8* %0, i8* %1, i8* %2, i32 %3, i32 %4) {
%6 = tail call i32 @LZ4_compressHC2_limitedOutput_withStateHC(i8* %0, i8* %1, i8* %2, i32 %3, i32 %4, i32 0)
ret i32 %6
}
void sp_nonblocking(int sock) {}


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

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

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

LLVM IR (-O2):
define void @sp_nonblocking(i32 %0) {
ret void
}
/* Variables and functions */
void *realloc(void *, size_t);
void *krealloc(void *ptr, size_t bytes) { return realloc(ptr, bytes); }


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

x86 assembly (clang, -O2):
<krealloc>:
jmp    1030 <realloc@plt>

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

LLVM IR (-O2):
define noalias i8* @krealloc(i8* nocapture %0, i64 %1) {
%3 = tail call i8* @realloc(i8* %0, i64 %1)
ret i8* %3
}