xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ printf(char *, long);
int main(void) {
  signed long number = 2;
  while (number != 0) {
    printf("%d\n", number);
    number = number * 2;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x2,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1153 <main+0x43>
mov    -0x10(%rbp),%rsi
lea    0xec3(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1127 <main+0x17>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    $0x2,%ebx
lea    0xee0(%rip),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
add    %rbx,%rbx
jmp    1120 <main+0x10>

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
br label %1
1: ; preds = %1, %0
%2 = phi i64 [ 2, %0 ], [ %4, %1 ]
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 %2)
%4 = shl nsw i64 %2, 1
br label %1
}
void native_write_msr(unsigned int msr, unsigned low, unsigned high) {
  asm volatile("wrmsr" : : "c"(msr), "a"(low), "d"(high) : "memory");
}


x86 assembly (clang, -O0):
<native_write_msr>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%ecx
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%edx
wrmsr
pop    %rbp
ret

x86 assembly (clang, -O2):
<native_write_msr>:
mov    %esi,%eax
mov    %edi,%ecx
wrmsr
ret

LLVM IR (-O0):
define void @native_write_msr(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
ret void
}

LLVM IR (-O2):
define void @native_write_msr(i32 %0, i32 %1, i32 %2) {
tail call void asm sideeffect "wrmsr", "{cx},{ax},{dx},~{memory},~{dirflag},~{fpsr},~{flags}"(i32 %0, i32 %1, i32 %2)
ret void
}
/* Variables and functions */
scalar_t__ connection_do_io();
scalar_t__ connection_num_connections();
int proto_process(void) {
  do {
    if (connection_do_io() < 0)
      return -1;
  } while (connection_num_connections());
  return 0;
}


x86 assembly (clang, -O0):
<proto_process>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <connection_do_io@plt>
cmp    $0x0,%rax
jge    1145 <proto_process+0x25>
movl   $0xffffffff,-0x4(%rbp)
jmp    1162 <proto_process+0x42>
jmp    114a <proto_process+0x2a>
mov    $0x0,%al
call   1040 <connection_num_connections@plt>
cmp    $0x0,%rax
jne    1128 <proto_process+0x8>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<proto_process>:
push   %rbx
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %eax,%eax
call   1030 <connection_do_io@plt>
test   %rax,%rax
js     114a <proto_process+0x2a>
xor    %eax,%eax
call   1040 <connection_num_connections@plt>
test   %rax,%rax
jne    1130 <proto_process+0x10>
jmp    114f <proto_process+0x2f>
mov    $0xffffffff,%ebx
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @proto_process() {
%1 = alloca i32
br label %2
2: ; preds = %7, %0
%3 = call i64 (...) @connection_do_io()
%4 = icmp slt i64 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %2
store i32 -1, i32* %1
br label %11
6: ; preds = %2
br label %7
7: ; preds = %6
%8 = call i64 (...) @connection_num_connections()
%9 = icmp ne i64 %8, 0
br i1 %9, label %2, label %10
10: ; preds = %7
store i32 0, i32* %1
br label %11
11: ; preds = %10, %5
%12 = load i32, i32* %1
ret i32 %12
}

LLVM IR (-O2):
define i32 @proto_process() {
br label %1
1: ; preds = %4, %0
%2 = tail call i64 (...) @connection_do_io()
%3 = icmp slt i64 %2, 0
br i1 %3, label %7, label %4
4: ; preds = %1
%5 = tail call i64 (...) @connection_num_connections()
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %1
7: ; preds = %4, %1
%8 = phi i32 [ -1, %1 ], [ 0, %4 ]
ret i32 %8
}
void debug_printf(char *fmt, ...) {}


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

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

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

LLVM IR (-O2):
define void @debug_printf(i8* nocapture %0, ...) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ DMX_START;
int ioctl(int, int /*<<< orphan*/);
int dvbdemux_start(int fd) { return ioctl(fd, DMX_START); }


x86 assembly (clang, -O0):
<dvbdemux_start>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    0x2ec3(%rip),%rax
mov    (%rax),%esi
call   1030 <ioctl@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dvbdemux_start>:
mov    0x2ed1(%rip),%rax
mov    (%rax),%esi
jmp    1030 <ioctl@plt>

LLVM IR (-O0):
@DMX_START = global i32 0
define i32 @dvbdemux_start(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* @DMX_START
%5 = call i32 @ioctl(i32 %3, i32 %4)
ret i32 %5
}

LLVM IR (-O2):
@DMX_START = global i32 0
define i32 @dvbdemux_start(i32 %0) {
%2 = load i32, i32* @DMX_START
%3 = tail call i32 @ioctl(i32 %0, i32 %2)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ OS_TaskRegister();
void task_2(void) {
  OS_TaskRegister();
  while (1)
    ;
  return;
}


x86 assembly (clang, -O0):
<task_2>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <OS_TaskRegister@plt>
jmp    111b <task_2+0xb>

x86 assembly (clang, -O2):
<task_2>:
push   %rax
xor    %eax,%eax
call   1030 <OS_TaskRegister@plt>
nopl   0x0(%rax,%rax,1)
jmp    1120 <task_2+0x10>

LLVM IR (-O0):
define void @task_2() {
%1 = call i32 (...) @OS_TaskRegister()
br label %2
2: ; preds = %0, %2
br label %2
}

LLVM IR (-O2):
define void @task_2() {
%1 = tail call i32 (...) @OS_TaskRegister()
br label %2
2: ; preds = %0, %2
br label %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void usage(char *prog_name) {
  printf("usage: %s -n [number] -s [-d]\n", prog_name);
}


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

x86 assembly (clang, -O2):
<usage>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [31 x i8] c"usage: %s -n [number] -s [-d]\0A\00"
define void @usage(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ newbufferedpack_(char *, char *);
int /*<<< orphan*/ rename(char *, char *);
int save_index() {
  rename("/settings/sphinx.conf", "/index/zsphinx.conf");
  newbufferedpack_("/dev/output", "/index");
  return 0;
}


x86 assembly (clang, -O0):
<save_index>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xee4(%rip),%rsi
call   1040 <rename@plt>
lea    0xeec(%rip),%rdi
lea    0xef1(%rip),%rsi
call   1030 <newbufferedpack_@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<save_index>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0xee7(%rip),%rsi
call   1040 <rename@plt>
lea    0xeef(%rip),%rdi
lea    0xef4(%rip),%rsi
call   1030 <newbufferedpack_@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [22 x i8] c"/settings/sphinx.conf\00"
@.str.1 = [20 x i8] c"/index/zsphinx.conf\00"
@.str.2 = [12 x i8] c"/dev/output\00"
@.str.3 = [7 x i8] c"/index\00"
define i32 @save_index() {
%1 = call i32 @rename(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @newbufferedpack_(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [22 x i8] c"/settings/sphinx.conf\00"
@.str.1 = [20 x i8] c"/index/zsphinx.conf\00"
@.str.2 = [12 x i8] c"/dev/output\00"
@.str.3 = [7 x i8] c"/index\00"
define i32 @save_index() {
%1 = tail call i32 @rename(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @newbufferedpack_(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}
/* Type definitions */
struct location {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ shm_free(struct location *);
void free_location(struct location *loc) { shm_free(loc); }


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

x86 assembly (clang, -O2):
<free_location>:
jmp    1030 <shm_free@plt>

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

LLVM IR (-O2):
%struct.location = type { i32 }
define void @free_location(%struct.location* %0) {
%2 = tail call i32 @shm_free(%struct.location* %0)
ret void
}
/* Variables and functions */
#define AF_INET 128
int /*<<< orphan*/ EAFNOSUPPORT;
int /*<<< orphan*/ errno;
int inet_net_pton_ipv4(char const *, void *, size_t);
int inet_net_pton(int af, const char *pres, void *netp, size_t nsize) {
  switch (af) {
  case AF_INET:
    return inet_net_pton_ipv4(pres, netp, nsize);
  default:
    errno = EAFNOSUPPORT;
    return -1;
  }
}


x86 assembly (clang, -O0):
<inet_net_pton>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%eax
sub    $0x80,%eax
jne    1153 <inet_net_pton+0x43>
jmp    113a <inet_net_pton+0x2a>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1030 <inet_net_pton_ipv4@plt>
mov    %eax,-0x4(%rbp)
jmp    116c <inet_net_pton+0x5c>
mov    0x2e7e(%rip),%rax
mov    (%rax),%ecx
mov    0x2e7d(%rip),%rax
mov    %ecx,(%rax)
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<inet_net_pton>:
cmp    $0x80,%edi
jne    1126 <inet_net_pton+0x16>
mov    %rsi,%rdi
mov    %rdx,%rsi
mov    %rcx,%rdx
jmp    1030 <inet_net_pton_ipv4@plt>
mov    0x2eab(%rip),%rax
mov    (%rax),%eax
mov    0x2eaa(%rip),%rcx
mov    %eax,(%rcx)
mov    $0xffffffff,%eax
ret

LLVM IR (-O0):
@EAFNOSUPPORT = global i32 0
@errno = global i32 0
define i32 @inet_net_pton(i32 %0, i8* %1, i8* %2, i64 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i64
store i32 %0, i32* %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i64 %3, i64* %9
%10 = load i32, i32* %6
switch i32 %10, label %16 [
i32 128, label %11
]
11: ; preds = %4
%12 = load i8*, i8** %7
%13 = load i8*, i8** %8
%14 = load i64, i64* %9
%15 = call i32 @inet_net_pton_ipv4(i8* %12, i8* %13, i64 %14)
store i32 %15, i32* %5
br label %18
16: ; preds = %4
%17 = load i32, i32* @EAFNOSUPPORT
store i32 %17, i32* @errno
store i32 -1, i32* %5
br label %18
18: ; preds = %16, %11
%19 = load i32, i32* %5
ret i32 %19
}

LLVM IR (-O2):
@EAFNOSUPPORT = global i32 0
@errno = global i32 0
define i32 @inet_net_pton(i32 %0, i8* %1, i8* %2, i64 %3) {
%5 = icmp eq i32 %0, 128
br i1 %5, label %6, label %8
6: ; preds = %4
%7 = tail call i32 @inet_net_pton_ipv4(i8* %1, i8* %2, i64 %3)
br label %10
8: ; preds = %4
%9 = load i32, i32* @EAFNOSUPPORT
store i32 %9, i32* @errno
br label %10
10: ; preds = %8, %6
%11 = phi i32 [ %7, %6 ], [ -1, %8 ]
ret i32 %11
}
int isNumChecker(char is_num) {
  if ((is_num >= '0') && (is_num <= '9'))
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<isNumChecker>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x30,%eax
jl     1130 <isNumChecker+0x30>
movsbl -0x5(%rbp),%eax
cmp    $0x39,%eax
jg     1130 <isNumChecker+0x30>
movl   $0x1,-0x4(%rbp)
jmp    1137 <isNumChecker+0x37>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isNumChecker>:
add    $0xd0,%dil
xor    %eax,%eax
cmp    $0xa,%dil
setb   %al
ret

LLVM IR (-O0):
define i32 @isNumChecker(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
%6 = icmp sge i32 %5, 48
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load i8, i8* %3
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 57
br i1 %10, label %11, label %12
11: ; preds = %7
store i32 1, i32* %2
br label %13
12: ; preds = %7, %1
store i32 0, i32* %2
br label %13
13: ; preds = %12, %11
%14 = load i32, i32* %2
ret i32 %14
}

LLVM IR (-O2):
define i32 @isNumChecker(i8 signext %0) {
%2 = add i8 %0, -48
%3 = icmp ult i8 %2, 10
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Variables and functions */
int f350(int *);
int f351(int *p) { return f350(p); }


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

x86 assembly (clang, -O2):
<f351>:
jmp    1030 <f350@plt>

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

LLVM IR (-O2):
define i32 @f351(i32* %0) {
%2 = tail call i32 @f350(i32* %0)
ret i32 %2
}
/* Type definitions */
typedef scalar_t__ uint32_t;

/* Variables and functions */
scalar_t__ malloc(int);
uint32_t alloc_untraced(uint32_t value, uint32_t context_len) {
  uint32_t ptr;
  ptr = (uint32_t)malloc(2 * sizeof(uint32_t));
  *(uint32_t *)ptr = 0;
  *((uint32_t *)ptr + 1) = value;
  return ptr;
}


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

x86 assembly (clang, -O2):
<alloc_untraced>:
push   %rbx
mov    %rdi,%rbx
mov    $0x10,%edi
call   1030 <malloc@plt>
movq   $0x0,(%rax)
mov    %rbx,0x8(%rax)
pop    %rbx
ret

LLVM IR (-O0):
define i64 @alloc_untraced(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%6 = call i64 @malloc(i32 16)
store i64 %6, i64* %5
%7 = load i64, i64* %5
%8 = inttoptr i64 %7 to i64*
store i64 0, i64* %8
%9 = load i64, i64* %3
%10 = load i64, i64* %5
%11 = inttoptr i64 %10 to i64*
%12 = getelementptr inbounds i64, i64* %11, i64 1
store i64 %9, i64* %12
%13 = load i64, i64* %5
ret i64 %13
}

LLVM IR (-O2):
define i64 @alloc_untraced(i64 %0, i64 %1) {
%3 = tail call i64 @malloc(i32 16)
%4 = inttoptr i64 %3 to i64*
store i64 0, i64* %4
%5 = getelementptr inbounds i64, i64* %4, i64 1
store i64 %0, i64* %5
ret i64 %3
}
void gtk_tool_button_get_label_widget() {}


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

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

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

LLVM IR (-O2):
define void @gtk_tool_button_get_label_widget() {
ret void
}
/* Variables and functions */
#define AF_INET 128
int /*<<< orphan*/ EAFNOSUPPORT;
int /*<<< orphan*/ errno;
char *inet_net_ntop_ipv4(void const *, int, char *, size_t);
char *inet_net_ntop(int af, const void *src, int bits, char *dst, size_t size) {
  switch (af) {
  case AF_INET:
    return (inet_net_ntop_ipv4(src, bits, dst, size));
  default:
    errno = EAFNOSUPPORT;
    return (NULL);
  }
}


x86 assembly (clang, -O0):
<inet_net_ntop>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0xc(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    -0xc(%rbp),%eax
sub    $0x80,%eax
jne    115a <inet_net_ntop+0x4a>
jmp    113d <inet_net_ntop+0x2d>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x28(%rbp),%rdx
mov    -0x30(%rbp),%rcx
call   1030 <inet_net_ntop_ipv4@plt>
mov    %rax,-0x8(%rbp)
jmp    1174 <inet_net_ntop+0x64>
mov    0x2e77(%rip),%rax
mov    (%rax),%ecx
mov    0x2e76(%rip),%rax
mov    %ecx,(%rax)
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<inet_net_ntop>:
cmp    $0x80,%edi
jne    1128 <inet_net_ntop+0x18>
mov    %rsi,%rdi
mov    %edx,%esi
mov    %rcx,%rdx
mov    %r8,%rcx
jmp    1030 <inet_net_ntop_ipv4@plt>
mov    0x2ea9(%rip),%rax
mov    (%rax),%eax
mov    0x2ea8(%rip),%rcx
mov    %eax,(%rcx)
xor    %eax,%eax
ret

LLVM IR (-O0):
@EAFNOSUPPORT = global i32 0
@errno = global i32 0
define i8* @inet_net_ntop(i32 %0, i8* %1, i32 %2, i8* %3, i64 %4) {
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i64
store i32 %0, i32* %7
store i8* %1, i8** %8
store i32 %2, i32* %9
store i8* %3, i8** %10
store i64 %4, i64* %11
%12 = load i32, i32* %7
switch i32 %12, label %19 [
i32 128, label %13
]
13: ; preds = %5
%14 = load i8*, i8** %8
%15 = load i32, i32* %9
%16 = load i8*, i8** %10
%17 = load i64, i64* %11
%18 = call i8* @inet_net_ntop_ipv4(i8* %14, i32 %15, i8* %16, i64 %17)
store i8* %18, i8** %6
br label %21
19: ; preds = %5
%20 = load i32, i32* @EAFNOSUPPORT
store i32 %20, i32* @errno
store i8* null, i8** %6
br label %21
21: ; preds = %19, %13
%22 = load i8*, i8** %6
ret i8* %22
}

LLVM IR (-O2):
@EAFNOSUPPORT = global i32 0
@errno = global i32 0
define i8* @inet_net_ntop(i32 %0, i8* %1, i32 %2, i8* %3, i64 %4) {
%6 = icmp eq i32 %0, 128
br i1 %6, label %7, label %9
7: ; preds = %5
%8 = tail call i8* @inet_net_ntop_ipv4(i8* %1, i32 %2, i8* %3, i64 %4)
br label %11
9: ; preds = %5
%10 = load i32, i32* @EAFNOSUPPORT
store i32 %10, i32* @errno
br label %11
11: ; preds = %9, %7
%12 = phi i8* [ %8, %7 ], [ null, %9 ]
ret i8* %12
}
/* Variables and functions */
int _ada_use_c2phc(int, int *, int *, double *, int /*<<< orphan*/);
int determine_output_during_continuation(void) {
  int *a, *b, fail;
  double *c;
  fail = _ada_use_c2phc(71, a, b, c, 0);
  return fail;
}


x86 assembly (clang, -O0):
<determine_output_during_continuation>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    $0x47,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<determine_output_during_continuation>:
mov    $0x47,%edi
xor    %r8d,%r8d
jmp    1030 <_ada_use_c2phc@plt>

LLVM IR (-O0):
define i32 @determine_output_during_continuation() {
%1 = alloca i32*
%2 = alloca i32*
%3 = alloca i32
%4 = alloca double*
%5 = load i32*, i32** %1
%6 = load i32*, i32** %2
%7 = load double*, double** %4
%8 = call i32 @_ada_use_c2phc(i32 71, i32* %5, i32* %6, double* %7, i32 0)
store i32 %8, i32* %3
%9 = load i32, i32* %3
ret i32 %9
}

LLVM IR (-O2):
define i32 @determine_output_during_continuation() {
%1 = tail call i32 @_ada_use_c2phc(i32 71, i32* undef, i32* undef, double* undef, i32 0)
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ assume(int);
int main() {
  int x;
  int y;
  assume(x == 1 && y == 1);
  while (1) {
    x = x + y;
    y = x;
    assert(y >= 1);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
cmpl   $0x1,-0x8(%rbp)
mov    %al,-0xd(%rbp)
jne    1148 <main+0x28>
cmpl   $0x1,-0xc(%rbp)
sete   %al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assume@plt>
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x1,-0xc(%rbp)
setge  %al
and    $0x1,%al
mov    %al,-0xe(%rbp)
movzbl %al,%edi
call   1030 <assert@plt>
jmp    1155 <main+0x35>

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %edi,%edi
call   1040 <assume@plt>
nopl   0x0(%rax,%rax,1)
lea    (%rax,%rax,1),%ebx
xor    %edi,%edi
test   %eax,%eax
setg   %dil
call   1030 <assert@plt>
mov    %ebx,%eax
jmp    1130 <main+0x10>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = load i32, i32* %2
%5 = icmp eq i32 %4, 1
br i1 %5, label %6, label %9
6: ; preds = %0
%7 = load i32, i32* %3
%8 = icmp eq i32 %7, 1
br label %9
9: ; preds = %6, %0
%10 = phi i1 [ false, %0 ], [ %8, %6 ]
%11 = zext i1 %10 to i32
%12 = call i32 @assume(i32 %11)
br label %13
13: ; preds = %9, %13
%14 = load i32, i32* %2
%15 = load i32, i32* %3
%16 = add nsw i32 %14, %15
store i32 %16, i32* %2
%17 = load i32, i32* %2
store i32 %17, i32* %3
%18 = load i32, i32* %3
%19 = icmp sge i32 %18, 1
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 %20)
br label %13
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @assume(i32 0)
br label %2
2: ; preds = %2, %0
%3 = phi i32 [ undef, %0 ], [ %4, %2 ]
%4 = shl nsw i32 %3, 1
%5 = icmp sgt i32 %3, 0
%6 = zext i1 %5 to i32
%7 = tail call i32 @assert(i32 %6)
br label %2
}
/* Variables and functions */
int /*<<< orphan*/ putchar(int);
void xprompt(int c) { putchar(c); }


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

x86 assembly (clang, -O2):
<xprompt>:
jmp    1030 <putchar@plt>

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

LLVM IR (-O2):
define void @xprompt(i32 %0) {
%2 = tail call i32 @putchar(i32 %0)
ret void
}
int fibonacci(int n) {
  if (n == 0) {
    return 0;
  } else if (n == 1) {
    return 1;
  } else {
    return fibonacci(n - 1) + fibonacci(n - 2);
  }
}


x86 assembly (clang, -O0):
<fibonacci>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    1131 <fibonacci+0x21>
movl   $0x0,-0x4(%rbp)
jmp    116a <fibonacci+0x5a>
cmpl   $0x1,-0x8(%rbp)
jne    1147 <fibonacci+0x37>
movl   $0x1,-0x4(%rbp)
jmp    116a <fibonacci+0x5a>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
call   1030 <fibonacci@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%edi
sub    $0x2,%edi
call   1030 <fibonacci@plt>
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fibonacci>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebx
xor    %ebp,%ebp
cmp    $0x2,%ebx
jb     1132 <fibonacci+0x22>
nopl   0x0(%rax)
lea    -0x1(%rbx),%edi
call   1030 <fibonacci@plt>
add    %eax,%ebp
add    $0xfffffffe,%ebx
cmp    $0x2,%ebx
jae    1120 <fibonacci+0x10>
add    %ebp,%ebx
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @fibonacci(i32 %0) {
br label %2
2: ; preds = %6, %1
%3 = phi i32 [ 0, %1 ], [ %10, %6 ]
%4 = phi i32 [ %0, %1 ], [ %9, %6 ]
%5 = icmp ult i32 %4, 2
br i1 %5, label %11, label %6
6: ; preds = %2
%7 = add nsw i32 %4, -1
%8 = tail call i32 @fibonacci(i32 %7)
%9 = add nsw i32 %4, -2
%10 = add nsw i32 %8, %3
br label %2
11: ; preds = %2
%12 = add nsw i32 %4, %3
ret i32 %12
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int strspn(char *, char *);
int main() {
  assert(strspn("foo:bar:", ":=b") == 0);
  assert(strspn("foo:bar:", ":=of") == 4);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    0xecc(%rip),%rsi
call   1030 <strspn@plt>
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
lea    0xea7(%rip),%rdi
lea    0xead(%rip),%rsi
call   1030 <strspn@plt>
cmp    $0x4,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [9 x i8] c"foo:bar:\00"
@.str.1 = [4 x i8] c":=b\00"
@.str.2 = [5 x i8] c":=of\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @strspn(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%3 = icmp eq i32 %2, 0
%4 = zext i1 %3 to i32
%5 = call i32 @assert(i32 %4)
%6 = call i32 @strspn(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%7 = icmp eq i32 %6, 4
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 %8)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @assert(i32 1)
%2 = tail call i32 @assert(i32 1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  fprintf(stderr, "usage: cat [-belnstuv] [file ...]\n");
  exit(1);
}


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

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

LLVM IR (-O0):
@stderr = global i32 0
@.str = [35 x i8] c"usage: cat [-belnstuv] [file ...]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [35 x i8] c"usage: cat [-belnstuv] [file ...]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}
unsigned long int unsignedlongint_id(unsigned long int x) { return x; }


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

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

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

LLVM IR (-O2):
define i64 @unsignedlongint_id(i64 returned %0) {
ret i64 %0
}
void ptrace_sandbox_permit_seek(struct pt_sandbox *p_sandbox) {
  (void)p_sandbox;
}


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

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

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

LLVM IR (-O2):
%struct.pt_sandbox = type opaque
define void @ptrace_sandbox_permit_seek(%struct.pt_sandbox* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ f(int);
int main() {
  f(9);
  f(10);
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x9,%edi
call   1030 <f@plt>
mov    $0xa,%edi
call   1030 <f@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @f(i32 9)
%2 = tail call i32 @f(i32 10)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ print_dashed_name_to_string(char *, char const *,
                                               size_t const, size_t const);
int /*<<< orphan*/ printf(char *, char *);
void print_dashed_name(const char *name, const size_t name_len,
                       const size_t line_len) {
  char line[120];
  print_dashed_name_to_string(line, name, name_len, line_len);
  printf("%s\r\n", line);
}


x86 assembly (clang, -O0):
<print_dashed_name>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
lea    -0x90(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
call   1040 <print_dashed_name_to_string@plt>
lea    -0x90(%rbp),%rsi
lea    0xea3(%rip),%rdi
call   1030 <printf@plt>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_dashed_name>:
push   %rbx
sub    $0x80,%rsp
mov    %rdx,%rcx
mov    %rsi,%rdx
mov    %rdi,%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1040 <print_dashed_name_to_string@plt>
lea    0xebd(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
add    $0x80,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%s\0D\0A\00"
define void @print_dashed_name(i8* %0, i64 %1, i64 %2) {
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i64
%7 = alloca [120 x i8]
store i8* %0, i8** %4
store i64 %1, i64* %5
store i64 %2, i64* %6
%8 = getelementptr inbounds [120 x i8], [120 x i8]* %7, i64 0, i64 0
%9 = load i8*, i8** %4
%10 = load i64, i64* %5
%11 = load i64, i64* %6
%12 = call i32 @print_dashed_name_to_string(i8* %8, i8* %9, i64 %10, i64 %11)
%13 = getelementptr inbounds [120 x i8], [120 x i8]* %7, i64 0, i64 0
%14 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %13)
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"%s\0D\0A\00"
define void @print_dashed_name(i8* %0, i64 %1, i64 %2) {
%4 = alloca [120 x i8]
%5 = getelementptr inbounds [120 x i8], [120 x i8]* %4, i64 0, i64 0
%6 = call i32 @print_dashed_name_to_string(i8* %5, i8* %0, i64 %1, i64 %2)
%7 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %5)
ret void
}
/* Variables and functions */
int EXIT_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ S_IFIFO;
scalar_t__ mknod(char *, int /*<<< orphan*/, int /*<<< orphan*/);
int main(void) {
  if (0 > mknod("arnold.layne.fifo", S_IFIFO, 0))
    return EXIT_FAILURE;
  else
    return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2eaa(%rip),%rax
mov    (%rax),%esi
lea    0xed1(%rip),%rdi
xor    %edx,%edx
call   1030 <mknod@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jle    1155 <main+0x45>
mov    0x2e95(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1161 <main+0x51>
mov    0x2e7c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%esi
lea    0xedf(%rip),%rdi
xor    %edx,%edx
call   1030 <mknod@plt>
test   %rax,%rax
jns    1136 <main+0x26>
mov    0x2eac(%rip),%rax
jmp    113d <main+0x2d>
mov    0x2e9b(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [18 x i8] c"arnold.layne.fifo\00"
@S_IFIFO = global i32 0
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @S_IFIFO
%3 = call i64 @mknod(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %2, i32 0)
%4 = icmp sgt i64 0, %3
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = load i32, i32* @EXIT_FAILURE
store i32 %6, i32* %1
br label %9
7: ; preds = %0
%8 = load i32, i32* @EXIT_SUCCESS
store i32 %8, i32* %1
br label %9
9: ; preds = %7, %5
%10 = load i32, i32* %1
ret i32 %10
}

LLVM IR (-O2):
@.str = [18 x i8] c"arnold.layne.fifo\00"
@S_IFIFO = global i32 0
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = load i32, i32* @S_IFIFO
%2 = tail call i64 @mknod(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %1, i32 0)
%3 = icmp slt i64 %2, 0
%4 = load i32, i32* @EXIT_FAILURE
%5 = load i32, i32* @EXIT_SUCCESS
%6 = select i1 %3, i32 %4, i32 %5
ret i32 %6
}
/* Variables and functions */
long time(int /*<<< orphan*/);
long gnat_time() { return time(0); }


x86 assembly (clang, -O0):
<gnat_time>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <time@plt>
pop    %rbp
ret

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

LLVM IR (-O0):
define i64 @gnat_time() {
%1 = call i64 @time(i32 0)
ret i64 %1
}

LLVM IR (-O2):
define i64 @gnat_time() {
%1 = tail call i64 @time(i32 0)
ret i64 %1
}
/* Variables and functions */
scalar_t__ ceil(int /*<<< orphan*/);
unsigned int find_minimum_memory_amount(unsigned int, unsigned int);
int /*<<< orphan*/ log2(unsigned int);
scalar_t__ pow(int, unsigned int);
unsigned int find_minimum_binary_memory_amount(unsigned int _bbs,
                                               unsigned int _length) {
  unsigned int minimum_memory_amount =
      find_minimum_memory_amount(_bbs, _length);
  unsigned int exponent_amount =
      (unsigned)(int)(ceil(log2(minimum_memory_amount)));
  return (unsigned int)(int)(pow(2, exponent_amount));
}


x86 assembly (clang, -O0):
<find_minimum_binary_memory_amount>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1050 <find_minimum_memory_amount@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <log2@plt>
mov    %eax,%edi
call   1040 <ceil@plt>
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%esi
mov    $0x2,%edi
call   1060 <pow@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<find_minimum_binary_memory_amount>:
push   %rax
call   1050 <find_minimum_memory_amount@plt>
mov    %eax,%edi
call   1030 <log2@plt>
mov    %eax,%edi
call   1040 <ceil@plt>
mov    $0x2,%edi
mov    %eax,%esi
pop    %rax
jmp    1060 <pow@plt>

LLVM IR (-O0):
define i32 @find_minimum_binary_memory_amount(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%7 = load i32, i32* %3
%8 = load i32, i32* %4
%9 = call i32 @find_minimum_memory_amount(i32 %7, i32 %8)
store i32 %9, i32* %5
%10 = load i32, i32* %5
%11 = call i32 @log2(i32 %10)
%12 = call i64 @ceil(i32 %11)
%13 = trunc i64 %12 to i32
store i32 %13, i32* %6
%14 = load i32, i32* %6
%15 = call i64 @pow(i32 2, i32 %14)
%16 = trunc i64 %15 to i32
ret i32 %16
}

LLVM IR (-O2):
define i32 @find_minimum_binary_memory_amount(i32 %0, i32 %1) {
%3 = tail call i32 @find_minimum_memory_amount(i32 %0, i32 %1)
%4 = tail call i32 @log2(i32 %3)
%5 = tail call i64 @ceil(i32 %4)
%6 = trunc i64 %5 to i32
%7 = tail call i64 @pow(i32 2, i32 %6)
%8 = trunc i64 %7 to i32
ret i32 %8
}
/* Type definitions */
struct queue {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct queue *);
void deleteQueue(struct queue *queue) { free(queue); }


x86 assembly (clang, -O0):
<deleteQueue>:
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):
<deleteQueue>:
jmp    1030 <free@plt>

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

LLVM IR (-O2):
%struct.queue = type { i32 }
define void @deleteQueue(%struct.queue* nocapture %0) {
%2 = tail call i32 @free(%struct.queue* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ system(char *);
int main() {
  system("./../../../../../../Files/66.sh");
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [32 x i8] c"./../../../../../../Files/66.sh\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @system(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [32 x i8] c"./../../../../../../Files/66.sh\00"
define i32 @main() {
%1 = tail call i32 @system(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ CPD(int);
int /*<<< orphan*/ T_WAIT_UNTIL(int);
void op_ED_0xa9(void) {
  CPD(4);
  T_WAIT_UNTIL(12);
  return;
}


x86 assembly (clang, -O0):
<op_ED_0xa9>:
push   %rbp
mov    %rsp,%rbp
mov    $0x4,%edi
call   1030 <CPD@plt>
mov    $0xc,%edi
call   1040 <T_WAIT_UNTIL@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<op_ED_0xa9>:
push   %rax
mov    $0x4,%edi
call   1030 <CPD@plt>
mov    $0xc,%edi
pop    %rax
jmp    1040 <T_WAIT_UNTIL@plt>

LLVM IR (-O0):
define void @op_ED_0xa9() {
%1 = call i32 @CPD(i32 4)
%2 = call i32 @T_WAIT_UNTIL(i32 12)
ret void
}

LLVM IR (-O2):
define void @op_ED_0xa9() {
%1 = tail call i32 @CPD(i32 4)
%2 = tail call i32 @T_WAIT_UNTIL(i32 12)
ret void
}
/* Type definitions */
struct crypto_backend {
  int dummy;
};

/* Variables and functions */
struct crypto_backend *crypto_libgcrypt_init(void) {
  return NULL;
}


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

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

LLVM IR (-O0):
%struct.crypto_backend = type { i32 }
define %struct.crypto_backend* @crypto_libgcrypt_init() {
ret %struct.crypto_backend* null
}

LLVM IR (-O2):
%struct.crypto_backend = type { i32 }
define noalias %struct.crypto_backend* @crypto_libgcrypt_init() {
ret %struct.crypto_backend* null
}
void d2i_OCSP_RESPONSE(void) {}


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

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

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

LLVM IR (-O2):
define void @d2i_OCSP_RESPONSE() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char);
void hexchar(int x) {
  if (x < 10)
    printf("%d", x);
  else
    printf("%c", 'A' + x - 10);
}


x86 assembly (clang, -O0):
<hexchar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0xa,-0x4(%rbp)
jge    113c <hexchar+0x2c>
mov    -0x4(%rbp),%eax
lea    0xed1(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
jmp    1154 <hexchar+0x44>
mov    -0x4(%rbp),%eax
add    $0x41,%eax
sub    $0xa,%eax
lea    0xeb7(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hexchar>:
cmp    $0x9,%edi
jg     1125 <hexchar+0x15>
movsbl %dil,%esi
lea    0xee0(%rip),%rdi
jmp    1030 <printf@plt>
add    $0x37,%dil
movsbl %dil,%esi
lea    0xecf(%rip),%rdi
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"%c\00"
define void @hexchar(i32 %0) {
%2 = icmp slt i32 %0, 10
%3 = trunc i32 %0 to i8
br i1 %2, label %4, label %6
4: ; preds = %1
%5 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %3)
br label %9
6: ; preds = %1
%7 = add i8 %3, 55
%8 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8 signext %7)
br label %9
9: ; preds = %6, %4
ret void
}
const char *__malidrv_build_info(void) {
  return "malidrv:  API_VERSION=600 REPO_URL=heads/odroid-3.8.y "
         "REVISION=-ddfddf8 CHANGED_REVISION=ddfddf8 CHANGE_DATE=2015-11-05 "
         "18:36:24 -0200 BUILD_DATE=Mi 25. Nov 16:48:29 CET 2015 BUILD=release "
         "TARGET_PLATFORM= MALI_PLATFORM= KDIR= "
         "OS_MEMORY_KERNEL_BUFFER_SIZE_IN_MB=16 USING_UMP= USING_PROFILING= "
         "USING_INTERNAL_PROFILING= USING_GPU_UTILIZATION=0 USING_DVFS= "
         "MALI_UPPER_HALF_SCHEDULING=1";
}


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

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

LLVM IR (-O0):
@.str = [384 x i8] c"malidrv: API_VERSION=600 REPO_URL=heads/odroid-3.8.y REVISION=-ddfddf8 CHANGED_REVISION=ddfddf8 CHANGE_DATE=2015-11-05 18:36:24 -0200 BUILD_DATE=Mi 25. Nov 16:48:29 CET 2015 BUILD=release TARGET_PLATFORM= MALI_PLATFORM= KDIR= OS_MEMORY_KERNEL_BUFFER_SIZE_IN_MB=16 USING_UMP= USING_PROFILING= USING_INTERNAL_PROFILING= USING_GPU_UTILIZATION=0 USING_DVFS= MALI_UPPER_HALF_SCHEDULING=1\00"
define i8* @__malidrv_build_info() {
ret i8* getelementptr inbounds ([384 x i8], [384 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [384 x i8] c"malidrv: API_VERSION=600 REPO_URL=heads/odroid-3.8.y REVISION=-ddfddf8 CHANGED_REVISION=ddfddf8 CHANGE_DATE=2015-11-05 18:36:24 -0200 BUILD_DATE=Mi 25. Nov 16:48:29 CET 2015 BUILD=release TARGET_PLATFORM= MALI_PLATFORM= KDIR= OS_MEMORY_KERNEL_BUFFER_SIZE_IN_MB=16 USING_UMP= USING_PROFILING= USING_INTERNAL_PROFILING= USING_GPU_UTILIZATION=0 USING_DVFS= MALI_UPPER_HALF_SCHEDULING=1\00"
define i8* @__malidrv_build_info() {
ret i8* getelementptr inbounds ([384 x i8], [384 x i8]* @.str, i64 0, i64 0)
}
/* Type definitions */
typedef int val;
typedef int uint8_t;
typedef int uint16_t;

/* Variables and functions */
void put16bit(uint8_t **ptr, uint16_t val) {
  (*ptr)[0] = ((val) >> 8) & 0xFF;
  (*ptr)[1] = (val)&0xFF;
  (*ptr) += 2;
}


x86 assembly (clang, -O0):
<put16bit>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%ecx
sar    $0x8,%ecx
and    $0xff,%ecx
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %ecx,(%rax)
mov    -0xc(%rbp),%ecx
and    $0xff,%ecx
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %ecx,0x4(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
add    $0x8,%rcx
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<put16bit>:
mov    %esi,%eax
movzbl %ah,%ecx
mov    (%rdi),%rdx
mov    %ecx,(%rdx)
movzbl %al,%eax
mov    %eax,0x4(%rdx)
add    $0x8,%rdx
mov    %rdx,(%rdi)
ret

LLVM IR (-O0):
define void @put16bit(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 = ashr i32 %5, 8
%7 = and i32 %6, 255
%8 = load i32**, i32*** %3
%9 = load i32*, i32** %8
%10 = getelementptr inbounds i32, i32* %9, i64 0
store i32 %7, i32* %10
%11 = load i32, i32* %4
%12 = and i32 %11, 255
%13 = load i32**, i32*** %3
%14 = load i32*, i32** %13
%15 = getelementptr inbounds i32, i32* %14, i64 1
store i32 %12, i32* %15
%16 = load i32**, i32*** %3
%17 = load i32*, i32** %16
%18 = getelementptr inbounds i32, i32* %17, i64 2
store i32* %18, i32** %16
ret void
}

LLVM IR (-O2):
define void @put16bit(i32** nocapture %0, i32 %1) {
%3 = lshr i32 %1, 8
%4 = and i32 %3, 255
%5 = load i32*, i32** %0
store i32 %4, i32* %5
%6 = and i32 %1, 255
%7 = getelementptr inbounds i32, i32* %5, i64 1
store i32 %6, i32* %7
%8 = getelementptr inbounds i32, i32* %5, i64 2
store i32* %8, i32** %0
ret void
}
int Memcmp(char *a, char *b, int count) {
  while (count--)
    if (*a++ != *b++)
      return (0);
  return (1);
}


x86 assembly (clang, -O0):
<Memcmp>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x1c(%rbp)
cmp    $0x0,%eax
je     1160 <Memcmp+0x60>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movsbl (%rax),%eax
mov    -0x18(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x18(%rbp)
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     115b <Memcmp+0x5b>
movl   $0x0,-0x4(%rbp)
jmp    1167 <Memcmp+0x67>
jmp    110f <Memcmp+0xf>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<Memcmp>:
mov    %edx,%r8d
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nop
cmp    %ecx,%r8d
je     1128 <Memcmp+0x28>
movzbl (%rdi,%rcx,1),%edx
lea    0x1(%rcx),%rax
cmp    (%rsi,%rcx,1),%dl
mov    %rax,%rcx
je     1110 <Memcmp+0x10>
xor    %eax,%eax
ret
mov    $0x1,%eax
ret

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

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