xunge/DecIR huggingface dataset:
void __attribute__((ms_abi)) foo(void) {}


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

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

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

LLVM IR (-O2):
define win64cc void @foo() {
ret void
}
int test_imm_45int8_mem(signed char *val) {
  return ((*val) & (-0x45 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_45int8_mem>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%edx
and    $0xffffffbb,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_45int8_mem>:
testb  $0xbb,(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_45int8_mem(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
%6 = and i32 %5, -69
%7 = icmp ne i32 %6, 0
%8 = zext i1 %7 to i64
%9 = select i1 %7, i32 -20, i32 -40
ret i32 %9
}

LLVM IR (-O2):
define i32 @test_imm_45int8_mem(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = and i8 %2, -69
%4 = icmp eq i8 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Variables and functions */
double VLM_distance_to_line_ratio_xing(double, double, double, double, double,
                                       double, double *, double *, double *);
double VLM_distance_to_line_xing(double latitude, double longitude,
                                 double latitude_a, double longitude_a,
                                 double latitude_b, double longitude_b,
                                 double *xing_lat, double *xing_long) {
  double ratio;
  return VLM_distance_to_line_ratio_xing(latitude, longitude, latitude_a,
                                         longitude_a, latitude_b, longitude_b,
                                         xing_lat, xing_long, &ratio);
}


x86 assembly (clang, -O0):
<VLM_distance_to_line_xing>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
mov    %rdi,-0x38(%rbp)
mov    %rsi,-0x40(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
movsd  -0x28(%rbp),%xmm4
movsd  -0x30(%rbp),%xmm5
mov    -0x38(%rbp),%rdi
mov    -0x40(%rbp),%rsi
lea    -0x48(%rbp),%rdx
call   1030 <VLM_distance_to_line_ratio_xing@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<VLM_distance_to_line_xing>:
push   %rax
mov    %rsp,%rdx
call   1030 <VLM_distance_to_line_ratio_xing@plt>
pop    %rax
ret

LLVM IR (-O0):
define double @VLM_distance_to_line_xing(double %0, double %1, double %2, double %3, double %4, double %5, double* %6, double* %7) {
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double*
%16 = alloca double*
%17 = alloca double
store double %0, double* %9
store double %1, double* %10
store double %2, double* %11
store double %3, double* %12
store double %4, double* %13
store double %5, double* %14
store double* %6, double** %15
store double* %7, double** %16
%18 = load double, double* %9
%19 = load double, double* %10
%20 = load double, double* %11
%21 = load double, double* %12
%22 = load double, double* %13
%23 = load double, double* %14
%24 = load double*, double** %15
%25 = load double*, double** %16
%26 = call double @VLM_distance_to_line_ratio_xing(double %18, double %19, double %20, double %21, double %22, double %23, double* %24, double* %25, double* %17)
ret double %26
}

LLVM IR (-O2):
define double @VLM_distance_to_line_xing(double %0, double %1, double %2, double %3, double %4, double %5, double* %6, double* %7) {
%9 = alloca double
%10 = bitcast double* %9 to i8*
%11 = call double @VLM_distance_to_line_ratio_xing(double %0, double %1, double %2, double %3, double %4, double %5, double* %6, double* %7, double* %9)
ret double %11
}
void rte_prefetch_non_temporal(const volatile void *p) {
  asm volatile("prefetchnta %[p]" : : [p] "m"(*(const volatile char *)p));
}


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

x86 assembly (clang, -O2):
<rte_prefetch_non_temporal>:
prefetchnta (%rdi)
ret

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

LLVM IR (-O2):
define void @rte_prefetch_non_temporal(i8* %0) {
tail call void asm sideeffect "prefetchnta $0", "*m,~{dirflag},~{fpsr},~{flags}"(i8* elementtype(i8) %0)
ret void
}
/* Type definitions */
struct item {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ abort_crypto_lib(char *);
int /*<<< orphan*/ is_hmac(struct item *);
void check_is_hmac(struct item *item) {
  if (!is_hmac(item))
    abort_crypto_lib("Presented item is not an hmac");
}


x86 assembly (clang, -O0):
<check_is_hmac>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <is_hmac@plt>
cmp    $0x0,%eax
jne    114a <check_is_hmac+0x2a>
lea    0xebb(%rip),%rdi
call   1040 <abort_crypto_lib@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_is_hmac>:
push   %rax
call   1030 <is_hmac@plt>
test   %eax,%eax
je     112c <check_is_hmac+0xc>
pop    %rax
ret
lea    0xecd(%rip),%rdi
pop    %rax
jmp    1040 <abort_crypto_lib@plt>

LLVM IR (-O0):
%struct.item = type { i32 }
@.str = [30 x i8] c"Presented item is not an hmac\00"
define void @check_is_hmac(%struct.item* %0) {
%2 = alloca %struct.item*
store %struct.item* %0, %struct.item** %2
%3 = load %struct.item*, %struct.item** %2
%4 = call i32 @is_hmac(%struct.item* %3)
%5 = icmp ne i32 %4, 0
br i1 %5, label %8, label %6
6: ; preds = %1
%7 = call i32 @abort_crypto_lib(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %6, %1
ret void
}

LLVM IR (-O2):
%struct.item = type { i32 }
@.str = [30 x i8] c"Presented item is not an hmac\00"
define void @check_is_hmac(%struct.item* %0) {
%2 = tail call i32 @is_hmac(%struct.item* %0)
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 @abort_crypto_lib(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
br label %6
6: ; preds = %4, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ verify_naive();
int /*<<< orphan*/ verify_opt();
int main(void) {
  verify_naive();
  verify_opt();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @verify_naive()
%2 = tail call i32 (...) @verify_opt()
ret i32 0
}
int test_imm_58uint32_reg(unsigned int val) {
  return ((val) & (0x58 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_58uint32_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edx
and    $0x58,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_58uint32_reg>:
test   $0x58,%dil
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_58uint32_reg(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = and i32 %3, 88
%5 = icmp ne i32 %4, 0
%6 = zext i1 %5 to i64
%7 = select i1 %5, i32 -20, i32 -40
ret i32 %7
}

LLVM IR (-O2):
define i32 @test_imm_58uint32_reg(i32 %0) {
%2 = and i32 %0, 88
%3 = icmp eq i32 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ msr_set_ie();
void ipl_init(void) { msr_set_ie(); }


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

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

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

LLVM IR (-O2):
define void @ipl_init() {
%1 = tail call i32 (...) @msr_set_ie()
ret void
}
void _logger_noop(__attribute__((__unused__)) const char *format, ...) {}


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

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

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

LLVM IR (-O2):
define void @_logger_noop(i8* nocapture %0, ...) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ dbg_break();
void breakpoint(void) { dbg_break(); }


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

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

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

LLVM IR (-O2):
define void @breakpoint() {
%1 = tail call i32 (...) @dbg_break()
ret void
}
void powerOnUart0(void) {}


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

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

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

LLVM IR (-O2):
define void @powerOnUart0() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ bputc(int);
void WriteSoi() {
  bputc(0xff);
  bputc(0xd8);
}


x86 assembly (clang, -O0):
<WriteSoi>:
push   %rbp
mov    %rsp,%rbp
mov    $0xff,%edi
call   1030 <bputc@plt>
mov    $0xd8,%edi
call   1030 <bputc@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<WriteSoi>:
push   %rax
mov    $0xff,%edi
call   1030 <bputc@plt>
mov    $0xd8,%edi
pop    %rax
jmp    1030 <bputc@plt>

LLVM IR (-O0):
define void @WriteSoi() {
%1 = call i32 @bputc(i32 255)
%2 = call i32 @bputc(i32 216)
ret void
}

LLVM IR (-O2):
define void @WriteSoi() {
%1 = tail call i32 @bputc(i32 255)
%2 = tail call i32 @bputc(i32 216)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  const int ANSWER = 3;
  int guess;
  scanf("%d", &guess);
  if (guess == ANSWER)
    printf("true ");
  else
    printf("false ");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x3,-0x8(%rbp)
lea    0xec3(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x3,-0xc(%rbp)
jne    1161 <main+0x41>
lea    0xeac(%rip),%rdi
call   1030 <printf@plt>
jmp    116d <main+0x4d>
lea    0xea1(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
cmpl   $0x3,0x4(%rsp)
lea    0xec5(%rip),%rax
lea    0xec4(%rip),%rdi
cmove  %rax,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [6 x i8] c"true \00"
@.str.2 = [7 x i8] c"false \00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = icmp eq i32 %4, 3
%6 = select i1 %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%7 = call i32 @printf(i8* dereferenceable(1) %6)
ret i32 0
}
int test(int a) {
  int b = 0;
  switch (a) {
  case 1:
    b = 2;
    break;
  default:
    switch (a - 2) {
    default:
      break;
    case 0:
      return 1;
    }
    break;
  case 3:
    b = 6;
  }
  return b;
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
sub    $0x1,%eax
je     1133 <test+0x33>
jmp    1122 <test+0x22>
mov    -0x10(%rbp),%eax
sub    $0x3,%eax
je     1166 <test+0x66>
jmp    113f <test+0x3f>
movl   $0x2,-0xc(%rbp)
jmp    116d <test+0x6d>
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
je     1155 <test+0x55>
jmp    1150 <test+0x50>
jmp    1161 <test+0x61>
movl   $0x1,-0x4(%rbp)
jmp    1173 <test+0x73>
jmp    116d <test+0x6d>
movl   $0x6,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
cmp    $0x1,%edi
je     1115 <test+0x15>
cmp    $0x2,%edi
je     111b <test+0x1b>
cmp    $0x3,%edi
jne    1121 <test+0x21>
mov    $0x6,%eax
ret
mov    $0x2,%eax
ret
mov    $0x1,%eax
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @test(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 0, i32* %4
%5 = load i32, i32* %3
switch i32 %5, label %7 [
i32 1, label %6
i32 3, label %13
]
6: ; preds = %1
store i32 2, i32* %4
br label %14
7: ; preds = %1
%8 = load i32, i32* %3
%9 = sub nsw i32 %8, 2
switch i32 %9, label %10 [
i32 0, label %11
]
10: ; preds = %7
br label %12
11: ; preds = %7
store i32 1, i32* %2
br label %16
12: ; preds = %10
br label %14
13: ; preds = %1
store i32 6, i32* %4
br label %14
14: ; preds = %13, %12, %6
%15 = load i32, i32* %4
store i32 %15, i32* %2
br label %16
16: ; preds = %14, %11
%17 = load i32, i32* %2
ret i32 %17
}

LLVM IR (-O2):
define i32 @test(i32 %0) {
switch i32 %0, label %3 [
i32 1, label %4
i32 3, label %2
i32 2, label %6
]
2: ; preds = %1
br label %4
3: ; preds = %1
br label %4
4: ; preds = %1, %3, %2
%5 = phi i32 [ 6, %2 ], [ 2, %1 ], [ 0, %3 ]
br label %6
6: ; preds = %1, %4
%7 = phi i32 [ %5, %4 ], [ 1, %1 ]
ret i32 %7
}
/* Variables and functions */
int vec_insert(void *, void const *, int /*<<< orphan*/);
int vec_prepend(void *vec, void const *data) {
  return vec_insert(vec, data, 0);
}


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

x86 assembly (clang, -O2):
<vec_prepend>:
xor    %edx,%edx
jmp    1030 <vec_insert@plt>

LLVM IR (-O0):
define i32 @vec_prepend(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 @vec_insert(i8* %5, i8* %6, i32 0)
ret i32 %7
}

LLVM IR (-O2):
define i32 @vec_prepend(i8* %0, i8* %1) {
%3 = tail call i32 @vec_insert(i8* %0, i8* %1, i32 0)
ret i32 %3
}
__attribute__((constructor)) void fb_ctor__hlp(void) {
label$0:;
label$1:;
}


x86 assembly (clang, -O0):
<fb_ctor__hlp>:
push   %rbp
mov    %rsp,%rbp
jmp    1109 <fb_ctor__hlp+0x9>
jmp    110e <fb_ctor__hlp+0xe>
pop    %rbp
ret

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

LLVM IR (-O0):
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @fb_ctor__hlp, i8* null }]
define void @fb_ctor__hlp() {
br label %1
1: ; preds = %0
br label %2
2: ; preds = %1
ret void
}

LLVM IR (-O2):
@llvm.global_ctors = appending global [0 x { i32, void ()*, i8* }] zeroinitializer
define void @fb_ctor__hlp() {
ret void
}
/* Variables and functions */
int bit_get_msb_pos(int /*<<< orphan*/);
int /*<<< orphan*/ bit_get_rightmost_zero_val(int);
int bit_get_rightmost_zero_pos(int n) {
  return bit_get_msb_pos(bit_get_rightmost_zero_val(n));
}


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

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

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

LLVM IR (-O2):
define i32 @bit_get_rightmost_zero_pos(i32 %0) {
%2 = tail call i32 @bit_get_rightmost_zero_val(i32 %0)
%3 = tail call i32 @bit_get_msb_pos(i32 %2)
ret i32 %3
}
/* Type definitions */
typedef int fexcept_t;

/* Variables and functions */
int /*<<< orphan*/ test1();
int /*<<< orphan*/ test2(int *);
int main() {
  fexcept_t __fpscr;
  test1();
  test2(&__fpscr);
  return __fpscr;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <test1@plt>
lea    0x4(%rsp),%rdi
call   1040 <test2@plt>
mov    0x4(%rsp),%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 (...) @test1()
%4 = call i32 @test2(i32* %1)
%5 = load i32, i32* %1
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ handle_DANGER(int /*<<< orphan*/);
int gen_DANGER() { handle_DANGER(0); }


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

x86 assembly (clang, -O2):
<gen_DANGER>:
xor    %edi,%edi
jmp    1030 <handle_DANGER@plt>

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

LLVM IR (-O2):
define i32 @gen_DANGER() {
%1 = tail call i32 @handle_DANGER(i32 0)
ret i32 undef
}
int posix_typed_mem_open(const char *name, int oflag, int tflag) { return 0; }


x86 assembly (clang, -O0):
<posix_typed_mem_open>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @posix_typed_mem_open(i8* nocapture readnone %0, i32 %1, i32 %2) {
ret i32 0
}
/* Type definitions */
struct list_type {
  int dummy;
};

/* Variables and functions */
struct list_type *build_list();
int /*<<< orphan*/ free_list(struct list_type *);
struct list_type *lookup_list(struct list_type *);
int main(int argc, char *argv[]) {
  struct list_type *list = build_list();
  struct list_type *el = lookup_list(list);
  free_list(list);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1050 <build_list@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <lookup_list@plt>
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <free_list@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1050 <build_list@plt>
mov    %rax,%rbx
mov    %rax,%rdi
call   1040 <lookup_list@plt>
mov    %rbx,%rdi
call   1030 <free_list@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
%struct.list_type = type { i32 }
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.list_type*
%7 = alloca %struct.list_type*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = call %struct.list_type* (...) @build_list()
store %struct.list_type* %8, %struct.list_type** %6
%9 = load %struct.list_type*, %struct.list_type** %6
%10 = call %struct.list_type* @lookup_list(%struct.list_type* %9)
store %struct.list_type* %10, %struct.list_type** %7
%11 = load %struct.list_type*, %struct.list_type** %6
%12 = call i32 @free_list(%struct.list_type* %11)
ret i32 0
}

LLVM IR (-O2):
%struct.list_type = type { i32 }
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call %struct.list_type* (...) @build_list()
%4 = tail call %struct.list_type* @lookup_list(%struct.list_type* %3)
%5 = tail call i32 @free_list(%struct.list_type* %3)
ret i32 0
}
signed int getgroups(signed int __size, unsigned int *__list) {
  signed int return_value___getgroups_chk$1;
  signed int return_value___getgroups_chk_warn$2;
  if ((_Bool)0) {
  __CPROVER_DUMP_L1:;
    return_value___getgroups_chk$1 =
        __getgroups_chk(__size, __list, 18446744073709551615ul);
    return return_value___getgroups_chk$1;
    if (4ul * (unsigned long int)__size > 18446744073709551615ul) {
      return_value___getgroups_chk_warn$2 =
          __getgroups_chk_warn(__size, __list, 18446744073709551615ul);
      return return_value___getgroups_chk_warn$2;
    }
  }
  signed int return_value___getgroups_alias$3;
  return_value___getgroups_alias$3 = __getgroups_alias(__size, __list);
  return return_value___getgroups_alias$3;
}


x86 assembly (clang, -O0):
<getgroups>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
test   $0x1,%al
jne    113e <getgroups+0x1e>
jmp    1166 <getgroups+0x46>
jmp    1143 <getgroups+0x23>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    $0xffffffffffffffff,%rdx
mov    $0x0,%al
call   1030 <__getgroups_chk@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    117d <getgroups+0x5d>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <__getgroups_alias@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @getgroups(i32 %0, i32* %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %4
store i32* %1, i32** %5
br i1 false, label %9, label %15
9: ; preds = %2
br label %10
10: ; preds = %9
%11 = load i32, i32* %4
%12 = load i32*, i32** %5
%13 = call i32 (i32, i32*, i64, ...) bitcast (i32 (...)* @__getgroups_chk to i32 (i32, i32*, i64, ...)*)(i32 %11, i32* %12, i64 -1)
store i32 %13, i32* %6
%14 = load i32, i32* %6
store i32 %14, i32* %3
br label %20
15: ; preds = %2
%16 = load i32, i32* %4
%17 = load i32*, i32** %5
%18 = call i32 (i32, i32*, ...) bitcast (i32 (...)* @__getgroups_alias to i32 (i32, i32*, ...)*)(i32 %16, i32* %17)
store i32 %18, i32* %8
%19 = load i32, i32* %8
store i32 %19, i32* %3
br label %20
20: ; preds = %15, %10
%21 = load i32, i32* %3
ret i32 %21
}

LLVM IR (-O2):
define i32 @getgroups(i32 %0, i32* %1) {
%3 = tail call i32 (i32, i32*, ...) bitcast (i32 (...)* @__getgroups_alias to i32 (i32, i32*, ...)*)(i32 %0, i32* %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
void printClause(int *clause) {
  while (*clause)
    printf("%i ", *clause++);
  printf("0\n");
}


x86 assembly (clang, -O0):
<printClause>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmpl   $0x0,(%rax)
je     114d <printClause+0x3d>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x8(%rbp)
mov    (%rax),%esi
lea    0xebf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    111c <printClause+0xc>
lea    0xeb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printClause>:
push   %r14
push   %rbx
push   %rax
mov    (%rdi),%esi
test   %esi,%esi
je     1154 <printClause+0x34>
mov    %rdi,%rbx
add    $0x4,%rbx
lea    0xec8(%rip),%r14
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%esi
add    $0x4,%rbx
test   %esi,%esi
jne    1140 <printClause+0x20>
lea    0xea9(%rip),%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <puts@plt>

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

LLVM IR (-O2):
@.str = [4 x i8] c"%i \00"
@str = [2 x i8] c"0\00"
define void @printClause(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = icmp eq i32 %2, 0
br i1 %3, label %11, label %4
4: ; preds = %1, %4
%5 = phi i32 [ %9, %4 ], [ %2, %1 ]
%6 = phi i32* [ %7, %4 ], [ %0, %1 ]
%7 = getelementptr inbounds i32, i32* %6, i64 1
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %5)
%9 = load i32, i32* %7
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %4
11: ; preds = %4, %1
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ uitodec(int, char *);
void itodec(int value, char *str) {
  if (value < 0) {
    *(str++) = '-';
    value = -value;
  }
  uitodec(value, str);
}


x86 assembly (clang, -O0):
<itodec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x0,-0x4(%rbp)
jge    1143 <itodec+0x33>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movb   $0x2d,(%rax)
xor    %eax,%eax
sub    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <uitodec@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<itodec>:
test   %edi,%edi
js     1119 <itodec+0x9>
jmp    1030 <uitodec@plt>
movb   $0x2d,(%rsi)
add    $0x1,%rsi
neg    %edi
jmp    1030 <uitodec@plt>

LLVM IR (-O0):
define void @itodec(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 = icmp slt i32 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %2
%8 = load i8*, i8** %4
%9 = getelementptr inbounds i8, i8* %8, i32 1
store i8* %9, i8** %4
store i8 45, i8* %8
%10 = load i32, i32* %3
%11 = sub nsw i32 0, %10
store i32 %11, i32* %3
br label %12
12: ; preds = %7, %2
%13 = load i32, i32* %3
%14 = load i8*, i8** %4
%15 = call i32 @uitodec(i32 %13, i8* %14)
ret void
}

LLVM IR (-O2):
define void @itodec(i32 %0, i8* %1) {
%3 = icmp slt i32 %0, 0
br i1 %3, label %4, label %7
4: ; preds = %2
%5 = getelementptr inbounds i8, i8* %1, i64 1
store i8 45, i8* %1
%6 = sub nsw i32 0, %0
br label %7
7: ; preds = %4, %2
%8 = phi i32 [ %6, %4 ], [ %0, %2 ]
%9 = phi i8* [ %5, %4 ], [ %1, %2 ]
%10 = tail call i32 @uitodec(i32 %8, i8* %9)
ret void
}
void ieee80211_debugfs_key_sta_link(struct ieee80211_key *key,
                                    struct sta_info *sta) {}


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

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

LLVM IR (-O0):
%struct.ieee80211_key = type opaque
%struct.sta_info = type opaque
define void @ieee80211_debugfs_key_sta_link(%struct.ieee80211_key* %0, %struct.sta_info* %1) {
%3 = alloca %struct.ieee80211_key*
%4 = alloca %struct.sta_info*
store %struct.ieee80211_key* %0, %struct.ieee80211_key** %3
store %struct.sta_info* %1, %struct.sta_info** %4
ret void
}

LLVM IR (-O2):
%struct.ieee80211_key = type opaque
%struct.sta_info = type opaque
define void @ieee80211_debugfs_key_sta_link(%struct.ieee80211_key* nocapture %0, %struct.sta_info* nocapture %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ deputy_fail_mayreturn(char *, char const *, char const *,
                                         int, char const *);
void CMult(int i1, int i2, const char *text, const char *file, int line,
           const char *func) {
  if (!((i2 % i1) == 0) || 0) {
    deputy_fail_mayreturn("alignment check", text, file, line, func);
  };
}


x86 assembly (clang, -O0):
<CMult>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9,-0x28(%rbp)
mov    -0x8(%rbp),%eax
cltd
idivl  -0x4(%rbp)
cmp    $0x0,%edx
je     1159 <CMult+0x49>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x28(%rbp),%r8
lea    0xeac(%rip),%rdi
call   1030 <deputy_fail_mayreturn@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CMult>:
mov    %rdx,%r10
mov    %esi,%eax
cltd
idiv   %edi
test   %edx,%edx
je     1134 <CMult+0x24>
lea    0xedd(%rip),%rdi
mov    %r10,%rsi
mov    %rcx,%rdx
mov    %r8d,%ecx
mov    %r9,%r8
jmp    1030 <deputy_fail_mayreturn@plt>
ret

LLVM IR (-O0):
@.str = [16 x i8] c"alignment check\00"
define void @CMult(i32 %0, i32 %1, i8* %2, i8* %3, i32 %4, i8* %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i8*
store i32 %0, i32* %7
store i32 %1, i32* %8
store i8* %2, i8** %9
store i8* %3, i8** %10
store i32 %4, i32* %11
store i8* %5, i8** %12
%13 = load i32, i32* %8
%14 = load i32, i32* %7
%15 = srem i32 %13, %14
%16 = icmp eq i32 %15, 0
br i1 %16, label %23, label %17
17: ; preds = %6
%18 = load i8*, i8** %9
%19 = load i8*, i8** %10
%20 = load i32, i32* %11
%21 = load i8*, i8** %12
%22 = call i32 @deputy_fail_mayreturn(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %18, i8* %19, i32 %20, i8* %21)
br label %23
23: ; preds = %17, %6
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"alignment check\00"
define void @CMult(i32 %0, i32 %1, i8* %2, i8* %3, i32 %4, i8* %5) {
%7 = srem i32 %1, %0
%8 = icmp eq i32 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %6
%10 = tail call i32 @deputy_fail_mayreturn(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %2, i8* %3, i32 %4, i8* %5)
br label %11
11: ; preds = %9, %6
ret void
}
/* Variables and functions */
int /*<<< orphan*/ clear_io_bit(int, int /*<<< orphan*/);
void TOSH_CLR_PW0_PIN() { clear_io_bit(0x40, 0); }


x86 assembly (clang, -O0):
<TOSH_CLR_PW0_PIN>:
push   %rbp
mov    %rsp,%rbp
mov    $0x40,%edi
xor    %esi,%esi
call   1030 <clear_io_bit@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<TOSH_CLR_PW0_PIN>:
mov    $0x40,%edi
xor    %esi,%esi
jmp    1030 <clear_io_bit@plt>

LLVM IR (-O0):
define void @TOSH_CLR_PW0_PIN() {
%1 = call i32 @clear_io_bit(i32 64, i32 0)
ret void
}

LLVM IR (-O2):
define void @TOSH_CLR_PW0_PIN() {
%1 = tail call i32 @clear_io_bit(i32 64, i32 0)
ret void
}
/* Variables and functions */
int i_mod(int *, int *);
int intr_wrap_382(int p1, int p2) { return i_mod(&p1, &p2); }


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

x86 assembly (clang, -O2):
<intr_wrap_382>:
push   %rax
mov    %edi,0x4(%rsp)
mov    %esi,(%rsp)
lea    0x4(%rsp),%rdi
mov    %rsp,%rsi
call   1030 <i_mod@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i32 @intr_wrap_382(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = call i32 @i_mod(i32* %3, i32* %4)
ret i32 %5
}

LLVM IR (-O2):
define i32 @intr_wrap_382(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = call i32 @i_mod(i32* %3, i32* %4)
ret i32 %5
}
void recurse(const int depth, const int branch) {
  const int depth_limit = branch * 1;
  if (depth < depth_limit) {
#pragma omp task default(none) firstprivate(depth, branch)
    { recurse(depth + 1, branch); }
#pragma omp task default(none) firstprivate(depth, branch)
    { recurse(depth + 1, branch); }
  }
}


x86 assembly (clang, -O0):
<recurse>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
shl    $0x0,%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    114f <recurse+0x3f>
mov    -0x4(%rbp),%edi
add    $0x1,%edi
mov    -0x8(%rbp),%esi
call   1030 <recurse@plt>
mov    -0x4(%rbp),%edi
add    $0x1,%edi
mov    -0x8(%rbp),%esi
call   1030 <recurse@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<recurse>:
push   %rbp
push   %r14
push   %rbx
cmp    %esi,%edi
jge    114c <recurse+0x3c>
mov    %esi,%r14d
mov    %edi,%ebx
mov    %esi,%ebp
neg    %ebp
add    $0x1,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %ebx,%edi
mov    %r14d,%esi
call   1030 <recurse@plt>
lea    (%rbx,%rbp,1),%eax
add    $0x1,%eax
mov    %ebx,%ecx
add    $0x1,%ecx
mov    %ecx,%ebx
cmp    $0x1,%eax
jne    1130 <recurse+0x20>
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
define void @recurse(i32 %0, i32 %1) {
%3 = icmp slt i32 %0, %1
br i1 %3, label %4, label %8
4: ; preds = %2, %4
%5 = phi i32 [ %6, %4 ], [ %0, %2 ]
%6 = add nsw i32 %5, 1
tail call void @recurse(i32 %6, i32 %1)
%7 = icmp eq i32 %6, %1
br i1 %7, label %8, label %4
8: ; preds = %4, %2
ret void
}
int KlelGetVersionRevision(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @KlelGetVersionRevision() {
ret i32 0
}
void gtk_tree_path_is_descendant() {}


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

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

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

LLVM IR (-O2):
define void @gtk_tree_path_is_descendant() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ init_amask_table();
void init_move_tables(void) { init_amask_table(); }


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

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

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

LLVM IR (-O2):
define void @init_move_tables() {
%1 = tail call i32 (...) @init_amask_table()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int footer() { printf("</pre>\n</dir>\n</body></html>\n"); }


x86 assembly (clang, -O0):
<footer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [30 x i8] c"</pre>\0A</dir>\0A</body></html>\0A\00"
define i32 @footer() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@str = [29 x i8] c"</pre>\0A</dir>\0A</body></html>\00"
define i32 @footer() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ challenge_PI_any_one();
int /*<<< orphan*/ challenge_PI_run();
int /*<<< orphan*/ challenge_initStates();
int main() {
  challenge_initStates();
  challenge_PI_run();
  challenge_PI_run();
  challenge_PI_any_one();
  challenge_PI_run();
  return 0;
}


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

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @challenge_initStates()
%3 = call i32 (...) @challenge_PI_run()
%4 = call i32 (...) @challenge_PI_run()
%5 = call i32 (...) @challenge_PI_any_one()
%6 = call i32 (...) @challenge_PI_run()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @challenge_initStates()
%2 = tail call i32 (...) @challenge_PI_run()
%3 = tail call i32 (...) @challenge_PI_run()
%4 = tail call i32 (...) @challenge_PI_any_one()
%5 = tail call i32 (...) @challenge_PI_run()
ret i32 0
}
/* Variables and functions */
float sqrtf(float);
float blinToBeckmann(float alpha) { return sqrtf(2.0f / (alpha + 2.0f)); }


x86 assembly (clang, -O0):
<blinToBeckmann>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  0xedb(%rip),%xmm1
addss  -0x4(%rbp),%xmm1
movss  0xece(%rip),%xmm0
divss  %xmm1,%xmm0
call   1030 <sqrtf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<blinToBeckmann>:
movaps %xmm0,%xmm1
movss  0xee5(%rip),%xmm0
addss  %xmm0,%xmm1
divss  %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     1130 <blinToBeckmann+0x20>
sqrtss %xmm0,%xmm0
ret
jmp    1030 <sqrtf@plt>

LLVM IR (-O0):
define float @blinToBeckmann(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fadd float %3, 2.000000e+00
%5 = fdiv float 2.000000e+00, %4
%6 = call float @sqrtf(float %5)
ret float %6
}

LLVM IR (-O2):
define float @blinToBeckmann(float %0) {
%2 = fadd float %0, 2.000000e+00
%3 = fdiv float 2.000000e+00, %2
%4 = tail call float @sqrtf(float %3)
ret float %4
}
/* Variables and functions */
int /*<<< orphan*/ HelloWorld();
int /*<<< orphan*/ printf(char *);
int main(void) {
  printf("Vor der Funktion HelloWorld()\n");
  HelloWorld();
  printf("\nNach der Funktion HelloWorld()\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <HelloWorld@plt>
lea    0xed6(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <HelloWorld@plt>
lea    0xee3(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [31 x i8] c"Vor der Funktion HelloWorld()\0A\00"
@.str.1 = [33 x i8] c"\0ANach der Funktion HelloWorld()\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @HelloWorld()
%4 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [30 x i8] c"Vor der Funktion HelloWorld()\00"
@str.2 = [32 x i8] c"\0ANach der Funktion HelloWorld()\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (...) @HelloWorld()
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.2, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ free(int /*<<< orphan*/);
void free_array_string_with_count(char **block, int block_count) {
  while (block_count--)
    free(*block++);
}


x86 assembly (clang, -O0):
<free_array_string_with_count>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0xc(%rbp)
cmp    $0x0,%eax
je     1151 <free_array_string_with_count+0x41>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x8(%rbp)
mov    (%rax),%rax
mov    %eax,%edi
call   1030 <free@plt>
jmp    111f <free_array_string_with_count+0xf>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<free_array_string_with_count>:
push   %r15
push   %r14
push   %rbx
test   %esi,%esi
je     1142 <free_array_string_with_count+0x32>
mov    %rdi,%r14
mov    %esi,%r15d
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%r14,%rbx,8),%edi
call   1030 <free@plt>
add    $0x1,%rbx
cmp    %ebx,%r15d
jne    1130 <free_array_string_with_count+0x20>
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define void @free_array_string_with_count(i8** nocapture %0, i32 %1) {
%3 = icmp eq i32 %1, 0
br i1 %3, label %14, label %4
4: ; preds = %2, %4
%5 = phi i32 [ %7, %4 ], [ %1, %2 ]
%6 = phi i8** [ %8, %4 ], [ %0, %2 ]
%7 = add nsw i32 %5, -1
%8 = getelementptr inbounds i8*, i8** %6, i64 1
%9 = load i8*, i8** %6
%10 = ptrtoint i8* %9 to i64
%11 = trunc i64 %10 to i32
%12 = tail call i32 @free(i32 %11)
%13 = icmp eq i32 %7, 0
br i1 %13, label %14, label %4
14: ; preds = %4, %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
void err_app_fatal(const char *string, const char *err) {
  fprintf(stderr, "%s: ", string);
  fprintf(stderr, "%s\n", err);
  fflush(stderr);
  exit(-1);
}


x86 assembly (clang, -O0):
<err_app_fatal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e99(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xeac(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e80(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xe98(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e67(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
mov    $0xffffffff,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<err_app_fatal>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%rdx
mov    0x2e9f(%rip),%r14
mov    (%r14),%edi
lea    0xeb5(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xeab(%rip),%rsi
mov    %rbx,%rdx
call   1030 <fprintf@plt>
mov    (%r14),%edi
call   1040 <fflush@plt>
mov    $0xffffffff,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [5 x i8] c"%s: \00"
@.str.1 = [4 x i8] c"%s\0A\00"
define void @err_app_fatal(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %3
%7 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = load i32, i32* @stderr
%9 = load i8*, i8** %4
%10 = call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %9)
%11 = load i32, i32* @stderr
%12 = call i32 @fflush(i32 %11)
%13 = call i32 @exit(i32 -1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [5 x i8] c"%s: \00"
@.str.1 = [4 x i8] c"%s\0A\00"
define void @err_app_fatal(i8* %0, i8* %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %0)
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%7 = load i32, i32* @stderr
%8 = tail call i32 @fflush(i32 %7)
%9 = tail call i32 @exit(i32 -1)
unreachable
}
void foo_1_2_1_2_1_2_2_2_1() {}


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

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

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

LLVM IR (-O2):
define void @foo_1_2_1_2_1_2_2_2_1() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ time_t;

/* Variables and functions */
int /*<<< orphan*/ gmtime(int /*<<< orphan*/ *);
int /*<<< orphan*/ strftime(char *, size_t, char *, int /*<<< orphan*/);
void q9strftime(char *buf, size_t size, time_t t) {
  strftime(buf, size, "%d/%m/%y %H:%M GMT", gmtime(&t));
}


x86 assembly (clang, -O0):
<q9strftime>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    -0x14(%rbp),%rdi
call   1040 <gmtime@plt>
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    %eax,%ecx
lea    0xea3(%rip),%rdx
call   1030 <strftime@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<q9strftime>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    %edx,0x4(%rsp)
lea    0x4(%rsp),%rdi
call   1040 <gmtime@plt>
lea    0xec1(%rip),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%ecx
call   1030 <strftime@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [19 x i8] c"%d/%m/%y %H:%M GMT\00"
define void @q9strftime(i8* %0, i64 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i32
store i8* %0, i8** %4
store i64 %1, i64* %5
store i32 %2, i32* %6
%7 = load i8*, i8** %4
%8 = load i64, i64* %5
%9 = call i32 @gmtime(i32* %6)
%10 = call i32 @strftime(i8* %7, i64 %8, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %9)
ret void
}

LLVM IR (-O2):
@.str = [19 x i8] c"%d/%m/%y %H:%M GMT\00"
define void @q9strftime(i8* %0, i64 %1, i32 %2) {
%4 = alloca i32
store i32 %2, i32* %4
%5 = call i32 @gmtime(i32* %4)
%6 = call i32 @strftime(i8* %0, i64 %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %5)
ret void
}