xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ assert(int /*<<< orphan*/);
int id3_check_tag(const char *tag) {
  assert(tag != NULL);
  if ((tag[0] != 'T') || (tag[1] != 'A') || (tag[2] != 'G'))
    return (-1);
  return (0);
}


x86 assembly (clang, -O0):
<id3_check_tag>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x54,%eax
jne    1160 <id3_check_tag+0x50>
mov    -0x10(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x41,%eax
jne    1160 <id3_check_tag+0x50>
mov    -0x10(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x47,%eax
je     116c <id3_check_tag+0x5c>
movl   $0xffffffff,-0x4(%rbp)
jmp    1173 <id3_check_tag+0x63>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<id3_check_tag>:
push   %rbx
mov    %rdi,%rbx
xor    %edi,%edi
test   %rbx,%rbx
setne  %dil
call   1030 <assert@plt>
mov    $0xffffffff,%eax
cmpb   $0x54,(%rbx)
jne    113d <id3_check_tag+0x2d>
cmpb   $0x41,0x1(%rbx)
jne    113d <id3_check_tag+0x2d>
xor    %eax,%eax
cmpb   $0x47,0x2(%rbx)
setne  %al
neg    %eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @id3_check_tag(i8* %0) {
%2 = icmp ne i8* %0, null
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 %3)
%5 = load i8, i8* %0
%6 = icmp eq i8 %5, 84
br i1 %6, label %7, label %16
7: ; preds = %1
%8 = getelementptr inbounds i8, i8* %0, i64 1
%9 = load i8, i8* %8
%10 = icmp eq i8 %9, 65
br i1 %10, label %11, label %16
11: ; preds = %7
%12 = getelementptr inbounds i8, i8* %0, i64 2
%13 = load i8, i8* %12
%14 = icmp ne i8 %13, 71
%15 = sext i1 %14 to i32
br label %16
16: ; preds = %11, %1, %7
%17 = phi i32 [ -1, %7 ], [ -1, %1 ], [ %15, %11 ]
ret i32 %17
}
void X509_REQ_add1_attr_by_OBJ(void) {}


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

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

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

LLVM IR (-O2):
define void @X509_REQ_add1_attr_by_OBJ() {
ret void
}
_Bool isMidMB(double q, double e, double i) {
  if (e > .45 || i > 20)
    return 0;
  double a = q / (1 - e);
  return a < 2.8 && a > 2.5;
}


x86 assembly (clang, -O0):
<isMidMB>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xee0(%rip),%xmm1
ucomisd %xmm1,%xmm0
ja     1141 <isMidMB+0x41>
movsd  -0x20(%rbp),%xmm0
movsd  0xed1(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    114a <isMidMB+0x4a>
movb   $0x0,-0x1(%rbp)
jmp    119c <isMidMB+0x9c>
movsd  -0x10(%rbp),%xmm0
movsd  0xec1(%rip),%xmm1
subsd  -0x18(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
xor    %eax,%eax
movsd  0xea1(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
mov    %al,-0x29(%rbp)
jbe    1194 <isMidMB+0x94>
movsd  -0x28(%rbp),%xmm0
movsd  0xe96(%rip),%xmm1
ucomisd %xmm1,%xmm0
seta   %al
mov    %al,-0x29(%rbp)
mov    -0x29(%rbp),%al
and    $0x1,%al
mov    %al,-0x1(%rbp)
mov    -0x1(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isMidMB>:
xor    %eax,%eax
ucomisd 0xef6(%rip),%xmm1
ja     1142 <isMidMB+0x42>
ucomisd 0xef4(%rip),%xmm2
ja     1142 <isMidMB+0x42>
movsd  0xef2(%rip),%xmm2
subsd  %xmm1,%xmm2
divsd  %xmm2,%xmm0
movsd  0xeea(%rip),%xmm1
ucomisd %xmm0,%xmm1
seta   %cl
ucomisd 0xee3(%rip),%xmm0
seta   %al
and    %cl,%al
ret

LLVM IR (-O0):
define zeroext i1 @isMidMB(double %0, double %1, double %2) {
%4 = alloca i1
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
store double %0, double* %5
store double %1, double* %6
store double %2, double* %7
%9 = load double, double* %6
%10 = fcmp ogt double %9, 4.500000e-01
br i1 %10, label %14, label %11
11: ; preds = %3
%12 = load double, double* %7
%13 = fcmp ogt double %12, 2.000000e+01
br i1 %13, label %14, label %15
14: ; preds = %11, %3
store i1 false, i1* %4
br label %27
15: ; preds = %11
%16 = load double, double* %5
%17 = load double, double* %6
%18 = fsub double 1.000000e+00, %17
%19 = fdiv double %16, %18
store double %19, double* %8
%20 = load double, double* %8
%21 = fcmp olt double %20, 2.800000e+00
br i1 %21, label %22, label %25
22: ; preds = %15
%23 = load double, double* %8
%24 = fcmp ogt double %23, 2.500000e+00
br label %25
25: ; preds = %22, %15
%26 = phi i1 [ false, %15 ], [ %24, %22 ]
store i1 %26, i1* %4
br label %27
27: ; preds = %25, %14
%28 = load i1, i1* %4
ret i1 %28
}

LLVM IR (-O2):
define zeroext i1 @isMidMB(double %0, double %1, double %2) {
%4 = fcmp ogt double %1, 4.500000e-01
%5 = fcmp ogt double %2, 2.000000e+01
%6 = or i1 %4, %5
br i1 %6, label %13, label %7
7: ; preds = %3
%8 = fsub double 1.000000e+00, %1
%9 = fdiv double %0, %8
%10 = fcmp olt double %9, 2.800000e+00
%11 = fcmp ogt double %9, 2.500000e+00
%12 = and i1 %10, %11
br label %13
13: ; preds = %3, %7
%14 = phi i1 [ %12, %7 ], [ false, %3 ]
ret i1 %14
}
vdlina(x, y) float *x, *y;
{ vilina(x, y); }


x86 assembly (clang, -O0):
<vdlina>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1030 <vilina@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @vdlina(float* %0, float* %1) {
%3 = tail call i32 (float*, float*, ...) bitcast (i32 (...)* @vilina to i32 (float*, float*, ...)*)(float* %0, float* %1)
ret i32 undef
}
float signum_float(float i) {
  if (i > 0)
    return 1;
  if (i < 0)
    return (-1);
  return 0;
}


x86 assembly (clang, -O0):
<signum_float>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    112c <signum_float+0x2c>
movss  0xee2(%rip),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1153 <signum_float+0x53>
xorps  %xmm0,%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    114b <signum_float+0x4b>
movss  0xebf(%rip),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1153 <signum_float+0x53>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<signum_float>:
xorps  %xmm1,%xmm1
movaps %xmm0,%xmm2
cmpltss %xmm1,%xmm2
movss  0xeed(%rip),%xmm3
andps  %xmm2,%xmm3
cmpltss %xmm0,%xmm1
movss  0xee1(%rip),%xmm0
andps  %xmm1,%xmm0
andnps %xmm3,%xmm1
orps   %xmm1,%xmm0
ret

LLVM IR (-O0):
define float @signum_float(float %0) {
%2 = alloca float
%3 = alloca float
store float %0, float* %3
%4 = load float, float* %3
%5 = fcmp ogt float %4, 0.000000e+00
br i1 %5, label %6, label %7
6: ; preds = %1
store float 1.000000e+00, float* %2
br label %12
7: ; preds = %1
%8 = load float, float* %3
%9 = fcmp olt float %8, 0.000000e+00
br i1 %9, label %10, label %11
10: ; preds = %7
store float -1.000000e+00, float* %2
br label %12
11: ; preds = %7
store float 0.000000e+00, float* %2
br label %12
12: ; preds = %11, %10, %6
%13 = load float, float* %2
ret float %13
}

LLVM IR (-O2):
define float @signum_float(float %0) {
%2 = fcmp ogt float %0, 0.000000e+00
%3 = fcmp olt float %0, 0.000000e+00
%4 = select i1 %3, float -1.000000e+00, float 0.000000e+00
%5 = select i1 %2, float 1.000000e+00, float %4
ret float %5
}
/* Variables and functions */
float GetFloat();
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  printf("Temperature in F: ");
  float f = GetFloat();
  float c = 5.0 / 9.0 * (f - 32.0);
  printf("%.1f\n", c);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <GetFloat@plt>
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xeb5(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xea1(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xea7(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <GetFloat@plt>
cvtss2sd %xmm0,%xmm0
addsd  0xebe(%rip),%xmm0
mulsd  0xebe(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xeca(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [19 x i8] c"Temperature in F: \00"
@.str.1 = [6 x i8] c"%.1f\0A\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%4 = call float (...) @GetFloat()
store float %4, float* %1
%5 = load float, float* %1
%6 = fpext float %5 to double
%7 = fsub double %6, 3.200000e+01
%8 = fmul double 0x3FE1C71C71C71C72, %7
%9 = fptrunc double %8 to float
store float %9, float* %2
%10 = load float, float* %2
%11 = fpext float %10 to double
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %11)
ret i32 0
}

LLVM IR (-O2):
@.str = [19 x i8] c"Temperature in F: \00"
@.str.1 = [6 x i8] c"%.1f\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%2 = tail call float (...) @GetFloat()
%3 = fpext float %2 to double
%4 = fadd double %3, -3.200000e+01
%5 = fmul double %4, 0x3FE1C71C71C71C72
%6 = fptrunc double %5 to float
%7 = fpext float %6 to double
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %7)
ret i32 0
}
/* Variables and functions */
int SIGINT;
int SIGTERM;
int /*<<< orphan*/ printf(char *);
void sig_usr(int signo) {
  if (signo == SIGTERM)
    printf("sig_usr: SIGTERM abgefangen\n");
  else if (signo == SIGINT)
    printf("sig_usr: SIGINT abgefangen\n");
  return;
}


x86 assembly (clang, -O0):
<sig_usr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    0x2ebb(%rip),%rcx
cmp    (%rcx),%eax
jne    113e <sig_usr+0x2e>
lea    0xecc(%rip),%rdi
call   1030 <printf@plt>
jmp    1161 <sig_usr+0x51>
mov    -0x4(%rbp),%eax
mov    0x2ea0(%rip),%rcx
cmp    (%rcx),%eax
jne    115c <sig_usr+0x4c>
lea    0xec6(%rip),%rdi
call   1030 <printf@plt>
jmp    1161 <sig_usr+0x51>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sig_usr>:
mov    0x2ec9(%rip),%rax
cmp    %edi,(%rax)
jne    1127 <sig_usr+0x17>
lea    0xef9(%rip),%rdi
jmp    1030 <puts@plt>
mov    0x2eba(%rip),%rax
cmp    %edi,(%rax)
jne    113e <sig_usr+0x2e>
lea    0xec7(%rip),%rdi
jmp    1030 <puts@plt>
ret

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

LLVM IR (-O2):
@SIGTERM = global i32 0
@SIGINT = global i32 0
@str = [27 x i8] c"sig_usr: SIGINT abgefangen\00"
@str.2 = [28 x i8] c"sig_usr: SIGTERM abgefangen\00"
define void @sig_usr(i32 %0) {
%2 = load i32, i32* @SIGTERM
%3 = icmp eq i32 %2, %0
br i1 %3, label %7, label %4
4: ; preds = %1
%5 = load i32, i32* @SIGINT
%6 = icmp eq i32 %5, %0
br i1 %6, label %7, label %10
7: ; preds = %4, %1
%8 = phi i8* [ getelementptr inbounds ([28 x i8], [28 x i8]* @str.2, i64 0, i64 0), %1 ], [ getelementptr inbounds ([27 x i8], [27 x i8]* @str, i64 0, i64 0), %4 ]
%9 = tail call i32 @puts(i8* dereferenceable(1) %8)
br label %10
10: ; preds = %7, %4
ret void
}
/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *, int, int);
int squared(int);
int main(int argc, const char *argv[]) {
  int num = 5;
  int squaredNum = squared(num);
  printf("\"%d\" squared is %d \n", num, squaredNum);
  return EXIT_SUCCESS;
}


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)
movl   $0x5,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1040 <squared@plt>
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xeab(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e7f(%rip),%rax
mov    (%rax),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x5,%edi
call   1040 <squared@plt>
lea    0xece(%rip),%rdi
mov    $0x5,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [21 x i8] c"\22%d\22 squared is %d \0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 5, i32* %6
%8 = load i32, i32* %6
%9 = call i32 @squared(i32 %8)
store i32 %9, i32* %7
%10 = load i32, i32* %6
%11 = load i32, i32* %7
%12 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %10, i32 %11)
%13 = load i32, i32* @EXIT_SUCCESS
ret i32 %13
}

LLVM IR (-O2):
@.str = [21 x i8] c"\22%d\22 squared is %d \0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @squared(i32 5)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 5, i32 %3)
%5 = load i32, i32* @EXIT_SUCCESS
ret i32 %5
}
/* Variables and functions */
char *strstr(char *, char *);
char *set_prefix(char *arg) {
  if (strstr(arg, "set:") == arg)
    return arg + 4;
  return arg;
}


x86 assembly (clang, -O0):
<set_prefix>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <strstr@plt>
cmp    -0x10(%rbp),%rax
jne    1147 <set_prefix+0x37>
mov    -0x10(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x8(%rbp)
jmp    114f <set_prefix+0x3f>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_prefix>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
xor    %ecx,%ecx
test   %eax,%eax
sete   %cl
lea    (%rbx,%rcx,4),%rax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c"set:\00"
define i8* @set_prefix(i8* %0) {
%2 = tail call i32 @strncmp(i8* dereferenceable(1) %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 4)
%3 = icmp eq i32 %2, 0
%4 = select i1 %3, i64 4, i64 0
%5 = getelementptr i8, i8* %0, i64 %4
ret i8* %5
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void syntax(void) { fprintf(stderr, "%s: Syntax error\n", "tsh"); }


x86 assembly (clang, -O0):
<syntax>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
lea    0xee7(%rip),%rdx
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<syntax>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    0xee0(%rip),%rsi
lea    0xeeb(%rip),%rdx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [18 x i8] c"%s: Syntax error\0A\00"
@.str.1 = [4 x i8] c"tsh\00"
define void @syntax() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [18 x i8] c"%s: Syntax error\0A\00"
@.str.1 = [4 x i8] c"tsh\00"
define void @syntax() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int memcmp(void const *, void const *, int);
int cmp_64(const void *a, const void *b) { return memcmp(a, b, 64); }


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

x86 assembly (clang, -O2):
<cmp_64>:
mov    $0x40,%edx
jmp    1030 <memcmp@plt>

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

LLVM IR (-O2):
define i32 @cmp_64(i8* %0, i8* %1) {
%3 = tail call i32 @memcmp(i8* %0, i8* %1, i32 64)
ret i32 %3
}
void AT_initBafIO(int argc, char *argv[]) {
  (void)argc;
  (void)argv;
}


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

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

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

LLVM IR (-O2):
define void @AT_initBafIO(i32 %0, i8** nocapture %1) {
ret void
}
char *getcwd(char *buf, int len) {
  if (len != 0) {
    *buf = '\0';
  }
  return (buf);
}


x86 assembly (clang, -O0):
<getcwd>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     111c <getcwd+0x1c>
mov    -0x8(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<getcwd>:
mov    %rdi,%rax
test   %esi,%esi
je     110a <getcwd+0xa>
movb   $0x0,(%rax)
ret

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

LLVM IR (-O2):
define i8* @getcwd(i8* returned writeonly %0, i32 %1) {
%3 = icmp eq i32 %1, 0
br i1 %3, label %5, label %4
4: ; preds = %2
store i8 0, i8* %0
br label %5
5: ; preds = %4, %2
ret i8* %0
}
int __ev_invalid_instr(int c) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @__ev_invalid_instr(i32 %0) {
ret i32 0
}
/* Variables and functions */
double __ocml_ncdfinv_f64(double);
double normcdfinv(double x) { return __ocml_ncdfinv_f64(x); }


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

x86 assembly (clang, -O2):
<normcdfinv>:
jmp    1030 <__ocml_ncdfinv_f64@plt>

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

LLVM IR (-O2):
define double @normcdfinv(double %0) {
%2 = tail call double @__ocml_ncdfinv_f64(double %0)
ret double %2
}
/* Variables and functions */
int /*<<< orphan*/ error(char *);
void noSpaceLeftInOldSpace() { error("Out of space on the heap."); }


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

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

LLVM IR (-O0):
@.str = [26 x i8] c"Out of space on the heap.\00"
define void @noSpaceLeftInOldSpace() {
%1 = call i32 @error(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [26 x i8] c"Out of space on the heap.\00"
define void @noSpaceLeftInOldSpace() {
%1 = tail call i32 @error(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
scalar_t__ umount(char *);
int main(int argc, char *argv[]) {
  if (umount(argv[1]) < 0)
    perror("umount");
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1030 <umount@plt>
cmp    $0x0,%rax
jge    1169 <main+0x39>
lea    0xe9c(%rip),%rdi
call   1040 <perror@plt>
xor    %edi,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x8(%rsi),%rdi
call   1030 <umount@plt>
test   %rax,%rax
jns    114b <main+0x1b>
lea    0xeba(%rip),%rdi
call   1040 <perror@plt>
xor    %edi,%edi
call   1050 <exit@plt>

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

LLVM IR (-O2):
@.str = [7 x i8] c"umount\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = getelementptr inbounds i8*, i8** %1, i64 1
%4 = load i8*, i8** %3
%5 = tail call i64 @umount(i8* %4)
%6 = icmp slt i64 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
br label %9
9: ; preds = %7, %2
%10 = tail call i32 @exit(i32 0)
unreachable
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
uint8_t *evpd_ascii_data(uint8_t *evpd_body) { return evpd_body + 2; }


x86 assembly (clang, -O0):
<evpd_ascii_data>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x8,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<evpd_ascii_data>:
lea    0x8(%rdi),%rax
ret

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

LLVM IR (-O2):
define i32* @evpd_ascii_data(i32* readnone %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 2
ret i32* %2
}
/* Variables and functions */
int /*<<< orphan*/ correlationProbability(double, int);
int /*<<< orphan*/ printf(char *);
void testRSignificanceTest() {
  printf("\nSignificance Test\n");
  correlationProbability(0.21, 23);
  correlationProbability(0.12, 43);
  correlationProbability(0.4, 30);
  correlationProbability(0.7, 50);
}


x86 assembly (clang, -O0):
<testRSignificanceTest>:
push   %rbp
mov    %rsp,%rbp
lea    0xef5(%rip),%rdi
call   1040 <printf@plt>
movsd  0xee0(%rip),%xmm0
mov    $0x17,%edi
call   1030 <correlationProbability@plt>
movsd  0xec6(%rip),%xmm0
mov    $0x2b,%edi
call   1030 <correlationProbability@plt>
movsd  0xeac(%rip),%xmm0
mov    $0x1e,%edi
call   1030 <correlationProbability@plt>
movsd  0xe92(%rip),%xmm0
mov    $0x32,%edi
call   1030 <correlationProbability@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<testRSignificanceTest>:
push   %rax
lea    0xef8(%rip),%rdi
call   1040 <puts@plt>
movsd  0xecb(%rip),%xmm0
mov    $0x17,%edi
call   1030 <correlationProbability@plt>
movsd  0xec1(%rip),%xmm0
mov    $0x2b,%edi
call   1030 <correlationProbability@plt>
movsd  0xeb7(%rip),%xmm0
mov    $0x1e,%edi
call   1030 <correlationProbability@plt>
movsd  0xead(%rip),%xmm0
mov    $0x32,%edi
pop    %rax
jmp    1030 <correlationProbability@plt>

LLVM IR (-O0):
@.str = [20 x i8] c"\0ASignificance Test\0A\00"
define void @testRSignificanceTest() {
%1 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @correlationProbability(double 2.100000e-01, i32 23)
%3 = call i32 @correlationProbability(double 1.200000e-01, i32 43)
%4 = call i32 @correlationProbability(double 4.000000e-01, i32 30)
%5 = call i32 @correlationProbability(double 0x3FE6666666666666, i32 50)
ret void
}

LLVM IR (-O2):
@str = [19 x i8] c"\0ASignificance Test\00"
define void @testRSignificanceTest() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @correlationProbability(double 2.100000e-01, i32 23)
%3 = tail call i32 @correlationProbability(double 1.200000e-01, i32 43)
%4 = tail call i32 @correlationProbability(double 4.000000e-01, i32 30)
%5 = tail call i32 @correlationProbability(double 0x3FE6666666666666, i32 50)
ret void
}
/* Variables and functions */
int strlen(char *);
void backspace(char s[]) {
  int i = strlen(s) - 1;
  if (i > 0)
    s[i] = '\0';
}


x86 assembly (clang, -O0):
<backspace>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
sub    $0x1,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jle    1141 <backspace+0x31>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<backspace>:
push   %rbx
mov    %rdi,%rbx
call   1030 <strlen@plt>
cmp    $0x2,%eax
jl     1125 <backspace+0x15>
add    $0xffffffff,%eax
movb   $0x0,(%rbx,%rax,1)
pop    %rbx
ret

LLVM IR (-O0):
define void @backspace(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @strlen(i8* %4)
%6 = sub nsw i32 %5, 1
store i32 %6, i32* %3
%7 = load i32, i32* %3
%8 = icmp sgt i32 %7, 0
br i1 %8, label %9, label %14
9: ; preds = %1
%10 = load i8*, i8** %2
%11 = load i32, i32* %3
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, i8* %10, i64 %12
store i8 0, i8* %13
br label %14
14: ; preds = %9, %1
ret void
}

LLVM IR (-O2):
define void @backspace(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = icmp sgt i32 %2, 1
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = add nsw i32 %2, -1
%6 = zext i32 %5 to i64
%7 = getelementptr inbounds i8, i8* %0, i64 %6
store i8 0, i8* %7
br label %8
8: ; preds = %4, %1
ret void
}
unsigned int p2(unsigned int a, unsigned int b, unsigned int c) {
  return b >> c;
}


x86 assembly (clang, -O0):
<p2>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
shr    %cl,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<p2>:
mov    %edx,%ecx
mov    %esi,%eax
shr    %cl,%eax
ret

LLVM IR (-O0):
define i32 @p2(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* %5
%8 = load i32, i32* %6
%9 = lshr i32 %7, %8
ret i32 %9
}

LLVM IR (-O2):
define i32 @p2(i32 %0, i32 %1, i32 %2) {
%4 = lshr i32 %1, %2
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ assert_int_equal(int, int /*<<< orphan*/);
int /*<<< orphan*/ w_double_push_targets(int, int);
void w_double_push_targets_test(void **state) {
  assert_int_equal(
      0x0000000000000000ul,
      w_double_push_targets(0x000000001422C100ul, 0x0000142281000000ul));
  assert_int_equal(
      0x0000000080000000ul,
      w_double_push_targets(0x000000001422C100ul, 0x0000142281800000ul));
}


x86 assembly (clang, -O0):
<w_double_push_targets_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x1422c100,%edi
mov    $0x81000000,%esi
call   1040 <w_double_push_targets@plt>
mov    %eax,%esi
xor    %edi,%edi
call   1030 <assert_int_equal@plt>
mov    $0x1422c100,%edi
mov    $0x81800000,%esi
call   1040 <w_double_push_targets@plt>
mov    %eax,%esi
mov    $0x80000000,%edi
call   1030 <assert_int_equal@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<w_double_push_targets_test>:
push   %rax
mov    $0x1422c100,%edi
mov    $0x81000000,%esi
call   1040 <w_double_push_targets@plt>
xor    %edi,%edi
mov    %eax,%esi
call   1030 <assert_int_equal@plt>
mov    $0x1422c100,%edi
mov    $0x81800000,%esi
call   1040 <w_double_push_targets@plt>
mov    $0x80000000,%edi
mov    %eax,%esi
pop    %rax
jmp    1030 <assert_int_equal@plt>

LLVM IR (-O0):
define void @w_double_push_targets_test(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = call i32 @w_double_push_targets(i32 337821952, i32 -2130706432)
%4 = call i32 @assert_int_equal(i32 0, i32 %3)
%5 = call i32 @w_double_push_targets(i32 337821952, i32 -2122317824)
%6 = call i32 @assert_int_equal(i32 -2147483648, i32 %5)
ret void
}

LLVM IR (-O2):
define void @w_double_push_targets_test(i8** nocapture readnone %0) {
%2 = tail call i32 @w_double_push_targets(i32 337821952, i32 -2130706432)
%3 = tail call i32 @assert_int_equal(i32 0, i32 %2)
%4 = tail call i32 @w_double_push_targets(i32 337821952, i32 -2122317824)
%5 = tail call i32 @assert_int_equal(i32 -2147483648, i32 %4)
ret void
}
/* Type definitions */
typedef scalar_t__ uint8_t;

/* Variables and functions */
int hash(const uint8_t *i) { return (((int)i[-1]) + ((int)i[0])) & (512 - 1); }


x86 assembly (clang, -O0):
<hash>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x8(%rax),%rax
mov    -0x8(%rbp),%rcx
mov    (%rcx),%rcx
add    %ecx,%eax
and    $0x1ff,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<hash>:
mov    (%rdi),%eax
add    -0x8(%rdi),%eax
and    $0x1ff,%eax
ret

LLVM IR (-O0):
define i32 @hash(i64* %0) {
%2 = alloca i64*
store i64* %0, i64** %2
%3 = load i64*, i64** %2
%4 = getelementptr inbounds i64, i64* %3, i64 -1
%5 = load i64, i64* %4
%6 = trunc i64 %5 to i32
%7 = load i64*, i64** %2
%8 = getelementptr inbounds i64, i64* %7, i64 0
%9 = load i64, i64* %8
%10 = trunc i64 %9 to i32
%11 = add nsw i32 %6, %10
%12 = and i32 %11, 511
ret i32 %12
}

LLVM IR (-O2):
define i32 @hash(i64* nocapture %0) {
%2 = getelementptr inbounds i64, i64* %0, i64 -1
%3 = load i64, i64* %2
%4 = trunc i64 %3 to i32
%5 = load i64, i64* %0
%6 = trunc i64 %5 to i32
%7 = add nsw i32 %6, %4
%8 = and i32 %7, 511
ret i32 %8
}
int f() {
  int _xxxxxxxxxxxxxxa;
  int y000000000000000;
  int _;
  int XXXXXXXXXXXXXXXX;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  {
    {
      {
        {
          {
            {
              {
                {
                  {
                    {
                      {
                        {
                          {
                            {
                              {
                                {
                                  {
                                    {
                                      {
                                        {
                                          {}
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  return ((((((((((1))))))))));
}


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

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

LLVM IR (-O0):
define i32 @f() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
ret i32 1
}

LLVM IR (-O2):
define i32 @f() {
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ core5_swap(char *, int);
void U_EMRREALIZEPALETTE_swap(char *record, int torev) {
  core5_swap(record, torev);
}


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

x86 assembly (clang, -O2):
<U_EMRREALIZEPALETTE_swap>:
jmp    1030 <core5_swap@plt>

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

LLVM IR (-O2):
define void @U_EMRREALIZEPALETTE_swap(i8* %0, i32 %1) {
%3 = tail call i32 @core5_swap(i8* %0, i32 %1)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ __m64;

/* Variables and functions */
int /*<<< orphan*/ _mm_abs_pi8(int /*<<< orphan*/);
__m64 __attribute__((__target__("ssse3"))) mm_abs_pi8_wrap(__m64 a) {
  return _mm_abs_pi8(a);
}


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

x86 assembly (clang, -O2):
<mm_abs_pi8_wrap>:
jmp    1030 <_mm_abs_pi8@plt>

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

LLVM IR (-O2):
define i32 @mm_abs_pi8_wrap(i32 %0) {
%2 = tail call i32 @_mm_abs_pi8(i32 %0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sleep(int);
void affichage_recursif() {
  printf("Après 1sec\n");
  sleep(1);
  affichage_recursif();
}


x86 assembly (clang, -O0):
<affichage_recursif>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1050 <sleep@plt>
call   1040 <affichage_recursif@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<affichage_recursif>:
push   %rbx
lea    0xed8(%rip),%rbx
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <sleep@plt>
jmp    1130 <affichage_recursif+0x10>

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

LLVM IR (-O2):
@str = [12 x i8] c"Apr\C3\A8s 1sec\00"
define void @affichage_recursif() {
br label %1
1: ; preds = %1, %0
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @sleep(i32 1)
br label %1
}
/* Variables and functions */
int missing(int, int, int);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *, int *, int *);
int main() {
  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  printf("%d\n", missing(a, b, c));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xec1(%rip),%rdi
lea    -0x4(%rbp),%rsi
lea    -0x8(%rbp),%rdx
lea    -0xc(%rbp),%rcx
call   1050 <scanf@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1040 <missing@plt>
mov    %eax,%esi
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xec5(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
call   1050 <scanf@plt>
mov    0x14(%rsp),%edi
mov    0x10(%rsp),%esi
mov    0xc(%rsp),%edx
call   1040 <missing@plt>
lea    0xea2(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

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

LLVM IR (-O2):
@.str = [9 x i8] c"%d %d %d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%8 = load i32, i32* %1
%9 = load i32, i32* %2
%10 = load i32, i32* %3
%11 = call i32 @missing(i32 %8, i32 %9, i32 %10)
%12 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %11)
ret i32 0
}
void act_nop(int c) {}


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

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

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

LLVM IR (-O2):
define void @act_nop(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ svcPanic();
int close(int file) { svcPanic(); }


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

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

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

LLVM IR (-O2):
define i32 @close(i32 %0) {
%2 = tail call i32 (...) @svcPanic()
ret i32 undef
}
void test_f32(int *v, int r __attribute__((__unused__))) { *v = 0; }


x86 assembly (clang, -O0):
<test_f32>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movl   $0x0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_f32>:
movl   $0x0,(%rdi)
ret

LLVM IR (-O0):
define void @test_f32(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
store i32 0, i32* %5
ret void
}

LLVM IR (-O2):
define void @test_f32(i32* nocapture writeonly %0, i32 %1) {
store i32 0, i32* %0
ret void
}
vdfrgb() {}


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

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

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

LLVM IR (-O2):
define i32 @vdfrgb() {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ GuiAddMsg(char *);
void sigpipeHandler() { GuiAddMsg("Caught dead pipe in threadpool"); }


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

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

LLVM IR (-O0):
@.str = [31 x i8] c"Caught dead pipe in threadpool\00"
define void @sigpipeHandler() {
%1 = call i32 @GuiAddMsg(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [31 x i8] c"Caught dead pipe in threadpool\00"
define void @sigpipeHandler() {
%1 = tail call i32 @GuiAddMsg(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ logging(char *, char *);
void usage(char *s) { logging("Usage: %s <source code>\n", s); }


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

x86 assembly (clang, -O2):
<usage>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <logging@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"Usage: %s <source code>\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @logging(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %3)
ret void
}

LLVM IR (-O2):
@.str = [25 x i8] c"Usage: %s <source code>\0A\00"
define void @usage(i8* %0) {
%2 = tail call i32 @logging(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
unsigned short le16_to_cpu(unsigned short val) {
  union {
    unsigned char pval[2];
    unsigned short val;
  } swapped;
  swapped.val = val;
  return (swapped.pval[1] << 8) + swapped.pval[0];
}


x86 assembly (clang, -O0):
<le16_to_cpu>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
mov    -0x2(%rbp),%ax
mov    %ax,-0x8(%rbp)
movzbl -0x7(%rbp),%eax
shl    $0x8,%eax
movzbl -0x8(%rbp),%ecx
add    %ecx,%eax
movzwl %ax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
%union.anon = type { i16 }
define zeroext i16 @le16_to_cpu(i16 zeroext %0) {
%2 = alloca i16
%3 = alloca %union.anon
store i16 %0, i16* %2
%4 = load i16, i16* %2
%5 = bitcast %union.anon* %3 to i16*
store i16 %4, i16* %5
%6 = bitcast %union.anon* %3 to [2 x i8]*
%7 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 1
%8 = load i8, i8* %7
%9 = zext i8 %8 to i32
%10 = shl i32 %9, 8
%11 = bitcast %union.anon* %3 to [2 x i8]*
%12 = getelementptr inbounds [2 x i8], [2 x i8]* %11, i64 0, i64 0
%13 = load i8, i8* %12
%14 = zext i8 %13 to i32
%15 = add nsw i32 %10, %14
%16 = trunc i32 %15 to i16
ret i16 %16
}

LLVM IR (-O2):
define zeroext i16 @le16_to_cpu(i16 returned zeroext %0) {
ret i16 %0
}
void g_enum_complete_type_info() {}


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

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

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

LLVM IR (-O2):
define void @g_enum_complete_type_info() {
ret void
}
unsigned gl_get_char_height(void) { return 18; }


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

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

LLVM IR (-O0):
define i32 @gl_get_char_height() {
ret i32 18
}

LLVM IR (-O2):
define i32 @gl_get_char_height() {
ret i32 18
}
/* Variables and functions */
int /*<<< orphan*/ MIPS_SET_BIT(int, int);
void xburst_cgm_gate_p1() { MIPS_SET_BIT((0xB0000000 + 0x28), 15); }


x86 assembly (clang, -O0):
<xburst_cgm_gate_p1>:
push   %rbp
mov    %rsp,%rbp
mov    $0xb0000028,%edi
mov    $0xf,%esi
call   1030 <MIPS_SET_BIT@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<xburst_cgm_gate_p1>:
mov    $0xb0000028,%edi
mov    $0xf,%esi
jmp    1030 <MIPS_SET_BIT@plt>

LLVM IR (-O0):
define void @xburst_cgm_gate_p1() {
%1 = call i32 @MIPS_SET_BIT(i32 -1342177240, i32 15)
ret void
}

LLVM IR (-O2):
define void @xburst_cgm_gate_p1() {
%1 = tail call i32 @MIPS_SET_BIT(i32 -1342177240, i32 15)
ret void
}
int sys_access(int fd, const char *path, int mode) {}


x86 assembly (clang, -O0):
<sys_access>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @sys_access(i32 %0, i8* nocapture readnone %1, i32 %2) {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  int variable = 0;
  int p = 1;
  while (1) {
    if (p)
      break;
    variable = variable + 1;
    if (variable == 10)
      break;
  }
  printf("%d\n", variable);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     113c <main+0x2c>
jmp    1159 <main+0x49>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jne    1154 <main+0x44>
jmp    1159 <main+0x49>
jmp    112d <main+0x1d>
mov    -0x8(%rbp),%esi
lea    0xe9d(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 0)
ret i32 0
}