xunge/DecIR huggingface dataset:
double fact(int n) {
  if (n <= 1)
    return 1;
  else
    n *= fact(n - 1);
  return n;
}


x86 assembly (clang, -O0):
<fact>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0xc(%rbp)
cmpl   $0x1,-0xc(%rbp)
jg     1137 <fact+0x27>
movsd  0xed3(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    115f <fact+0x4f>
mov    -0xc(%rbp),%edi
sub    $0x1,%edi
call   1030 <fact@plt>
movaps %xmm0,%xmm1
cvtsi2sdl -0xc(%rbp),%xmm0
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0xc(%rbp)
cvtsi2sdl -0xc(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fact>:
push   %rbx
cmp    $0x1,%edi
jg     1120 <fact+0x10>
movsd  0xee2(%rip),%xmm0
pop    %rbx
ret
mov    %edi,%ebx
lea    -0x1(%rbx),%edi
call   1030 <fact@plt>
cvtsi2sd %ebx,%xmm1
mulsd  %xmm0,%xmm1
cvttpd2dq %xmm1,%xmm0
cvtdq2pd %xmm0,%xmm0
pop    %rbx
ret

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

LLVM IR (-O2):
define double @fact(i32 %0) {
%2 = icmp slt i32 %0, 2
br i1 %2, label %3, label %5
3: ; preds = %1, %5
%4 = phi double [ %11, %5 ], [ 1.000000e+00, %1 ]
ret double %4
5: ; preds = %1
%6 = add nsw i32 %0, -1
%7 = tail call double @fact(i32 %6)
%8 = sitofp i32 %0 to double
%9 = fmul double %7, %8
%10 = fptosi double %9 to i32
%11 = sitofp i32 %10 to double
br label %3
}
void answer_hard(void) {}


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

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

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

LLVM IR (-O2):
define void @answer_hard() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isprint(int);
void t_isprint_0xfc() {
  Assert_real((isprint(252) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isprint.c",
              1265, ("isprint should be 0 for 0xfc"));
}


x86 assembly (clang, -O0):
<t_isprint_0xfc>:
push   %rbp
mov    %rsp,%rbp
mov    $0xfc,%edi
call   1030 <isprint@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xebf(%rip),%rsi
mov    $0x4f1,%edx
lea    0xf5b(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_isprint_0xfc>:
push   %rax
mov    $0xfc,%edi
call   1030 <isprint@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x4f1,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isprint.c\00"
@.str.1 = [29 x i8] c"isprint should be 0 for 0xfc\00"
define void @t_isprint_0xfc() {
%1 = call i64 @isprint(i32 252)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 1265, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isprint.c\00"
@.str.1 = [29 x i8] c"isprint should be 0 for 0xfc\00"
define void @t_isprint_0xfc() {
%1 = tail call i64 @isprint(i32 252)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 1265, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
scalar_t__ tolower(char const);
int name_hash(const char *name) {
  int hash = 0;
  const char *cp;
  if (name) {
    for (cp = name; *cp; cp++) {
      hash += tolower(*cp);
    }
  }
  return (hash);
}


x86 assembly (clang, -O0):
<name_hash>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1172 <name_hash+0x62>
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmpb   $0x0,(%rax)
je     116d <name_hash+0x5d>
mov    -0x18(%rbp),%rax
movsbl (%rax),%edi
call   1030 <tolower@plt>
mov    %rax,%rcx
movslq -0xc(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0xc(%rbp)
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1136 <name_hash+0x26>
jmp    1172 <name_hash+0x62>
mov    -0xc(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<name_hash>:
push   %rbp
push   %rbx
push   %rax
xor    %ebp,%ebp
test   %rdi,%rdi
je     1145 <name_hash+0x35>
mov    %rdi,%rbx
mov    (%rdi),%al
test   %al,%al
je     1145 <name_hash+0x35>
add    $0x1,%rbx
xor    %ebp,%ebp
nopl   0x0(%rax)
movsbl %al,%edi
call   1030 <tolower@plt>
add    %eax,%ebp
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1130 <name_hash+0x20>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @name_hash(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %16, label %3
3: ; preds = %1
%4 = load i8, i8* %0
%5 = icmp eq i8 %4, 0
br i1 %5, label %16, label %6
6: ; preds = %3, %6
%7 = phi i8 [ %14, %6 ], [ %4, %3 ]
%8 = phi i8* [ %13, %6 ], [ %0, %3 ]
%9 = phi i32 [ %12, %6 ], [ 0, %3 ]
%10 = tail call i64 @tolower(i8 signext %7)
%11 = trunc i64 %10 to i32
%12 = add i32 %9, %11
%13 = getelementptr inbounds i8, i8* %8, i64 1
%14 = load i8, i8* %13
%15 = icmp eq i8 %14, 0
br i1 %15, label %16, label %6
16: ; preds = %6, %3, %1
%17 = phi i32 [ 0, %1 ], [ 0, %3 ], [ %12, %6 ]
ret i32 %17
}
int trys(char *s, int x) {
  int asa;
  double Val;
  int LLS;
  if (x) {
    asa = LLS + asa;
  } else {
  }
  return asa + (int)Val;
}


x86 assembly (clang, -O0):
<trys>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     1123 <trys+0x23>
mov    -0x1c(%rbp),%eax
add    -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    1128 <trys+0x28>
jmp    1128 <trys+0x28>
mov    -0x10(%rbp),%eax
cvttsd2si -0x18(%rbp),%ecx
add    %ecx,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @trys(i8* nocapture readnone %0, i32 %1) {
ret i32 undef
}
/* Variables and functions */
int EXIT_FAILURE;
int EXIT_SUCCESS;
int main() {
  int i;
  int a[101];
  i = 0;
#pragma scop
  for (i = 0; i < 100; ++i)
    a[i] = i;
  a[i] = i;
#pragma endscop
  if (a[100] != 100)
    return EXIT_FAILURE;
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x64,-0x8(%rbp)
jge    1146 <main+0x46>
mov    -0x8(%rbp),%ecx
movslq -0x8(%rbp),%rax
mov    %ecx,-0x1a0(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1120 <main+0x20>
mov    -0x8(%rbp),%ecx
movslq -0x8(%rbp),%rax
mov    %ecx,-0x1a0(%rbp,%rax,4)
cmpl   $0x64,-0x10(%rbp)
je     116f <main+0x6f>
mov    0x2e7b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    117b <main+0x7b>
mov    0x2e62(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x120,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = load i32, i32* @EXIT_SUCCESS
ret i32 %1
}
/* Variables and functions */
int io_read_bit(int);
int elev_get_stop_signal(void) { return io_read_bit((0x300 + 22)); }


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

x86 assembly (clang, -O2):
<elev_get_stop_signal>:
mov    $0x316,%edi
jmp    1030 <io_read_bit@plt>

LLVM IR (-O0):
define i32 @elev_get_stop_signal() {
%1 = call i32 @io_read_bit(i32 790)
ret i32 %1
}

LLVM IR (-O2):
define i32 @elev_get_stop_signal() {
%1 = tail call i32 @io_read_bit(i32 790)
ret i32 %1
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ *fopen(char *, char *);
void *fileOpen(char *name, char *mode) {
  FILE *f = fopen(name, mode);
  return (void *)f;
}


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

x86 assembly (clang, -O2):
<fileOpen>:
jmp    1030 <fopen@plt>

LLVM IR (-O0):
define i8* @fileOpen(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32*
store i8* %0, i8** %3
store i8* %1, i8** %4
%6 = load i8*, i8** %3
%7 = load i8*, i8** %4
%8 = call i32* @fopen(i8* %6, i8* %7)
store i32* %8, i32** %5
%9 = load i32*, i32** %5
%10 = bitcast i32* %9 to i8*
ret i8* %10
}

LLVM IR (-O2):
define noalias i8* @fileOpen(i8* nocapture %0, i8* nocapture %1) {
%3 = tail call i32* @fopen(i8* %0, i8* %1)
%4 = bitcast i32* %3 to i8*
ret i8* %4
}
int _isalpha(int c) {
  if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) {
    return (1);
  } else {
    return (0);
  }
}


x86 assembly (clang, -O0):
<_isalpha>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x61,-0x8(%rbp)
jl     111b <_isalpha+0x1b>
cmpl   $0x7a,-0x8(%rbp)
jle    112f <_isalpha+0x2f>
cmpl   $0x41,-0x8(%rbp)
jl     113b <_isalpha+0x3b>
cmpl   $0x5a,-0x8(%rbp)
jg     113b <_isalpha+0x3b>
movl   $0x1,-0x4(%rbp)
jmp    1142 <_isalpha+0x42>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_isalpha>:
and    $0xffffffdf,%edi
add    $0xffffffbf,%edi
xor    %eax,%eax
cmp    $0x1a,%edi
setb   %al
ret

LLVM IR (-O0):
define i32 @_isalpha(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp sge i32 %4, 97
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, i32* %3
%8 = icmp sle i32 %7, 122
br i1 %8, label %15, label %9
9: ; preds = %6, %1
%10 = load i32, i32* %3
%11 = icmp sge i32 %10, 65
br i1 %11, label %12, label %16
12: ; preds = %9
%13 = load i32, i32* %3
%14 = icmp sle i32 %13, 90
br i1 %14, label %15, label %16
15: ; preds = %12, %6
store i32 1, i32* %2
br label %17
16: ; preds = %12, %9
store i32 0, i32* %2
br label %17
17: ; preds = %16, %15
%18 = load i32, i32* %2
ret i32 %18
}

LLVM IR (-O2):
define i32 @_isalpha(i32 %0) {
%2 = and i32 %0, -33
%3 = add i32 %2, -65
%4 = icmp ult i32 %3, 26
%5 = zext i1 %4 to i32
ret i32 %5
}
int min(int a, int b) {
  if (a < b) {
    return a;
  }
  return b;
}


x86 assembly (clang, -O0):
<min>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1121 <min+0x21>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1127 <min+0x27>
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<min>:
mov    %esi,%eax
cmp    %esi,%edi
cmovl  %edi,%eax
ret

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

LLVM IR (-O2):
define i32 @min(i32 %0, i32 %1) {
%3 = icmp slt i32 %0, %1
%4 = select i1 %3, i32 %0, i32 %1
ret i32 %4
}
/* Variables and functions */
double genrand_real1();
double rndu() { return genrand_real1(); }


x86 assembly (clang, -O0):
<rndu>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <genrand_real1@plt>
pop    %rbp
ret

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

LLVM IR (-O0):
define double @rndu() {
%1 = call double (...) @genrand_real1()
ret double %1
}

LLVM IR (-O2):
define double @rndu() {
%1 = tail call double (...) @genrand_real1()
ret double %1
}
/* Variables and functions */
int /*<<< orphan*/ D(char *);
void ipfw_show_nat(int ac, char **av) { D("unsupported"); }


x86 assembly (clang, -O0):
<ipfw_show_nat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeda(%rip),%rdi
call   1030 <D@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [12 x i8] c"unsupported\00"
define void @ipfw_show_nat(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = call i32 @D(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"unsupported\00"
define void @ipfw_show_nat(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @D(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
ret void
}
void XtQueryGeometry() {}


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

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

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

LLVM IR (-O2):
define void @XtQueryGeometry() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ delay_ms(int);
int /*<<< orphan*/ zoom_pyramid(int);
int /*<<< orphan*/ zoom_pyramid_clear(int);
void effect_zoom_pyramid(int delay) {
  zoom_pyramid(delay);
  delay_ms(10 * delay);
  zoom_pyramid_clear(delay);
}


x86 assembly (clang, -O0):
<effect_zoom_pyramid>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1050 <zoom_pyramid@plt>
imul   $0xa,-0x4(%rbp),%edi
call   1030 <delay_ms@plt>
mov    -0x4(%rbp),%edi
call   1040 <zoom_pyramid_clear@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<effect_zoom_pyramid>:
push   %rbx
mov    %edi,%ebx
call   1050 <zoom_pyramid@plt>
lea    (%rbx,%rbx,1),%eax
lea    (%rax,%rax,4),%edi
call   1030 <delay_ms@plt>
mov    %ebx,%edi
pop    %rbx
jmp    1040 <zoom_pyramid_clear@plt>

LLVM IR (-O0):
define void @effect_zoom_pyramid(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @zoom_pyramid(i32 %3)
%5 = load i32, i32* %2
%6 = mul nsw i32 10, %5
%7 = call i32 @delay_ms(i32 %6)
%8 = load i32, i32* %2
%9 = call i32 @zoom_pyramid_clear(i32 %8)
ret void
}

LLVM IR (-O2):
define void @effect_zoom_pyramid(i32 %0) {
%2 = tail call i32 @zoom_pyramid(i32 %0)
%3 = mul nsw i32 %0, 10
%4 = tail call i32 @delay_ms(i32 %3)
%5 = tail call i32 @zoom_pyramid_clear(i32 %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
scalar_t__ foo(int, int, int, int, int, int /*<<< orphan*/);
int main(void) {
  if (foo(5, 4, 3, 2, 1, 0))
    abort();
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x5,%edi
mov    $0x4,%esi
mov    $0x3,%edx
mov    $0x2,%ecx
mov    $0x1,%r8d
xor    %r9d,%r9d
call   1040 <foo@plt>
cmp    $0x0,%rax
je     1172 <main+0x42>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %edi,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x5,%edi
mov    $0x4,%esi
mov    $0x3,%edx
mov    $0x2,%ecx
mov    $0x1,%r8d
xor    %r9d,%r9d
call   1040 <foo@plt>
test   %rax,%rax
jne    115f <main+0x2f>
xor    %edi,%edi
call   1050 <exit@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i64 @foo(i32 5, i32 4, i32 3, i32 2, i32 1, i32 0)
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 (...) @abort()
unreachable
6: ; preds = %0
%7 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i64 @foo(i32 5, i32 4, i32 3, i32 2, i32 1, i32 0)
%2 = icmp eq i64 %1, 0
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 (...) @abort()
unreachable
5: ; preds = %0
%6 = tail call i32 @exit(i32 0)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void checkArgc(int argc) {
  if (argc != 3) {
    printf("Usage: tcp source_file target_file\n");
    printf("       tcp source_file ... target_directory\n");
    exit(EXIT_FAILURE);
  }
}


x86 assembly (clang, -O0):
<checkArgc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x3,-0x4(%rbp)
je     115b <checkArgc+0x3b>
lea    0xec4(%rip),%rdi
call   1030 <printf@plt>
lea    0xedc(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e8c(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<checkArgc>:
cmp    $0x3,%edi
jne    1126 <checkArgc+0x6>
ret
push   %rax
lea    0xed2(%rip),%rdi
call   1030 <puts@plt>
lea    0xee9(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e9a(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [36 x i8] c"Usage: tcp source_file target_file\0A\00"
@.str.1 = [45 x i8] c" tcp source_file ... target_directory\0A\00"
@EXIT_FAILURE = global i32 0
define void @checkArgc(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ne i32 %3, 3
br i1 %4, label %5, label %10
5: ; preds = %1
%6 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%8 = load i32, i32* @EXIT_FAILURE
%9 = call i32 @exit(i32 %8)
unreachable
10: ; preds = %1
ret void
}

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
@str = [35 x i8] c"Usage: tcp source_file target_file\00"
@str.2 = [44 x i8] c" tcp source_file ... target_directory\00"
define void @checkArgc(i32 %0) {
%2 = icmp eq i32 %0, 3
br i1 %2, label %8, label %3
3: ; preds = %1
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.2, i64 0, i64 0))
%6 = load i32, i32* @EXIT_FAILURE
%7 = tail call i32 @exit(i32 %6)
unreachable
8: ; preds = %1
ret void
}
/* Type definitions */
typedef scalar_t__ uint64_t;

/* Variables and functions */
uint64_t min(uint64_t a, uint64_t b) { return a < b ? a : b; }


x86 assembly (clang, -O0):
<min>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
jge    1127 <min+0x27>
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    112f <min+0x2f>
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<min>:
mov    %rsi,%rax
cmp    %rsi,%rdi
cmovl  %rdi,%rax
ret

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

LLVM IR (-O2):
define i64 @min(i64 %0, i64 %1) {
%3 = icmp slt i64 %0, %1
%4 = select i1 %3, i64 %0, i64 %1
ret i64 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void print_double_bar() {
  printf("\n==================================================================="
         "=======================================================");
}


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

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

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

LLVM IR (-O2):
@.str = [124 x i8] c"\0A==========================================================================================================================\00"
define void @print_double_bar() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([124 x i8], [124 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ AltitudeHoldStateHandle();
int /*<<< orphan*/ UAVObjUpdated(int /*<<< orphan*/);
void AltitudeHoldStateUpdated() { UAVObjUpdated(AltitudeHoldStateHandle()); }


x86 assembly (clang, -O0):
<AltitudeHoldStateUpdated>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <AltitudeHoldStateHandle@plt>
mov    %eax,%edi
call   1040 <UAVObjUpdated@plt>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @AltitudeHoldStateUpdated() {
%1 = call i32 (...) @AltitudeHoldStateHandle()
%2 = call i32 @UAVObjUpdated(i32 %1)
ret void
}

LLVM IR (-O2):
define void @AltitudeHoldStateUpdated() {
%1 = tail call i32 (...) @AltitudeHoldStateHandle()
%2 = tail call i32 @UAVObjUpdated(i32 %1)
ret void
}
_Complex float test_conjf(_Complex float x) { return __builtin_conjf(x); }


x86 assembly (clang, -O0):
<test_conjf>:
push   %rbp
mov    %rsp,%rbp
movlpd %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm1
movaps 0xeeb(%rip),%xmm2
movss  -0xc(%rbp),%xmm0
pxor   %xmm2,%xmm0
movss  %xmm1,-0x8(%rbp)
movss  %xmm0,-0x4(%rbp)
movsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_conjf>:
movaps %xmm0,%xmm1
shufps $0x55,%xmm0,%xmm1
xorps  0xef2(%rip),%xmm1
movlhps %xmm0,%xmm1
shufps $0xe2,%xmm0,%xmm1
movaps %xmm1,%xmm0
ret

LLVM IR (-O0):
define <2 x float> @test_conjf(<2 x float> %0) {
%2 = alloca { float, float }
%3 = alloca { float, float }
%4 = bitcast { float, float }* %3 to <2 x float>*
store <2 x float> %0, <2 x float>* %4
%5 = getelementptr inbounds { float, float }, { float, float }* %3, i32 0, i32 0
%6 = load float, float* %5
%7 = getelementptr inbounds { float, float }, { float, float }* %3, i32 0, i32 1
%8 = load float, float* %7
%9 = fneg float %8
%10 = getelementptr inbounds { float, float }, { float, float }* %2, i32 0, i32 0
%11 = getelementptr inbounds { float, float }, { float, float }* %2, i32 0, i32 1
store float %6, float* %10
store float %9, float* %11
%12 = bitcast { float, float }* %2 to <2 x float>*
%13 = load <2 x float>, <2 x float>* %12
ret <2 x float> %13
}

LLVM IR (-O2):
define <2 x float> @test_conjf(<2 x float> %0) {
%2 = extractelement <2 x float> %0, i64 1
%3 = fneg float %2
%4 = insertelement <2 x float> %0, float %3, i64 1
ret <2 x float> %4
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
void exit_handler(int signum) {
  (void)signum;
  exit(0);
}


x86 assembly (clang, -O0):
<exit_handler>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
xor    %edi,%edi
call   1030 <exit@plt>

x86 assembly (clang, -O2):
<exit_handler>:
push   %rax
xor    %edi,%edi
call   1030 <exit@plt>

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

LLVM IR (-O2):
define void @exit_handler(i32 %0) {
%2 = tail call i32 @exit(i32 0)
unreachable
}
char *var_get_type(struct variable *v) { return "Variable"; }


x86 assembly (clang, -O0):
<var_get_type>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
lea    0xef1(%rip),%rax
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.variable = type opaque
@.str = [9 x i8] c"Variable\00"
define i8* @var_get_type(%struct.variable* %0) {
%2 = alloca %struct.variable*
store %struct.variable* %0, %struct.variable** %2
ret i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
%struct.variable = type opaque
@.str = [9 x i8] c"Variable\00"
define i8* @var_get_type(%struct.variable* nocapture readnone %0) {
ret i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0)
}
/* Type definitions */
typedef int /*<<< orphan*/ Display;

/* Variables and functions */
int XFlush(Display *display) {}


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

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

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

LLVM IR (-O2):
define i32 @XFlush(i32* nocapture readnone %0) {
ret i32 undef
}
/* Type definitions */
struct timespec {
  int dummy;
};
typedef int /*<<< orphan*/ sigset_t;
typedef int /*<<< orphan*/ fd_set;

/* Variables and functions */
int /*<<< orphan*/ ENOSYS;
int /*<<< orphan*/ errno;
int pselect(int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
            const struct timespec *timeout, const sigset_t *sigmask) {
  errno = ENOSYS;
  return -1;
}


x86 assembly (clang, -O0):
<pselect>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    0x2ec6(%rip),%rax
mov    (%rax),%ecx
mov    0x2ead(%rip),%rax
mov    %ecx,(%rax)
mov    $0xffffffff,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<pselect>:
mov    0x2ee1(%rip),%rax
mov    (%rax),%eax
mov    0x2ec8(%rip),%rcx
mov    %eax,(%rcx)
mov    $0xffffffff,%eax
ret

LLVM IR (-O0):
%struct.timespec = type { i32 }
@ENOSYS = global i32 0
@errno = global i32 0
define i32 @pselect(i32 %0, i32* %1, i32* %2, i32* %3, %struct.timespec* %4, i32* %5) {
%7 = alloca i32
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca %struct.timespec*
%12 = alloca i32*
store i32 %0, i32* %7
store i32* %1, i32** %8
store i32* %2, i32** %9
store i32* %3, i32** %10
store %struct.timespec* %4, %struct.timespec** %11
store i32* %5, i32** %12
%13 = load i32, i32* @ENOSYS
store i32 %13, i32* @errno
ret i32 -1
}

LLVM IR (-O2):
%struct.timespec = type { i32 }
@ENOSYS = global i32 0
@errno = global i32 0
define i32 @pselect(i32 %0, i32* nocapture readnone %1, i32* nocapture readnone %2, i32* nocapture readnone %3, %struct.timespec* nocapture readnone %4, i32* nocapture readnone %5) {
%7 = load i32, i32* @ENOSYS
store i32 %7, i32* @errno
ret i32 -1
}
/* Variables and functions */
int /*<<< orphan*/ sched_yield();
void thrd_yield(void) { sched_yield(); }


x86 assembly (clang, -O0):
<thrd_yield>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <sched_yield@plt>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @thrd_yield() {
%1 = call i32 (...) @sched_yield()
ret void
}

LLVM IR (-O2):
define void @thrd_yield() {
%1 = tail call i32 (...) @sched_yield()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int /*<<< orphan*/);
int main() {
  int i = 10;
  while (i >= 0) {
    if (i == 1)
      break;
    printf("%d ", i++);
    i /= 2;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xa,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     1169 <main+0x59>
cmpl   $0x1,-0x8(%rbp)
jne    113f <main+0x2f>
jmp    1169 <main+0x59>
mov    -0x8(%rbp),%esi
mov    %esi,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
lea    0xeaf(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0xa,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d \00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 10)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 5)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 3)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 2)
ret i32 0
}
int remove(file) const char *file;
{ return (unlink(file)); }


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

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

LLVM IR (-O0):
define i32 @remove(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) bitcast (i32 (...)* @unlink to i32 (i8*, ...)*)(i8* %3)
ret i32 %4
}

LLVM IR (-O2):
define i32 @remove(i8* %0) {
%2 = tail call i32 (i8*, ...) bitcast (i32 (...)* @unlink to i32 (i8*, ...)*)(i8* %0)
ret i32 %2
}
/* Variables and functions */
double exp(scalar_t__);
scalar_t__ lbinom(int, int);
double hypergeo(int n11, int n1_, int n_1, int n) {
  return exp(lbinom(n1_, n11) + lbinom(n - n1_, n_1 - n11) - lbinom(n, n_1));
}


x86 assembly (clang, -O0):
<hypergeo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
call   1040 <lbinom@plt>
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%edi
sub    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
sub    -0x4(%rbp),%esi
call   1040 <lbinom@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
add    %rcx,%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1040 <lbinom@plt>
mov    -0x18(%rbp),%rdi
sub    %rax,%rdi
call   1030 <exp@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hypergeo>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %ecx,%r14d
mov    %edx,%r15d
mov    %esi,%ebx
mov    %edi,%r12d
mov    %esi,%edi
mov    %r12d,%esi
call   1040 <lbinom@plt>
mov    %rax,%rbp
mov    %r14d,%edi
sub    %ebx,%edi
mov    %r15d,%esi
sub    %r12d,%esi
call   1040 <lbinom@plt>
add    %rax,%rbp
mov    %r14d,%edi
mov    %r15d,%esi
call   1040 <lbinom@plt>
sub    %rax,%rbp
mov    %rbp,%rdi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <exp@plt>

LLVM IR (-O0):
define double @hypergeo(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* %6
%10 = load i32, i32* %5
%11 = call i64 @lbinom(i32 %9, i32 %10)
%12 = load i32, i32* %8
%13 = load i32, i32* %6
%14 = sub nsw i32 %12, %13
%15 = load i32, i32* %7
%16 = load i32, i32* %5
%17 = sub nsw i32 %15, %16
%18 = call i64 @lbinom(i32 %14, i32 %17)
%19 = add nsw i64 %11, %18
%20 = load i32, i32* %8
%21 = load i32, i32* %7
%22 = call i64 @lbinom(i32 %20, i32 %21)
%23 = sub nsw i64 %19, %22
%24 = call double @exp(i64 %23)
ret double %24
}

LLVM IR (-O2):
define double @hypergeo(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i64 @lbinom(i32 %1, i32 %0)
%6 = sub nsw i32 %3, %1
%7 = sub nsw i32 %2, %0
%8 = tail call i64 @lbinom(i32 %6, i32 %7)
%9 = add nsw i64 %8, %5
%10 = tail call i64 @lbinom(i32 %3, i32 %2)
%11 = sub i64 %9, %10
%12 = tail call double @exp(i64 %11)
ret double %12
}
signed int f28(signed int v_foo) {
  signed int v_and = v_foo & 32766;
  signed int v_shl = v_and << 17;
  return v_shl;
}


x86 assembly (clang, -O0):
<f28>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0x7ffe,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
shl    $0x11,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f28>:
mov    %edi,%eax
and    $0xfffffffe,%eax
shl    $0x11,%eax
ret

LLVM IR (-O0):
define i32 @f28(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %2
%5 = load i32, i32* %2
%6 = and i32 %5, 32766
store i32 %6, i32* %3
%7 = load i32, i32* %3
%8 = shl i32 %7, 17
store i32 %8, i32* %4
%9 = load i32, i32* %4
ret i32 %9
}

LLVM IR (-O2):
define i32 @f28(i32 %0) {
%2 = shl i32 %0, 17
%3 = and i32 %2, -262144
ret i32 %3
}
void initmac(void) {}


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

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

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

LLVM IR (-O2):
define void @initmac() {
ret void
}
int spek_min(int a, int b) { return a < b ? a : b; }


x86 assembly (clang, -O0):
<spek_min>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1121 <spek_min+0x21>
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    1127 <spek_min+0x27>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<spek_min>:
mov    %esi,%eax
cmp    %esi,%edi
cmovl  %edi,%eax
ret

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

LLVM IR (-O2):
define i32 @spek_min(i32 %0, i32 %1) {
%3 = icmp slt i32 %0, %1
%4 = select i1 %3, i32 %0, i32 %1
ret i32 %4
}
void writeData() { return; }


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

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

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

LLVM IR (-O2):
define void @writeData() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ TCIFLUSH;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ tcflush(int, int /*<<< orphan*/);
int uart_close(int fd) {
  if (fd > 0) {
    tcflush(fd, TCIFLUSH);
    close(fd);
  }
  return 0;
}


x86 assembly (clang, -O0):
<uart_close>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jle    114e <uart_close+0x2e>
mov    -0x4(%rbp),%edi
mov    0x2ea1(%rip),%rax
mov    (%rax),%esi
call   1030 <tcflush@plt>
mov    -0x4(%rbp),%edi
call   1040 <close@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<uart_close>:
test   %edi,%edi
jle    113d <uart_close+0x1d>
push   %rbx
mov    %edi,%ebx
mov    0x2eb2(%rip),%rax
mov    (%rax),%esi
call   1030 <tcflush@plt>
mov    %ebx,%edi
call   1040 <close@plt>
pop    %rbx
xor    %eax,%eax
ret

LLVM IR (-O0):
@TCIFLUSH = global i32 0
define i32 @uart_close(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sgt i32 %3, 0
br i1 %4, label %5, label %11
5: ; preds = %1
%6 = load i32, i32* %2
%7 = load i32, i32* @TCIFLUSH
%8 = call i32 @tcflush(i32 %6, i32 %7)
%9 = load i32, i32* %2
%10 = call i32 @close(i32 %9)
br label %11
11: ; preds = %5, %1
ret i32 0
}

LLVM IR (-O2):
@TCIFLUSH = global i32 0
define i32 @uart_close(i32 %0) {
%2 = icmp sgt i32 %0, 0
br i1 %2, label %3, label %7
3: ; preds = %1
%4 = load i32, i32* @TCIFLUSH
%5 = tail call i32 @tcflush(i32 %0, i32 %4)
%6 = tail call i32 @close(i32 %0)
br label %7
7: ; preds = %3, %1
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
float _cos_fix(int /*<<< orphan*/);
float cos_fix(float x) {
  return (_cos_fix(((uint16_t)(0xFFFF * (x / 6.283185307179586476925286)))) /
          (float)0x4000);
}


x86 assembly (clang, -O0):
<cos_fix>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xee2(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xece(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <_cos_fix@plt>
movss  0xeb1(%rip),%xmm1
divss  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cos_fix>:
push   %rax
cvtss2sd %xmm0,%xmm0
divsd  0xee3(%rip),%xmm0
mulsd  0xee3(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1030 <_cos_fix@plt>
mulss  0xeda(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @cos_fix(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fpext float %3 to double
%5 = fdiv double %4, 0x401921FB54442D18
%6 = fmul double 6.553500e+04, %5
%7 = fptosi double %6 to i32
%8 = call float @_cos_fix(i32 %7)
%9 = fdiv float %8, 1.638400e+04
ret float %9
}

LLVM IR (-O2):
define float @cos_fix(float %0) {
%2 = fpext float %0 to double
%3 = fdiv double %2, 0x401921FB54442D18
%4 = fmul double %3, 6.553500e+04
%5 = fptosi double %4 to i32
%6 = tail call float @_cos_fix(i32 %5)
%7 = fmul float %6, 0x3F10000000000000
ret float %7
}
/* Variables and functions */
scalar_t__ strcasecmp(char const *, char *);
int _keystore_valid_volume_type(const char *volume_type) {
  if (strcasecmp(volume_type, "plain") == 0)
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<_keystore_valid_volume_type>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    1142 <_keystore_valid_volume_type+0x32>
movl   $0x1,-0x4(%rbp)
jmp    1149 <_keystore_valid_volume_type+0x39>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_keystore_valid_volume_type>:
push   %rax
lea    0xee8(%rip),%rsi
call   1030 <strcasecmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"plain\00"
define i32 @_keystore_valid_volume_type(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i64 @strcasecmp(i8* %4, i8* getelementptr inbounds ([6 x i8], [6 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 %9
8: ; preds = %1
store i32 0, i32* %2
br label %9
9: ; preds = %8, %7
%10 = load i32, i32* %2
ret i32 %10
}

LLVM IR (-O2):
@.str = [6 x i8] c"plain\00"
define i32 @_keystore_valid_volume_type(i8* nocapture %0) {
%2 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
%4 = zext i1 %3 to i32
ret i32 %4
}
int dbg_check_ltab(struct ubifs_info *c) { return 0; }


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

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

LLVM IR (-O0):
%struct.ubifs_info = type opaque
define i32 @dbg_check_ltab(%struct.ubifs_info* %0) {
%2 = alloca %struct.ubifs_info*
store %struct.ubifs_info* %0, %struct.ubifs_info** %2
ret i32 0
}

LLVM IR (-O2):
%struct.ubifs_info = type opaque
define i32 @dbg_check_ltab(%struct.ubifs_info* nocapture readnone %0) {
ret i32 0
}
void gdk_window_lookup() {}


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

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

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

LLVM IR (-O2):
define void @gdk_window_lookup() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ flush_cache(void *, int);
int /*<<< orphan*/ memcpy(void *, char *, int);
void ps3_copy_vectors(void) {
  extern char __system_reset_kernel[];
  memcpy((void *)0x100, __system_reset_kernel, 512);
  flush_cache((void *)0x100, 512);
}


x86 assembly (clang, -O0):
<ps3_copy_vectors>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ebd(%rip),%rsi
mov    $0x100,%edi
mov    $0x200,%edx
call   1030 <memcpy@plt>
mov    $0x100,%edi
mov    $0x200,%esi
call   1040 <flush_cache@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ps3_copy_vectors>:
push   %rax
mov    0x2ec0(%rip),%rsi
mov    $0x100,%edi
mov    $0x200,%edx
call   1030 <memcpy@plt>
mov    $0x100,%edi
mov    $0x200,%esi
pop    %rax
jmp    1040 <flush_cache@plt>

LLVM IR (-O0):
@__system_reset_kernel = external global [0 x i8]
define void @ps3_copy_vectors() {
%1 = call i32 @memcpy(i8* inttoptr (i64 256 to i8*), i8* getelementptr inbounds ([0 x i8], [0 x i8]* @__system_reset_kernel, i64 0, i64 0), i32 512)
%2 = call i32 @flush_cache(i8* inttoptr (i64 256 to i8*), i32 512)
ret void
}

LLVM IR (-O2):
@__system_reset_kernel = external global [0 x i8]
define void @ps3_copy_vectors() {
%1 = tail call i32 @memcpy(i8* inttoptr (i64 256 to i8*), i8* getelementptr inbounds ([0 x i8], [0 x i8]* @__system_reset_kernel, i64 0, i64 0), i32 512)
%2 = tail call i32 @flush_cache(i8* inttoptr (i64 256 to i8*), i32 512)
ret void
}
/* Variables and functions */
char *malloc(scalar_t__);
int /*<<< orphan*/ strcpy(char *, char const *);
scalar_t__ strlen(char const *);
char *strdup(const char *str) {
  char *copia = malloc(strlen(str) + 1);
  if (copia == NULL)
    return NULL;
  strcpy(copia, str);
  return copia;
}


x86 assembly (clang, -O0):
<strdup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,%rdi
add    $0x1,%rdi
call   1050 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    116d <strdup+0x3d>
movq   $0x0,-0x8(%rbp)
jmp    1182 <strdup+0x52>
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strdup>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
call   1040 <strlen@plt>
lea    0x1(%rax),%rdi
call   1050 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
je     1158 <strdup+0x28>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define i8* @strdup(i8* %0) {
%2 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%3 = add nsw i64 %2, 1
%4 = tail call i8* @malloc(i64 %3)
%5 = icmp eq i8* %4, null
br i1 %5, label %8, label %6
6: ; preds = %1
%7 = tail call i32 @strcpy(i8* %4, i8* %0)
br label %8
8: ; preds = %1, %6
ret i8* %4
}