xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ RVS_Ipoint(int);
int /*<<< orphan*/ explosion(unsigned int, int /*<<< orphan*/,
                             int /*<<< orphan*/);
unsigned int loopN2(unsigned int);
void run_major_test_loop(unsigned count) {
  unsigned rc;
  RVS_Ipoint(20);
  rc = loopN2(count);
  RVS_Ipoint(21);
  if (rc != 0) {
    explosion(rc, ~0, ~0);
  }
}


x86 assembly (clang, -O0):
<run_major_test_loop>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x14,%edi
call   1040 <RVS_Ipoint@plt>
mov    -0x4(%rbp),%edi
call   1030 <loopN2@plt>
mov    %eax,-0x8(%rbp)
mov    $0x15,%edi
call   1040 <RVS_Ipoint@plt>
cmpl   $0x0,-0x8(%rbp)
je     1173 <run_major_test_loop+0x43>
mov    -0x8(%rbp),%edi
mov    $0xffffffff,%edx
mov    %edx,%esi
call   1050 <explosion@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<run_major_test_loop>:
push   %rbx
mov    %edi,%ebx
mov    $0x14,%edi
call   1040 <RVS_Ipoint@plt>
mov    %ebx,%edi
call   1030 <loopN2@plt>
mov    %eax,%ebx
mov    $0x15,%edi
call   1040 <RVS_Ipoint@plt>
test   %ebx,%ebx
je     1166 <run_major_test_loop+0x36>
mov    %ebx,%edi
mov    $0xffffffff,%esi
mov    $0xffffffff,%edx
pop    %rbx
jmp    1050 <explosion@plt>
pop    %rbx
ret

LLVM IR (-O0):
define void @run_major_test_loop(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = call i32 @RVS_Ipoint(i32 20)
%5 = load i32, i32* %2
%6 = call i32 @loopN2(i32 %5)
store i32 %6, i32* %3
%7 = call i32 @RVS_Ipoint(i32 21)
%8 = load i32, i32* %3
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load i32, i32* %3
%12 = call i32 @explosion(i32 %11, i32 -1, i32 -1)
br label %13
13: ; preds = %10, %1
ret void
}

LLVM IR (-O2):
define void @run_major_test_loop(i32 %0) {
%2 = tail call i32 @RVS_Ipoint(i32 20)
%3 = tail call i32 @loopN2(i32 %0)
%4 = tail call i32 @RVS_Ipoint(i32 21)
%5 = icmp eq i32 %3, 0
br i1 %5, label %8, label %6
6: ; preds = %1
%7 = tail call i32 @explosion(i32 %3, i32 -1, i32 -1)
br label %8
8: ; preds = %6, %1
ret void
}
void _M2_Assertion_finish(__attribute__((unused)) int argc,
                          __attribute__((unused)) char *argv[]) {}


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

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

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

LLVM IR (-O2):
define void @_M2_Assertion_finish(i32 %0, i8** nocapture %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void print_preamble_nibbles(int count) {
  int i;
  for (i = 0; i < count; i++)
    printf("1010");
}


x86 assembly (clang, -O0):
<print_preamble_nibbles>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1148 <print_preamble_nibbles+0x38>
lea    0xecb(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1122 <print_preamble_nibbles+0x12>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_preamble_nibbles>:
push   %r14
push   %rbx
push   %rax
test   %edi,%edi
jle    113d <print_preamble_nibbles+0x2d>
mov    %edi,%ebx
lea    0xedf(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
call   1030 <printf@plt>
add    $0xffffffff,%ebx
jne    1130 <print_preamble_nibbles+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c"1010\00"
define void @print_preamble_nibbles(i32 %0) {
%2 = icmp sgt i32 %0, 0
br i1 %2, label %3, label %8
3: ; preds = %1, %3
%4 = phi i32 [ %6, %3 ], [ 0, %1 ]
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%6 = add nuw nsw i32 %4, 1
%7 = icmp eq i32 %6, %0
br i1 %7, label %8, label %3
8: ; preds = %3, %1
ret void
}
/* Variables and functions */
scalar_t__ strcmp(char const *, char *);
int is_fs_bootable(const char *part_type, const char *fs) {
  if (strcmp(fs, "freebsd-ufs") == 0)
    return (1);
  return (0);
}


x86 assembly (clang, -O0):
<is_fs_bootable>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xed5(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1146 <is_fs_bootable+0x36>
movl   $0x1,-0x4(%rbp)
jmp    114d <is_fs_bootable+0x3d>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_fs_bootable>:
push   %rax
mov    %rsi,%rdi
lea    0xee5(%rip),%rsi
call   1030 <strcmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [12 x i8] c"freebsd-ufs\00"
define i32 @is_fs_bootable(i8* nocapture readnone %0, i8* %1) {
%3 = tail call i64 @strcmp(i8* %1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i64 %3, 0
%5 = zext i1 %4 to i32
ret i32 %5
}
__attribute__((visibility("default"))) void ViWidthChanged(void) {}


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

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

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

LLVM IR (-O2):
define void @ViWidthChanged() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ puts(char *);
void help() {
  puts("Usage: hq9plus [OPTIONS]... [file]...\n\nOptions:\n\t--version\tShow "
       "version number and exit successfully\n\t--help\tShow this help and "
       "exit succesfully\n");
}


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

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

LLVM IR (-O0):
@.str = [146 x i8] c"Usage: hq9plus [OPTIONS]... [file]...\0A\0AOptions:\0A\09--version\09Show version number and exit successfully\0A\09--help\09Show this help and exit succesfully\0A\00"
define void @help() {
%1 = call i32 @puts(i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [146 x i8] c"Usage: hq9plus [OPTIONS]... [file]...\0A\0AOptions:\0A\09--version\09Show version number and exit successfully\0A\09--help\09Show this help and exit succesfully\0A\00"
define void @help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([146 x i8], [146 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
scalar_t__ count(int);
int /*<<< orphan*/ printf(char *, int);
int main(void) {
  int c = 0;
  int i;
  for (i = 1; i <= 1000; i++) {
    c += count(i);
  }
  printf("%d\n", c);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
cmpl   $0x3e8,-0xc(%rbp)
jg     116d <main+0x4d>
mov    -0xc(%rbp),%edi
call   1030 <count@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    113d <main+0x1d>
mov    -0x8(%rbp),%esi
lea    0xe89(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
xor    %ebx,%ebx
mov    $0x1,%ebp
nopw   0x0(%rax,%rax,1)
mov    %ebp,%edi
call   1030 <count@plt>
add    %eax,%ebx
add    $0x1,%ebp
cmp    $0x3e9,%ebp
jne    1130 <main+0x10>
lea    0xeb5(%rip),%rdi
mov    %ebx,%esi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 1, %0 ], [ %7, %1 ]
%3 = phi i32 [ 0, %0 ], [ %6, %1 ]
%4 = tail call i64 @count(i32 %2)
%5 = trunc i64 %4 to i32
%6 = add i32 %3, %5
%7 = add nuw nsw i32 %2, 1
%8 = icmp eq i32 %7, 1001
br i1 %8, label %9, label %1
9: ; preds = %1
%10 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %6)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_smoother_fix_now() {
  printf("NOT IMPLEMENTED:"
         "pa_smoother_fix_now"
         "\n");
}


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

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

LLVM IR (-O0):
@.str = [37 x i8] c"NOT IMPLEMENTED:pa_smoother_fix_now\0A\00"
define i32 @pa_smoother_fix_now() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@str = [36 x i8] c"NOT IMPLEMENTED:pa_smoother_fix_now\00"
define i32 @pa_smoother_fix_now() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
/* Type definitions */
typedef char *uint64_t;

/* Variables and functions */
uint64_t bswap64(uint64_t n) {
  __asm__("bswapq %0" : "=r"(n) : "r"(n));
  return n;
}


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

x86 assembly (clang, -O2):
<bswap64>:
bswap  %rax
ret

LLVM IR (-O0):
define i8* @bswap64(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i8* asm "bswapq $0", "=r,r,~{dirflag},~{fpsr},~{flags}"(i8* %3)
store i8* %4, i8** %2
%5 = load i8*, i8** %2
ret i8* %5
}

LLVM IR (-O2):
define i8* @bswap64(i8* readnone %0) {
%2 = tail call i8* asm "bswapq $0", "=r,r,~{dirflag},~{fpsr},~{flags}"(i8* %0)
ret i8* %2
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ system(char *);
int main() {
  printf("running the system\n");
  system("ps -ax");
  printf("done\n");
  exit(0);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
call   1040 <printf@plt>
lea    0xec2(%rip),%rdi
call   1030 <system@plt>
lea    0xebd(%rip),%rdi
call   1040 <printf@plt>
xor    %edi,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xecf(%rip),%rdi
call   1030 <puts@plt>
lea    0xebc(%rip),%rdi
call   1040 <system@plt>
lea    0xeca(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [20 x i8] c"running the system\0A\00"
@.str.1 = [7 x i8] c"ps -ax\00"
@.str.2 = [6 x i8] c"done\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @system(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str.1 = [7 x i8] c"ps -ax\00"
@str = [19 x i8] c"running the system\00"
@str.3 = [5 x i8] c"done\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @system(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.3, i64 0, i64 0))
%4 = tail call i32 @exit(i32 0)
unreachable
}
float foo03(float a, float b, float c) { return (a * b + c); }


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

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

LLVM IR (-O0):
define float @foo03(float %0, float %1, float %2) {
%4 = alloca float
%5 = alloca float
%6 = alloca float
store float %0, float* %4
store float %1, float* %5
store float %2, float* %6
%7 = load float, float* %4
%8 = load float, float* %5
%9 = load float, float* %6
%10 = call float @llvm.fmuladd.f32(float %7, float %8, float %9)
ret float %10
}

LLVM IR (-O2):
define float @foo03(float %0, float %1, float %2) {
%4 = tail call float @llvm.fmuladd.f32(float %0, float %1, float %2)
ret float %4
}
void RTIsoFsGetFileInfo(void) {}


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

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

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

LLVM IR (-O2):
define void @RTIsoFsGetFileInfo() {
ret void
}
/* Variables and functions */
float clamp(float, double, double);
float linstep(float min, float max, float v) {
  return clamp((v - min) / (max - min), 0.0, 1.0);
}


x86 assembly (clang, -O0):
<linstep>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
subss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
subss  -0x4(%rbp),%xmm1
divss  %xmm1,%xmm0
xorps  %xmm1,%xmm1
movsd  0xeb6(%rip),%xmm2
call   1030 <clamp@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<linstep>:
movaps %xmm2,%xmm3
subss  %xmm0,%xmm3
subss  %xmm0,%xmm1
divss  %xmm1,%xmm3
movsd  0xed9(%rip),%xmm2
xorps  %xmm1,%xmm1
movaps %xmm3,%xmm0
jmp    1030 <clamp@plt>

LLVM IR (-O0):
define float @linstep(float %0, float %1, float %2) {
%4 = alloca float
%5 = alloca float
%6 = alloca float
store float %0, float* %4
store float %1, float* %5
store float %2, float* %6
%7 = load float, float* %6
%8 = load float, float* %4
%9 = fsub float %7, %8
%10 = load float, float* %5
%11 = load float, float* %4
%12 = fsub float %10, %11
%13 = fdiv float %9, %12
%14 = call float @clamp(float %13, double 0.000000e+00, double 1.000000e+00)
ret float %14
}

LLVM IR (-O2):
define float @linstep(float %0, float %1, float %2) {
%4 = fsub float %2, %0
%5 = fsub float %1, %0
%6 = fdiv float %4, %5
%7 = tail call float @clamp(float %6, double 0.000000e+00, double 1.000000e+00)
ret float %7
}
/* Variables and functions */
char getSingleIntegerFromQuery(char *, int /*<<< orphan*/, int *);
int /*<<< orphan*/ strlen(char *);
char getLastReviewTime(int *lastReviewTime) {
  char query[] = "SELECT lastReviewed FROM GLOBAL";
  return getSingleIntegerFromQuery(query, strlen(query), lastReviewTime);
}


x86 assembly (clang, -O0):
<getLastReviewTime>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    0xecd(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xeca(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xec7(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xec4(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
lea    -0x30(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x38(%rbp),%rdi
mov    %eax,%esi
mov    -0x8(%rbp),%rdx
call   1030 <getSingleIntegerFromQuery@plt>
movsbl %al,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getLastReviewTime>:
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    %rdi,%rbx
movaps 0xedf(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xec3(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%r14
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %r14,%rdi
mov    %eax,%esi
mov    %rbx,%rdx
call   1030 <getSingleIntegerFromQuery@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.getLastReviewTime.query = [32 x i8] c"SELECT lastReviewed FROM GLOBAL\00"
define signext i8 @getLastReviewTime(i32* %0) {
%2 = alloca i32*
%3 = alloca [32 x i8]
store i32* %0, i32** %2
%4 = bitcast [32 x i8]* %3 to i8*
%5 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%7 = call i32 @strlen(i8* %6)
%8 = load i32*, i32** %2
%9 = call signext i8 @getSingleIntegerFromQuery(i8* %5, i32 %7, i32* %8)
ret i8 %9
}

LLVM IR (-O2):
@__const.getLastReviewTime.query = [32 x i8] c"SELECT lastReviewed FROM GLOBAL\00"
define signext i8 @getLastReviewTime(i32* %0) {
%2 = alloca [32 x i8]
%3 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 0
%4 = call i32 @strlen(i8* %3)
%5 = call signext i8 @getSingleIntegerFromQuery(i8* %3, i32 %4, i32* %0)
ret i8 %5
}
void svm_struct_learn_api_init(int argc, char *argv[]) {}


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

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

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

LLVM IR (-O2):
define void @svm_struct_learn_api_init(i32 %0, i8** nocapture %1) {
ret void
}
int Problem057(void) { return 1; }


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

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

LLVM IR (-O0):
define i32 @Problem057() {
ret i32 1
}

LLVM IR (-O2):
define i32 @Problem057() {
ret i32 1
}
/* Variables and functions */
char *calloc(size_t, int);
int /*<<< orphan*/ strncpy(char *, char const *, size_t);
char *strndup(const char *s, size_t n) {
  char *newstr = NULL;
  if ((newstr = calloc(n + 1, sizeof(char))) != NULL) {
    strncpy(newstr, s, n);
    *(newstr + n) = '\0';
  }
  return (newstr);
}


x86 assembly (clang, -O0):
<strndup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
mov    $0x1,%esi
call   1040 <calloc@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
je     1175 <strndup+0x55>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1030 <strncpy@plt>
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strndup>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r15
mov    %rdi,%r14
lea    0x1(%rsi),%rdi
mov    $0x1,%esi
call   1040 <calloc@plt>
mov    %rax,%rbx
test   %rax,%rax
je     1154 <strndup+0x34>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1030 <strncpy@plt>
movb   $0x0,(%rbx,%r15,1)
mov    %rbx,%rax
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define i8* @strndup(i8* %0, i64 %1) {
%3 = add i64 %1, 1
%4 = tail call i8* @calloc(i64 %3, i32 1)
%5 = icmp eq i8* %4, null
br i1 %5, label %9, label %6
6: ; preds = %2
%7 = tail call i32 @strncpy(i8* %4, i8* %0, i64 %1)
%8 = getelementptr inbounds i8, i8* %4, i64 %1
store i8 0, i8* %8
br label %9
9: ; preds = %6, %2
ret i8* %4
}
void setpriorityx(int fast) {}


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

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

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

LLVM IR (-O2):
define void @setpriorityx(i32 %0) {
ret void
}
int test() {
  int x = 3;
  int *volatile p = &x;
  return *p;
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
movl   $0x3,-0x4(%rbp)
lea    -0x4(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
movl   $0x3,-0xc(%rsp)
lea    -0xc(%rsp),%rax
mov    %rax,-0x8(%rsp)
mov    -0x8(%rsp),%rax
mov    (%rax),%eax
ret

LLVM IR (-O0):
define i32 @test() {
%1 = alloca i32
%2 = alloca i32*
store i32 3, i32* %1
store volatile i32* %1, i32** %2
%3 = load volatile i32*, i32** %2
%4 = load i32, i32* %3
ret i32 %4
}

LLVM IR (-O2):
define i32 @test() {
%1 = alloca i32
%2 = alloca i32*
%3 = bitcast i32* %1 to i8*
store i32 3, i32* %1
%4 = bitcast i32** %2 to i8*
store volatile i32* %1, i32** %2
%5 = load volatile i32*, i32** %2
%6 = load i32, i32* %5
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ err(int, char *, char const *);
scalar_t__ symlink(char const *, char const *);
void dosymlink(const char *text, const char *path) {
  if (symlink(text, path)) {
    err(1, "%s", path);
  }
}


x86 assembly (clang, -O0):
<dosymlink>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <symlink@plt>
cmp    $0x0,%rax
je     115c <dosymlink+0x3c>
mov    -0x10(%rbp),%rdx
mov    $0x1,%edi
lea    0xea9(%rip),%rsi
call   1040 <err@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dosymlink>:
push   %rbx
mov    %rsi,%rbx
call   1030 <symlink@plt>
test   %rax,%rax
je     1143 <dosymlink+0x23>
lea    0xecb(%rip),%rsi
mov    $0x1,%edi
mov    %rbx,%rdx
pop    %rbx
jmp    1040 <err@plt>
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
define void @dosymlink(i8* %0, i8* %1) {
%3 = tail call i64 @symlink(i8* %0, i8* %1)
%4 = icmp eq i64 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 @err(i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %1)
br label %7
7: ; preds = %5, %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int test1();
int main() {
  printf("%d\n", test1());
  return 0;
}


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

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

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = tail call i32 (...) @test1()
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 0
}
int test_imm_04int8_reg(signed char val) {
  return ((val) & (-0x04 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_04int8_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%edx
and    $0xfffffffc,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_04int8_reg>:
cmp    $0x4,%dil
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmovb  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_04int8_reg(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = and i32 %4, -4
%6 = icmp ne i32 %5, 0
%7 = zext i1 %6 to i64
%8 = select i1 %6, i32 -20, i32 -40
ret i32 %8
}

LLVM IR (-O2):
define i32 @test_imm_04int8_reg(i8 signext %0) {
%2 = icmp ult i8 %0, 4
%3 = select i1 %2, i32 -40, i32 -20
ret i32 %3
}
int test_imm_E2uint16_mem(unsigned short *val) {
  return ((*val) & (0xE2 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_E2uint16_mem>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movzwl (%rax),%edx
and    $0xe2,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_E2uint16_mem>:
testb  $0xe2,(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_E2uint16_mem(i16* %0) {
%2 = alloca i16*
store i16* %0, i16** %2
%3 = load i16*, i16** %2
%4 = load i16, i16* %3
%5 = zext i16 %4 to i32
%6 = and i32 %5, 226
%7 = icmp ne i32 %6, 0
%8 = zext i1 %7 to i64
%9 = select i1 %7, i32 -20, i32 -40
ret i32 %9
}

LLVM IR (-O2):
define i32 @test_imm_E2uint16_mem(i16* nocapture %0) {
%2 = load i16, i16* %0
%3 = and i16 %2, 226
%4 = icmp eq i16 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
int Bematech_FI_NumeroIntervencoesTecnicas(Var, Retorno) {
  return Formata("\x1b|35|10|\x1b", Var, Retorno);
}


x86 assembly (clang, -O0):
<Bematech_FI_NumeroIntervencoesTecnicas>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1030 <Formata@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Bematech_FI_NumeroIntervencoesTecnicas>:
mov    %esi,%edx
mov    %edi,%esi
lea    0xee5(%rip),%rdi
xor    %eax,%eax
jmp    1030 <Formata@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"\1B|35|10|\1B\00"
define i32 @Bematech_FI_NumeroIntervencoesTecnicas(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @Formata to i32 (i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %6)
ret i32 %7
}

LLVM IR (-O2):
@.str = [10 x i8] c"\1B|35|10|\1B\00"
define i32 @Bematech_FI_NumeroIntervencoesTecnicas(i32 %0, i32 %1) {
%3 = tail call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @Formata to i32 (i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ plastic_state();
void inter_routine_state_2() { plastic_state(); }


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

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

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

LLVM IR (-O2):
define void @inter_routine_state_2() {
%1 = tail call i32 (...) @plastic_state()
ret void
}
/* Type definitions */
struct struct_dll2 {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free_struct_dll2(struct struct_dll2 *);
int /*<<< orphan*/ printf(char *);
void free_struct_dll2_stub(struct struct_dll2 *s) {
  printf("free_struct_dll2_stub\n");
  free_struct_dll2(s);
}


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

x86 assembly (clang, -O2):
<free_struct_dll2_stub>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <free_struct_dll2@plt>

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

LLVM IR (-O2):
%struct.struct_dll2 = type { i32 }
@str = [22 x i8] c"free_struct_dll2_stub\00"
define void @free_struct_dll2_stub(%struct.struct_dll2* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @free_struct_dll2(%struct.struct_dll2* %0)
ret void
}
/* Variables and functions */
int LOG_CONS;
int /*<<< orphan*/ LOG_DAEMON;
int LOG_NDELAY;
int /*<<< orphan*/ openlog(char *, int, int /*<<< orphan*/);
void log_open() { openlog("nleventd", LOG_CONS | LOG_NDELAY, LOG_DAEMON); }


x86 assembly (clang, -O0):
<log_open>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ebd(%rip),%rax
mov    (%rax),%esi
mov    0x2ea4(%rip),%rax
or     (%rax),%esi
mov    0x2ebb(%rip),%rax
mov    (%rax),%edx
lea    0xeca(%rip),%rdi
call   1030 <openlog@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<log_open>:
mov    0x2ec1(%rip),%rax
mov    0x2eaa(%rip),%rcx
mov    (%rcx),%esi
or     (%rax),%esi
mov    0x2ebf(%rip),%rax
mov    (%rax),%edx
lea    0xece(%rip),%rdi
jmp    1030 <openlog@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"nleventd\00"
@LOG_CONS = global i32 0
@LOG_NDELAY = global i32 0
@LOG_DAEMON = global i32 0
define void @log_open() {
%1 = load i32, i32* @LOG_CONS
%2 = load i32, i32* @LOG_NDELAY
%3 = or i32 %1, %2
%4 = load i32, i32* @LOG_DAEMON
%5 = call i32 @openlog(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %3, i32 %4)
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"nleventd\00"
@LOG_CONS = global i32 0
@LOG_NDELAY = global i32 0
@LOG_DAEMON = global i32 0
define void @log_open() {
%1 = load i32, i32* @LOG_CONS
%2 = load i32, i32* @LOG_NDELAY
%3 = or i32 %2, %1
%4 = load i32, i32* @LOG_DAEMON
%5 = tail call i32 @openlog(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %3, i32 %4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ clientf(char *);
int /*<<< orphan*/ clientfr(char *);
void do_area_help(char *arg) {
  clientfr("Module: IMapper. Area commands:");
  clientf(" area list   - List all areas.\r\n"
          " area check  - Check for problems in the current areas.\r\n"
          " area switch - Switch the area of the current room.\r\n"
          " area update - Update current area's name.\r\n"
          " area off    - Disable pathfinding in the current area.\r\n"
          " area orig   - Check the originality of the area.\r\n");
}


x86 assembly (clang, -O0):
<do_area_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
call   1040 <clientfr@plt>
lea    0xee1(%rip),%rdi
call   1030 <clientf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_area_help>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <clientfr@plt>
lea    0xeec(%rip),%rdi
pop    %rax
jmp    1030 <clientf@plt>

LLVM IR (-O0):
@.str = [32 x i8] c"Module: IMapper. Area commands:\00"
@.str.1 = [295 x i8] c" area list - List all areas.\0D\0A area check - Check for problems in the current areas.\0D\0A area switch - Switch the area of the current room.\0D\0A area update - Update current area's name.\0D\0A area off - Disable pathfinding in the current area.\0D\0A area orig - Check the originality of the area.\0D\0A\00"
define void @do_area_help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @clientfr(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @clientf(i8* getelementptr inbounds ([295 x i8], [295 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [32 x i8] c"Module: IMapper. Area commands:\00"
@.str.1 = [295 x i8] c" area list - List all areas.\0D\0A area check - Check for problems in the current areas.\0D\0A area switch - Switch the area of the current room.\0D\0A area update - Update current area's name.\0D\0A area off - Disable pathfinding in the current area.\0D\0A area orig - Check the originality of the area.\0D\0A\00"
define void @do_area_help(i8* nocapture readnone %0) {
%2 = tail call i32 @clientfr(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @clientf(i8* getelementptr inbounds ([295 x i8], [295 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ nombre(char *);
int main(int argc, const char *argv[]) {
  nombre("Adrian");
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [7 x i8] c"Adrian\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @nombre(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"Adrian\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @nombre(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Type definitions */
struct genlist {
  int dummy;
};
struct fileinfo_list {
  int dummy;
};
struct fileinfo {
  int dummy;
};

/* Variables and functions */
scalar_t__ genlist_back(struct genlist const *);
struct fileinfo *fileinfo_list_back(const struct fileinfo_list *tthis) {
  return (struct fileinfo *)genlist_back((const struct genlist *)tthis);
}


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

x86 assembly (clang, -O2):
<fileinfo_list_back>:
jmp    1030 <genlist_back@plt>

LLVM IR (-O0):
%struct.fileinfo = type { i32 }
%struct.fileinfo_list = type { i32 }
%struct.genlist = type { i32 }
define %struct.fileinfo* @fileinfo_list_back(%struct.fileinfo_list* %0) {
%2 = alloca %struct.fileinfo_list*
store %struct.fileinfo_list* %0, %struct.fileinfo_list** %2
%3 = load %struct.fileinfo_list*, %struct.fileinfo_list** %2
%4 = bitcast %struct.fileinfo_list* %3 to %struct.genlist*
%5 = call i64 @genlist_back(%struct.genlist* %4)
%6 = inttoptr i64 %5 to %struct.fileinfo*
ret %struct.fileinfo* %6
}

LLVM IR (-O2):
%struct.fileinfo = type { i32 }
%struct.fileinfo_list = type { i32 }
%struct.genlist = type { i32 }
define %struct.fileinfo* @fileinfo_list_back(%struct.fileinfo_list* %0) {
%2 = bitcast %struct.fileinfo_list* %0 to %struct.genlist*
%3 = tail call i64 @genlist_back(%struct.genlist* %2)
%4 = inttoptr i64 %3 to %struct.fileinfo*
ret %struct.fileinfo* %4
}
void emit_bool_false(struct processor_explicatory_state *process_state,
                     struct modern_stream *stream, void *stream_state,
                     struct modern_vfile *vfile, void *vfile_state) {}


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

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

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

LLVM IR (-O2):
%struct.processor_explicatory_state = type opaque
%struct.modern_stream = type opaque
%struct.modern_vfile = type opaque
define void @emit_bool_false(%struct.processor_explicatory_state* nocapture %0, %struct.modern_stream* nocapture %1, i8* nocapture %2, %struct.modern_vfile* nocapture %3, i8* nocapture %4) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ C67_asm(char *, int, int, int /*<<< orphan*/);
void C67_LDHU_PTR(int r, int r2) { C67_asm("LDHU.D *", r, r2, 0); }


x86 assembly (clang, -O0):
<C67_LDHU_PTR>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xed5(%rip),%rdi
xor    %ecx,%ecx
call   1030 <C67_asm@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<C67_LDHU_PTR>:
mov    %esi,%edx
mov    %edi,%esi
lea    0xee5(%rip),%rdi
xor    %ecx,%ecx
jmp    1030 <C67_asm@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"LDHU.D *\00"
define void @C67_LDHU_PTR(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = call i32 @C67_asm(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %6, i32 0)
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"LDHU.D *\00"
define void @C67_LDHU_PTR(i32 %0, i32 %1) {
%3 = tail call i32 @C67_asm(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %1, i32 0)
ret void
}
void initIncPrune() {}


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

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

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

LLVM IR (-O2):
define void @initIncPrune() {
ret void
}
/* Variables and functions */
int _InterlockedOr(int volatile *, int);
int test_InterlockedOr(int volatile *value, int mask) {
  return _InterlockedOr(value, mask);
}


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

x86 assembly (clang, -O2):
<test_InterlockedOr>:
jmp    1030 <_InterlockedOr@plt>

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

LLVM IR (-O2):
define i32 @test_InterlockedOr(i32* %0, i32 %1) {
%3 = tail call i32 @_InterlockedOr(i32* %0, i32 %1)
ret i32 %3
}
/* Variables and functions */
int EOF;
int /*<<< orphan*/ explicit_escape_sequence(int);
int getchar();
int main() {
  int current_character;
  while ((current_character = getchar()) != EOF) {
    explicit_escape_sequence(current_character);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    0x2ea8(%rip),%rcx
cmp    (%rcx),%eax
je     1155 <main+0x35>
mov    -0x8(%rbp),%edi
call   1040 <explicit_escape_sequence@plt>
jmp    112f <main+0xf>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1030 <getchar@plt>
mov    0x2eb9(%rip),%rbx
cmp    (%rbx),%eax
je     1152 <main+0x32>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %eax,%edi
call   1040 <explicit_escape_sequence@plt>
xor    %eax,%eax
call   1030 <getchar@plt>
cmp    (%rbx),%eax
jne    1140 <main+0x20>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@EOF = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
br label %3
3: ; preds = %7, %0
%4 = call i32 (...) @getchar()
store i32 %4, i32* %2
%5 = load i32, i32* @EOF
%6 = icmp ne i32 %4, %5
br i1 %6, label %7, label %10
7: ; preds = %3
%8 = load i32, i32* %2
%9 = call i32 @explicit_escape_sequence(i32 %8)
br label %3
10: ; preds = %3
%11 = load i32, i32* %1
ret i32 %11
}

LLVM IR (-O2):
@EOF = global i32 0
define i32 @main() {
%1 = tail call i32 (...) @getchar()
%2 = load i32, i32* @EOF
%3 = icmp eq i32 %1, %2
br i1 %3, label %10, label %4
4: ; preds = %0, %4
%5 = phi i32 [ %7, %4 ], [ %1, %0 ]
%6 = tail call i32 @explicit_escape_sequence(i32 %5)
%7 = tail call i32 (...) @getchar()
%8 = load i32, i32* @EOF
%9 = icmp eq i32 %7, %8
br i1 %9, label %10, label %4
10: ; preds = %4, %0
ret i32 0
}
char *_rl_savestring(s) const char *s;
{ return (strcpy((char *)xmalloc(1 + (int)strlen(s)), (s))); }


x86 assembly (clang, -O0):
<_rl_savestring>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%edi
add    $0x1,%edi
mov    $0x0,%al
call   1050 <xmalloc@plt>
movslq %eax,%rdi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_rl_savestring>:
push   %rbx
mov    %rdi,%rbx
call   1040 <strlen@plt>
lea    0x1(%rax),%edi
xor    %eax,%eax
call   1050 <xmalloc@plt>
movslq %eax,%rdi
mov    %rbx,%rsi
pop    %rbx
jmp    1030 <strcpy@plt>

LLVM IR (-O0):
define i8* @_rl_savestring(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @strlen(i8* %3)
%5 = trunc i64 %4 to i32
%6 = add nsw i32 1, %5
%7 = call i32 (i32, ...) bitcast (i32 (...)* @xmalloc to i32 (i32, ...)*)(i32 %6)
%8 = sext i32 %7 to i64
%9 = inttoptr i64 %8 to i8*
%10 = load i8*, i8** %2
%11 = call i8* @strcpy(i8* %9, i8* %10)
ret i8* %11
}

LLVM IR (-O2):
define i8* @_rl_savestring(i8* nocapture %0) {
%2 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%3 = trunc i64 %2 to i32
%4 = add nsw i32 %3, 1
%5 = tail call i32 (i32, ...) bitcast (i32 (...)* @xmalloc to i32 (i32, ...)*)(i32 %4)
%6 = sext i32 %5 to i64
%7 = inttoptr i64 %6 to i8*
%8 = tail call i8* @strcpy(i8* dereferenceable(1) %7, i8* dereferenceable(1) %0)
ret i8* %7
}
/* Variables and functions */
int /*<<< orphan*/ memcpy(void *, void *, int);
void __attribute__((regparm(3))) memcpy_2(void *dest, void *src) {
  memcpy(dest, src, 2);
}


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

x86 assembly (clang, -O2):
<memcpy_2>:
mov    $0x2,%edx
jmp    1030 <memcpy@plt>

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

LLVM IR (-O2):
define void @memcpy_2(i8* %0, i8* %1) {
%3 = tail call i32 @memcpy(i8* %0, i8* %1, i32 2)
ret void
}
/* Variables and functions */
double InterpretLocaleValue(char const *, char **);
double StringToDouble(const char *restrict string, char **restrict sentinal) {
  return (InterpretLocaleValue(string, sentinal));
}


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

x86 assembly (clang, -O2):
<StringToDouble>:
jmp    1030 <InterpretLocaleValue@plt>

LLVM IR (-O0):
define double @StringToDouble(i8* noalias %0, i8** noalias %1) {
%3 = alloca i8*
%4 = alloca i8**
store i8* %0, i8** %3
store i8** %1, i8*** %4
%5 = load i8*, i8** %3
%6 = load i8**, i8*** %4
%7 = call double @InterpretLocaleValue(i8* %5, i8** %6)
ret double %7
}

LLVM IR (-O2):
define double @StringToDouble(i8* noalias %0, i8** noalias %1) {
%3 = tail call double @InterpretLocaleValue(i8* %0, i8** %1)
ret double %3
}
int main(int argc, char **argv) {
  int k;
  if (k) {
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     1121 <main+0x21>
jmp    1121 <main+0x21>
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
ret i32 0
}
int determine_ascii_value(char character) {
  int ascii_value = 0;
  ascii_value = (int)character;
  return ascii_value;
}


x86 assembly (clang, -O0):
<determine_ascii_value>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movl   $0x0,-0x8(%rbp)
movsbl -0x1(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<determine_ascii_value>:
mov    %edi,%eax
ret

LLVM IR (-O0):
define i32 @determine_ascii_value(i8 signext %0) {
%2 = alloca i8
%3 = alloca i32
store i8 %0, i8* %2
store i32 0, i32* %3
%4 = load i8, i8* %2
%5 = sext i8 %4 to i32
store i32 %5, i32* %3
%6 = load i32, i32* %3
ret i32 %6
}

LLVM IR (-O2):
define i32 @determine_ascii_value(i8 signext %0) {
%2 = sext i8 %0 to i32
ret i32 %2
}