xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ intif_guild_notice(int, char const *, char const *);
void guild_change_notice(int guild_id, const char *mes1, const char *mes2) {
  intif_guild_notice(guild_id, mes1, mes2);
  return;
}


x86 assembly (clang, -O0):
<guild_change_notice>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <intif_guild_notice@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<guild_change_notice>:
jmp    1030 <intif_guild_notice@plt>

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

LLVM IR (-O2):
define void @guild_change_notice(i32 %0, i8* %1, i8* %2) {
%4 = tail call i32 @intif_guild_notice(i32 %0, i8* %1, i8* %2)
ret void
}
/* Variables and functions */
char *U_WMRCORENONE_set(char *);
char *U_WMR88_set(void) { return U_WMRCORENONE_set("U_WMR88"); }


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

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

LLVM IR (-O0):
@.str = [8 x i8] c"U_WMR88\00"
define i8* @U_WMR88_set() {
%1 = call i8* @U_WMRCORENONE_set(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}

LLVM IR (-O2):
@.str = [8 x i8] c"U_WMR88\00"
define i8* @U_WMR88_set() {
%1 = tail call i8* @U_WMRCORENONE_set(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}
unsigned char inb_p(unsigned short port) {
  unsigned char _v;
  __asm__ __volatile__("in"
                       "b"
                       " %"
                       "w"
                       "1,%"
                       ""
                       "0"
                       : "=a"(_v)
                       : "Nd"(port));
  slow_down_io();
  return _v;
}


x86 assembly (clang, -O0):
<inb_p>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
mov    -0x2(%rbp),%dx
in     (%dx),%al
mov    %al,-0x3(%rbp)
mov    $0x0,%al
call   1030 <slow_down_io@plt>
movzbl -0x3(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<inb_p>:
push   %rbx
mov    %edi,%edx
in     (%dx),%al
mov    %eax,%ebx
xor    %eax,%eax
call   1030 <slow_down_io@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define zeroext i8 @inb_p(i16 zeroext %0) {
%2 = alloca i16
%3 = alloca i8
store i16 %0, i16* %2
%4 = load i16, i16* %2
%5 = call i8 asm sideeffect "inb ${1:w},$0", "={ax},N{dx},~{dirflag},~{fpsr},~{flags}"(i16 %4)
store i8 %5, i8* %3
%6 = call i32 (...) @slow_down_io()
%7 = load i8, i8* %3
ret i8 %7
}

LLVM IR (-O2):
define zeroext i8 @inb_p(i16 zeroext %0) {
%2 = tail call i8 asm sideeffect "inb ${1:w},$0", "={ax},N{dx},~{dirflag},~{fpsr},~{flags}"(i16 %0)
%3 = tail call i32 (...) @slow_down_io()
ret i8 %2
}
/* Variables and functions */
int /*<<< orphan*/ heap_up(int, void *, size_t,
                           int (*)(void const *, void const *));
int /*<<< orphan*/ memcpy(char *, void *, size_t);
int heap_insert(void *new_elt, void *heap, int count, size_t size,
                int (*compar)(const void *elt1, const void *elt2)) {
  memcpy((char *)heap + (++count) * size, new_elt, size);
  heap_up(count, heap, size, compar);
  return (count);
}


x86 assembly (clang, -O0):
<heap_insert>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
cltq
imul   -0x20(%rbp),%rax
add    %rax,%rdi
mov    -0x8(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1040 <memcpy@plt>
mov    -0x14(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
call   1030 <heap_up@plt>
mov    -0x14(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<heap_insert>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %r8,%r14
mov    %rcx,%r12
mov    %rsi,%r15
mov    %rdi,%rsi
add    $0x1,%edx
movslq %edx,%rbx
mov    %rbx,%rdi
imul   %rcx,%rdi
add    %r15,%rdi
mov    %rcx,%rdx
call   1040 <memcpy@plt>
mov    %ebx,%edi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r14,%rcx
call   1030 <heap_up@plt>
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @heap_insert(i8* %0, i8* %1, i32 %2, i64 %3, i32 (i8*, i8*)* %4) {
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i64
%10 = alloca i32 (i8*, i8*)*
store i8* %0, i8** %6
store i8* %1, i8** %7
store i32 %2, i32* %8
store i64 %3, i64* %9
store i32 (i8*, i8*)* %4, i32 (i8*, i8*)** %10
%11 = load i8*, i8** %7
%12 = load i32, i32* %8
%13 = add nsw i32 %12, 1
store i32 %13, i32* %8
%14 = sext i32 %13 to i64
%15 = load i64, i64* %9
%16 = mul i64 %14, %15
%17 = getelementptr inbounds i8, i8* %11, i64 %16
%18 = load i8*, i8** %6
%19 = load i64, i64* %9
%20 = call i32 @memcpy(i8* %17, i8* %18, i64 %19)
%21 = load i32, i32* %8
%22 = load i8*, i8** %7
%23 = load i64, i64* %9
%24 = load i32 (i8*, i8*)*, i32 (i8*, i8*)** %10
%25 = call i32 @heap_up(i32 %21, i8* %22, i64 %23, i32 (i8*, i8*)* %24)
%26 = load i32, i32* %8
ret i32 %26
}

LLVM IR (-O2):
define i32 @heap_insert(i8* %0, i8* %1, i32 %2, i64 %3, i32 (i8*, i8*)* %4) {
%6 = add nsw i32 %2, 1
%7 = sext i32 %6 to i64
%8 = mul i64 %7, %3
%9 = getelementptr inbounds i8, i8* %1, i64 %8
%10 = tail call i32 @memcpy(i8* %9, i8* %0, i64 %3)
%11 = tail call i32 @heap_up(i32 %6, i8* %1, i64 %3, i32 (i8*, i8*)* %4)
ret i32 %6
}
void RTTimeDbgSteps(void) {}


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

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

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

LLVM IR (-O2):
define void @RTTimeDbgSteps() {
ret void
}
char getc(void) {
  while (!((*((volatile unsigned long *)0xE2900010)) & (1 << 0)))
    ;
  return (*((volatile unsigned long *)0xE2900024));
}


x86 assembly (clang, -O0):
<getc>:
push   %rbp
mov    %rsp,%rbp
jmp    1109 <getc+0x9>
mov    $0xe2900010,%eax
mov    (%rax),%rax
and    $0x1,%rax
cmp    $0x0,%rax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    112b <getc+0x2b>
jmp    1130 <getc+0x30>
jmp    1109 <getc+0x9>
mov    $0xe2900024,%eax
mov    (%rax),%rax
movsbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<getc>:
mov    $0xe2900010,%eax
cs nopw 0x0(%rax,%rax,1)
nop
testq  $0x1,(%rax)
je     1110 <getc+0x10>
mov    0x14(%rax),%rax
ret

LLVM IR (-O0):
define signext i8 @getc() {
br label %1
1: ; preds = %6, %0
%2 = load volatile i64, i64* inttoptr (i64 3801088016 to i64*)
%3 = and i64 %2, 1
%4 = icmp ne i64 %3, 0
%5 = xor i1 %4, true
br i1 %5, label %6, label %7
6: ; preds = %1
br label %1
7: ; preds = %1
%8 = load volatile i64, i64* inttoptr (i64 3801088036 to i64*)
%9 = trunc i64 %8 to i8
ret i8 %9
}

LLVM IR (-O2):
define signext i8 @getc() {
br label %1
1: ; preds = %1, %0
%2 = load volatile i64, i64* inttoptr (i64 3801088016 to i64*)
%3 = and i64 %2, 1
%4 = icmp eq i64 %3, 0
br i1 %4, label %1, label %5
5: ; preds = %1
%6 = load volatile i64, i64* inttoptr (i64 3801088036 to i64*)
%7 = trunc i64 %6 to i8
ret i8 %7
}
void Plain_CoordScale(float hfactor, float vfactor) { ; }


x86 assembly (clang, -O0):
<Plain_CoordScale>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @Plain_CoordScale(float %0, float %1) {
%3 = alloca float
%4 = alloca float
store float %0, float* %3
store float %1, float* %4
ret void
}

LLVM IR (-O2):
define void @Plain_CoordScale(float %0, float %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
scalar_t__ malloc(int);
int /*<<< orphan*/ memcpy(char *, char *, size_t);
int strlen(char *);
char *make_permenent_string(char *string) {
  size_t stringLength = strlen(string) + 1;
  char *persistantString = (char *)malloc(sizeof(char) * stringLength);
  if (persistantString == NULL) {
    exit(21);
  }
  memcpy(persistantString, string, stringLength);
  return persistantString;
}


x86 assembly (clang, -O0):
<make_permenent_string>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
add    $0x1,%eax
cltq
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1186 <make_permenent_string+0x46>
mov    $0x15,%edi
call   1060 <exit@plt>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1040 <memcpy@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<make_permenent_string>:
push   %rbp
push   %r14
push   %rbx
mov    %rdi,%r14
call   1030 <strlen@plt>
mov    %eax,%ebp
add    $0x1,%ebp
mov    %ebp,%edi
call   1050 <malloc@plt>
test   %rax,%rax
je     1176 <make_permenent_string+0x36>
mov    %rax,%rbx
movslq %ebp,%rdx
mov    %rax,%rdi
mov    %r14,%rsi
call   1040 <memcpy@plt>
mov    %rbx,%rax
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    $0x15,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
define i8* @make_permenent_string(i8* %0) {
%2 = alloca i8*
%3 = alloca i64
%4 = alloca i8*
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = call i32 @strlen(i8* %5)
%7 = add nsw i32 %6, 1
%8 = sext i32 %7 to i64
store i64 %8, i64* %3
%9 = load i64, i64* %3
%10 = mul i64 1, %9
%11 = trunc i64 %10 to i32
%12 = call i64 @malloc(i32 %11)
%13 = inttoptr i64 %12 to i8*
store i8* %13, i8** %4
%14 = load i8*, i8** %4
%15 = icmp eq i8* %14, null
br i1 %15, label %16, label %18
16: ; preds = %1
%17 = call i32 @exit(i32 21)
unreachable
18: ; preds = %1
%19 = load i8*, i8** %4
%20 = load i8*, i8** %2
%21 = load i64, i64* %3
%22 = call i32 @memcpy(i8* %19, i8* %20, i64 %21)
%23 = load i8*, i8** %4
ret i8* %23
}

LLVM IR (-O2):
define i8* @make_permenent_string(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = add nsw i32 %2, 1
%4 = tail call i64 @malloc(i32 %3)
%5 = inttoptr i64 %4 to i8*
%6 = icmp eq i64 %4, 0
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = tail call i32 @exit(i32 21)
unreachable
9: ; preds = %1
%10 = sext i32 %3 to i64
%11 = tail call i32 @memcpy(i8* %5, i8* %0, i64 %10)
ret i8* %5
}
union tree_node *TYPE_FIELDS(union tree_node *t) {}


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

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

LLVM IR (-O0):
%union.tree_node = type opaque
define %union.tree_node* @TYPE_FIELDS(%union.tree_node* %0) {
%2 = alloca %union.tree_node*
%3 = alloca %union.tree_node*
store %union.tree_node* %0, %union.tree_node** %3
%4 = load %union.tree_node*, %union.tree_node** %2
ret %union.tree_node* %4
}

LLVM IR (-O2):
%union.tree_node = type opaque
define noalias %union.tree_node* @TYPE_FIELDS(%union.tree_node* nocapture readnone %0) {
ret %union.tree_node* undef
}
char get_command(const char *param) {
  char cmd;
  if (!param || (param[0] == '\0') || (param[1] != '\0'))
    return 0;
  cmd = param[0];
  if ((cmd != 'l') && (cmd != 'e'))
    return 0;
  return cmd;
}


x86 assembly (clang, -O0):
<get_command>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1134 <get_command+0x34>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1134 <get_command+0x34>
mov    -0x10(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x0,%eax
je     113d <get_command+0x3d>
movb   $0x0,-0x1(%rbp)
jmp    116f <get_command+0x6f>
mov    -0x10(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x11(%rbp)
movsbl -0x11(%rbp),%eax
cmp    $0x6c,%eax
je     1169 <get_command+0x69>
movsbl -0x11(%rbp),%eax
cmp    $0x65,%eax
je     1169 <get_command+0x69>
movb   $0x0,-0x1(%rbp)
jmp    116f <get_command+0x6f>
mov    -0x11(%rbp),%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_command>:
test   %rdi,%rdi
je     1114 <get_command+0x14>
mov    (%rdi),%cl
xor    %eax,%eax
test   %cl,%cl
je     1113 <get_command+0x13>
cmpb   $0x0,0x1(%rdi)
je     1117 <get_command+0x17>
ret
xor    %eax,%eax
ret
cmp    $0x65,%cl
mov    $0x65,%edx
cmove  %edx,%eax
cmp    $0x6c,%cl
mov    $0x6c,%ecx
cmovne %eax,%ecx
mov    %ecx,%eax
ret

LLVM IR (-O0):
define signext i8 @get_command(i8* %0) {
%2 = alloca i8
%3 = alloca i8*
%4 = alloca i8
store i8* %0, i8** %3
%5 = load i8*, i8** %3
%6 = icmp ne i8* %5, null
br i1 %6, label %7, label %19
7: ; preds = %1
%8 = load i8*, i8** %3
%9 = getelementptr inbounds i8, i8* %8, i64 0
%10 = load i8, i8* %9
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 0
br i1 %12, label %19, label %13
13: ; preds = %7
%14 = load i8*, i8** %3
%15 = getelementptr inbounds i8, i8* %14, i64 1
%16 = load i8, i8* %15
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %13, %7, %1
store i8 0, i8* %2
br label %34
20: ; preds = %13
%21 = load i8*, i8** %3
%22 = getelementptr inbounds i8, i8* %21, i64 0
%23 = load i8, i8* %22
store i8 %23, i8* %4
%24 = load i8, i8* %4
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 108
br i1 %26, label %27, label %32
27: ; preds = %20
%28 = load i8, i8* %4
%29 = sext i8 %28 to i32
%30 = icmp ne i32 %29, 101
br i1 %30, label %31, label %32
31: ; preds = %27
store i8 0, i8* %2
br label %34
32: ; preds = %27, %20
%33 = load i8, i8* %4
store i8 %33, i8* %2
br label %34
34: ; preds = %32, %31, %19
%35 = load i8, i8* %2
ret i8 %35
}

LLVM IR (-O2):
define signext i8 @get_command(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %15, label %3
3: ; preds = %1
%4 = load i8, i8* %0
%5 = icmp eq i8 %4, 0
br i1 %5, label %15, label %6
6: ; preds = %3
%7 = getelementptr inbounds i8, i8* %0, i64 1
%8 = load i8, i8* %7
%9 = icmp eq i8 %8, 0
br i1 %9, label %10, label %15
10: ; preds = %6
%11 = icmp eq i8 %4, 101
%12 = select i1 %11, i8 101, i8 0
%13 = icmp eq i8 %4, 108
%14 = select i1 %13, i8 108, i8 %12
br label %15
15: ; preds = %10, %1, %3, %6
%16 = phi i8 [ 0, %6 ], [ 0, %3 ], [ 0, %1 ], [ %14, %10 ]
ret i8 %16
}
/* Type definitions */
typedef int /*<<< orphan*/ int32_t;

/* Variables and functions */
int android_atomic_cas(int /*<<< orphan*/, int /*<<< orphan*/,
                       int /*<<< orphan*/ volatile *);
extern int android_atomic_release_cas(int32_t old_value, int32_t new_value,
                                      volatile int32_t *ptr) {
  return android_atomic_cas(old_value, new_value, ptr);
}


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

x86 assembly (clang, -O2):
<android_atomic_release_cas>:
jmp    1030 <android_atomic_cas@plt>

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

LLVM IR (-O2):
define i32 @android_atomic_release_cas(i32 %0, i32 %1, i32* %2) {
%4 = tail call i32 @android_atomic_cas(i32 %0, i32 %1, i32* %2)
ret i32 %4
}
extern const char *cp_get_version(void) { return "0.1.3"; }


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

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

LLVM IR (-O0):
@.str = [6 x i8] c"0.1.3\00"
define i8* @cp_get_version() {
ret i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [6 x i8] c"0.1.3\00"
define i8* @cp_get_version() {
ret i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
double log(scalar_t__);
scalar_t__ next_uniform_value();
double next_exponential_value(double lambda) {
  return -(log(1 - next_uniform_value()) / lambda);
}


x86 assembly (clang, -O0):
<next_exponential_value>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    $0x0,%al
call   1040 <next_uniform_value@plt>
mov    $0x1,%edi
sub    %rax,%rdi
call   1030 <log@plt>
divsd  -0x8(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<next_exponential_value>:
push   %rax
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1040 <next_uniform_value@plt>
mov    $0x1,%edi
sub    %rax,%rdi
call   1030 <log@plt>
xorpd  0xebe(%rip),%xmm0
divsd  (%rsp),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @next_exponential_value(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = call i64 (...) @next_uniform_value()
%4 = sub nsw i64 1, %3
%5 = call double @log(i64 %4)
%6 = load double, double* %2
%7 = fdiv double %5, %6
%8 = fneg double %7
ret double %8
}

LLVM IR (-O2):
define double @next_exponential_value(double %0) {
%2 = tail call i64 (...) @next_uniform_value()
%3 = sub nsw i64 1, %2
%4 = tail call double @log(i64 %3)
%5 = fneg double %4
%6 = fdiv double %5, %0
ret double %6
}
int measurementpcmp(const void *ap_, const void *bp_) {
  const unsigned long long int *ap = ap_, *bp = bp_;
  return *ap < *bp ? -1 : *ap > *bp;
}


x86 assembly (clang, -O0):
<measurementpcmp>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    -0x20(%rbp),%rcx
cmp    (%rcx),%rax
jae    113d <measurementpcmp+0x3d>
mov    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
jmp    1156 <measurementpcmp+0x56>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    -0x20(%rbp),%rcx
cmp    (%rcx),%rax
seta   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<measurementpcmp>:
mov    (%rdi),%rax
xor    %ecx,%ecx
cmp    (%rsi),%rax
seta   %cl
mov    $0xffffffff,%eax
cmovae %ecx,%eax
ret

LLVM IR (-O0):
define i32 @measurementpcmp(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i64*
%6 = alloca i64*
store i8* %0, i8** %3
store i8* %1, i8** %4
%7 = load i8*, i8** %3
%8 = bitcast i8* %7 to i64*
store i64* %8, i64** %5
%9 = load i8*, i8** %4
%10 = bitcast i8* %9 to i64*
store i64* %10, i64** %6
%11 = load i64*, i64** %5
%12 = load i64, i64* %11
%13 = load i64*, i64** %6
%14 = load i64, i64* %13
%15 = icmp ult i64 %12, %14
br i1 %15, label %16, label %17
16: ; preds = %2
br label %24
17: ; preds = %2
%18 = load i64*, i64** %5
%19 = load i64, i64* %18
%20 = load i64*, i64** %6
%21 = load i64, i64* %20
%22 = icmp ugt i64 %19, %21
%23 = zext i1 %22 to i32
br label %24
24: ; preds = %17, %16
%25 = phi i32 [ -1, %16 ], [ %23, %17 ]
ret i32 %25
}

LLVM IR (-O2):
define i32 @measurementpcmp(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i64*
%4 = bitcast i8* %1 to i64*
%5 = load i64, i64* %3
%6 = load i64, i64* %4
%7 = icmp ult i64 %5, %6
%8 = icmp ugt i64 %5, %6
%9 = zext i1 %8 to i32
%10 = select i1 %7, i32 -1, i32 %9
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void sigsegv_fail(int sig) {
  fprintf(stderr, "FATAL ERROR, rdtsc() failed while enabled\n");
  exit(0);
}


x86 assembly (clang, -O0):
<sigsegv_fail>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2eae(%rip),%rax
mov    (%rax),%edi
lea    0xec5(%rip),%rsi
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<sigsegv_fail>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [43 x i8] c"FATAL ERROR, rdtsc() failed while enabled\0A\00"
define void @sigsegv_fail(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* @stderr
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [43 x i8] c"FATAL ERROR, rdtsc() failed while enabled\0A\00"
define void @sigsegv_fail(i32 %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @exit(i32 0)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
void cuobjdump_free(void *ptr) { free((char *)ptr); }


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

x86 assembly (clang, -O2):
<cuobjdump_free>:
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @cuobjdump_free(i8* nocapture %0) {
%2 = tail call i32 @free(i8* %0)
ret void
}
/* Variables and functions */
int COLS;
int LINES;
int /*<<< orphan*/ endwin();
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ napms(int);
int /*<<< orphan*/ printw(char *);
int /*<<< orphan*/ refresh();
void sizecheck(void) {
  if (COLS < 70 || LINES < 23) {
    printw("A window at least 70x23 is required for this demo");
    refresh();
    napms(5000);
    endwin();
    exit(-1);
  }
}


x86 assembly (clang, -O0):
<sizecheck>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e85(%rip),%rax
cmpl   $0x46,(%rax)
jl     1174 <sizecheck+0x24>
mov    0x2e7d(%rip),%rax
cmpl   $0x17,(%rax)
jge    11a2 <sizecheck+0x52>
lea    0xe85(%rip),%rdi
call   1030 <printw@plt>
mov    $0x0,%al
call   1040 <refresh@plt>
mov    $0x1388,%edi
call   1070 <napms@plt>
mov    $0x0,%al
call   1050 <endwin@plt>
mov    $0xffffffff,%edi
call   1060 <exit@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<sizecheck>:
push   %rax
mov    0x2e88(%rip),%rax
cmpl   $0x46,(%rax)
jl     116b <sizecheck+0x1b>
mov    0x2e84(%rip),%rax
cmpl   $0x16,(%rax)
jle    116b <sizecheck+0x1b>
pop    %rax
ret
lea    0xe8e(%rip),%rdi
call   1030 <printw@plt>
xor    %eax,%eax
call   1040 <refresh@plt>
mov    $0x1388,%edi
call   1070 <napms@plt>
xor    %eax,%eax
call   1050 <endwin@plt>
mov    $0xffffffff,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@COLS = global i32 0
@LINES = global i32 0
@.str = [50 x i8] c"A window at least 70x23 is required for this demo\00"
define void @sizecheck() {
%1 = load i32, i32* @COLS
%2 = icmp slt i32 %1, 70
br i1 %2, label %6, label %3
3: ; preds = %0
%4 = load i32, i32* @LINES
%5 = icmp slt i32 %4, 23
br i1 %5, label %6, label %12
6: ; preds = %3, %0
%7 = call i32 @printw(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (...) @refresh()
%9 = call i32 @napms(i32 5000)
%10 = call i32 (...) @endwin()
%11 = call i32 @exit(i32 -1)
unreachable
12: ; preds = %3
ret void
}

LLVM IR (-O2):
@COLS = global i32 0
@LINES = global i32 0
@.str = [50 x i8] c"A window at least 70x23 is required for this demo\00"
define void @sizecheck() {
%1 = load i32, i32* @COLS
%2 = icmp slt i32 %1, 70
%3 = load i32, i32* @LINES
%4 = icmp slt i32 %3, 23
%5 = select i1 %2, i1 true, i1 %4
br i1 %5, label %6, label %12
6: ; preds = %0
%7 = tail call i32 @printw(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 (...) @refresh()
%9 = tail call i32 @napms(i32 5000)
%10 = tail call i32 (...) @endwin()
%11 = tail call i32 @exit(i32 -1)
unreachable
12: ; preds = %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main(void) {
  int n1 = 0;
  printf("Digite um numero inteiro: ");
  scanf("%d", &n1);
  printf("O numero digitado foi o: %d", n1);
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
movl   $0x0,0x4(%rsp)
lea    0xed0(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef6(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%esi
lea    0xec8(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [27 x i8] c"Digite um numero inteiro: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [28 x i8] c"O numero digitado foi o: %d\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), i32 %4)
ret i32 0
}

LLVM IR (-O2):
@.str = [27 x i8] c"Digite um numero inteiro: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [28 x i8] c"O numero digitado foi o: %d\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%5 = load i32, i32* %1
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), i32 %5)
ret i32 0
}
void gtk_drag_source_set() {}


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

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

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

LLVM IR (-O2):
define void @gtk_drag_source_set() {
ret void
}
void SysTickPeriodSet(unsigned long ulPeriod) {
  ;
  (*((volatile unsigned long *)(0xE000E014))) = ulPeriod - 1;
}


x86 assembly (clang, -O0):
<SysTickPeriodSet>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rcx
sub    $0x1,%rcx
mov    $0xe000e014,%eax
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<SysTickPeriodSet>:
add    $0xffffffffffffffff,%rdi
mov    $0xe000e014,%eax
mov    %rdi,(%rax)
ret

LLVM IR (-O0):
define void @SysTickPeriodSet(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = sub i64 %3, 1
store volatile i64 %4, i64* inttoptr (i64 3758153748 to i64*)
ret void
}

LLVM IR (-O2):
define void @SysTickPeriodSet(i64 %0) {
%2 = add i64 %0, -1
store volatile i64 %2, i64* inttoptr (i64 3758153748 to i64*)
ret void
}
void CrcInit(unsigned int *crc) { *crc = 0xFFFFFFFF; }


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

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

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

LLVM IR (-O2):
define void @CrcInit(i32* nocapture writeonly %0) {
store i32 -1, i32* %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ gen_pop();
int /*<<< orphan*/ output_line(char *);
void gen_put_indirect(char typeobj) {
  gen_pop();
  if (typeobj & (1 << 2)) {
    output_line("stab ,x");
  } else {
    output_line("std ,x");
  }
}


x86 assembly (clang, -O0):
<gen_put_indirect>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    $0x0,%al
call   1030 <gen_pop@plt>
movsbl -0x1(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     1156 <gen_put_indirect+0x36>
lea    0xeb4(%rip),%rdi
call   1040 <output_line@plt>
jmp    1162 <gen_put_indirect+0x42>
lea    0xeab(%rip),%rdi
call   1040 <output_line@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gen_put_indirect>:
push   %rbx
mov    %edi,%ebx
xor    %eax,%eax
call   1030 <gen_pop@plt>
test   $0x4,%bl
lea    0xed4(%rip),%rax
lea    0xec5(%rip),%rdi
cmove  %rax,%rdi
pop    %rbx
jmp    1040 <output_line@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"stab ,x\00"
@.str.1 = [7 x i8] c"std ,x\00"
define void @gen_put_indirect(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = call i32 (...) @gen_pop()
%4 = load i8, i8* %2
%5 = sext i8 %4 to i32
%6 = and i32 %5, 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 @output_line(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
br label %12
10: ; preds = %1
%11 = call i32 @output_line(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %12
12: ; preds = %10, %8
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"stab ,x\00"
@.str.1 = [7 x i8] c"std ,x\00"
define void @gen_put_indirect(i8 signext %0) {
%2 = tail call i32 (...) @gen_pop()
%3 = and i8 %0, 4
%4 = icmp eq i8 %3, 0
%5 = select i1 %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0)
%6 = tail call i32 @output_line(i8* %5)
ret void
}
void foo455() {}


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

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

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

LLVM IR (-O2):
define void @foo455() {
ret void
}
int notifier_list_init() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @notifier_list_init() {
ret i32 0
}
void alrm_handler(int sig __attribute__((unused))) {}


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

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

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

LLVM IR (-O2):
define void @alrm_handler(i32 %0) {
ret void
}
/* Variables and functions */
char *cachePath();
char *malloc(scalar_t__);
int /*<<< orphan*/ sprintf(char *, char *, char *);
scalar_t__ strlen(char *);
*coordURL(void) {
  char *path;
  path = malloc(strlen(cachePath()) + 15);
  sprintf(path, "%scoord_plane.txt", cachePath());
  return path;
}


x86 assembly (clang, -O0):
<coordURL>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <cachePath@plt>
mov    %rax,%rdi
call   1040 <strlen@plt>
mov    %rax,%rdi
add    $0xf,%rdi
call   1050 <malloc@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    $0x0,%al
call   1030 <cachePath@plt>
mov    -0x10(%rbp),%rdi
mov    %rax,%rdx
lea    0xe7c(%rip),%rsi
call   1060 <sprintf@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<coordURL>:
push   %rbx
xor    %eax,%eax
call   1030 <cachePath@plt>
mov    %rax,%rdi
call   1040 <strlen@plt>
lea    0xf(%rax),%rdi
call   1050 <malloc@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   1030 <cachePath@plt>
lea    0xe96(%rip),%rsi
mov    %rbx,%rdi
mov    %rax,%rdx
call   1060 <sprintf@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [18 x i8] c"%scoord_plane.txt\00"
define i32* @coordURL() {
%1 = alloca i8*
%2 = call i8* (...) @cachePath()
%3 = call i64 @strlen(i8* %2)
%4 = add nsw i64 %3, 15
%5 = call i8* @malloc(i64 %4)
store i8* %5, i8** %1
%6 = load i8*, i8** %1
%7 = call i8* (...) @cachePath()
%8 = call i32 @sprintf(i8* %6, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = load i8*, i8** %1
%10 = bitcast i8* %9 to i32*
ret i32* %10
}

LLVM IR (-O2):
@.str = [18 x i8] c"%scoord_plane.txt\00"
define noalias i32* @coordURL() {
%1 = tail call i8* (...) @cachePath()
%2 = tail call i64 @strlen(i8* dereferenceable(1) %1)
%3 = add nsw i64 %2, 15
%4 = tail call i8* @malloc(i64 %3)
%5 = tail call i8* (...) @cachePath()
%6 = tail call i32 @sprintf(i8* dereferenceable(1) %4, i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = bitcast i8* %4 to i32*
ret i32* %7
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  scalar_t__ tv_usec;
  scalar_t__ tv_sec;
};
struct rusage {
  TYPE_1__ ru_utime;
};

/* Variables and functions */
int /*<<< orphan*/ RUSAGE_SELF;
int /*<<< orphan*/ getrusage(int /*<<< orphan*/, struct rusage *);
double CO759_zeit(void) {
  struct rusage ru;
  getrusage(RUSAGE_SELF, &ru);
  return ((double)ru.ru_utime.tv_sec) +
         ((double)ru.ru_utime.tv_usec) / 1000000.0;
}


x86 assembly (clang, -O0):
<CO759_zeit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2ec1(%rip),%rax
mov    (%rax),%edi
lea    -0x10(%rbp),%rsi
call   1030 <getrusage@plt>
cvtsi2sdq -0x8(%rbp),%xmm0
cvtsi2sdq -0x10(%rbp),%xmm1
movsd  0xec2(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CO759_zeit>:
sub    $0x18,%rsp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0x8(%rsp),%rsi
call   1030 <getrusage@plt>
cvtsi2sdq 0x10(%rsp),%xmm1
cvtsi2sdq 0x8(%rsp),%xmm0
divsd  0xec3(%rip),%xmm0
addsd  %xmm1,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.rusage = type { %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i64, i64 }
@RUSAGE_SELF = global i32 0
define double @CO759_zeit() {
%1 = alloca %struct.rusage
%2 = load i32, i32* @RUSAGE_SELF
%3 = call i32 @getrusage(i32 %2, %struct.rusage* %1)
%4 = getelementptr inbounds %struct.rusage, %struct.rusage* %1, i32 0, i32 0
%5 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %4, i32 0, i32 1
%6 = load i64, i64* %5
%7 = sitofp i64 %6 to double
%8 = getelementptr inbounds %struct.rusage, %struct.rusage* %1, i32 0, i32 0
%9 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %8, i32 0, i32 0
%10 = load i64, i64* %9
%11 = sitofp i64 %10 to double
%12 = fdiv double %11, 1.000000e+06
%13 = fadd double %7, %12
ret double %13
}

LLVM IR (-O2):
%struct.rusage = type { %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i64, i64 }
@RUSAGE_SELF = global i32 0
define double @CO759_zeit() {
%1 = alloca %struct.rusage
%2 = bitcast %struct.rusage* %1 to i8*
%3 = load i32, i32* @RUSAGE_SELF
%4 = call i32 @getrusage(i32 %3, %struct.rusage* %1)
%5 = getelementptr inbounds %struct.rusage, %struct.rusage* %1, i64 0, i32 0, i32 1
%6 = load i64, i64* %5
%7 = sitofp i64 %6 to double
%8 = getelementptr inbounds %struct.rusage, %struct.rusage* %1, i64 0, i32 0, i32 0
%9 = load i64, i64* %8
%10 = sitofp i64 %9 to double
%11 = fdiv double %10, 1.000000e+06
%12 = fadd double %11, %7
ret double %12
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void print_usage() {
  printf(" usage:\n"
         " ./fb_test probe\n"
         " ./fb_test probe 5\n");
}


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

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

LLVM IR (-O0):
@.str = [45 x i8] c" usage:\0A ./fb_test probe\0A ./fb_test probe 5\0A\00"
define void @print_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [44 x i8] c" usage:\0A ./fb_test probe\0A ./fb_test probe 5\00"
define void @print_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str, i64 0, i64 0))
ret void
}
void ff_hevc_put_hevc_bi_w_pel_pixels48_8_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_bi_w_pel_pixels48_8_sse4() {
ret void
}
void gdk_screen_get_display() {}


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

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

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

LLVM IR (-O2):
define void @gdk_screen_get_display() {
ret void
}
int fun872() { return 872; }


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

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

LLVM IR (-O0):
define i32 @fun872() {
ret i32 872
}

LLVM IR (-O2):
define i32 @fun872() {
ret i32 872
}
int do_366() { return 366; }


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

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

LLVM IR (-O0):
define i32 @do_366() {
ret i32 366
}

LLVM IR (-O2):
define i32 @do_366() {
ret i32 366
}
void CRYPTO_set_mem_ex_functions(void) {}


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

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

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

LLVM IR (-O2):
define void @CRYPTO_set_mem_ex_functions() {
ret void
}
short **allocate_image_array(length, width)
long length, width;
{}


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

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

LLVM IR (-O0):
define i16** @allocate_image_array(i64 %0, i64 %1) {
%3 = alloca i16**
%4 = alloca i64
%5 = alloca i64
store i64 %0, i64* %4
store i64 %1, i64* %5
%6 = load i16**, i16*** %3
ret i16** %6
}

LLVM IR (-O2):
define noalias i16** @allocate_image_array(i64 %0, i64 %1) {
ret i16** undef
}
/* Variables and functions */
int /*<<< orphan*/ Function2();
int *getPtr();
void Function1(void) {
  static unsigned flag;
  static int *p = 0;
  if (!flag) {
    flag = 1;
    p = getPtr();
  }
  int m = *p;
  m++;
  Function2();
}


x86 assembly (clang, -O0):
<Function1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
cmpl   $0x0,0x2f09(%rip)
jne    114d <Function1+0x2d>
movl   $0x1,0x2ef9(%rip)
mov    $0x0,%al
call   1040 <getPtr@plt>
mov    %rax,0x2ef3(%rip)
mov    0x2eec(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1030 <Function2@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Function1>:
push   %rax
cmpb   $0x0,0x2f10(%rip)
jne    113f <Function1+0x1f>
movb   $0x1,0x2f07(%rip)
xor    %eax,%eax
call   1040 <getPtr@plt>
mov    %rax,0x2f01(%rip)
xor    %eax,%eax
pop    %rcx
jmp    1030 <Function2@plt>

LLVM IR (-O0):
@Function1.flag = internal global i32 0
@Function1.p = internal global i32* null
define void @Function1() {
%1 = alloca i32
%2 = load i32, i32* @Function1.flag
%3 = icmp ne i32 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %0
store i32 1, i32* @Function1.flag
%5 = call i32* (...) @getPtr()
store i32* %5, i32** @Function1.p
br label %6
6: ; preds = %4, %0
%7 = load i32*, i32** @Function1.p
%8 = load i32, i32* %7
store i32 %8, i32* %1
%9 = load i32, i32* %1
%10 = add nsw i32 %9, 1
store i32 %10, i32* %1
%11 = call i32 (...) @Function2()
ret void
}

LLVM IR (-O2):
@Function1.flag = internal unnamed_addr global i1 false
@Function1.p = internal unnamed_addr global i32* null
define void @Function1() {
%1 = load i1, i1* @Function1.flag
br i1 %1, label %4, label %2
2: ; preds = %0
store i1 true, i1* @Function1.flag
%3 = tail call i32* (...) @getPtr()
store i32* %3, i32** @Function1.p
br label %4
4: ; preds = %2, %0
%5 = tail call i32 (...) @Function2()
ret void
}
void _Z26_Jv_FindSymbolInExecutablePKc(void) {}


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

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

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

LLVM IR (-O2):
define void @_Z26_Jv_FindSymbolInExecutablePKc() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ initialize_SimpleCmd();
int /*<<< orphan*/ initialize_Surge();
int /*<<< orphan*/ initialize_XMesh();
int /*<<< orphan*/ initialize_XSensor();
void xapps_initialize() {
  initialize_XSensor();
  initialize_XMesh();
  initialize_Surge();
  initialize_SimpleCmd();
}


x86 assembly (clang, -O0):
<xapps_initialize>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <initialize_XSensor@plt>
mov    $0x0,%al
call   1060 <initialize_XMesh@plt>
mov    $0x0,%al
call   1030 <initialize_Surge@plt>
mov    $0x0,%al
call   1040 <initialize_SimpleCmd@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<xapps_initialize>:
push   %rax
xor    %eax,%eax
call   1050 <initialize_XSensor@plt>
xor    %eax,%eax
call   1060 <initialize_XMesh@plt>
xor    %eax,%eax
call   1030 <initialize_Surge@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <initialize_SimpleCmd@plt>

LLVM IR (-O0):
define void @xapps_initialize() {
%1 = call i32 (...) @initialize_XSensor()
%2 = call i32 (...) @initialize_XMesh()
%3 = call i32 (...) @initialize_Surge()
%4 = call i32 (...) @initialize_SimpleCmd()
ret void
}

LLVM IR (-O2):
define void @xapps_initialize() {
%1 = tail call i32 (...) @initialize_XSensor()
%2 = tail call i32 (...) @initialize_XMesh()
%3 = tail call i32 (...) @initialize_Surge()
%4 = tail call i32 (...) @initialize_SimpleCmd()
ret void
}
int testLib3Imp(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @testLib3Imp() {
ret i32 0
}
int unregister_devfreq_cooling_notifier(struct notifier_block *nb) { return 0; }


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

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

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

LLVM IR (-O2):
%struct.notifier_block = type opaque
define i32 @unregister_devfreq_cooling_notifier(%struct.notifier_block* nocapture readnone %0) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void out_of_memory() {
  fprintf(stderr, "Out of memory\n");
  exit(16);
}


x86 assembly (clang, -O0):
<out_of_memory>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x10,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<out_of_memory>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x10,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [15 x i8] c"Out of memory\0A\00"
define void @out_of_memory() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 16)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [15 x i8] c"Out of memory\0A\00"
define void @out_of_memory() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 16)
unreachable
}
int startswith(char *heystack, char *needle) {
  while (*needle != '\0' && *needle == *heystack++)
    needle++;
  return !*needle;
}


x86 assembly (clang, -O0):
<startswith>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x11(%rbp)
je     1142 <startswith+0x42>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
mov    -0x8(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x8(%rbp)
movsbl (%rcx),%ecx
cmp    %ecx,%eax
sete   %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
test   $0x1,%al
jne    1152 <startswith+0x52>
jmp    1163 <startswith+0x63>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    110c <startswith+0xc>
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<startswith>:
mov    (%rsi),%dl
test   %dl,%dl
je     1131 <startswith+0x31>
xor    %eax,%eax
nopl   0x0(%rax,%rax,1)
mov    %edx,%r8d
movzbl (%rdi,%rax,1),%ecx
cmp    %cl,%dl
jne    1128 <startswith+0x28>
movzbl 0x1(%rsi,%rax,1),%edx
add    $0x1,%rax
test   %dl,%dl
jne    1110 <startswith+0x10>
xor    %eax,%eax
cmp    %cl,%r8b
sete   %al
ret
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @startswith(i8* nocapture %0, i8* nocapture %1) {
%3 = load i8, i8* %1
%4 = icmp eq i8 %3, 0
br i1 %4, label %18, label %5
5: ; preds = %2, %11
%6 = phi i8 [ %14, %11 ], [ %3, %2 ]
%7 = phi i8* [ %13, %11 ], [ %1, %2 ]
%8 = phi i8* [ %12, %11 ], [ %0, %2 ]
%9 = load i8, i8* %8
%10 = icmp eq i8 %6, %9
br i1 %10, label %11, label %16
11: ; preds = %5
%12 = getelementptr inbounds i8, i8* %8, i64 1
%13 = getelementptr inbounds i8, i8* %7, i64 1
%14 = load i8, i8* %13
%15 = icmp eq i8 %14, 0
br i1 %15, label %16, label %5
16: ; preds = %11, %5
%17 = zext i1 %10 to i32
br label %18
18: ; preds = %16, %2
%19 = phi i32 [ 1, %2 ], [ %17, %16 ]
ret i32 %19
}