xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ co__cclear();
int /*<<< orphan*/ e_addri(int, int);
int /*<<< orphan*/ e_calli(int /*<<< orphan*/);
int /*<<< orphan*/ e_pushr(int);
int /*<<< orphan*/ putchar;
int ra_mgetv(int);
void co_output(int rc) {
  int mc;
  mc = ra_mgetv(rc);
  e_addri(4, 4);
  e_pushr(mc);
  co__cclear();
  e_calli(putchar);
}


x86 assembly (clang, -O0):
<co_output>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1060 <ra_mgetv@plt>
mov    %eax,-0x8(%rbp)
mov    $0x4,%esi
mov    %esi,%edi
call   1050 <e_addri@plt>
mov    -0x8(%rbp),%edi
call   1070 <e_pushr@plt>
mov    $0x0,%al
call   1030 <co__cclear@plt>
mov    0x2e58(%rip),%rax
mov    (%rax),%edi
call   1040 <e_calli@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<co_output>:
push   %rbx
call   1060 <ra_mgetv@plt>
mov    %eax,%ebx
mov    $0x4,%edi
mov    $0x4,%esi
call   1050 <e_addri@plt>
mov    %ebx,%edi
call   1070 <e_pushr@plt>
xor    %eax,%eax
call   1030 <co__cclear@plt>
mov    0x2e64(%rip),%rax
mov    (%rax),%edi
pop    %rbx
jmp    1040 <e_calli@plt>

LLVM IR (-O0):
@putchar = global i32 0
define void @co_output(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = call i32 @ra_mgetv(i32 %4)
store i32 %5, i32* %3
%6 = call i32 @e_addri(i32 4, i32 4)
%7 = load i32, i32* %3
%8 = call i32 @e_pushr(i32 %7)
%9 = call i32 (...) @co__cclear()
%10 = load i32, i32* @putchar
%11 = call i32 @e_calli(i32 %10)
ret void
}

LLVM IR (-O2):
@putchar = global i32 0
define void @co_output(i32 %0) {
%2 = tail call i32 @ra_mgetv(i32 %0)
%3 = tail call i32 @e_addri(i32 4, i32 4)
%4 = tail call i32 @e_pushr(i32 %2)
%5 = tail call i32 (...) @co__cclear()
%6 = load i32, i32* @putchar
%7 = tail call i32 @e_calli(i32 %6)
ret void
}
/* Type definitions */
struct syslog_data {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ StubBug(char *);
void openlog_r(const char *a, int b, int c, struct syslog_data *d) {
  (void)a;
  (void)b;
  (void)c;
  (void)d;
  StubBug("STUB:"
          "openlog_r");
}


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

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

LLVM IR (-O0):
%struct.syslog_data = type { i32 }
@.str = [15 x i8] c"STUB:openlog_r\00"
define void @openlog_r(i8* %0, i32 %1, i32 %2, %struct.syslog_data* %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca %struct.syslog_data*
store i8* %0, i8** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store %struct.syslog_data* %3, %struct.syslog_data** %8
%9 = load i8*, i8** %5
%10 = load i32, i32* %6
%11 = load i32, i32* %7
%12 = load %struct.syslog_data*, %struct.syslog_data** %8
%13 = call i32 @StubBug(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
%struct.syslog_data = type { i32 }
@.str = [15 x i8] c"STUB:openlog_r\00"
define void @openlog_r(i8* nocapture readnone %0, i32 %1, i32 %2, %struct.syslog_data* nocapture readnone %3) {
%5 = tail call i32 @StubBug(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
struct list_head {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ clear_WORM(struct list_head *);
uint8_t clear_ult_WORM(struct list_head *m) {
  ;
  return clear_WORM(m);
}


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

x86 assembly (clang, -O2):
<clear_ult_WORM>:
jmp    1030 <clear_WORM@plt>

LLVM IR (-O0):
%struct.list_head = type { i32 }
define i32 @clear_ult_WORM(%struct.list_head* %0) {
%2 = alloca %struct.list_head*
store %struct.list_head* %0, %struct.list_head** %2
%3 = load %struct.list_head*, %struct.list_head** %2
%4 = call i32 @clear_WORM(%struct.list_head* %3)
ret i32 %4
}

LLVM IR (-O2):
%struct.list_head = type { i32 }
define i32 @clear_ult_WORM(%struct.list_head* %0) {
%2 = tail call i32 @clear_WORM(%struct.list_head* %0)
ret i32 %2
}
int opal_next_poweroftwo(int value) {
  int power2;
  for (power2 = 1; value > 0; value >>= 1, power2 <<= 1)
    ;
  return power2;
}


x86 assembly (clang, -O0):
<opal_next_poweroftwo>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x0,-0x4(%rbp)
jle    1134 <opal_next_poweroftwo+0x34>
jmp    111d <opal_next_poweroftwo+0x1d>
mov    -0x4(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x8(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    110e <opal_next_poweroftwo+0xe>
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<opal_next_poweroftwo>:
mov    $0x1,%eax
test   %edi,%edi
jle    111b <opal_next_poweroftwo+0x1b>
mov    %edi,%ecx
nopl   0x0(%rax,%rax,1)
shr    %ecx
add    %eax,%eax
cmp    $0x1,%edi
mov    %ecx,%edi
ja     1110 <opal_next_poweroftwo+0x10>
ret

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

LLVM IR (-O2):
define i32 @opal_next_poweroftwo(i32 %0) {
%2 = icmp sgt i32 %0, 0
br i1 %2, label %3, label %9
3: ; preds = %1, %3
%4 = phi i32 [ %7, %3 ], [ 1, %1 ]
%5 = phi i32 [ %6, %3 ], [ %0, %1 ]
%6 = lshr i32 %5, 1
%7 = shl i32 %4, 1
%8 = icmp ult i32 %5, 2
br i1 %8, label %9, label %3
9: ; preds = %3, %1
%10 = phi i32 [ 1, %1 ], [ %7, %3 ]
ret i32 %10
}
unsigned int get_msr(unsigned int msr) {
  unsigned int val;
  __asm__ volatile("rdmsr" : "=a"(val) : "c"(msr) : "edx");
  return val;
}


x86 assembly (clang, -O0):
<get_msr>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
rdmsr
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_msr>:
mov    %edi,%ecx
rdmsr
ret

LLVM IR (-O0):
define i32 @get_msr(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = call i32 asm sideeffect "rdmsr", "={ax},{cx},~{edx},~{dirflag},~{fpsr},~{flags}"(i32 %4)
store i32 %5, i32* %3
%6 = load i32, i32* %3
ret i32 %6
}

LLVM IR (-O2):
define i32 @get_msr(i32 %0) {
%2 = tail call i32 asm sideeffect "rdmsr", "={ax},{cx},~{edx},~{dirflag},~{fpsr},~{flags}"(i32 %0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ strlen(char *);
int /*<<< orphan*/ write(int, char *, int /*<<< orphan*/);
void fprintf(int fd, char *s, ...) { write(fd, s, strlen(s)); }


x86 assembly (clang, -O0):
<fprintf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rdi
mov    %rdi,-0x18(%rbp)
call   1040 <strlen@plt>
mov    -0x1c(%rbp),%edi
mov    -0x18(%rbp),%rsi
mov    %eax,%edx
call   1030 <write@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fprintf>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
mov    %rsi,%rdi
call   1040 <strlen@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %eax,%edx
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <write@plt>

LLVM IR (-O0):
define void @fprintf(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 = load i8*, i8** %4
%8 = call i32 @strlen(i8* %7)
%9 = call i32 @write(i32 %5, i8* %6, i32 %8)
ret void
}

LLVM IR (-O2):
define void @fprintf(i32 %0, i8* %1, ...) {
%3 = tail call i32 @strlen(i8* %1)
%4 = tail call i32 @write(i32 %0, i8* %1, i32 %3)
ret void
}
/* Type definitions */
typedef scalar_t__ pthread_t;

/* Variables and functions */
int pthread_equal(pthread_t t1, pthread_t t2) { return t1 == t2; }


x86 assembly (clang, -O0):
<pthread_equal>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<pthread_equal>:
xor    %eax,%eax
cmp    %rsi,%rdi
sete   %al
ret

LLVM IR (-O0):
define i32 @pthread_equal(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %3
%6 = load i64, i64* %4
%7 = icmp eq i64 %5, %6
%8 = zext i1 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @pthread_equal(i64 %0, i64 %1) {
%3 = icmp eq i64 %0, %1
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ ENGINE;

/* Variables and functions */
int /*<<< orphan*/ ENGINE_add(int /*<<< orphan*/ *);
int /*<<< orphan*/ ENGINE_free(int /*<<< orphan*/ *);
int /*<<< orphan*/ ERR_clear_error();
int /*<<< orphan*/ *engine_gmp();
void ENGINE_load_gmp(void) {
  ENGINE *toadd = engine_gmp();
  if (!toadd)
    return;
  ENGINE_add(toadd);
  ENGINE_free(toadd);
  ERR_clear_error();
}


x86 assembly (clang, -O0):
<ENGINE_load_gmp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1060 <engine_gmp@plt>
mov    %rax,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1163 <ENGINE_load_gmp+0x23>
jmp    117c <ENGINE_load_gmp+0x3c>
mov    -0x8(%rbp),%rdi
call   1040 <ENGINE_add@plt>
mov    -0x8(%rbp),%rdi
call   1030 <ENGINE_free@plt>
mov    $0x0,%al
call   1050 <ERR_clear_error@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ENGINE_load_gmp>:
push   %rbx
xor    %eax,%eax
call   1060 <engine_gmp@plt>
test   %rax,%rax
je     1168 <ENGINE_load_gmp+0x28>
mov    %rax,%rbx
mov    %rax,%rdi
call   1040 <ENGINE_add@plt>
mov    %rbx,%rdi
call   1030 <ENGINE_free@plt>
xor    %eax,%eax
pop    %rbx
jmp    1050 <ERR_clear_error@plt>
pop    %rbx
ret

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

LLVM IR (-O2):
define void @ENGINE_load_gmp() {
%1 = tail call i32* (...) @engine_gmp()
%2 = icmp eq i32* %1, null
br i1 %2, label %7, label %3
3: ; preds = %0
%4 = tail call i32 @ENGINE_add(i32* %1)
%5 = tail call i32 @ENGINE_free(i32* %1)
%6 = tail call i32 (...) @ERR_clear_error()
br label %7
7: ; preds = %0, %3
ret void
}
/* Variables and functions */
int f();
int /*<<< orphan*/ printf(char *, int);
int main() {
  printf("function \"f\" return %d", f());
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [23 x i8] c"function \22f\22 return %d\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @f()
%3 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %2)
ret i32 0
}

LLVM IR (-O2):
@.str = [23 x i8] c"function \22f\22 return %d\00"
define i32 @main() {
%1 = tail call i32 (...) @f()
%2 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ _HibernateWriteComplete();
void HibernateTamperExtOscRecover(void) {
  (*((volatile unsigned long *)(0x400FC360))) = 0xA3359554;
  _HibernateWriteComplete();
  (*((volatile unsigned long *)(0x400FC404))) |= 0x00000001;
  _HibernateWriteComplete();
  (*((volatile unsigned long *)(0x400FC360))) = 0;
  _HibernateWriteComplete();
}


x86 assembly (clang, -O0):
<HibernateTamperExtOscRecover>:
push   %rbp
mov    %rsp,%rbp
mov    $0x400fc360,%eax
mov    $0xa3359554,%ecx
mov    %rcx,(%rax)
mov    $0x0,%al
call   1030 <_HibernateWriteComplete@plt>
mov    $0x400fc404,%eax
mov    (%rax),%rcx
or     $0x1,%rcx
mov    $0x400fc404,%eax
mov    %rcx,(%rax)
mov    $0x0,%al
call   1030 <_HibernateWriteComplete@plt>
mov    $0x400fc360,%eax
movq   $0x0,(%rax)
mov    $0x0,%al
call   1030 <_HibernateWriteComplete@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<HibernateTamperExtOscRecover>:
push   %rax
mov    $0xa3359554,%eax
mov    %rax,0x400fc360
40
xor    %eax,%eax
call   1030 <_HibernateWriteComplete@plt>
orq    $0x1,0x400fc404
40 01
xor    %eax,%eax
call   1030 <_HibernateWriteComplete@plt>
movq   $0x0,0x400fc360
xor    %eax,%eax
pop    %rcx
jmp    1030 <_HibernateWriteComplete@plt>

LLVM IR (-O0):
define void @HibernateTamperExtOscRecover() {
store volatile i64 2738197844, i64* inttoptr (i64 1074774880 to i64*)
%1 = call i32 (...) @_HibernateWriteComplete()
%2 = load volatile i64, i64* inttoptr (i64 1074775044 to i64*)
%3 = or i64 %2, 1
store volatile i64 %3, i64* inttoptr (i64 1074775044 to i64*)
%4 = call i32 (...) @_HibernateWriteComplete()
store volatile i64 0, i64* inttoptr (i64 1074774880 to i64*)
%5 = call i32 (...) @_HibernateWriteComplete()
ret void
}

LLVM IR (-O2):
define void @HibernateTamperExtOscRecover() {
store volatile i64 2738197844, i64* inttoptr (i64 1074774880 to i64*)
%1 = tail call i32 (...) @_HibernateWriteComplete()
%2 = load volatile i64, i64* inttoptr (i64 1074775044 to i64*)
%3 = or i64 %2, 1
store volatile i64 %3, i64* inttoptr (i64 1074775044 to i64*)
%4 = tail call i32 (...) @_HibernateWriteComplete()
store volatile i64 0, i64* inttoptr (i64 1074774880 to i64*)
%5 = tail call i32 (...) @_HibernateWriteComplete()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
scalar_t__ malloc(scalar_t__);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ strcpy(char *, char *);
scalar_t__ strlen(char *);
int main() {
  char *str = "hello\n\tworld";
  char *copy = (char *)malloc(strlen(str) + 1);
  strcpy(copy, str);
  puts(copy);
  free(copy);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe9a(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1060 <strlen@plt>
mov    %rax,%rdi
add    $0x1,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x18(%rbp),%rdi
call   1050 <puts@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0xd,%edi
call   1060 <malloc@plt>
mov    %rax,%rbx
lea    0xeab(%rip),%rsi
mov    %rax,%rdi
call   1040 <strcpy@plt>
mov    %rbx,%rdi
call   1050 <puts@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [13 x i8] c"hello\0A\09world\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i8*
store i32 0, i32* %1
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8** %2
%4 = load i8*, i8** %2
%5 = call i64 @strlen(i8* %4)
%6 = add nsw i64 %5, 1
%7 = call i64 @malloc(i64 %6)
%8 = inttoptr i64 %7 to i8*
store i8* %8, i8** %3
%9 = load i8*, i8** %3
%10 = load i8*, i8** %2
%11 = call i32 @strcpy(i8* %9, i8* %10)
%12 = load i8*, i8** %3
%13 = call i32 @puts(i8* %12)
%14 = load i8*, i8** %3
%15 = call i32 @free(i8* %14)
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"hello\0A\09world\00"
define i32 @main() {
%1 = tail call i64 @malloc(i64 13)
%2 = inttoptr i64 %1 to i8*
%3 = tail call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) %2)
%5 = tail call i32 @free(i8* %2)
ret i32 0
}
long test_long_6(long a, long b, long c, long d, long e, long f) {
  return a * b * c * d * e * f;
}


x86 assembly (clang, -O0):
<test_long_6>:
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)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rax
imul   -0x10(%rbp),%rax
imul   -0x18(%rbp),%rax
imul   -0x20(%rbp),%rax
imul   -0x28(%rbp),%rax
imul   -0x30(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_long_6>:
mov    %r8,%rax
imul   %rsi,%rdi
imul   %rcx,%rdx
imul   %rdi,%rdx
imul   %r9,%rax
imul   %rdx,%rax
ret

LLVM IR (-O0):
define i64 @test_long_6(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4, i64 %5) {
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
%12 = alloca i64
store i64 %0, i64* %7
store i64 %1, i64* %8
store i64 %2, i64* %9
store i64 %3, i64* %10
store i64 %4, i64* %11
store i64 %5, i64* %12
%13 = load i64, i64* %7
%14 = load i64, i64* %8
%15 = mul nsw i64 %13, %14
%16 = load i64, i64* %9
%17 = mul nsw i64 %15, %16
%18 = load i64, i64* %10
%19 = mul nsw i64 %17, %18
%20 = load i64, i64* %11
%21 = mul nsw i64 %19, %20
%22 = load i64, i64* %12
%23 = mul nsw i64 %21, %22
ret i64 %23
}

LLVM IR (-O2):
define i64 @test_long_6(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4, i64 %5) {
%7 = mul nsw i64 %1, %0
%8 = mul nsw i64 %7, %2
%9 = mul nsw i64 %8, %3
%10 = mul nsw i64 %9, %4
%11 = mul nsw i64 %10, %5
ret i64 %11
}
void d() {}


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

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

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

LLVM IR (-O2):
define void @d() {
ret void
}
void inc(char *p) { *p++; }


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

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

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

LLVM IR (-O2):
define void @inc(i8* nocapture %0) {
ret void
}
/* Variables and functions */
int sum(int *, int);
float mean(int input_array[], int array_size) {
  int array_sum;
  float array_mean;
  array_sum = sum(input_array, array_size);
  array_mean = (float)array_sum / array_size;
  return array_mean;
}


x86 assembly (clang, -O0):
<mean>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1030 <sum@plt>
mov    %eax,-0x10(%rbp)
cvtsi2ssl -0x10(%rbp),%xmm0
cvtsi2ssl -0xc(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mean>:
push   %rbx
mov    %esi,%ebx
call   1030 <sum@plt>
cvtsi2ss %eax,%xmm0
cvtsi2ss %ebx,%xmm1
divss  %xmm1,%xmm0
pop    %rbx
ret

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

LLVM IR (-O2):
define float @mean(i32* %0, i32 %1) {
%3 = tail call i32 @sum(i32* %0, i32 %1)
%4 = sitofp i32 %3 to float
%5 = sitofp i32 %1 to float
%6 = fdiv float %4, %5
ret float %6
}
char *strchr(const char *s, int c) {
  while (*s && (*s != c))
    s++;
  return (char *)s;
}


x86 assembly (clang, -O0):
<strchr>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0xd(%rbp)
je     1130 <strchr+0x30>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    -0xc(%rbp),%eax
setne  %al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
test   $0x1,%al
jne    1140 <strchr+0x40>
jmp    1151 <strchr+0x51>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    110b <strchr+0xb>
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strchr>:
mov    %rdi,%rax
add    $0xffffffffffffffff,%rax
nopw   0x0(%rax,%rax,1)
movsbl 0x1(%rax),%ecx
add    $0x1,%rax
test   %ecx,%ecx
je     1120 <strchr+0x20>
cmp    %esi,%ecx
jne    1110 <strchr+0x10>
ret

LLVM IR (-O0):
define i8* @strchr(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
br label %5
5: ; preds = %18, %2
%6 = load i8*, i8** %3
%7 = load i8, i8* %6
%8 = sext i8 %7 to i32
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %16
10: ; preds = %5
%11 = load i8*, i8** %3
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = load i32, i32* %4
%15 = icmp ne i32 %13, %14
br label %16
16: ; preds = %10, %5
%17 = phi i1 [ false, %5 ], [ %15, %10 ]
br i1 %17, label %18, label %21
18: ; preds = %16
%19 = load i8*, i8** %3
%20 = getelementptr inbounds i8, i8* %19, i32 1
store i8* %20, i8** %3
br label %5
21: ; preds = %16
%22 = load i8*, i8** %3
ret i8* %22
}

LLVM IR (-O2):
define i8* @strchr(i8* %0, i32 %1) {
br label %3
3: ; preds = %3, %2
%4 = phi i8* [ %0, %2 ], [ %10, %3 ]
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 0
%7 = sext i8 %5 to i32
%8 = icmp eq i32 %7, %1
%9 = or i1 %6, %8
%10 = getelementptr inbounds i8, i8* %4, i64 1
br i1 %9, label %11, label %3
11: ; preds = %3
ret i8* %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main(int argc, char *argv[]) {
  int i = 10;
  char c = 'a';
  float j = 1.0;
  printf("The size of int is %zu\n", sizeof i);
  printf("The size of char is %zu\n", sizeof c);
  printf("The size of float is %zu\n", sizeof j);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0xa,-0x14(%rbp)
movb   $0x61,-0x15(%rbp)
movss  0xece(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
lea    0xec6(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xecd(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xed5(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [24 x i8] c"The size of int is %zu\0A\00"
@.str.1 = [25 x i8] c"The size of char is %zu\0A\00"
@.str.2 = [26 x i8] c"The size of float is %zu\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i32
%6 = alloca i8
%7 = alloca float
store i32 %0, i32* %3
store i8** %1, i8*** %4
store i32 10, i32* %5
store i8 97, i8* %6
store float 1.000000e+00, float* %7
%8 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 4)
%9 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 1)
%10 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 4)
ret i32 0
}

LLVM IR (-O2):
@.str = [24 x i8] c"The size of int is %zu\0A\00"
@.str.1 = [25 x i8] c"The size of char is %zu\0A\00"
@.str.2 = [26 x i8] c"The size of float is %zu\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 4)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 1)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 4)
ret i32 0
}
void PyInit__pyframe3dd() {}


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

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

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

LLVM IR (-O2):
define void @PyInit__pyframe3dd() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Parrot_setenv(char const *, char *);
void Parrot_unsetenv(const char *name) { Parrot_setenv(name, ""); }


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

x86 assembly (clang, -O2):
<Parrot_unsetenv>:
lea    0xee9(%rip),%rsi
jmp    1030 <Parrot_setenv@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
define void @Parrot_unsetenv(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @Parrot_setenv(i8* %3, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
define void @Parrot_unsetenv(i8* %0) {
%2 = tail call i32 @Parrot_setenv(i8* %0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void Copyright(void) {
  fprintf(
      stderr,
      "===================================================================\n"
      " TS 26.104                                                         \n"
      " R99   V3.5.0 2003-03                                              \n"
      " REL-4 V4.4.0 2003-03                                              \n"
      " 3GPP AMR Floating-point Speech Decoder                            \n"
      "===================================================================\n");
}


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

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

LLVM IR (-O0):
@stderr = global i32 0
@.str = [409 x i8] c"===================================================================\0A TS 26.104 \0A R99 V3.5.0 2003-03 \0A REL-4 V4.4.0 2003-03 \0A 3GPP AMR Floating-point Speech Decoder \0A===================================================================\0A\00"
define void @Copyright() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([409 x i8], [409 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [409 x i8] c"===================================================================\0A TS 26.104 \0A R99 V3.5.0 2003-03 \0A REL-4 V4.4.0 2003-03 \0A 3GPP AMR Floating-point Speech Decoder \0A===================================================================\0A\00"
define void @Copyright() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([409 x i8], [409 x i8]* @.str, i64 0, i64 0))
ret void
}
struct soapResult_t *doBootstrap() {}


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

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

LLVM IR (-O0):
%struct.soapResult_t = type opaque
define %struct.soapResult_t* @doBootstrap() {
%1 = alloca %struct.soapResult_t*
%2 = load %struct.soapResult_t*, %struct.soapResult_t** %1
ret %struct.soapResult_t* %2
}

LLVM IR (-O2):
%struct.soapResult_t = type opaque
define noalias %struct.soapResult_t* @doBootstrap() {
ret %struct.soapResult_t* undef
}
/* Type definitions */
typedef char wchar_t;

/* Variables and functions */
char uppercase(char);
void uppercase_str(wchar_t *s) {
  int i = 0;
  while (s[i] != '\0') {
    s[i] = uppercase(s[i]);
    i++;
  }
}


x86 assembly (clang, -O0):
<uppercase_str>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     1164 <uppercase_str+0x54>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1030 <uppercase@plt>
mov    %al,%dl
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1123 <uppercase_str+0x13>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<uppercase_str>:
push   %rbx
mov    (%rdi),%al
test   %al,%al
je     1136 <uppercase_str+0x26>
mov    %rdi,%rbx
add    $0x1,%rbx
xchg   %ax,%ax
movsbl %al,%edi
call   1030 <uppercase@plt>
mov    %al,-0x1(%rbx)
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1120 <uppercase_str+0x10>
pop    %rbx
ret

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

LLVM IR (-O2):
define void @uppercase_str(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %13, label %4
4: ; preds = %1, %4
%5 = phi i64 [ %9, %4 ], [ 0, %1 ]
%6 = phi i8 [ %11, %4 ], [ %2, %1 ]
%7 = phi i8* [ %10, %4 ], [ %0, %1 ]
%8 = tail call signext i8 @uppercase(i8 signext %6)
store i8 %8, i8* %7
%9 = add nuw i64 %5, 1
%10 = getelementptr inbounds i8, i8* %0, i64 %9
%11 = load i8, i8* %10
%12 = icmp eq i8 %11, 0
br i1 %12, label %13, label %4
13: ; preds = %4, %1
ret void
}
int compare(const void *arg1, const void *arg2) {
  int val1, val2;
  val1 = *(int *)arg1;
  val2 = *(int *)arg2;
  return (val2 - val1);
}


x86 assembly (clang, -O0):
<compare>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
sub    -0x14(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<compare>:
mov    (%rsi),%eax
sub    (%rdi),%eax
ret

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

LLVM IR (-O2):
define i32 @compare(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i32*
%4 = load i32, i32* %3
%5 = bitcast i8* %1 to i32*
%6 = load i32, i32* %5
%7 = sub nsw i32 %6, %4
ret i32 %7
}
int _islower(int c) {
  if (c >= 97 && c <= 122)
    return (1);
  return (0);
}


x86 assembly (clang, -O0):
<_islower>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x61,-0x8(%rbp)
jl     1127 <_islower+0x27>
cmpl   $0x7a,-0x8(%rbp)
jg     1127 <_islower+0x27>
movl   $0x1,-0x4(%rbp)
jmp    112e <_islower+0x2e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_islower>:
add    $0xffffff9f,%edi
xor    %eax,%eax
cmp    $0x1a,%edi
setb   %al
ret

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

LLVM IR (-O2):
define i32 @_islower(i32 %0) {
%2 = add i32 %0, -97
%3 = icmp ult i32 %2, 26
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Type definitions */
typedef unsigned long uint32_t;

/* Variables and functions */
void USBModeConfig(uint32_t ui32Base, uint32_t ui32Mode) {
  ;
  (*((volatile unsigned long *)(ui32Base + 0x0000041C))) = ui32Mode;
}


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

x86 assembly (clang, -O2):
<USBModeConfig>:
mov    %rsi,0x41c(%rdi)
ret

LLVM IR (-O0):
define void @USBModeConfig(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %4
%6 = load i64, i64* %3
%7 = add i64 %6, 1052
%8 = inttoptr i64 %7 to i64*
store volatile i64 %5, i64* %8
ret void
}

LLVM IR (-O2):
define void @USBModeConfig(i64 %0, i64 %1) {
%3 = add i64 %0, 1052
%4 = inttoptr i64 %3 to i64*
store volatile i64 %1, i64* %4
ret void
}
void destroy_key(const char *e) {
  _mc_free((void *)e, __FUNCTION__,
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/hdijkema/elementals/refs/heads/master/"
           "src/hash.c",
           35);
}


x86 assembly (clang, -O0):
<destroy_key>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
lea    0xede(%rip),%rdx
mov    $0x23,%ecx
mov    $0x0,%al
call   1030 <_mc_free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<destroy_key>:
lea    0xee9(%rip),%rsi
lea    0xeee(%rip),%rdx
mov    $0x23,%ecx
xor    %eax,%eax
jmp    1030 <_mc_free@plt>

LLVM IR (-O0):
@__FUNCTION__.destroy_key = [12 x i8] c"destroy_key\00"
@.str = [139 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/hdijkema/elementals/refs/heads/master/src/hash.c\00"
define void @destroy_key(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @_mc_free to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %3, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @__FUNCTION__.destroy_key, i64 0, i64 0), i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 35)
ret void
}

LLVM IR (-O2):
@__FUNCTION__.destroy_key = [12 x i8] c"destroy_key\00"
@.str = [139 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/hdijkema/elementals/refs/heads/master/src/hash.c\00"
define void @destroy_key(i8* %0) {
%2 = tail call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @_mc_free to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @__FUNCTION__.destroy_key, i64 0, i64 0), i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0), i32 35)
ret void
}
int dbg_force_in_the_gaps(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @dbg_force_in_the_gaps() {
ret i32 0
}
/* Type definitions */
struct rbTreeNode {
  int dummy;
};
struct rbTree {
  int dummy;
};
struct lm {
  int dummy;
};
typedef int /*<<< orphan*/ stack;

/* Variables and functions */
struct rbTreeNode **lmAlloc(struct lm *, int);
struct lm *lmInit(int /*<<< orphan*/);
struct rbTree *rbTreeNewDetailed(int (*)(void *, void *), struct lm *,
                                 struct rbTreeNode **);
struct rbTree *rbTreeNew(int (*compare)(void *, void *)) {
  struct lm *lm = lmInit(0);
  struct rbTreeNode **stack = lmAlloc(lm, 128 * sizeof(stack[0]));
  return rbTreeNewDetailed(compare, lm, stack);
}


x86 assembly (clang, -O0):
<rbTreeNew>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
xor    %edi,%edi
call   1030 <lmInit@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x400,%esi
call   1040 <lmAlloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1050 <rbTreeNewDetailed@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rbTreeNew>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
xor    %edi,%edi
call   1030 <lmInit@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    $0x400,%esi
call   1040 <lmAlloc@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %rax,%rdx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1050 <rbTreeNewDetailed@plt>

LLVM IR (-O0):
%struct.rbTree = type { i32 }
%struct.lm = type { i32 }
%struct.rbTreeNode = type { i32 }
define %struct.rbTree* @rbTreeNew(i32 (i8*, i8*)* %0) {
%2 = alloca i32 (i8*, i8*)*
%3 = alloca %struct.lm*
%4 = alloca %struct.rbTreeNode**
store i32 (i8*, i8*)* %0, i32 (i8*, i8*)** %2
%5 = call %struct.lm* @lmInit(i32 0)
store %struct.lm* %5, %struct.lm** %3
%6 = load %struct.lm*, %struct.lm** %3
%7 = call %struct.rbTreeNode** @lmAlloc(%struct.lm* %6, i32 1024)
store %struct.rbTreeNode** %7, %struct.rbTreeNode*** %4
%8 = load i32 (i8*, i8*)*, i32 (i8*, i8*)** %2
%9 = load %struct.lm*, %struct.lm** %3
%10 = load %struct.rbTreeNode**, %struct.rbTreeNode*** %4
%11 = call %struct.rbTree* @rbTreeNewDetailed(i32 (i8*, i8*)* %8, %struct.lm* %9, %struct.rbTreeNode** %10)
ret %struct.rbTree* %11
}

LLVM IR (-O2):
%struct.rbTree = type { i32 }
%struct.lm = type { i32 }
%struct.rbTreeNode = type { i32 }
define %struct.rbTree* @rbTreeNew(i32 (i8*, i8*)* %0) {
%2 = tail call %struct.lm* @lmInit(i32 0)
%3 = tail call %struct.rbTreeNode** @lmAlloc(%struct.lm* %2, i32 1024)
%4 = tail call %struct.rbTree* @rbTreeNewDetailed(i32 (i8*, i8*)* %0, %struct.lm* %2, %struct.rbTreeNode** %3)
ret %struct.rbTree* %4
}
/* Variables and functions */
int /*<<< orphan*/ fgif(char *, char *);
void fgifd(char *buf) { fgif(buf, "-day.gif"); }


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

x86 assembly (clang, -O2):
<fgifd>:
lea    0xee9(%rip),%rsi
jmp    1030 <fgif@plt>

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

LLVM IR (-O2):
@.str = [9 x i8] c"-day.gif\00"
define void @fgifd(i8* %0) {
%2 = tail call i32 @fgif(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ LineEdit();
int main() { LineEdit(); }


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

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

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 (...) @LineEdit()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @LineEdit()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ clang_analyzer_eval(int);
scalar_t__ strncasecmp(char *, char *, int);
void strncasecmp_diff_length_2() {
  char *x = "aBcDe";
  char *y = "abc";
  clang_analyzer_eval(strncasecmp(x, y, 5) > 0);
}


x86 assembly (clang, -O0):
<strncasecmp_diff_length_2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rax
mov    %rax,-0x8(%rbp)
lea    0xecc(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x5,%edx
call   1030 <strncasecmp@plt>
cmp    $0x0,%rax
setg   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <clang_analyzer_eval@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strncasecmp_diff_length_2>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0xed7(%rip),%rsi
mov    $0x5,%edx
call   1030 <strncasecmp@plt>
xor    %edi,%edi
test   %rax,%rax
setg   %dil
pop    %rax
jmp    1040 <clang_analyzer_eval@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"aBcDe\00"
@.str.1 = [4 x i8] c"abc\00"
define void @strncasecmp_diff_length_2() {
%1 = alloca i8*
%2 = alloca i8*
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8** %2
%3 = load i8*, i8** %1
%4 = load i8*, i8** %2
%5 = call i64 @strncasecmp(i8* %3, i8* %4, i32 5)
%6 = icmp sgt i64 %5, 0
%7 = zext i1 %6 to i32
%8 = call i32 @clang_analyzer_eval(i32 %7)
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"aBcDe\00"
@.str.1 = [4 x i8] c"abc\00"
define void @strncasecmp_diff_length_2() {
%1 = tail call i64 @strncasecmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 5)
%2 = icmp sgt i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @clang_analyzer_eval(i32 %3)
ret void
}
void tcexit() {}


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

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

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

LLVM IR (-O2):
define void @tcexit() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ foo(int);
int main(int argc) {
  int a;
  a = argc + 1;
  if (argc + 3) {
    foo(a);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    $0x3,%eax
cmp    $0x0,%eax
je     1142 <main+0x32>
mov    -0xc(%rbp),%edi
call   1030 <foo@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
cmp    $0xfffffffd,%edi
je     1122 <main+0x12>
push   %rax
add    $0x1,%edi
call   1030 <foo@plt>
add    $0x8,%rsp
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @main(i32 %0) {
%2 = icmp eq i32 %0, -3
br i1 %2, label %6, label %3
3: ; preds = %1
%4 = add nsw i32 %0, 1
%5 = tail call i32 @foo(i32 %4)
br label %6
6: ; preds = %3, %1
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ siginfo_t;

/* Variables and functions */
void sigtrap(int sig, siginfo_t *si, void *ctx_void) {}


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

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

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

LLVM IR (-O2):
define void @sigtrap(i32 %0, i32* nocapture %1, i8* nocapture %2) {
ret void
}
void FreeRNG() { return; }


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ write(int, char *, int);
void _Unwind_Backtrace() {
  char msg[] = "Aborting: "
               "_Unwind_Backtrace"
               " called "
               "(C++ exception handling is disabled)\n";
  write(2, msg, sizeof(msg) - 1);
  abort();
}


x86 assembly (clang, -O0):
<_Unwind_Backtrace>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
lea    -0x50(%rbp),%rdi
lea    0xebd(%rip),%rsi
mov    $0x49,%edx
call   1050 <memcpy@plt>
lea    -0x50(%rbp),%rsi
mov    $0x2,%edi
mov    $0x48,%edx
call   1040 <write@plt>
mov    $0x0,%al
call   1030 <abort@plt>

x86 assembly (clang, -O2):
<_Unwind_Backtrace>:
sub    $0x58,%rsp
movups 0xf0e(%rip),%xmm0
movups %xmm0,0x39(%rsp)
movaps 0xef9(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xedd(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xec1(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xea5(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rsi
mov    $0x2,%edi
mov    $0x48,%edx
call   1040 <write@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@__const._Unwind_Backtrace.msg = [73 x i8] c"Aborting: _Unwind_Backtrace called (C++ exception handling is disabled)\0A\00"
define void @_Unwind_Backtrace() {
%1 = alloca [73 x i8]
%2 = bitcast [73 x i8]* %1 to i8*
%3 = getelementptr inbounds [73 x i8], [73 x i8]* %1, i64 0, i64 0
%4 = call i32 @write(i32 2, i8* %3, i32 72)
%5 = call i32 (...) @abort()
unreachable
}

LLVM IR (-O2):
@__const._Unwind_Backtrace.msg = [73 x i8] c"Aborting: _Unwind_Backtrace called (C++ exception handling is disabled)\0A\00"
define void @_Unwind_Backtrace() {
%1 = alloca [73 x i8]
%2 = getelementptr inbounds [73 x i8], [73 x i8]* %1, i64 0, i64 0
%3 = call i32 @write(i32 2, i8* %2, i32 72)
%4 = tail call i32 (...) @abort()
unreachable
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
void ComparatorIntEnable(uint32_t ui32Base, uint32_t ui32Comp) {
  ;
  ;
  (*((volatile unsigned long *)(ui32Base + 0x00000008))) |= 1 << ui32Comp;
}


x86 assembly (clang, -O0):
<ComparatorIntEnable>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
movslq %eax,%rdx
mov    -0x4(%rbp),%eax
add    $0x8,%eax
cltq
mov    (%rax),%rcx
or     %rdx,%rcx
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<ComparatorIntEnable>:
mov    %esi,%ecx
mov    $0x1,%eax
shl    %cl,%eax
cltq
movslq %edi,%rcx
or     %rax,0x8(%rcx)
ret

LLVM IR (-O0):
define void @ComparatorIntEnable(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = shl i32 1, %5
%7 = sext i32 %6 to i64
%8 = load i32, i32* %3
%9 = add nsw i32 %8, 8
%10 = sext i32 %9 to i64
%11 = inttoptr i64 %10 to i64*
%12 = load volatile i64, i64* %11
%13 = or i64 %12, %7
store volatile i64 %13, i64* %11
ret void
}

LLVM IR (-O2):
define void @ComparatorIntEnable(i32 %0, i32 %1) {
%3 = shl nuw i32 1, %1
%4 = sext i32 %3 to i64
%5 = add nsw i32 %0, 8
%6 = sext i32 %5 to i64
%7 = inttoptr i64 %6 to i64*
%8 = load volatile i64, i64* %7
%9 = or i64 %8, %4
store volatile i64 %9, i64* %7
ret void
}