xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ free(char *);
void destroyExternalFileHashEntry(void *arg, char *key, char *value) {
  do {
    (void)(arg);
  } while (0);
  free(key);
  free(value);
}


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

x86 assembly (clang, -O2):
<destroyExternalFileHashEntry>:
push   %rbx
mov    %rdx,%rbx
mov    %rsi,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @destroyExternalFileHashEntry(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
br label %7
7: ; preds = %3
%8 = load i8*, i8** %4
br label %9
9: ; preds = %7
%10 = load i8*, i8** %5
%11 = call i32 @free(i8* %10)
%12 = load i8*, i8** %6
%13 = call i32 @free(i8* %12)
ret void
}

LLVM IR (-O2):
define void @destroyExternalFileHashEntry(i8* nocapture readnone %0, i8* nocapture %1, i8* nocapture %2) {
%4 = tail call i32 @free(i8* %1)
%5 = tail call i32 @free(i8* %2)
ret void
}
/* Variables and functions */
double DBL_EPSILON;
double epsilondbl_(double x) { return DBL_EPSILON; }


x86 assembly (clang, -O0):
<epsilondbl_>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
mov    0x2ed8(%rip),%rax
movsd  (%rax),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<epsilondbl_>:
mov    0x2ee1(%rip),%rax
movsd  (%rax),%xmm0
ret

LLVM IR (-O0):
@DBL_EPSILON = global double 0.000000e+00
define double @epsilondbl_(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* @DBL_EPSILON
ret double %3
}

LLVM IR (-O2):
@DBL_EPSILON = global double 0.000000e+00
define double @epsilondbl_(double %0) {
%2 = load double, double* @DBL_EPSILON
ret double %2
}
/* Variables and functions */
int /*<<< orphan*/ getc();
int /*<<< orphan*/ printf(char *, char, char *);
void main() {
  printf("Hello World%c _d: %s", '!', " string ");
  getc();
  return;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
mov    $0x21,%esi
lea    0xede(%rip),%rdx
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getc@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0xee6(%rip),%rdx
mov    $0x21,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <getc@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"Hello World%c _d: %s\00"
@.str.1 = [9 x i8] c" string \00"
define void @main() {
%1 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8 signext 33, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (...) @getc()
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c"Hello World%c _d: %s\00"
@.str.1 = [9 x i8] c" string \00"
define void @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8 signext 33, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (...) @getc()
ret void
}
/* Variables and functions */
int strcoll(char const *, char const *);
int strptrcoll(const void *a, const void *b) {
  const char *as = *(char **)a;
  const char *bs = *(char **)b;
  return strcoll(as, bs);
}


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

x86 assembly (clang, -O2):
<strptrcoll>:
mov    (%rdi),%rdi
mov    (%rsi),%rsi
jmp    1030 <strcoll@plt>

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

LLVM IR (-O2):
define i32 @strptrcoll(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i8**
%4 = load i8*, i8** %3
%5 = bitcast i8* %1 to i8**
%6 = load i8*, i8** %5
%7 = tail call i32 @strcoll(i8* %4, i8* %6)
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ XBEE_UART_UartInit();
void XBEE_UART_Init(void) { XBEE_UART_UartInit(); }


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

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

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

LLVM IR (-O2):
define void @XBEE_UART_Init() {
%1 = tail call i32 (...) @XBEE_UART_UartInit()
ret void
}
int _ForkptyX(int *pty, char *name, void *mode, void *size) { return -1; }


x86 assembly (clang, -O0):
<_ForkptyX>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    $0xffffffff,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @_ForkptyX(i32* nocapture readnone %0, i8* nocapture readnone %1, i8* nocapture readnone %2, i8* nocapture readnone %3) {
ret i32 -1
}
/* Variables and functions */
int /*<<< orphan*/ listening();
int /*<<< orphan*/ printf(char *);
void check_send(int send_res) {
  if (send_res == -1) {
    printf("Send error!\n");
    listening();
  }
  if (send_res == 0) {
    printf("No data sent!\n");
    listening();
  }
  return;
}


x86 assembly (clang, -O0):
<check_send>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0xffffffff,-0x4(%rbp)
jne    1148 <check_send+0x28>
lea    0xec4(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <listening@plt>
cmpl   $0x0,-0x4(%rbp)
jne    1165 <check_send+0x45>
lea    0xeb4(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <listening@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_send>:
cmp    $0xffffffff,%edi
je     1132 <check_send+0x12>
test   %edi,%edi
jne    1147 <check_send+0x27>
lea    0xed0(%rip),%rdi
jmp    1139 <check_send+0x19>
lea    0xed5(%rip),%rdi
push   %rax
call   1040 <puts@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <listening@plt>
ret

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

LLVM IR (-O2):
@str = [14 x i8] c"No data sent!\00"
@str.2 = [12 x i8] c"Send error!\00"
define void @check_send(i32 %0) {
switch i32 %0, label %7 [
i32 -1, label %3
i32 0, label %2
]
2: ; preds = %1
br label %3
3: ; preds = %1, %2
%4 = phi i8* [ getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0), %2 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @str.2, i64 0, i64 0), %1 ]
%5 = tail call i32 @puts(i8* dereferenceable(1) %4)
%6 = tail call i32 (...) @listening()
br label %7
7: ; preds = %3, %1
ret void
}
/* Variables and functions */
float __rtand(float);
float r_tand(float *x) { return __rtand(*x); }


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

x86 assembly (clang, -O2):
<r_tand>:
movss  (%rdi),%xmm0
jmp    1030 <__rtand@plt>

LLVM IR (-O0):
define float @r_tand(float* %0) {
%2 = alloca float*
store float* %0, float** %2
%3 = load float*, float** %2
%4 = load float, float* %3
%5 = call float @__rtand(float %4)
ret float %5
}

LLVM IR (-O2):
define float @r_tand(float* nocapture %0) {
%2 = load float, float* %0
%3 = tail call float @__rtand(float %2)
ret float %3
}
void radio_df_cte_rx_2us_switching(void) {}


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

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

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

LLVM IR (-O2):
define void @radio_df_cte_rx_2us_switching() {
ret void
}
void INI_CfgDepBaseCtx() {}


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

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

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

LLVM IR (-O2):
define void @INI_CfgDepBaseCtx() {
ret void
}
void zint_to_buf4(int a, unsigned char *buf) {
  buf[0] = (a >> 24) & 0X0F;
  buf[1] = (a >> 16) & 0X0F;
  buf[2] = (a >> 8) & 0X0F;
  buf[3] = (a)&0XFF;
}


x86 assembly (clang, -O0):
<zint_to_buf4>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x18,%eax
and    $0xf,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x4(%rbp),%eax
sar    $0x10,%eax
and    $0xf,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x1(%rax)
mov    -0x4(%rbp),%eax
sar    $0x8,%eax
and    $0xf,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x2(%rax)
mov    -0x4(%rbp),%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x3(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<zint_to_buf4>:
mov    %edi,%eax
shr    $0x18,%eax
and    $0xf,%al
mov    %al,(%rsi)
mov    %edi,%eax
shr    $0x10,%eax
and    $0xf,%al
mov    %al,0x1(%rsi)
mov    %edi,%eax
shr    $0x8,%eax
and    $0xf,%al
mov    %al,0x2(%rsi)
mov    %dil,0x3(%rsi)
ret

LLVM IR (-O0):
define void @zint_to_buf4(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 = ashr i32 %5, 24
%7 = and i32 %6, 15
%8 = trunc i32 %7 to i8
%9 = load i8*, i8** %4
%10 = getelementptr inbounds i8, i8* %9, i64 0
store i8 %8, i8* %10
%11 = load i32, i32* %3
%12 = ashr i32 %11, 16
%13 = and i32 %12, 15
%14 = trunc i32 %13 to i8
%15 = load i8*, i8** %4
%16 = getelementptr inbounds i8, i8* %15, i64 1
store i8 %14, i8* %16
%17 = load i32, i32* %3
%18 = ashr i32 %17, 8
%19 = and i32 %18, 15
%20 = trunc i32 %19 to i8
%21 = load i8*, i8** %4
%22 = getelementptr inbounds i8, i8* %21, i64 2
store i8 %20, i8* %22
%23 = load i32, i32* %3
%24 = and i32 %23, 255
%25 = trunc i32 %24 to i8
%26 = load i8*, i8** %4
%27 = getelementptr inbounds i8, i8* %26, i64 3
store i8 %25, i8* %27
ret void
}

LLVM IR (-O2):
define void @zint_to_buf4(i32 %0, i8* nocapture writeonly %1) {
%3 = lshr i32 %0, 24
%4 = trunc i32 %3 to i8
%5 = and i8 %4, 15
store i8 %5, i8* %1
%6 = lshr i32 %0, 16
%7 = trunc i32 %6 to i8
%8 = and i8 %7, 15
%9 = getelementptr inbounds i8, i8* %1, i64 1
store i8 %8, i8* %9
%10 = lshr i32 %0, 8
%11 = trunc i32 %10 to i8
%12 = and i8 %11, 15
%13 = getelementptr inbounds i8, i8* %1, i64 2
store i8 %12, i8* %13
%14 = trunc i32 %0 to i8
%15 = getelementptr inbounds i8, i8* %1, i64 3
store i8 %14, i8* %15
ret void
}
/* Variables and functions */
int /*<<< orphan*/ test_hashset_iter_next();
int /*<<< orphan*/ test_hashset_iter_remove();
void test_hashset_iter() {
  test_hashset_iter_next();
  test_hashset_iter_remove();
}


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

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

LLVM IR (-O0):
define void @test_hashset_iter() {
%1 = call i32 (...) @test_hashset_iter_next()
%2 = call i32 (...) @test_hashset_iter_remove()
ret void
}

LLVM IR (-O2):
define void @test_hashset_iter() {
%1 = tail call i32 (...) @test_hashset_iter_next()
%2 = tail call i32 (...) @test_hashset_iter_remove()
ret void
}
int *herwig6_addressi_(int *arg) { return arg; }


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

x86 assembly (clang, -O2):
<herwig6_addressi_>:
mov    %rdi,%rax
ret

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

LLVM IR (-O2):
define i32* @herwig6_addressi_(i32* readnone returned %0) {
ret i32* %0
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;
typedef int /*<<< orphan*/ BIO;

/* Variables and functions */
scalar_t__ BIO_get_fp(int /*<<< orphan*/ *, int /*<<< orphan*/ **);
int /*<<< orphan*/ fflush(int /*<<< orphan*/ *);
long req_FlushFile(BIO *spFileBio) {
  FILE *fp = NULL;
  if (BIO_get_fp(spFileBio, &fp) <= 0)
    return 0;
  if (!fp)
    return 0;
  if (!fflush(fp))
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<req_FlushFile>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1030 <BIO_get_fp@plt>
cmp    $0x0,%rax
jg     1158 <req_FlushFile+0x38>
movq   $0x0,-0x8(%rbp)
jmp    1197 <req_FlushFile+0x77>
cmpq   $0x0,-0x18(%rbp)
jne    1170 <req_FlushFile+0x50>
movq   $0x0,-0x8(%rbp)
jmp    1197 <req_FlushFile+0x77>
mov    -0x18(%rbp),%rdi
call   1040 <fflush@plt>
cmp    $0x0,%eax
jne    118f <req_FlushFile+0x6f>
movq   $0x1,-0x8(%rbp)
jmp    1197 <req_FlushFile+0x77>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<req_FlushFile>:
push   %rax
movq   $0x0,(%rsp)
mov    %rsp,%rsi
call   1030 <BIO_get_fp@plt>
test   %rax,%rax
jle    114f <req_FlushFile+0x2f>
mov    (%rsp),%rdi
test   %rdi,%rdi
je     114f <req_FlushFile+0x2f>
call   1040 <fflush@plt>
mov    %eax,%ecx
xor    %eax,%eax
test   %ecx,%ecx
sete   %al
pop    %rcx
ret
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i64 @req_FlushFile(i32* %0) {
%2 = alloca i64
%3 = alloca i32*
%4 = alloca i32*
store i32* %0, i32** %3
store i32* null, i32** %4
%5 = load i32*, i32** %3
%6 = call i64 @BIO_get_fp(i32* %5, i32** %4)
%7 = icmp sle i64 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %1
store i64 0, i64* %2
br label %19
9: ; preds = %1
%10 = load i32*, i32** %4
%11 = icmp ne i32* %10, null
br i1 %11, label %13, label %12
12: ; preds = %9
store i64 0, i64* %2
br label %19
13: ; preds = %9
%14 = load i32*, i32** %4
%15 = call i32 @fflush(i32* %14)
%16 = icmp ne i32 %15, 0
br i1 %16, label %18, label %17
17: ; preds = %13
store i64 1, i64* %2
br label %19
18: ; preds = %13
store i64 0, i64* %2
br label %19
19: ; preds = %18, %17, %12, %8
%20 = load i64, i64* %2
ret i64 %20
}

LLVM IR (-O2):
define i64 @req_FlushFile(i32* %0) {
%2 = alloca i32*
%3 = bitcast i32** %2 to i8*
store i32* null, i32** %2
%4 = call i64 @BIO_get_fp(i32* %0, i32** %2)
%5 = icmp slt i64 %4, 1
br i1 %5, label %13, label %6
6: ; preds = %1
%7 = load i32*, i32** %2
%8 = icmp eq i32* %7, null
br i1 %8, label %13, label %9
9: ; preds = %6
%10 = call i32 @fflush(i32* %7)
%11 = icmp eq i32 %10, 0
%12 = zext i1 %11 to i64
br label %13
13: ; preds = %9, %6, %1
%14 = phi i64 [ 0, %1 ], [ 0, %6 ], [ %12, %9 ]
ret i64 %14
}
int stopBeep(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @stopBeep() {
ret i32 0
}
double interpolate(double const a, double const b, double const f) {
  return ((b - a) * f + a);
}


x86 assembly (clang, -O0):
<interpolate>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
subsd  -0x8(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
movsd  -0x8(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<interpolate>:
subsd  %xmm0,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @interpolate(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%7 = load double, double* %5
%8 = load double, double* %4
%9 = fsub double %7, %8
%10 = load double, double* %6
%11 = load double, double* %4
%12 = call double @llvm.fmuladd.f64(double %9, double %10, double %11)
ret double %12
}

LLVM IR (-O2):
define double @interpolate(double %0, double %1, double %2) {
%4 = fsub double %1, %0
%5 = tail call double @llvm.fmuladd.f64(double %4, double %2, double %0)
ret double %5
}
/* Variables and functions */
int /*<<< orphan*/ mkdir(char *, int);
int mount_tmpfs_rundir(void) {
  (void)mkdir("/run/jobd", 0755);
  return (0);
}


x86 assembly (clang, -O0):
<mount_tmpfs_rundir>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x1ed,%esi
call   1030 <mkdir@plt>
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [10 x i8] c"/run/jobd\00"
define i32 @mount_tmpfs_rundir() {
%1 = call i32 @mkdir(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 493)
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"/run/jobd\00"
define i32 @mount_tmpfs_rundir() {
%1 = tail call i32 @mkdir(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 493)
ret i32 0
}
void emit_blob_data(struct processor_explicatory_state *process_state,
                    struct modern_stream *stream, void *stream_state,
                    struct modern_vfile *vfile, void *vfile_state) {}


x86 assembly (clang, -O0):
<emit_blob_data>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.processor_explicatory_state = type opaque
%struct.modern_stream = type opaque
%struct.modern_vfile = type opaque
define void @emit_blob_data(%struct.processor_explicatory_state* %0, %struct.modern_stream* %1, i8* %2, %struct.modern_vfile* %3, i8* %4) {
%6 = alloca %struct.processor_explicatory_state*
%7 = alloca %struct.modern_stream*
%8 = alloca i8*
%9 = alloca %struct.modern_vfile*
%10 = alloca i8*
store %struct.processor_explicatory_state* %0, %struct.processor_explicatory_state** %6
store %struct.modern_stream* %1, %struct.modern_stream** %7
store i8* %2, i8** %8
store %struct.modern_vfile* %3, %struct.modern_vfile** %9
store i8* %4, i8** %10
ret void
}

LLVM IR (-O2):
%struct.processor_explicatory_state = type opaque
%struct.modern_stream = type opaque
%struct.modern_vfile = type opaque
define void @emit_blob_data(%struct.processor_explicatory_state* nocapture %0, %struct.modern_stream* nocapture %1, i8* nocapture %2, %struct.modern_vfile* nocapture %3, i8* nocapture %4) {
ret void
}
/* Variables and functions */
int MADV_DONTNEED;
int __syscall(int, void *, size_t, int);
int posix_madvise(void *addr, size_t len, int advice) {
  if (advice == MADV_DONTNEED)
    return 0;
  return -__syscall(220, addr, len, advice);
}


x86 assembly (clang, -O0):
<posix_madvise>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    0x2eb3(%rip),%rcx
cmp    (%rcx),%eax
jne    1141 <posix_madvise+0x31>
movl   $0x0,-0x4(%rbp)
jmp    115f <posix_madvise+0x4f>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    $0xdc,%edi
call   1030 <__syscall@plt>
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<posix_madvise>:
push   %rax
mov    %edx,%ecx
mov    %rsi,%rdx
mov    %rdi,%rsi
mov    0x2ec0(%rip),%rdi
xor    %eax,%eax
cmp    %ecx,(%rdi)
je     1132 <posix_madvise+0x22>
mov    $0xdc,%edi
call   1030 <__syscall@plt>
neg    %eax
pop    %rcx
ret

LLVM IR (-O0):
@MADV_DONTNEED = global i32 0
define i32 @posix_madvise(i8* %0, i64 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i32
store i8* %0, i8** %5
store i64 %1, i64* %6
store i32 %2, i32* %7
%8 = load i32, i32* %7
%9 = load i32, i32* @MADV_DONTNEED
%10 = icmp eq i32 %8, %9
br i1 %10, label %11, label %12
11: ; preds = %3
store i32 0, i32* %4
br label %18
12: ; preds = %3
%13 = load i8*, i8** %5
%14 = load i64, i64* %6
%15 = load i32, i32* %7
%16 = call i32 @__syscall(i32 220, i8* %13, i64 %14, i32 %15)
%17 = sub nsw i32 0, %16
store i32 %17, i32* %4
br label %18
18: ; preds = %12, %11
%19 = load i32, i32* %4
ret i32 %19
}

LLVM IR (-O2):
@MADV_DONTNEED = global i32 0
define i32 @posix_madvise(i8* %0, i64 %1, i32 %2) {
%4 = load i32, i32* @MADV_DONTNEED
%5 = icmp eq i32 %4, %2
br i1 %5, label %9, label %6
6: ; preds = %3
%7 = tail call i32 @__syscall(i32 220, i8* %0, i64 %1, i32 %2)
%8 = sub nsw i32 0, %7
br label %9
9: ; preds = %3, %6
%10 = phi i32 [ %8, %6 ], [ 0, %3 ]
ret i32 %10
}
int f(void) {
  unsigned int m1 = 0xFF;
  unsigned int m2 = 0142;
  return m1 + m2;
}


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
movl   $0xff,-0x4(%rbp)
movl   $0x62,-0x8(%rbp)
mov    -0x4(%rbp),%eax
add    -0x8(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @f() {
%1 = alloca i32
%2 = alloca i32
store i32 255, i32* %1
store i32 98, i32* %2
%3 = load i32, i32* %1
%4 = load i32, i32* %2
%5 = add i32 %3, %4
ret i32 %5
}

LLVM IR (-O2):
define i32 @f() {
ret i32 353
}
/* Variables and functions */
int renderEngineMain(int, char **);
int main(int argc, char **argv) { return renderEngineMain(argc, argv); }


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

x86 assembly (clang, -O2):
<main>:
jmp    1030 <renderEngineMain@plt>

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 @renderEngineMain(i32 %0, i8** %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ brain_free_(void *);
void cont_dispose_key_value_(void *in_context, void *in_key, void *in_value) {
  if (in_value)
    brain_free_(in_value);
}


x86 assembly (clang, -O0):
<cont_dispose_key_value_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1138 <cont_dispose_key_value_+0x28>
mov    -0x18(%rbp),%rdi
call   1030 <brain_free_@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cont_dispose_key_value_>:
test   %rdx,%rdx
je     111d <cont_dispose_key_value_+0xd>
mov    %rdx,%rdi
jmp    1030 <brain_free_@plt>
ret

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

LLVM IR (-O2):
define void @cont_dispose_key_value_(i8* nocapture readnone %0, i8* nocapture readnone %1, i8* %2) {
%4 = icmp eq i8* %2, null
br i1 %4, label %7, label %5
5: ; preds = %3
%6 = tail call i32 @brain_free_(i8* %2)
br label %7
7: ; preds = %5, %3
ret void
}
/* Variables and functions */
int /*<<< orphan*/ idcZero(int);
int idcTriggerZeroValue(int m) {
  idcZero(m);
  return 5 / m;
}


x86 assembly (clang, -O0):
<idcTriggerZeroValue>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <idcZero@plt>
mov    $0x5,%eax
cltd
idivl  -0x4(%rbp)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<idcTriggerZeroValue>:
push   %rbx
mov    %edi,%ebx
call   1030 <idcZero@plt>
mov    $0x5,%eax
xor    %edx,%edx
idiv   %ebx
pop    %rbx
ret

LLVM IR (-O0):
define i32 @idcTriggerZeroValue(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @idcZero(i32 %3)
%5 = load i32, i32* %2
%6 = sdiv i32 5, %5
ret i32 %6
}

LLVM IR (-O2):
define i32 @idcTriggerZeroValue(i32 %0) {
%2 = tail call i32 @idcZero(i32 %0)
%3 = sdiv i32 5, %0
ret i32 %3
}
/* Variables and functions */
double pow(double, int);
double e_dt(double dt) {
  if (dt > 15)
    return 9;
  else {
    double a = 0.0003869 * pow(dt + 0.1815, 2);
    double b = a + 0.01081;
    return 1 / b;
  }
}


x86 assembly (clang, -O0):
<e_dt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xed6(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1146 <e_dt+0x36>
movsd  0xeec(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1195 <e_dt+0x85>
movsd  0xed2(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xeb0(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xe97(%rip),%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xe7d(%rip),%xmm0
divsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<e_dt>:
push   %rax
ucomisd 0xeef(%rip),%xmm0
jbe    1125 <e_dt+0x15>
movsd  0xedd(%rip),%xmm0
pop    %rax
ret
addsd  0xee3(%rip),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movapd %xmm0,%xmm1
mulsd  0xed5(%rip),%xmm1
addsd  0xed5(%rip),%xmm1
movsd  0xed5(%rip),%xmm0
divsd  %xmm1,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @e_dt(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
store double %0, double* %3
%6 = load double, double* %3
%7 = fcmp ogt double %6, 1.500000e+01
br i1 %7, label %8, label %9
8: ; preds = %1
store double 9.000000e+00, double* %2
br label %18
9: ; preds = %1
%10 = load double, double* %3
%11 = fadd double %10, 1.815000e-01
%12 = call double @pow(double %11, i32 2)
%13 = fmul double 3.869000e-04, %12
store double %13, double* %4
%14 = load double, double* %4
%15 = fadd double %14, 1.081000e-02
store double %15, double* %5
%16 = load double, double* %5
%17 = fdiv double 1.000000e+00, %16
store double %17, double* %2
br label %18
18: ; preds = %9, %8
%19 = load double, double* %2
ret double %19
}

LLVM IR (-O2):
define double @e_dt(double %0) {
%2 = fcmp ogt double %0, 1.500000e+01
br i1 %2, label %9, label %3
3: ; preds = %1
%4 = fadd double %0, 1.815000e-01
%5 = tail call double @pow(double %4, i32 2)
%6 = fmul double %5, 3.869000e-04
%7 = fadd double %6, 1.081000e-02
%8 = fdiv double 1.000000e+00, %7
br label %9
9: ; preds = %1, %3
%10 = phi double [ %8, %3 ], [ 9.000000e+00, %1 ]
ret double %10
}
/* Type definitions */
typedef int /*<<< orphan*/ DIR;

/* Variables and functions */
int /*<<< orphan*/ closedir(int /*<<< orphan*/ *);
int /*<<< orphan*/ *opendir(char const *);
int is_dir(const char *dir) {
  DIR *tmp = opendir(dir);
  if (tmp) {
    closedir(tmp);
    return (!(0));
  } else
    return (0);
}


x86 assembly (clang, -O0):
<is_dir>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <opendir@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1159 <is_dir+0x39>
mov    -0x18(%rbp),%rdi
call   1040 <closedir@plt>
movl   $0x1,-0x4(%rbp)
jmp    1160 <is_dir+0x40>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_dir>:
push   %rax
call   1030 <opendir@plt>
test   %rax,%rax
je     113a <is_dir+0x1a>
mov    %rax,%rdi
call   1040 <closedir@plt>
mov    $0x1,%eax
pop    %rcx
ret
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @is_dir(i8* nocapture %0) {
%2 = tail call i32* @opendir(i8* %0)
%3 = icmp eq i32* %2, null
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @closedir(i32* %2)
br label %6
6: ; preds = %1, %4
%7 = phi i32 [ 1, %4 ], [ 0, %1 ]
ret i32 %7
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef scalar_t__ uint32_t;

/* Variables and functions */
__attribute__((section(".flash.text.Write"))) void FlashWrite(uint32_t addr,
                                                              uint8_t data) {
  *((volatile uint8_t *)addr) = data;
}


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

x86 assembly (clang, -O2):
<FlashWrite>:
mov    %esi,(%rdi)
ret

LLVM IR (-O0):
define void @FlashWrite(i64 %0, i32 %1) section ".flash.text.Write" {
%3 = alloca i64
%4 = alloca i32
store i64 %0, i64* %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = load i64, i64* %3
%7 = inttoptr i64 %6 to i32*
store volatile i32 %5, i32* %7
ret void
}

LLVM IR (-O2):
define void @FlashWrite(i64 %0, i32 %1) section ".flash.text.Write" {
%3 = inttoptr i64 %0 to i32*
store volatile i32 %1, i32* %3
ret void
}
long __ocl_convert_long_short(short src) { return (long)src; }


x86 assembly (clang, -O0):
<__ocl_convert_long_short>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
movswq -0x2(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<__ocl_convert_long_short>:
movslq %edi,%rax
ret

LLVM IR (-O0):
define i64 @__ocl_convert_long_short(i16 signext %0) {
%2 = alloca i16
store i16 %0, i16* %2
%3 = load i16, i16* %2
%4 = sext i16 %3 to i64
ret i64 %4
}

LLVM IR (-O2):
define i64 @__ocl_convert_long_short(i16 signext %0) {
%2 = sext i16 %0 to i64
ret i64 %2
}
/* Variables and functions */
int /*<<< orphan*/ GL_SMOOTH;
int /*<<< orphan*/ glClearColor(float, float, float, float);
int /*<<< orphan*/ glShadeModel(int /*<<< orphan*/);
void init(void) {
  glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
  glShadeModel(GL_SMOOTH);
}


x86 assembly (clang, -O0):
<init>:
push   %rbp
mov    %rsp,%rbp
xorps  %xmm3,%xmm3
movaps %xmm3,%xmm0
movaps %xmm3,%xmm1
movaps %xmm3,%xmm2
call   1030 <glClearColor@plt>
mov    0x2ea4(%rip),%rax
mov    (%rax),%edi
call   1040 <glShadeModel@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<init>:
push   %rax
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
call   1030 <glClearColor@plt>
mov    0x2ea7(%rip),%rax
mov    (%rax),%edi
pop    %rax
jmp    1040 <glShadeModel@plt>

LLVM IR (-O0):
@GL_SMOOTH = global i32 0
define void @init() {
%1 = call i32 @glClearColor(float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00)
%2 = load i32, i32* @GL_SMOOTH
%3 = call i32 @glShadeModel(i32 %2)
ret void
}

LLVM IR (-O2):
@GL_SMOOTH = global i32 0
define void @init() {
%1 = tail call i32 @glClearColor(float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00)
%2 = load i32, i32* @GL_SMOOTH
%3 = tail call i32 @glShadeModel(i32 %2)
ret void
}
/* Variables and functions */
int gob_encode_string_int_helper(char *, size_t, char const *, int);
int gob_encode_field_type(char *buf, size_t buf_size, const char *name,
                          int id) {
  return gob_encode_string_int_helper(buf, buf_size, name, id);
}


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

x86 assembly (clang, -O2):
<gob_encode_field_type>:
jmp    1030 <gob_encode_string_int_helper@plt>

LLVM IR (-O0):
define i32 @gob_encode_field_type(i8* %0, i64 %1, i8* %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i8*
%8 = alloca i32
store i8* %0, i8** %5
store i64 %1, i64* %6
store i8* %2, i8** %7
store i32 %3, i32* %8
%9 = load i8*, i8** %5
%10 = load i64, i64* %6
%11 = load i8*, i8** %7
%12 = load i32, i32* %8
%13 = call i32 @gob_encode_string_int_helper(i8* %9, i64 %10, i8* %11, i32 %12)
ret i32 %13
}

LLVM IR (-O2):
define i32 @gob_encode_field_type(i8* %0, i64 %1, i8* %2, i32 %3) {
%5 = tail call i32 @gob_encode_string_int_helper(i8* %0, i64 %1, i8* %2, i32 %3)
ret i32 %5
}
/* Variables and functions */
double Tween_BounceOutEasing(int);
double Tween_BounceInEasing(double k) {
  return 1 - Tween_BounceOutEasing(1 - k);
}


x86 assembly (clang, -O0):
<Tween_BounceInEasing>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  0xedb(%rip),%xmm0
subsd  -0x8(%rbp),%xmm0
cvttsd2si %xmm0,%edi
call   1030 <Tween_BounceOutEasing@plt>
movaps %xmm0,%xmm1
movsd  0xec2(%rip),%xmm0
subsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Tween_BounceInEasing>:
push   %rax
movsd  0xee7(%rip),%xmm1
subsd  %xmm0,%xmm1
cvttsd2si %xmm1,%edi
call   1030 <Tween_BounceOutEasing@plt>
movsd  0xed2(%rip),%xmm1
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @Tween_BounceInEasing(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fsub double 1.000000e+00, %3
%5 = fptosi double %4 to i32
%6 = call double @Tween_BounceOutEasing(i32 %5)
%7 = fsub double 1.000000e+00, %6
ret double %7
}

LLVM IR (-O2):
define double @Tween_BounceInEasing(double %0) {
%2 = fsub double 1.000000e+00, %0
%3 = fptosi double %2 to i32
%4 = tail call double @Tween_BounceOutEasing(i32 %3)
%5 = fsub double 1.000000e+00, %4
ret double %5
}
unsigned int getInt(unsigned char *data, int offset) {
  unsigned int res;
  res = data[offset + 0] << 0;
  res += data[offset + 1] << 8;
  res += data[offset + 2] << 16;
  res += data[offset + 3] << 24;
  return res;
}


x86 assembly (clang, -O0):
<getInt>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
add    $0x0,%ecx
movslq %ecx,%rcx
movzbl (%rax,%rcx,1),%eax
shl    $0x0,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movzbl (%rax,%rcx,1),%eax
shl    $0x8,%eax
add    -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movzbl (%rax,%rcx,1),%eax
shl    $0x10,%eax
add    -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movzbl (%rax,%rcx,1),%eax
shl    $0x18,%eax
add    -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<getInt>:
movslq %esi,%rax
mov    (%rdi,%rax,1),%eax
ret

LLVM IR (-O0):
define i32 @getInt(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%6 = load i8*, i8** %3
%7 = load i32, i32* %4
%8 = add nsw i32 %7, 0
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i8, i8* %6, i64 %9
%11 = load i8, i8* %10
%12 = zext i8 %11 to i32
%13 = shl i32 %12, 0
store i32 %13, i32* %5
%14 = load i8*, i8** %3
%15 = load i32, i32* %4
%16 = add nsw i32 %15, 1
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, i8* %14, i64 %17
%19 = load i8, i8* %18
%20 = zext i8 %19 to i32
%21 = shl i32 %20, 8
%22 = load i32, i32* %5
%23 = add i32 %22, %21
store i32 %23, i32* %5
%24 = load i8*, i8** %3
%25 = load i32, i32* %4
%26 = add nsw i32 %25, 2
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, i8* %24, i64 %27
%29 = load i8, i8* %28
%30 = zext i8 %29 to i32
%31 = shl i32 %30, 16
%32 = load i32, i32* %5
%33 = add i32 %32, %31
store i32 %33, i32* %5
%34 = load i8*, i8** %3
%35 = load i32, i32* %4
%36 = add nsw i32 %35, 3
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, i8* %34, i64 %37
%39 = load i8, i8* %38
%40 = zext i8 %39 to i32
%41 = shl i32 %40, 24
%42 = load i32, i32* %5
%43 = add i32 %42, %41
store i32 %43, i32* %5
%44 = load i32, i32* %5
ret i32 %44
}

LLVM IR (-O2):
define i32 @getInt(i8* nocapture %0, i32 %1) {
%3 = sext i32 %1 to i64
%4 = getelementptr inbounds i8, i8* %0, i64 %3
%5 = load i8, i8* %4
%6 = zext i8 %5 to i32
%7 = add nsw i32 %1, 1
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i8, i8* %0, i64 %8
%10 = load i8, i8* %9
%11 = zext i8 %10 to i32
%12 = shl nuw nsw i32 %11, 8
%13 = or i32 %12, %6
%14 = add nsw i32 %1, 2
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, i8* %0, i64 %15
%17 = load i8, i8* %16
%18 = zext i8 %17 to i32
%19 = shl nuw nsw i32 %18, 16
%20 = or i32 %13, %19
%21 = add nsw i32 %1, 3
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, i8* %0, i64 %22
%24 = load i8, i8* %23
%25 = zext i8 %24 to i32
%26 = shl nuw i32 %25, 24
%27 = or i32 %20, %26
ret i32 %27
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void print(int a) { printf("%d", a); }


x86 assembly (clang, -O0):
<print>:
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):
<print>:
mov    %edi,%esi
lea    0xee7(%rip),%rdi
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define void @print(i32 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %0)
ret void
}
/* Variables and functions */
char *basename(char *);
scalar_t__ strcmp(char const *, char *);
int app_choose_mode(char *arg0) {
  const char *name = basename(arg0);
  if (strcmp(name, "fex2bin") == 0)
    return 1;
  else if (strcmp(name, "bin2fex") == 0)
    return 2;
  else
    return 0;
}


x86 assembly (clang, -O0):
<app_choose_mode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <basename@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xebc(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    115f <app_choose_mode+0x3f>
movl   $0x1,-0x4(%rbp)
jmp    118c <app_choose_mode+0x6c>
mov    -0x18(%rbp),%rdi
lea    0xe9e(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1185 <app_choose_mode+0x65>
movl   $0x2,-0x4(%rbp)
jmp    118c <app_choose_mode+0x6c>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<app_choose_mode>:
push   %rbx
call   1040 <basename@plt>
mov    %rax,%rbx
lea    0xed0(%rip),%rsi
mov    %rax,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     115b <app_choose_mode+0x3b>
lea    0xec4(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
sete   %al
add    %eax,%eax
pop    %rbx
ret
mov    $0x1,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [8 x i8] c"fex2bin\00"
@.str.1 = [8 x i8] c"bin2fex\00"
define i32 @app_choose_mode(i8* %0) {
%2 = tail call i8* @basename(i8* %0)
%3 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i64 %3, 0
br i1 %4, label %9, label %5
5: ; preds = %1
%6 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%7 = icmp eq i64 %6, 0
%8 = select i1 %7, i32 2, i32 0
br label %9
9: ; preds = %5, %1
%10 = phi i32 [ 1, %1 ], [ %8, %5 ]
ret i32 %10
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fflush(int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *);
void end_message(FILE *outfile) {
  fprintf(outfile, "\nEND\n");
  fflush(outfile);
  return;
}


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

x86 assembly (clang, -O2):
<end_message>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
mov    $0x5,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <fflush@plt>

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

LLVM IR (-O2):
@.str = [6 x i8] c"\0AEND\0A\00"
define void @end_message(i32* nocapture %0) {
%2 = tail call i64 @fwrite(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i64 5, i64 1, i32* %0)
%3 = tail call i32 @fflush(i32* %0)
ret void
}
__attribute__((__unused__)) void _void_consume(void *p, ...) {}


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

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

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

LLVM IR (-O2):
define void @_void_consume(i8* nocapture %0, ...) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main(int argc, char **argv) {
  printf("Hello, world\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 = [14 x i8] c"Hello, world\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 ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [13 x i8] c"Hello, world\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
ret i32 0
}
print_bm_header(bmheader) struct bitmapheader *bmheader;
{}


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

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

LLVM IR (-O0):
%struct.bitmapheader = type opaque
define i32 @print_bm_header(%struct.bitmapheader* %0) {
%2 = alloca i32
%3 = alloca %struct.bitmapheader*
store %struct.bitmapheader* %0, %struct.bitmapheader** %3
%4 = load i32, i32* %2
ret i32 %4
}

LLVM IR (-O2):
%struct.bitmapheader = type opaque
define i32 @print_bm_header(%struct.bitmapheader* nocapture readnone %0) {
ret i32 undef
}
/* Variables and functions */
scalar_t__ calloc(size_t, int);
int *allocArray1D(size_t rows) { return (int *)calloc(rows, sizeof(int)); }


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

x86 assembly (clang, -O2):
<allocArray1D>:
mov    $0x4,%esi
jmp    1030 <calloc@plt>

LLVM IR (-O0):
define i32* @allocArray1D(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = call i64 @calloc(i64 %3, i32 4)
%5 = inttoptr i64 %4 to i32*
ret i32* %5
}

LLVM IR (-O2):
define i32* @allocArray1D(i64 %0) {
%2 = tail call i64 @calloc(i64 %0, i32 4)
%3 = inttoptr i64 %2 to i32*
ret i32* %3
}
int deflateInit_(struct z_stream_s *stream, int level, const char *version,
                 int stream_size) {
  return -2;
}


x86 assembly (clang, -O0):
<deflateInit_>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    $0xfffffffe,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.z_stream_s = type opaque
define i32 @deflateInit_(%struct.z_stream_s* %0, i32 %1, i8* %2, i32 %3) {
%5 = alloca %struct.z_stream_s*
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32
store %struct.z_stream_s* %0, %struct.z_stream_s** %5
store i32 %1, i32* %6
store i8* %2, i8** %7
store i32 %3, i32* %8
ret i32 -2
}

LLVM IR (-O2):
%struct.z_stream_s = type opaque
define i32 @deflateInit_(%struct.z_stream_s* nocapture readnone %0, i32 %1, i8* nocapture readnone %2, i32 %3) {
ret i32 -2
}
/* Variables and functions */
int /*<<< orphan*/ rc_nanosleep(unsigned int);
void rc_usleep(unsigned int us) {
  rc_nanosleep(us * 1000);
  return;
}


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

x86 assembly (clang, -O2):
<rc_usleep>:
imul   $0x3e8,%edi,%edi
jmp    1030 <rc_nanosleep@plt>

LLVM IR (-O0):
define void @rc_usleep(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = mul i32 %3, 1000
%5 = call i32 @rc_nanosleep(i32 %4)
ret void
}

LLVM IR (-O2):
define void @rc_usleep(i32 %0) {
%2 = mul i32 %0, 1000
%3 = tail call i32 @rc_nanosleep(i32 %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ initialisecl(int /*<<< orphan*/);
void _initialisecl(int *ws) { initialisecl(0); }


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

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

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

LLVM IR (-O2):
define void @_initialisecl(i32* nocapture readnone %0) {
%2 = tail call i32 @initialisecl(i32 0)
ret void
}