xunge/DecIR huggingface dataset:
/* Type definitions */
typedef int /*<<< orphan*/ mode_t;

/* Variables and functions */
int /*<<< orphan*/ EACCES;
int /*<<< orphan*/ errno;
int mkdir(const char *path, mode_t mode) {
  errno = EACCES;
  return -1;
}


x86 assembly (clang, -O0):
<mkdir>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    0x2ed6(%rip),%rax
mov    (%rax),%ecx
mov    0x2ebd(%rip),%rax
mov    %ecx,(%rax)
mov    $0xffffffff,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
@EACCES = global i32 0
@errno = global i32 0
define i32 @mkdir(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* @EACCES
store i32 %5, i32* @errno
ret i32 -1
}

LLVM IR (-O2):
@EACCES = global i32 0
@errno = global i32 0
define i32 @mkdir(i8* nocapture readnone %0, i32 %1) {
%3 = load i32, i32* @EACCES
store i32 %3, i32* @errno
ret i32 -1
}
/* Variables and functions */
int /*<<< orphan*/ scrputs(char *);
void csrsave(void) { scrputs("\033[s"); }


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

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

LLVM IR (-O0):
@.str = [4 x i8] c"\1B[s\00"
define void @csrsave() {
%1 = call i32 @scrputs(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"\1B[s\00"
define void @csrsave() {
%1 = tail call i32 @scrputs(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ test_decoder_decode_to_header();
int /*<<< orphan*/ test_decoder_instruction_set();
void test_decoder(void) {
  test_decoder_decode_to_header();
  test_decoder_instruction_set();
}


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

x86 assembly (clang, -O2):
<test_decoder>:
push   %rax
xor    %eax,%eax
call   1040 <test_decoder_decode_to_header@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <test_decoder_instruction_set@plt>

LLVM IR (-O0):
define void @test_decoder() {
%1 = call i32 (...) @test_decoder_decode_to_header()
%2 = call i32 (...) @test_decoder_instruction_set()
ret void
}

LLVM IR (-O2):
define void @test_decoder() {
%1 = tail call i32 (...) @test_decoder_decode_to_header()
%2 = tail call i32 (...) @test_decoder_instruction_set()
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint32_t;
typedef int /*<<< orphan*/ uint16_t;
struct ts_nit {
  int dummy;
};

/* Variables and functions */
int ts_nit_add_frequency_list_descriptor(struct ts_nit *, int /*<<< orphan*/,
                                         int /*<<< orphan*/, int /*<<< orphan*/,
                                         int /*<<< orphan*/ *,
                                         int /*<<< orphan*/);
int ts_nit_add_frequency_list_descriptor_neutral(struct ts_nit *nit,
                                                 uint16_t ts_id,
                                                 uint16_t org_net_id,
                                                 uint32_t *freqs,
                                                 uint8_t num_freqs) {
  return ts_nit_add_frequency_list_descriptor(nit, ts_id, org_net_id, 0, freqs,
                                              num_freqs);
}


x86 assembly (clang, -O0):
<ts_nit_add_frequency_list_descriptor_neutral>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x18(%rbp),%r8
mov    -0x1c(%rbp),%r9d
xor    %ecx,%ecx
call   1030 <ts_nit_add_frequency_list_descriptor@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ts_nit_add_frequency_list_descriptor_neutral>:
mov    %r8d,%r9d
mov    %rcx,%r8
xor    %ecx,%ecx
jmp    1030 <ts_nit_add_frequency_list_descriptor@plt>

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

LLVM IR (-O2):
%struct.ts_nit = type { i32 }
define i32 @ts_nit_add_frequency_list_descriptor_neutral(%struct.ts_nit* %0, i32 %1, i32 %2, i32* %3, i32 %4) {
%6 = tail call i32 @ts_nit_add_frequency_list_descriptor(%struct.ts_nit* %0, i32 %1, i32 %2, i32 0, i32* %3, i32 %4)
ret i32 %6
}
int get_circ_id_size(int wide_circ_ids) { return wide_circ_ids ? 4 : 2; }


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

x86 assembly (clang, -O2):
<get_circ_id_size>:
xor    %eax,%eax
test   %edi,%edi
setne  %al
add    %eax,%eax
add    $0x2,%eax
ret

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

LLVM IR (-O2):
define i32 @get_circ_id_size(i32 %0) {
%2 = icmp eq i32 %0, 0
%3 = select i1 %2, i32 2, i32 4
ret i32 %3
}
const char *jac_chain_nm6_name_out(int i) {
  switch (i) {
  case 0:
    return "o0";
  case 1:
    return "o1";
  default:
    return 0;
  }
}


x86 assembly (clang, -O0):
<jac_chain_nm6_name_out>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
test   %eax,%eax
je     112b <jac_chain_nm6_name_out+0x2b>
jmp    111a <jac_chain_nm6_name_out+0x1a>
mov    -0x10(%rbp),%eax
sub    $0x1,%eax
je     113b <jac_chain_nm6_name_out+0x3b>
jmp    114b <jac_chain_nm6_name_out+0x4b>
lea    0xece(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1153 <jac_chain_nm6_name_out+0x53>
lea    0xec1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1153 <jac_chain_nm6_name_out+0x53>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<jac_chain_nm6_name_out>:
xor    %ecx,%ecx
cmp    $0x1,%edi
lea    0xef7(%rip),%rax
cmove  %rax,%rcx
test   %edi,%edi
lea    0xee7(%rip),%rax
cmovne %rcx,%rax
ret

LLVM IR (-O0):
@.str = [3 x i8] c"o0\00"
@.str.1 = [3 x i8] c"o1\00"
define i8* @jac_chain_nm6_name_out(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %7 [
i32 0, label %5
i32 1, label %6
]
5: ; preds = %1
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8** %2
br label %8
6: ; preds = %1
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %8
7: ; preds = %1
store i8* null, i8** %2
br label %8
8: ; preds = %7, %6, %5
%9 = load i8*, i8** %2
ret i8* %9
}

LLVM IR (-O2):
@.str = [3 x i8] c"o0\00"
@.str.1 = [3 x i8] c"o1\00"
define i8* @jac_chain_nm6_name_out(i32 %0) {
%2 = icmp eq i32 %0, 1
%3 = select i1 %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* null
%4 = icmp eq i32 %0, 0
%5 = select i1 %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %3
ret i8* %5
}
/* Type definitions */
typedef scalar_t__ uint64_t;

/* Variables and functions */
int /*<<< orphan*/ srand48(long);
void rte_srand(uint64_t seedval) { srand48((long)seedval); }


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

x86 assembly (clang, -O2):
<rte_srand>:
jmp    1030 <srand48@plt>

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

LLVM IR (-O2):
define void @rte_srand(i64 %0) {
%2 = tail call i32 @srand48(i64 %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main(int argc, char *argv[]) {
  printf("All is well\n");
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [13 x i8] c"All is well\0A\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 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [12 x i8] c"All is well\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ OCSP_ONEREQ;
typedef int /*<<< orphan*/ ASN1_VALUE;

/* Variables and functions */
int ASN1_item_i2d(int /*<<< orphan*/ *, unsigned char **, int /*<<< orphan*/ *);
int /*<<< orphan*/ OCSP_ONEREQ_it;
int i2d_OCSP_ONEREQ(OCSP_ONEREQ *a, unsigned char **out) {
  return ASN1_item_i2d((ASN1_VALUE *)a, out, &OCSP_ONEREQ_it);
}


x86 assembly (clang, -O0):
<i2d_OCSP_ONEREQ>:
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    0x2eb1(%rip),%rdx
call   1030 <ASN1_item_i2d@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<i2d_OCSP_ONEREQ>:
mov    0x2ec9(%rip),%rdx
jmp    1030 <ASN1_item_i2d@plt>

LLVM IR (-O0):
@OCSP_ONEREQ_it = global i32 0
define i32 @i2d_OCSP_ONEREQ(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
%7 = call i32 @ASN1_item_i2d(i32* %5, i8** %6, i32* @OCSP_ONEREQ_it)
ret i32 %7
}

LLVM IR (-O2):
@OCSP_ONEREQ_it = global i32 0
define i32 @i2d_OCSP_ONEREQ(i32* %0, i8** %1) {
%3 = tail call i32 @ASN1_item_i2d(i32* %0, i8** %1, i32* @OCSP_ONEREQ_it)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ gmove_cp_2a2t_b();
int /*<<< orphan*/ gmove_cp_2a2t_b_bc();
int /*<<< orphan*/ gmove_cp_2a2t_bc();
int /*<<< orphan*/ gmove_cp_2a2t_c();
int main() {
  gmove_cp_2a2t_b();
  gmove_cp_2a2t_b_bc();
  gmove_cp_2a2t_bc();
  gmove_cp_2a2t_c();
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <gmove_cp_2a2t_b@plt>
xor    %eax,%eax
call   1030 <gmove_cp_2a2t_b_bc@plt>
xor    %eax,%eax
call   1060 <gmove_cp_2a2t_bc@plt>
xor    %eax,%eax
call   1050 <gmove_cp_2a2t_c@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @gmove_cp_2a2t_b()
%2 = tail call i32 (...) @gmove_cp_2a2t_b_bc()
%3 = tail call i32 (...) @gmove_cp_2a2t_bc()
%4 = tail call i32 (...) @gmove_cp_2a2t_c()
ret i32 0
}
int bgbrasw_log2f12(int val) {
  int i, j, k;
  i = val << 12;
  j = 0;
  while (i >= 8192) {
    i = i >> 1;
    j++;
  }
  k = (j << 12) | (i & 4095);
  return (k);
}


x86 assembly (clang, -O0):
<bgbrasw_log2f12>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
shl    $0xc,%eax
mov    %eax,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x2000,-0x8(%rbp)
jl     113b <bgbrasw_log2f12+0x3b>
mov    -0x8(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1117 <bgbrasw_log2f12+0x17>
mov    -0xc(%rbp),%eax
shl    $0xc,%eax
mov    -0x8(%rbp),%ecx
and    $0xfff,%ecx
or     %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<bgbrasw_log2f12>:
shl    $0xc,%edi
xor    %ecx,%ecx
cmp    $0x2000,%edi
jl     1134 <bgbrasw_log2f12+0x34>
xor    %ecx,%ecx
mov    %edi,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
shr    %eax
add    $0x1000,%ecx
cmp    $0x3fff,%edi
mov    %eax,%edi
ja     1120 <bgbrasw_log2f12+0x20>
jmp    1136 <bgbrasw_log2f12+0x36>
mov    %edi,%eax
and    $0xfff,%eax
or     %ecx,%eax
ret

LLVM IR (-O0):
define i32 @bgbrasw_log2f12(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %2
%6 = load i32, i32* %2
%7 = shl i32 %6, 12
store i32 %7, i32* %3
store i32 0, i32* %4
br label %8
8: ; preds = %11, %1
%9 = load i32, i32* %3
%10 = icmp sge i32 %9, 8192
br i1 %10, label %11, label %16
11: ; preds = %8
%12 = load i32, i32* %3
%13 = ashr i32 %12, 1
store i32 %13, i32* %3
%14 = load i32, i32* %4
%15 = add nsw i32 %14, 1
store i32 %15, i32* %4
br label %8
16: ; preds = %8
%17 = load i32, i32* %4
%18 = shl i32 %17, 12
%19 = load i32, i32* %3
%20 = and i32 %19, 4095
%21 = or i32 %18, %20
store i32 %21, i32* %5
%22 = load i32, i32* %5
ret i32 %22
}

LLVM IR (-O2):
define i32 @bgbrasw_log2f12(i32 %0) {
%2 = shl i32 %0, 12
%3 = icmp sgt i32 %2, 8191
br i1 %3, label %4, label %12
4: ; preds = %1, %4
%5 = phi i32 [ %7, %4 ], [ %2, %1 ]
%6 = phi i32 [ %8, %4 ], [ 0, %1 ]
%7 = lshr i32 %5, 1
%8 = add nuw nsw i32 %6, 1
%9 = icmp ugt i32 %5, 16383
br i1 %9, label %4, label %10
10: ; preds = %4
%11 = shl i32 %8, 12
br label %12
12: ; preds = %10, %1
%13 = phi i32 [ 0, %1 ], [ %11, %10 ]
%14 = phi i32 [ %2, %1 ], [ %7, %10 ]
%15 = and i32 %14, 4095
%16 = or i32 %15, %13
ret i32 %16
}
__attribute__((always_)) int check_wakeup_irqs(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @check_wakeup_irqs() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ test37_Mod_foo__E();
void test37_Test_pollen__run__E() {
  test37_Mod_foo__E();
  printf("run\n");
}


x86 assembly (clang, -O0):
<test37_Test_pollen__run__E>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <test37_Mod_foo__E@plt>
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test37_Test_pollen__run__E>:
push   %rax
xor    %eax,%eax
call   1040 <test37_Mod_foo__E@plt>
lea    0xed1(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

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

LLVM IR (-O2):
@str = [4 x i8] c"run\00"
define void @test37_Test_pollen__run__E() {
%1 = tail call i32 (...) @test37_Mod_foo__E()
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str, i64 0, i64 0))
ret void
}
float ANTweenTimingFunctionQuintOut(float time, float begin, float change,
                                    float duration) {
  time /= duration;
  return change * time * time * time * time * time + begin;
}


x86 assembly (clang, -O0):
<ANTweenTimingFunctionQuintOut>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
movss  -0x10(%rbp),%xmm1
movss  -0x4(%rbp),%xmm0
divss  %xmm1,%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0xc(%rbp),%xmm0
mulss  -0x4(%rbp),%xmm0
mulss  -0x4(%rbp),%xmm0
mulss  -0x4(%rbp),%xmm0
mulss  -0x4(%rbp),%xmm0
movss  -0x4(%rbp),%xmm2
movss  -0x8(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<ANTweenTimingFunctionQuintOut>:
divss  %xmm3,%xmm0
mulss  %xmm0,%xmm2
mulss  %xmm0,%xmm2
mulss  %xmm0,%xmm2
mulss  %xmm0,%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
ret

LLVM IR (-O0):
define float @ANTweenTimingFunctionQuintOut(float %0, float %1, float %2, float %3) {
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
store float %0, float* %5
store float %1, float* %6
store float %2, float* %7
store float %3, float* %8
%9 = load float, float* %8
%10 = load float, float* %5
%11 = fdiv float %10, %9
store float %11, float* %5
%12 = load float, float* %7
%13 = load float, float* %5
%14 = fmul float %12, %13
%15 = load float, float* %5
%16 = fmul float %14, %15
%17 = load float, float* %5
%18 = fmul float %16, %17
%19 = load float, float* %5
%20 = fmul float %18, %19
%21 = load float, float* %5
%22 = load float, float* %6
%23 = call float @llvm.fmuladd.f32(float %20, float %21, float %22)
ret float %23
}

LLVM IR (-O2):
define float @ANTweenTimingFunctionQuintOut(float %0, float %1, float %2, float %3) {
%5 = fdiv float %0, %3
%6 = fmul float %5, %2
%7 = fmul float %5, %6
%8 = fmul float %5, %7
%9 = fmul float %5, %8
%10 = tail call float @llvm.fmuladd.f32(float %9, float %5, float %1)
ret float %10
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, unsigned char);
void print_hex(unsigned char *digest, long long length) {
  int i;
  for (i = 0; i < length; i++)
    printf("%02x", digest[i]);
}


x86 assembly (clang, -O0):
<print_hex>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movslq -0x14(%rbp),%rax
cmp    -0x10(%rbp),%rax
jge    115b <print_hex+0x4b>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
lea    0xebc(%rip),%rdi
movzbl (%rax,%rcx,1),%esi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1127 <print_hex+0x17>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_hex>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
test   %rsi,%rsi
jle    1146 <print_hex+0x36>
mov    %rsi,%r12
mov    %rdi,%r14
xor    %ebx,%ebx
lea    0xed4(%rip),%r15
nopl   0x0(%rax)
movzbl (%r14,%rbx,1),%esi
mov    %r15,%rdi
call   1030 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%r12
jne    1130 <print_hex+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c"%02x\00"
define void @print_hex(i8* nocapture %0, i64 %1) {
%3 = icmp sgt i64 %1, 0
br i1 %3, label %4, label %11
4: ; preds = %2, %4
%5 = phi i64 [ %9, %4 ], [ 0, %2 ]
%6 = getelementptr inbounds i8, i8* %0, i64 %5
%7 = load i8, i8* %6
%8 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8 zeroext %7)
%9 = add nuw nsw i64 %5, 1
%10 = icmp eq i64 %9, %1
br i1 %10, label %11, label %4
11: ; preds = %4, %2
ret void
}
void test_directory_filesystem(void) {
  char *directory = "/var/appaserver/utility";
  long int available_megabytes = 0;
  printf("Filesystem should be (/var)\n");
  printf("Filesystem is be (%s)\n",
         timlib_directory_filesystem(&available_megabytes, directory));
  printf("Available meg = %ld\n", available_megabytes);
}


x86 assembly (clang, -O0):
<test_directory_filesystem>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rax
mov    %rax,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
lea    0xed6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1040 <timlib_directory_filesystem@plt>
mov    %eax,%esi
lea    0xed4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_directory_filesystem>:
push   %rax
movq   $0x0,(%rsp)
lea    0xf04(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb4(%rip),%rsi
mov    %rsp,%rdi
xor    %eax,%eax
call   1050 <timlib_directory_filesystem@plt>
lea    0xebb(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp),%rsi
lea    0xebe(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [24 x i8] c"/var/appaserver/utility\00"
@.str.1 = [29 x i8] c"Filesystem should be (/var)\0A\00"
@.str.2 = [23 x i8] c"Filesystem is be (%s)\0A\00"
@.str.3 = [21 x i8] c"Available meg = %ld\0A\00"
define void @test_directory_filesystem() {
%1 = alloca i8*
%2 = alloca i64
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8** %1
store i64 0, i64* %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
%4 = load i8*, i8** %1
%5 = call i32 (i64*, i8*, ...) bitcast (i32 (...)* @timlib_directory_filesystem to i32 (i64*, i8*, ...)*)(i64* %2, i8* %4)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i64, i64* %2
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i64 %7)
ret void
}

LLVM IR (-O2):
@.str = [24 x i8] c"/var/appaserver/utility\00"
@.str.2 = [23 x i8] c"Filesystem is be (%s)\0A\00"
@.str.3 = [21 x i8] c"Available meg = %ld\0A\00"
@str = [28 x i8] c"Filesystem should be (/var)\00"
define void @test_directory_filesystem() {
%1 = alloca i64
%2 = bitcast i64* %1 to i8*
store i64 0, i64* %1
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str, i64 0, i64 0))
%4 = call i32 (i64*, i8*, ...) bitcast (i32 (...)* @timlib_directory_filesystem to i32 (i64*, i8*, ...)*)(i64* %1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %4)
%6 = load i64, i64* %1
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i64 %6)
ret void
}
/* Type definitions */
struct rblists {
  int dummy;
};

/* Variables and functions */
void const *rb_readlist(struct rblists *);
const void *rbreadlist(struct rblists *rblistp) {
  if (rblistp == NULL)
    return (NULL);
  return (rb_readlist(rblistp));
}


x86 assembly (clang, -O0):
<rbreadlist>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1134 <rbreadlist+0x24>
movq   $0x0,-0x8(%rbp)
jmp    1141 <rbreadlist+0x31>
mov    -0x10(%rbp),%rdi
call   1030 <rb_readlist@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rbreadlist>:
test   %rdi,%rdi
je     111a <rbreadlist+0xa>
jmp    1030 <rb_readlist@plt>
xor    %eax,%eax
ret

LLVM IR (-O0):
%struct.rblists = type { i32 }
define i8* @rbreadlist(%struct.rblists* %0) {
%2 = alloca i8*
%3 = alloca %struct.rblists*
store %struct.rblists* %0, %struct.rblists** %3
%4 = load %struct.rblists*, %struct.rblists** %3
%5 = icmp eq %struct.rblists* %4, null
br i1 %5, label %6, label %7
6: ; preds = %1
store i8* null, i8** %2
br label %10
7: ; preds = %1
%8 = load %struct.rblists*, %struct.rblists** %3
%9 = call i8* @rb_readlist(%struct.rblists* %8)
store i8* %9, i8** %2
br label %10
10: ; preds = %7, %6
%11 = load i8*, i8** %2
ret i8* %11
}

LLVM IR (-O2):
%struct.rblists = type { i32 }
define i8* @rbreadlist(%struct.rblists* %0) {
%2 = icmp eq %struct.rblists* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i8* @rb_readlist(%struct.rblists* %0)
br label %5
5: ; preds = %1, %3
%6 = phi i8* [ %4, %3 ], [ null, %1 ]
ret i8* %6
}
/* Variables and functions */
int /*<<< orphan*/ swap(char *, int /*<<< orphan*/, int);
void reverse(char rev[], int ini, int fin) {
  swap(rev, ini++, --fin);
  if (ini < fin)
    reverse(rev, ini, fin);
}


x86 assembly (clang, -O0):
<reverse>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    %esi,%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0x10(%rbp),%edx
add    $0xffffffff,%edx
mov    %edx,-0x10(%rbp)
call   1040 <swap@plt>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    116a <reverse+0x4a>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1030 <reverse@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<reverse>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%ebx
mov    %rdi,%r14
add    $0xffffffff,%ebx
nopl   0x0(%rax)
lea    0x1(%rsi),%ebp
mov    %r14,%rdi
mov    %ebx,%edx
call   1030 <swap@plt>
lea    -0x1(%rbx),%eax
mov    %ebp,%esi
cmp    %ebx,%ebp
mov    %eax,%ebx
jl     1120 <reverse+0x10>
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define void @reverse(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
%7 = load i8*, i8** %4
%8 = load i32, i32* %5
%9 = add nsw i32 %8, 1
store i32 %9, i32* %5
%10 = load i32, i32* %6
%11 = add nsw i32 %10, -1
store i32 %11, i32* %6
%12 = call i32 @swap(i8* %7, i32 %8, i32 %11)
%13 = load i32, i32* %5
%14 = load i32, i32* %6
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %20
16: ; preds = %3
%17 = load i8*, i8** %4
%18 = load i32, i32* %5
%19 = load i32, i32* %6
br label %20
20: ; preds = %16, %3
ret void
}

LLVM IR (-O2):
define void @reverse(i8* %0, i32 %1, i32 %2) {
br label %4
4: ; preds = %4, %3
%5 = phi i32 [ %1, %3 ], [ %7, %4 ]
%6 = phi i32 [ %2, %3 ], [ %8, %4 ]
%7 = add nsw i32 %5, 1
%8 = add nsw i32 %6, -1
%9 = tail call i32 @swap(i8* %0, i32 %5, i32 %8)
%10 = icmp slt i32 %7, %8
br i1 %10, label %4, label %11
11: ; preds = %4
ret void
}
/* Variables and functions */
int /*<<< orphan*/ kore_log_file(char *);
int configure_logfile(char *path) {
  kore_log_file(path);
  return (1);
}


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

x86 assembly (clang, -O2):
<configure_logfile>:
push   %rax
call   1030 <kore_log_file@plt>
mov    $0x1,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @configure_logfile(i8* %0) {
%2 = tail call i32 @kore_log_file(i8* %0)
ret i32 1
}
/* Variables and functions */
int checkPowerOf2(int);
int /*<<< orphan*/ printf(char *, int);
int main(int argc, char *argv[]) {
  int i = 0;
  while (i < 100) {
    printf("%d|", checkPowerOf2(i));
    i++;
  }
  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)
movl   $0x0,-0x14(%rbp)
cmpl   $0x64,-0x14(%rbp)
jge    116b <main+0x4b>
mov    -0x14(%rbp),%edi
call   1040 <checkPowerOf2@plt>
mov    %eax,%esi
lea    0xea8(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    113d <main+0x1d>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xor    %ebx,%ebx
lea    0xed3(%rip),%r14
nopl   (%rax)
mov    %ebx,%edi
call   1040 <checkPowerOf2@plt>
mov    %r14,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x64,%ebx
jne    1130 <main+0x10>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d|\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %3
3: ; preds = %2, %3
%4 = phi i32 [ 0, %2 ], [ %7, %3 ]
%5 = tail call i32 @checkPowerOf2(i32 %4)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = add nuw nsw i32 %4, 1
%8 = icmp eq i32 %7, 100
br i1 %8, label %9, label %3
9: ; preds = %3
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int fputs(char const *, int /*<<< orphan*/ *);
__attribute__((__weak__, __always___)) int softboundcets_fputs(const char *s,
                                                               FILE *stream) {
  return fputs(s, stream);
}


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

x86 assembly (clang, -O2):
<softboundcets_fputs>:
jmp    1030 <fputs@plt>

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

LLVM IR (-O2):
define weak i32 @softboundcets_fputs(i8* %0, i32* %1) {
%3 = tail call i32 @fputs(i8* %0, i32* %1)
ret i32 %3
}
int isOperation(char exp) {
  if (exp == '*' || exp == '/' || exp == '+' || exp == '-' || exp == '^')
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<isOperation>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x2a,%eax
je     114b <isOperation+0x4b>
movsbl -0x5(%rbp),%eax
cmp    $0x2f,%eax
je     114b <isOperation+0x4b>
movsbl -0x5(%rbp),%eax
cmp    $0x2b,%eax
je     114b <isOperation+0x4b>
movsbl -0x5(%rbp),%eax
cmp    $0x2d,%eax
je     114b <isOperation+0x4b>
movsbl -0x5(%rbp),%eax
cmp    $0x5e,%eax
jne    1157 <isOperation+0x57>
movl   $0x1,-0x4(%rbp)
jmp    115e <isOperation+0x5e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isOperation>:
add    $0xd6,%dil
cmp    $0x34,%dil
ja     1124 <isOperation+0x24>
mov    $0x1,%eax
movzbl %dil,%ecx
movabs $0x1000000000002b,%rdx
bt     %rcx,%rdx
jae    1124 <isOperation+0x24>
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @isOperation(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
%6 = icmp eq i32 %5, 42
br i1 %6, label %23, label %7
7: ; preds = %1
%8 = load i8, i8* %3
%9 = sext i8 %8 to i32
%10 = icmp eq i32 %9, 47
br i1 %10, label %23, label %11
11: ; preds = %7
%12 = load i8, i8* %3
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 43
br i1 %14, label %23, label %15
15: ; preds = %11
%16 = load i8, i8* %3
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 45
br i1 %18, label %23, label %19
19: ; preds = %15
%20 = load i8, i8* %3
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 94
br i1 %22, label %23, label %24
23: ; preds = %19, %15, %11, %7, %1
store i32 1, i32* %2
br label %25
24: ; preds = %19
store i32 0, i32* %2
br label %25
25: ; preds = %24, %23
%26 = load i32, i32* %2
ret i32 %26
}

LLVM IR (-O2):
define i32 @isOperation(i8 signext %0) {
switch i8 %0, label %2 [
i8 94, label %3
i8 47, label %3
i8 45, label %3
i8 43, label %3
i8 42, label %3
]
2: ; preds = %1
br label %3
3: ; preds = %1, %1, %1, %1, %1, %2
%4 = phi i32 [ 0, %2 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ]
ret i32 %4
}
void RandomFunc(unsigned int input[1], unsigned int output[1]) {
  unsigned int state[1];
  unsigned int local1;
  {
    state[0UL] = (input[0UL] + 914778474UL) - 981234615U;
    local1 = 0UL;
    while (local1 < 1UL) {
      if (!(state[0UL] < local1)) {
        state[local1] += state[0UL];
      }
      local1++;
    }
    output[0UL] = (state[0UL] + 166502562UL) - 1296878231U;
  }
}


x86 assembly (clang, -O0):
<RandomFunc>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
add    $0x3686696a,%rax
sub    $0x3a7c73b7,%rax
mov    %eax,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    $0x1,%rax
jae    115d <RandomFunc+0x5d>
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jb     114f <RandomFunc+0x4f>
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%eax
add    -0x14(%rbp,%rax,4),%ecx
mov    %ecx,-0x14(%rbp,%rax,4)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1128 <RandomFunc+0x28>
mov    -0x14(%rbp),%eax
add    $0x9eca0a2,%rax
sub    $0x4d4cca97,%rax
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<RandomFunc>:
mov    (%rdi),%eax
add    %eax,%eax
add    $0xb4b3c171,%eax
mov    %eax,(%rsi)
ret

LLVM IR (-O0):
define void @RandomFunc(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca [1 x i32]
%6 = alloca i32
store i32* %0, i32** %3
store i32* %1, i32** %4
%7 = load i32*, i32** %3
%8 = getelementptr inbounds i32, i32* %7, i64 0
%9 = load i32, i32* %8
%10 = zext i32 %9 to i64
%11 = add i64 %10, 914778474
%12 = sub i64 %11, 981234615
%13 = trunc i64 %12 to i32
%14 = getelementptr inbounds [1 x i32], [1 x i32]* %5, i64 0, i64 0
store i32 %13, i32* %14
store i32 0, i32* %6
br label %15
15: ; preds = %32, %2
%16 = load i32, i32* %6
%17 = zext i32 %16 to i64
%18 = icmp ult i64 %17, 1
br i1 %18, label %19, label %35
19: ; preds = %15
%20 = getelementptr inbounds [1 x i32], [1 x i32]* %5, i64 0, i64 0
%21 = load i32, i32* %20
%22 = load i32, i32* %6
%23 = icmp ult i32 %21, %22
br i1 %23, label %32, label %24
24: ; preds = %19
%25 = getelementptr inbounds [1 x i32], [1 x i32]* %5, i64 0, i64 0
%26 = load i32, i32* %25
%27 = load i32, i32* %6
%28 = zext i32 %27 to i64
%29 = getelementptr inbounds [1 x i32], [1 x i32]* %5, i64 0, i64 %28
%30 = load i32, i32* %29
%31 = add i32 %30, %26
store i32 %31, i32* %29
br label %32
32: ; preds = %24, %19
%33 = load i32, i32* %6
%34 = add i32 %33, 1
store i32 %34, i32* %6
br label %15
35: ; preds = %15
%36 = getelementptr inbounds [1 x i32], [1 x i32]* %5, i64 0, i64 0
%37 = load i32, i32* %36
%38 = zext i32 %37 to i64
%39 = add i64 %38, 166502562
%40 = sub i64 %39, 1296878231
%41 = trunc i64 %40 to i32
%42 = load i32*, i32** %4
%43 = getelementptr inbounds i32, i32* %42, i64 0
store i32 %41, i32* %43
ret void
}

LLVM IR (-O2):
define void @RandomFunc(i32* nocapture %0, i32* nocapture writeonly %1) {
%3 = load i32, i32* %0
%4 = shl i32 %3, 1
%5 = add i32 %4, -1263287951
store i32 %5, i32* %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char const *, int, char const *);
void sp_expectation_failed(const char *file, int line, const char *condition) {
  printf("%s:%d: warning: Expectation failed: %s\n", file, line, condition);
}


x86 assembly (clang, -O0):
<sp_expectation_failed>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    -0x18(%rbp),%rcx
lea    0xecb(%rip),%rdi
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sp_expectation_failed>:
mov    %rdx,%rcx
mov    %esi,%edx
mov    %rdi,%rsi
lea    0xee1(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [40 x i8] c"%s:%d: warning: Expectation failed: %s\0A\00"
define void @sp_expectation_failed(i8* %0, i32 %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8*
store i8* %0, i8** %4
store i32 %1, i32* %5
store i8* %2, i8** %6
%7 = load i8*, i8** %4
%8 = load i32, i32* %5
%9 = load i8*, i8** %6
%10 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* %7, i32 %8, i8* %9)
ret void
}

LLVM IR (-O2):
@.str = [40 x i8] c"%s:%d: warning: Expectation failed: %s\0A\00"
define void @sp_expectation_failed(i8* %0, i32 %1, i8* %2) {
%4 = tail call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* %0, i32 %1, i8* %2)
ret void
}
/* Type definitions */
typedef int uint8_t;
typedef int uint32_t;

/* Variables and functions */
uint32_t decode_be32(const uint8_t *src) {
  uint32_t v = 0;
  v |= *src++ << 24;
  v |= *src++ << 16;
  v |= *src++ << 8;
  v |= *src;
  return v;
}


x86 assembly (clang, -O0):
<decode_be32>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x8(%rbp)
mov    (%rax),%eax
shl    $0x18,%eax
or     -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x8(%rbp)
mov    (%rax),%eax
shl    $0x10,%eax
or     -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x8(%rbp)
mov    (%rax),%eax
shl    $0x8,%eax
or     -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
or     -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<decode_be32>:
mov    (%rdi),%eax
mov    0x4(%rdi),%ecx
shl    $0x18,%eax
shl    $0x10,%ecx
or     %eax,%ecx
mov    0x8(%rdi),%eax
shl    $0x8,%eax
or     %ecx,%eax
or     0xc(%rdi),%eax
ret

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

LLVM IR (-O2):
define i32 @decode_be32(i32* nocapture %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 1
%3 = load i32, i32* %0
%4 = shl i32 %3, 24
%5 = getelementptr inbounds i32, i32* %0, i64 2
%6 = load i32, i32* %2
%7 = shl i32 %6, 16
%8 = or i32 %7, %4
%9 = getelementptr inbounds i32, i32* %0, i64 3
%10 = load i32, i32* %5
%11 = shl i32 %10, 8
%12 = or i32 %8, %11
%13 = load i32, i32* %9
%14 = or i32 %12, %13
ret i32 %14
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void doit(int sockfd) { printf("connect to socket fd: %d.\n", sockfd); }


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

x86 assembly (clang, -O2):
<doit>:
mov    %edi,%esi
lea    0xee7(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [27 x i8] c"connect to socket fd: %d.\0A\00"
define void @doit(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32 %3)
ret void
}

LLVM IR (-O2):
@.str = [27 x i8] c"connect to socket fd: %d.\0A\00"
define void @doit(i32 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32 %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main() {
  int x = 1;
  char *p = (char *)&x;
  if (*p)
    printf("\n Little endian");
  else
    printf("\n Big endian");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
lea    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
je     114c <main+0x3c>
lea    0xebe(%rip),%rdi
call   1030 <printf@plt>
jmp    1158 <main+0x48>
lea    0xebd(%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
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [16 x i8] c"\0A Little endian\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
void dpd_timeout(struct state *st) {}


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

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

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

LLVM IR (-O2):
%struct.state = type opaque
define void @dpd_timeout(%struct.state* nocapture %0) {
ret void
}
void cli_assembler_deinit(struct cli_assembler *assembler) {}


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

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

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

LLVM IR (-O2):
%struct.cli_assembler = type opaque
define void @cli_assembler_deinit(%struct.cli_assembler* nocapture %0) {
ret void
}
char *mswin_compilation_remarks() { return (""); }


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

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

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
define i8* @mswin_compilation_remarks() {
ret i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
define i8* @mswin_compilation_remarks() {
ret i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
int /*<<< orphan*/ lcd_byte(int, int /*<<< orphan*/);
void lcd_init() {
  lcd_byte(0x33, 0);
  lcd_byte(0x32, 0);
  lcd_byte(0x28, 0);
  lcd_byte(0x0C, 0);
  lcd_byte(0x06, 0);
  lcd_byte(0x01, 0);
}


x86 assembly (clang, -O0):
<lcd_init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x33,%edi
xor    %esi,%esi
call   1030 <lcd_byte@plt>
mov    $0x32,%edi
xor    %esi,%esi
call   1030 <lcd_byte@plt>
mov    $0x28,%edi
xor    %esi,%esi
call   1030 <lcd_byte@plt>
mov    $0xc,%edi
xor    %esi,%esi
call   1030 <lcd_byte@plt>
mov    $0x6,%edi
xor    %esi,%esi
call   1030 <lcd_byte@plt>
mov    $0x1,%edi
xor    %esi,%esi
call   1030 <lcd_byte@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<lcd_init>:
push   %rax
mov    $0x33,%edi
xor    %esi,%esi
call   1030 <lcd_byte@plt>
mov    $0x32,%edi
xor    %esi,%esi
call   1030 <lcd_byte@plt>
mov    $0x28,%edi
xor    %esi,%esi
call   1030 <lcd_byte@plt>
mov    $0xc,%edi
xor    %esi,%esi
call   1030 <lcd_byte@plt>
mov    $0x6,%edi
xor    %esi,%esi
call   1030 <lcd_byte@plt>
mov    $0x1,%edi
xor    %esi,%esi
pop    %rax
jmp    1030 <lcd_byte@plt>

LLVM IR (-O0):
define void @lcd_init() {
%1 = call i32 @lcd_byte(i32 51, i32 0)
%2 = call i32 @lcd_byte(i32 50, i32 0)
%3 = call i32 @lcd_byte(i32 40, i32 0)
%4 = call i32 @lcd_byte(i32 12, i32 0)
%5 = call i32 @lcd_byte(i32 6, i32 0)
%6 = call i32 @lcd_byte(i32 1, i32 0)
ret void
}

LLVM IR (-O2):
define void @lcd_init() {
%1 = tail call i32 @lcd_byte(i32 51, i32 0)
%2 = tail call i32 @lcd_byte(i32 50, i32 0)
%3 = tail call i32 @lcd_byte(i32 40, i32 0)
%4 = tail call i32 @lcd_byte(i32 12, i32 0)
%5 = tail call i32 @lcd_byte(i32 6, i32 0)
%6 = tail call i32 @lcd_byte(i32 1, i32 0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ serial_tx(char *);
void print_str_nl(char *str) {
  serial_tx(str);
  serial_tx("\r\n");
}


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

x86 assembly (clang, -O2):
<print_str_nl>:
push   %rax
call   1030 <serial_tx@plt>
lea    0xee3(%rip),%rdi
pop    %rax
jmp    1030 <serial_tx@plt>

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

LLVM IR (-O2):
@.str = [3 x i8] c"\0D\0A\00"
define void @print_str_nl(i8* %0) {
%2 = tail call i32 @serial_tx(i8* %0)
%3 = tail call i32 @serial_tx(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
double exp(int /*<<< orphan*/);
int /*<<< orphan*/ lgamma_r(double, int *);
double gamma_r(double x, int *signgamp) { return exp(lgamma_r(x, signgamp)); }


x86 assembly (clang, -O0):
<gamma_r>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdi
call   1030 <lgamma_r@plt>
mov    %eax,%edi
call   1040 <exp@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define double @gamma_r(double %0, i32* %1) {
%3 = tail call i32 @lgamma_r(double %0, i32* %1)
%4 = tail call double @exp(i32 %3)
ret double %4
}