xunge/DecIR huggingface dataset:
/* Variables and functions */
char *hl();
int /*<<< orphan*/ printf(char *, char *);
void info(void) {
  printf(
      "Project:\n\n"
      "    Terminal Nim\n\n"
      "Author:\n\n"
      "    ericw31415\n\n"
      "%s\n"
      "What is it?\n\n"
      "    Terminal Nim allows you to play the game Nim inside your "
      "terminal.\n\n"
      "How was it created?\n\n"
      "    Terminal Nim was created using the C programming language.\n\n"
      "Can I see the source code?\n\n"
      "    Yes. Terminal Nim is an open-source project and the source code is\n"
      "    available at the URL https://github.com/ericw31415/terminal-nim\n\n"
      "Is there a software license?\n"
      "    Yes. Terminal Nim is made available under the GNU Public License "
      "v3.0.\n",
      hl());
}


x86 assembly (clang, -O0):
<info>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <hl@plt>
mov    %rax,%rsi
lea    0xecb(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<info>:
push   %rax
xor    %eax,%eax
call   1040 <hl@plt>
lea    0xed1(%rip),%rdi
mov    %rax,%rsi
pop    %rax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [499 x i8] c"Project:\0A\0A Terminal Nim\0A\0AAuthor:\0A\0A ericw31415\0A\0A%s\0AWhat is it?\0A\0A Terminal Nim allows you to play the game Nim inside your terminal.\0A\0AHow was it created?\0A\0A Terminal Nim was created using the C programming language.\0A\0ACan I see the source code?\0A\0A Yes. Terminal Nim is an open-source project and the source code is\0A available at the URL https://github.com/ericw31415/terminal-nim\0A\0AIs there a software license?\0A Yes. Terminal Nim is made available under the GNU Public License v3.0.\0A\00"
define void @info() {
%1 = call i8* (...) @hl()
%2 = call i32 @printf(i8* getelementptr inbounds ([499 x i8], [499 x i8]* @.str, i64 0, i64 0), i8* %1)
ret void
}

LLVM IR (-O2):
@.str = [499 x i8] c"Project:\0A\0A Terminal Nim\0A\0AAuthor:\0A\0A ericw31415\0A\0A%s\0AWhat is it?\0A\0A Terminal Nim allows you to play the game Nim inside your terminal.\0A\0AHow was it created?\0A\0A Terminal Nim was created using the C programming language.\0A\0ACan I see the source code?\0A\0A Yes. Terminal Nim is an open-source project and the source code is\0A available at the URL https://github.com/ericw31415/terminal-nim\0A\0AIs there a software license?\0A Yes. Terminal Nim is made available under the GNU Public License v3.0.\0A\00"
define void @info() {
%1 = tail call i8* (...) @hl()
%2 = tail call i32 @printf(i8* getelementptr inbounds ([499 x i8], [499 x i8]* @.str, i64 0, i64 0), i8* %1)
ret void
}
int fun1293() { return 1293; }


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

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

LLVM IR (-O0):
define i32 @fun1293() {
ret i32 1293
}

LLVM IR (-O2):
define i32 @fun1293() {
ret i32 1293
}
/* Variables and functions */
void fill_str(char *str, size_t len, char c) {
  size_t i, last;
  last = len - 1;
  for (i = 0; i < last; ++i) {
    str[i] = c;
  }
  str[last] = '\0';
}


x86 assembly (clang, -O0):
<fill_str>:
push   %rbp
mov    %rsp,%rbp
mov    %dl,%al
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %al,-0x11(%rbp)
mov    -0x10(%rbp),%rax
sub    $0x1,%rax
mov    %rax,-0x28(%rbp)
movq   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x28(%rbp),%rax
jae    1152 <fill_str+0x52>
mov    -0x11(%rbp),%dl
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    1125 <fill_str+0x25>
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
pop    %rbp
ret

x86 assembly (clang, -O2):
<fill_str>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
add    $0xffffffffffffffff,%rbx
je     112e <fill_str+0x1e>
movzbl %dl,%esi
mov    %r14,%rdi
mov    %rbx,%rdx
call   1030 <memset@plt>
movb   $0x0,(%r14,%rbx,1)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define void @fill_str(i8* nocapture writeonly %0, i64 %1, i8 signext %2) {
%4 = add i64 %1, -1
%5 = icmp eq i64 %4, 0
br i1 %5, label %7, label %6
6: ; preds = %3
br label %7
7: ; preds = %6, %3
%8 = getelementptr inbounds i8, i8* %0, i64 %4
store i8 0, i8* %8
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void badusage(void) {
  fprintf(stderr, "Usage: fsanot [-ip d/s[dr]] [-op d/s] [-silent] [-v] "
                  "[-l/-h] filename\n");
  exit(1);
}


x86 assembly (clang, -O0):
<badusage>:
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):
<badusage>:
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 = [71 x i8] c"Usage: fsanot [-ip d/s[dr]] [-op d/s] [-silent] [-v] [-l/-h] filename\0A\00"
define void @badusage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [71 x i8] c"Usage: fsanot [-ip d/s[dr]] [-op d/s] [-silent] [-v] [-l/-h] filename\0A\00"
define void @badusage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}
int sumOfFib(n) {
  int sum = 1;
  if (n <= 1)
    return n;
  for (int i = 2; i <= n; i++) {
    sum += fib(i);
  }
  return sum;
}


x86 assembly (clang, -O0):
<sumOfFib>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
cmpl   $0x1,-0x8(%rbp)
jg     1137 <sumOfFib+0x27>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    116e <sumOfFib+0x5e>
movl   $0x2,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     1168 <sumOfFib+0x58>
mov    -0x10(%rbp),%edi
mov    $0x0,%al
call   1030 <fib@plt>
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    113e <sumOfFib+0x2e>
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sumOfFib>:
push   %rbp
push   %r14
push   %rbx
mov    %edi,%ebp
cmp    $0x2,%edi
jl     114e <sumOfFib+0x3e>
neg    %ebp
mov    $0x2,%ebx
mov    %ebp,%r14d
mov    $0x1,%ebp
nopw   0x0(%rax,%rax,1)
mov    %ebx,%edi
xor    %eax,%eax
call   1030 <fib@plt>
add    %eax,%ebp
lea    (%r14,%rbx,1),%eax
add    $0x1,%eax
mov    %ebx,%ecx
add    $0x1,%ecx
mov    %ecx,%ebx
cmp    $0x1,%eax
jne    1130 <sumOfFib+0x20>
mov    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @sumOfFib(i32 %0) {
%2 = icmp slt i32 %0, 2
br i1 %2, label %10, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %8, %3 ], [ 2, %1 ]
%5 = phi i32 [ %7, %3 ], [ 1, %1 ]
%6 = tail call i32 (i32, ...) bitcast (i32 (...)* @fib to i32 (i32, ...)*)(i32 %4)
%7 = add nsw i32 %6, %5
%8 = add nuw i32 %4, 1
%9 = icmp eq i32 %4, %0
br i1 %9, label %10, label %3
10: ; preds = %3, %1
%11 = phi i32 [ %0, %1 ], [ %7, %3 ]
ret i32 %11
}
/* Type definitions */
typedef int uint64_t;

/* Variables and functions */
uint64_t bswap_64(uint64_t x) {
  return (
      ((x & 0xff00000000000000ull) >> 56) |
      ((x & 0x00ff000000000000ull) >> 40) |
      ((x & 0x0000ff0000000000ull) >> 24) | ((x & 0x000000ff00000000ull) >> 8) |
      ((x & 0x00000000ff000000ull) << 8) | ((x & 0x0000000000ff0000ull) << 24) |
      ((x & 0x000000000000ff00ull) << 40) |
      ((x & 0x00000000000000ffull) << 56));
}


x86 assembly (clang, -O0):
<bswap_64>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movslq -0x4(%rbp),%rax
movabs $0xff00000000000000,%rcx
and    %rcx,%rax
shr    $0x38,%rax
movslq -0x4(%rbp),%rcx
movabs $0xff000000000000,%rdx
and    %rdx,%rcx
shr    $0x28,%rcx
or     %rcx,%rax
movslq -0x4(%rbp),%rcx
movabs $0xff0000000000,%rdx
and    %rdx,%rcx
shr    $0x18,%rcx
or     %rcx,%rax
movslq -0x4(%rbp),%rcx
movabs $0xff00000000,%rdx
and    %rdx,%rcx
shr    $0x8,%rcx
or     %rcx,%rax
movslq -0x4(%rbp),%rcx
movabs $0xff000000,%rdx
and    %rdx,%rcx
shl    $0x8,%rcx
or     %rcx,%rax
movslq -0x4(%rbp),%rcx
and    $0xff0000,%rcx
shl    $0x18,%rcx
or     %rcx,%rax
movslq -0x4(%rbp),%rcx
and    $0xff00,%rcx
shl    $0x28,%rcx
or     %rcx,%rax
movslq -0x4(%rbp),%rcx
and    $0xff,%rcx
shl    $0x38,%rcx
or     %rcx,%rax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @bswap_64(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = sext i32 %3 to i64
%5 = and i64 %4, -72057594037927936
%6 = lshr i64 %5, 56
%7 = load i32, i32* %2
%8 = sext i32 %7 to i64
%9 = and i64 %8, 71776119061217280
%10 = lshr i64 %9, 40
%11 = or i64 %6, %10
%12 = load i32, i32* %2
%13 = sext i32 %12 to i64
%14 = and i64 %13, 280375465082880
%15 = lshr i64 %14, 24
%16 = or i64 %11, %15
%17 = load i32, i32* %2
%18 = sext i32 %17 to i64
%19 = and i64 %18, 1095216660480
%20 = lshr i64 %19, 8
%21 = or i64 %16, %20
%22 = load i32, i32* %2
%23 = sext i32 %22 to i64
%24 = and i64 %23, 4278190080
%25 = shl i64 %24, 8
%26 = or i64 %21, %25
%27 = load i32, i32* %2
%28 = sext i32 %27 to i64
%29 = and i64 %28, 16711680
%30 = shl i64 %29, 24
%31 = or i64 %26, %30
%32 = load i32, i32* %2
%33 = sext i32 %32 to i64
%34 = and i64 %33, 65280
%35 = shl i64 %34, 40
%36 = or i64 %31, %35
%37 = load i32, i32* %2
%38 = sext i32 %37 to i64
%39 = and i64 %38, 255
%40 = shl i64 %39, 56
%41 = or i64 %36, %40
%42 = trunc i64 %41 to i32
ret i32 %42
}

LLVM IR (-O2):
define i32 @bswap_64(i32 %0) {
%2 = sext i32 %0 to i64
%3 = tail call i64 @llvm.bswap.i64(i64 %2)
%4 = trunc i64 %3 to i32
ret i32 %4
}
/* Type definitions */
struct timeval {
  int tv_usec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, int);
int get_porta() {
  struct timeval tmp;
  gettimeofday(&tmp, NULL);
  int porta = (tmp.tv_usec % 3) + 9990;
  printf("Connecting through port %d\n", porta);
  return porta;
}


x86 assembly (clang, -O0):
<get_porta>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x8(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <gettimeofday@plt>
mov    -0x8(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
add    $0x2706,%edx
mov    %edx,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xead(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_porta>:
push   %rbx
sub    $0x10,%rsp
lea    0x8(%rsp),%rdi
xor    %esi,%esi
call   1040 <gettimeofday@plt>
movslq 0x8(%rsp),%rbx
imul   $0x55555556,%rbx,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
shr    $0x20,%rax
add    %ecx,%eax
lea    (%rax,%rax,2),%eax
sub    %eax,%ebx
add    $0x2706,%ebx
lea    0xea4(%rip),%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
mov    %ebx,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.timeval = type { i32 }
@.str = [28 x i8] c"Connecting through port %d\0A\00"
define i32 @get_porta() {
%1 = alloca %struct.timeval
%2 = alloca i32
%3 = call i32 @gettimeofday(%struct.timeval* %1, i32* null)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 0
%5 = load i32, i32* %4
%6 = srem i32 %5, 3
%7 = add nsw i32 %6, 9990
store i32 %7, i32* %2
%8 = load i32, i32* %2
%9 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 %8)
%10 = load i32, i32* %2
ret i32 %10
}

LLVM IR (-O2):
%struct.timeval = type { i32 }
@.str = [28 x i8] c"Connecting through port %d\0A\00"
define i32 @get_porta() {
%1 = alloca %struct.timeval
%2 = bitcast %struct.timeval* %1 to i8*
%3 = call i32 @gettimeofday(%struct.timeval* %1, i32* null)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 0
%5 = load i32, i32* %4
%6 = srem i32 %5, 3
%7 = add nsw i32 %6, 9990
%8 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 %7)
ret i32 %7
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef scalar_t__ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ func_c14_c(int /*<<< orphan*/ *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ func_cac_c(int /*<<< orphan*/ *, scalar_t__,
                              int /*<<< orphan*/ *);
void func_d2c_c(uint8_t *key, int key_length, uint32_t a2, uint32_t count,
                uint8_t *out) {
  func_c14_c(key, key_length, out);
  func_cac_c((uint8_t *)a2, count, out);
}


x86 assembly (clang, -O0):
<func_d2c_c>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x28(%rbp),%rdx
call   1040 <func_c14_c@plt>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1030 <func_cac_c@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<func_d2c_c>:
push   %r15
push   %r14
push   %rbx
mov    %r8,%rbx
mov    %rcx,%r14
mov    %rdx,%r15
mov    %r8,%rdx
call   1040 <func_c14_c@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <func_cac_c@plt>

LLVM IR (-O0):
define void @func_d2c_c(i32* %0, i32 %1, i64 %2, i64 %3, i32* %4) {
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i64
%9 = alloca i64
%10 = alloca i32*
store i32* %0, i32** %6
store i32 %1, i32* %7
store i64 %2, i64* %8
store i64 %3, i64* %9
store i32* %4, i32** %10
%11 = load i32*, i32** %6
%12 = load i32, i32* %7
%13 = load i32*, i32** %10
%14 = call i32 @func_c14_c(i32* %11, i32 %12, i32* %13)
%15 = load i64, i64* %8
%16 = inttoptr i64 %15 to i32*
%17 = load i64, i64* %9
%18 = load i32*, i32** %10
%19 = call i32 @func_cac_c(i32* %16, i64 %17, i32* %18)
ret void
}

LLVM IR (-O2):
define void @func_d2c_c(i32* %0, i32 %1, i64 %2, i64 %3, i32* %4) {
%6 = tail call i32 @func_c14_c(i32* %0, i32 %1, i32* %4)
%7 = inttoptr i64 %2 to i32*
%8 = tail call i32 @func_cac_c(i32* %7, i64 %3, i32* %4)
ret void
}
/* Type definitions */
struct shl_htable {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ shl_htable_visit(struct shl_htable *,
                                    void (*)(void *, void *), void *);
void shl_htable_visit_ulong(struct shl_htable *htable,
                            void (*cb)(unsigned long *elem, void *ctx),
                            void *ctx) {
  shl_htable_visit(htable, (void (*)(void *, void *))cb, ctx);
}


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

x86 assembly (clang, -O2):
<shl_htable_visit_ulong>:
jmp    1030 <shl_htable_visit@plt>

LLVM IR (-O0):
%struct.shl_htable = type { i32 }
define void @shl_htable_visit_ulong(%struct.shl_htable* %0, void (i64*, i8*)* %1, i8* %2) {
%4 = alloca %struct.shl_htable*
%5 = alloca void (i64*, i8*)*
%6 = alloca i8*
store %struct.shl_htable* %0, %struct.shl_htable** %4
store void (i64*, i8*)* %1, void (i64*, i8*)** %5
store i8* %2, i8** %6
%7 = load %struct.shl_htable*, %struct.shl_htable** %4
%8 = load void (i64*, i8*)*, void (i64*, i8*)** %5
%9 = bitcast void (i64*, i8*)* %8 to void (i8*, i8*)*
%10 = load i8*, i8** %6
%11 = call i32 @shl_htable_visit(%struct.shl_htable* %7, void (i8*, i8*)* %9, i8* %10)
ret void
}

LLVM IR (-O2):
%struct.shl_htable = type { i32 }
define void @shl_htable_visit_ulong(%struct.shl_htable* %0, void (i64*, i8*)* %1, i8* %2) {
%4 = bitcast void (i64*, i8*)* %1 to void (i8*, i8*)*
%5 = tail call i32 @shl_htable_visit(%struct.shl_htable* %0, void (i8*, i8*)* %4, i8* %2)
ret void
}
int strhash(x)
char *x;
{
  int h = 0;
  while (*x)
    h = h * 13 + *(x++);
  return h;
}


x86 assembly (clang, -O0):
<strhash>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     113c <strhash+0x3c>
imul   $0xd,-0xc(%rbp),%eax
mov    -0x8(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x8(%rbp)
movsbl (%rcx),%ecx
add    %ecx,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <strhash+0xf>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strhash>:
mov    (%rdi),%cl
test   %cl,%cl
je     1127 <strhash+0x27>
add    $0x1,%rdi
xor    %eax,%eax
nopl   0x0(%rax)
lea    (%rax,%rax,2),%edx
lea    (%rax,%rdx,4),%edx
movsbl %cl,%eax
add    %edx,%eax
movzbl (%rdi),%ecx
add    $0x1,%rdi
test   %cl,%cl
jne    1110 <strhash+0x10>
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @strhash(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %14, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %12, %4 ], [ %2, %1 ]
%6 = phi i32 [ %11, %4 ], [ 0, %1 ]
%7 = phi i8* [ %9, %4 ], [ %0, %1 ]
%8 = mul nsw i32 %6, 13
%9 = getelementptr inbounds i8, i8* %7, i64 1
%10 = sext i8 %5 to i32
%11 = add nsw i32 %8, %10
%12 = load i8, i8* %9
%13 = icmp eq i8 %12, 0
br i1 %13, label %14, label %4
14: ; preds = %4, %1
%15 = phi i32 [ 0, %1 ], [ %11, %4 ]
ret i32 %15
}
/* Variables and functions */
int /*<<< orphan*/ disableTipi();
void tipi_off() { disableTipi(); }


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

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

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

LLVM IR (-O2):
define void @tipi_off() {
%1 = tail call i32 (...) @disableTipi()
ret void
}
int ft_strlen(char *str) {
  int number;
  number = 0;
  while (*(str + number) != 0) {
    number += 1;
  }
  return (number);
}


x86 assembly (clang, -O0):
<ft_strlen>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     1132 <ft_strlen+0x32>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <ft_strlen+0xf>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_strlen>:
mov    $0xffffffff,%eax
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%eax
cmpb   $0x0,(%rdi)
lea    0x1(%rdi),%rdi
jne    1110 <ft_strlen+0x10>
ret

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

LLVM IR (-O2):
define i32 @ft_strlen(i8* nocapture %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i64 [ %7, %2 ], [ 0, %1 ]
%4 = getelementptr inbounds i8, i8* %0, i64 %3
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 0
%7 = add nuw i64 %3, 1
br i1 %6, label %8, label %2
8: ; preds = %2
%9 = trunc i64 %3 to i32
ret i32 %9
}
int log2i(unsigned v) {
  int r = -1;
  for (; v; v >>= 1, r++)
    ;
  return r;
}


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

x86 assembly (clang, -O2):
<log2i>:
mov    $0xffffffff,%eax
test   %edi,%edi
je     111c <log2i+0x1c>
mov    %edi,%ecx
nopl   0x0(%rax,%rax,1)
shr    %ecx
add    $0x1,%eax
cmp    $0x1,%edi
mov    %ecx,%edi
ja     1110 <log2i+0x10>
ret

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

LLVM IR (-O2):
define i32 @log2i(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %9, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %7, %3 ], [ -1, %1 ]
%5 = phi i32 [ %6, %3 ], [ %0, %1 ]
%6 = lshr i32 %5, 1
%7 = add nsw i32 %4, 1
%8 = icmp ult i32 %5, 2
br i1 %8, label %9, label %3
9: ; preds = %3, %1
%10 = phi i32 [ -1, %1 ], [ %7, %3 ]
ret i32 %10
}
/* Variables and functions */
scalar_t__ _syscall5(int, void *, void *, void *, void *, void *);
int errno;
void sync() {
  int ret = (int)_syscall5(83, ((void *)0), ((void *)0), ((void *)0),
                           ((void *)0), ((void *)0));
  if (ret < 0)
    errno = -ret;
}


x86 assembly (clang, -O0):
<sync>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x53,%edi
xor    %eax,%eax
mov    %eax,%r9d
mov    %r9,%rsi
mov    %r9,%rdx
mov    %r9,%rcx
mov    %r9,%r8
call   1030 <_syscall5@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jge    114e <sync+0x3e>
xor    %ecx,%ecx
sub    -0x4(%rbp),%ecx
mov    0x2e94(%rip),%rax
mov    %ecx,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sync>:
push   %rax
mov    $0x53,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <_syscall5@plt>
test   %eax,%eax
js     112d <sync+0x1d>
pop    %rax
ret
neg    %eax
mov    0x2eaa(%rip),%rcx
mov    %eax,(%rcx)
pop    %rax
ret

LLVM IR (-O0):
@errno = global i32 0
define void @sync() {
%1 = alloca i32
%2 = call i64 @_syscall5(i32 83, i8* null, i8* null, i8* null, i8* null, i8* null)
%3 = trunc i64 %2 to i32
store i32 %3, i32* %1
%4 = load i32, i32* %1
%5 = icmp slt i32 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %0
%7 = load i32, i32* %1
%8 = sub nsw i32 0, %7
store i32 %8, i32* @errno
br label %9
9: ; preds = %6, %0
ret void
}

LLVM IR (-O2):
@errno = global i32 0
define void @sync() {
%1 = tail call i64 @_syscall5(i32 83, i8* null, i8* null, i8* null, i8* null, i8* null)
%2 = trunc i64 %1 to i32
%3 = icmp slt i32 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = sub nsw i32 0, %2
store i32 %5, i32* @errno
br label %6
6: ; preds = %4, %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Cleanup();
int /*<<< orphan*/ log_Printf(int, char *, int);
void CloseSession(int signo) {
  log_Printf((16), "Signal %d, terminate.\n", signo);
  Cleanup();
}


x86 assembly (clang, -O0):
<CloseSession>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edx
mov    $0x10,%edi
lea    0xec6(%rip),%rsi
call   1030 <log_Printf@plt>
mov    $0x0,%al
call   1040 <Cleanup@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CloseSession>:
push   %rax
mov    %edi,%edx
lea    0xed6(%rip),%rsi
mov    $0x10,%edi
call   1030 <log_Printf@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <Cleanup@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"Signal %d, terminate.\0A\00"
define void @CloseSession(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @log_Printf(i32 16, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = call i32 (...) @Cleanup()
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"Signal %d, terminate.\0A\00"
define void @CloseSession(i32 %0) {
%2 = tail call i32 @log_Printf(i32 16, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %0)
%3 = tail call i32 (...) @Cleanup()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ kotlinclib_print_boolean(int);
int /*<<< orphan*/ kotlinclib_println();
void kotlinclib_println_boolean(int message) {
  kotlinclib_print_boolean(message);
  kotlinclib_println();
}


x86 assembly (clang, -O0):
<kotlinclib_println_boolean>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <kotlinclib_print_boolean@plt>
mov    $0x0,%al
call   1040 <kotlinclib_println@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @kotlinclib_println_boolean(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @kotlinclib_print_boolean(i32 %3)
%5 = call i32 (...) @kotlinclib_println()
ret void
}

LLVM IR (-O2):
define void @kotlinclib_println_boolean(i32 %0) {
%2 = tail call i32 @kotlinclib_print_boolean(i32 %0)
%3 = tail call i32 (...) @kotlinclib_println()
ret void
}
/* Variables and functions */
long long __nv_llroundf(float);
long long llroundf(float __a) { return __nv_llroundf(__a); }


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

x86 assembly (clang, -O2):
<llroundf>:
jmp    1030 <__nv_llroundf@plt>

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

LLVM IR (-O2):
define i64 @llroundf(float %0) {
%2 = tail call i64 @__nv_llroundf(float %0)
ret i64 %2
}
/* Variables and functions */
int /*<<< orphan*/ execve(char *, char **, char **);
int /*<<< orphan*/ write(int, char *, int);
int main(int argc, char **argv, char **envp) {
  char msg[] = "exec failed\n";
  execve(argv[1], &argv[2], envp);
  write(2, msg, sizeof msg - 1);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    0xebf(%rip),%rax
mov    %rax,-0x25(%rbp)
mov    0xebd(%rip),%eax
mov    %eax,-0x1d(%rbp)
mov    0xeb8(%rip),%al
mov    %al,-0x19(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x10(%rbp),%rsi
add    $0x10,%rsi
mov    -0x18(%rbp),%rdx
call   1040 <execve@plt>
lea    -0x25(%rbp),%rsi
mov    $0x2,%edi
mov    $0xc,%edx
call   1030 <write@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movabs $0xa64656c696166,%rax
mov    %rax,0xd(%rsp)
movabs $0x6961662063657865,%rax
66 61 69
mov    %rax,0x8(%rsp)
mov    0x8(%rsi),%rdi
add    $0x10,%rsi
call   1040 <execve@plt>
lea    0x8(%rsp),%rsi
mov    $0x2,%edi
mov    $0xc,%edx
call   1030 <write@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@__const.main.msg = [13 x i8] c"exec failed\0A\00"
define i32 @main(i32 %0, i8** %1, i8** %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i8**
%8 = alloca [13 x i8]
store i32 0, i32* %4
store i32 %0, i32* %5
store i8** %1, i8*** %6
store i8** %2, i8*** %7
%9 = bitcast [13 x i8]* %8 to i8*
%10 = load i8**, i8*** %6
%11 = getelementptr inbounds i8*, i8** %10, i64 1
%12 = load i8*, i8** %11
%13 = load i8**, i8*** %6
%14 = getelementptr inbounds i8*, i8** %13, i64 2
%15 = load i8**, i8*** %7
%16 = call i32 @execve(i8* %12, i8** %14, i8** %15)
%17 = getelementptr inbounds [13 x i8], [13 x i8]* %8, i64 0, i64 0
%18 = call i32 @write(i32 2, i8* %17, i32 12)
ret i32 0
}

LLVM IR (-O2):
@__const.main.msg = [13 x i8] c"exec failed\0A\00"
define i32 @main(i32 %0, i8** %1, i8** %2) {
%4 = alloca [13 x i8]
%5 = getelementptr inbounds [13 x i8], [13 x i8]* %4, i64 0, i64 0
%6 = getelementptr inbounds i8*, i8** %1, i64 1
%7 = load i8*, i8** %6
%8 = getelementptr inbounds i8*, i8** %1, i64 2
%9 = tail call i32 @execve(i8* %7, i8** %8, i8** %2)
%10 = call i32 @write(i32 2, i8* %5, i32 12)
ret i32 0
}
int any_odd_one(unsigned x) { return (x & 0xAAAAAAAA) != 0; }


x86 assembly (clang, -O0):
<any_odd_one>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xaaaaaaaa,%eax
cmp    $0x0,%eax
setne  %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<any_odd_one>:
xor    %eax,%eax
test   $0xaaaaaaaa,%edi
setne  %al
ret

LLVM IR (-O0):
define i32 @any_odd_one(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = and i32 %3, -1431655766
%5 = icmp ne i32 %4, 0
%6 = zext i1 %5 to i32
ret i32 %6
}

LLVM IR (-O2):
define i32 @any_odd_one(i32 %0) {
%2 = and i32 %0, -1431655766
%3 = icmp ne i32 %2, 0
%4 = zext i1 %3 to i32
ret i32 %4
}
long int __infer_nondet_long_int() {
  long int ret;
  return ret;
}


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

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

LLVM IR (-O0):
define i64 @__infer_nondet_long_int() {
%1 = alloca i64
%2 = load i64, i64* %1
ret i64 %2
}

LLVM IR (-O2):
define i64 @__infer_nondet_long_int() {
ret i64 undef
}
void rop3_207_0_0(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  stk2 = ~T;
  stk1 = S | stk2;
  *D = stk1;
}


x86 assembly (clang, -O0):
<rop3_207_0_0>:
push   %rbp
mov    %rsp,%rbp
mov    %dl,%al
mov    %sil,%cl
mov    %rdi,-0x8(%rbp)
mov    %cl,-0x9(%rbp)
mov    %al,-0xa(%rbp)
movzbl -0xa(%rbp),%eax
xor    $0xffffffff,%eax
mov    %al,-0xc(%rbp)
movzbl -0x9(%rbp),%eax
movzbl -0xc(%rbp),%ecx
or     %ecx,%eax
mov    %al,-0xb(%rbp)
mov    -0xb(%rbp),%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<rop3_207_0_0>:
not    %dl
or     %sil,%dl
mov    %dl,(%rdi)
ret

LLVM IR (-O0):
define void @rop3_207_0_0(i8* %0, i8 zeroext %1, i8 zeroext %2) {
%4 = alloca i8*
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
store i8* %0, i8** %4
store i8 %1, i8* %5
store i8 %2, i8* %6
%9 = load i8, i8* %6
%10 = zext i8 %9 to i32
%11 = xor i32 %10, -1
%12 = trunc i32 %11 to i8
store i8 %12, i8* %8
%13 = load i8, i8* %5
%14 = zext i8 %13 to i32
%15 = load i8, i8* %8
%16 = zext i8 %15 to i32
%17 = or i32 %14, %16
%18 = trunc i32 %17 to i8
store i8 %18, i8* %7
%19 = load i8, i8* %7
%20 = load i8*, i8** %4
store i8 %19, i8* %20
ret void
}

LLVM IR (-O2):
define void @rop3_207_0_0(i8* nocapture writeonly %0, i8 zeroext %1, i8 zeroext %2) {
%4 = xor i8 %2, -1
%5 = or i8 %4, %1
store i8 %5, i8* %0
ret void
}
void SteamAPI_ISteamClient_Set_SteamAPI_CCheckCallbackRegisteredInProcess(
    void *self) {
  xlogf("%s(self = %p)\n", __func__, self);
}


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

x86 assembly (clang, -O2):
<SteamAPI_ISteamClient_Set_SteamAPI_CCheckCallbackRegisteredInProcess>:
mov    %rdi,%rdx
lea    0xee6(%rip),%rdi
lea    0xeee(%rip),%rsi
xor    %eax,%eax
jmp    1030 <xlogf@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"%s(self = %p)\0A\00"
@__func__.SteamAPI_ISteamClient_Set_SteamAPI_CCheckCallbackRegisteredInProcess = [69 x i8] c"SteamAPI_ISteamClient_Set_SteamAPI_CCheckCallbackRegisteredInProcess\00"
define void @SteamAPI_ISteamClient_Set_SteamAPI_CCheckCallbackRegisteredInProcess(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @xlogf to i32 (i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([69 x i8], [69 x i8]* @__func__.SteamAPI_ISteamClient_Set_SteamAPI_CCheckCallbackRegisteredInProcess, i64 0, i64 0), i8* %3)
ret void
}

LLVM IR (-O2):
@.str = [15 x i8] c"%s(self = %p)\0A\00"
@__func__.SteamAPI_ISteamClient_Set_SteamAPI_CCheckCallbackRegisteredInProcess = [69 x i8] c"SteamAPI_ISteamClient_Set_SteamAPI_CCheckCallbackRegisteredInProcess\00"
define void @SteamAPI_ISteamClient_Set_SteamAPI_CCheckCallbackRegisteredInProcess(i8* %0) {
%2 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @xlogf to i32 (i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([69 x i8], [69 x i8]* @__func__.SteamAPI_ISteamClient_Set_SteamAPI_CCheckCallbackRegisteredInProcess, i64 0, i64 0), i8* %0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ __m64;

/* Variables and functions */
int /*<<< orphan*/ _mm_unpackhi_pi16(int /*<<< orphan*/, int /*<<< orphan*/);
__m64 test79(__m64 a, __m64 b) { return _mm_unpackhi_pi16(a, b); }


x86 assembly (clang, -O0):
<test79>:
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   1030 <_mm_unpackhi_pi16@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test79>:
jmp    1030 <_mm_unpackhi_pi16@plt>

LLVM IR (-O0):
define i32 @test79(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 @_mm_unpackhi_pi16(i32 %5, i32 %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @test79(i32 %0, i32 %1) {
%3 = tail call i32 @_mm_unpackhi_pi16(i32 %0, i32 %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void usage(char *s) { fprintf(stderr, "Usage: %s -v -d <dict>\n", s); }


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

x86 assembly (clang, -O2):
<usage>:
mov    %rdi,%rdx
mov    0x2ec6(%rip),%rax
mov    (%rax),%edi
lea    0xedd(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [24 x i8] c"Usage: %s -v -d <dict>\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* %4)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [24 x i8] c"Usage: %s -v -d <dict>\0A\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
/* Variables and functions */
int EOF;
int getchar();
int /*<<< orphan*/ putchar(int);
main() {
  int c;
  while ((c = getchar()) != EOF)
    putchar(c);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    0x2ea8(%rip),%rcx
cmp    (%rcx),%eax
je     1155 <main+0x35>
mov    -0x8(%rbp),%edi
call   1030 <putchar@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   1040 <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   1030 <putchar@plt>
xor    %eax,%eax
call   1040 <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 @putchar(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 @putchar(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
}
/* Variables and functions */
int find_maximum_subarray_liner(int *, int);
int /*<<< orphan*/ printf(char *, int);
int main(void) {
  int A[16] = {13, -3, -25, 20, -3,  -16, -23, 18,
               20, -7, 12,  -5, -22, 15,  -4,  7};
  int maxsubarr;
  maxsubarr = find_maximum_subarray_liner(A, 16);
  printf("maxsubarray: %d\n", maxsubarr);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
lea    -0x40(%rbp),%rdi
lea    0xebd(%rip),%rsi
mov    $0x40,%edx
call   1050 <memcpy@plt>
lea    -0x40(%rbp),%rdi
mov    $0x10,%esi
call   1040 <find_maximum_subarray_liner@plt>
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%esi
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x48,%rsp
movaps 0xf05(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xee9(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xecd(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xeb1(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rdi
mov    $0x10,%esi
call   1040 <find_maximum_subarray_liner@plt>
lea    0xed9(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x48,%rsp
ret

LLVM IR (-O0):
@__const.main.A = [16 x i32] [i32 13, i32 -3, i32 -25, i32 20, i32 -3, i32 -16, i32 -23, i32 18, i32 20, i32 -7, i32 12, i32 -5, i32 -22, i32 15, i32 -4, i32 7]
@.str = [17 x i8] c"maxsubarray: %d\0A\00"
define i32 @main() {
%1 = alloca [16 x i32]
%2 = alloca i32
%3 = bitcast [16 x i32]* %1 to i8*
%4 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 0
%5 = call i32 @find_maximum_subarray_liner(i32* %4, i32 16)
store i32 %5, i32* %2
%6 = load i32, i32* %2
%7 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %6)
ret i32 0
}

LLVM IR (-O2):
@__const.main.A = [16 x i32] [i32 13, i32 -3, i32 -25, i32 20, i32 -3, i32 -16, i32 -23, i32 18, i32 20, i32 -7, i32 12, i32 -5, i32 -22, i32 15, i32 -4, i32 7]
@.str = [17 x i8] c"maxsubarray: %d\0A\00"
define i32 @main() {
%1 = alloca [16 x i32]
%2 = bitcast [16 x i32]* %1 to i8*
%3 = getelementptr inbounds [16 x i32], [16 x i32]* %1, i64 0, i64 0
%4 = call i32 @find_maximum_subarray_liner(i32* %3, i32 16)
%5 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %4)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ force_static_fun();
int /*<<< orphan*/ static_fun(int /*<<< orphan*/ *);
int main(int argc, char **argv) {
  static_fun(NULL);
  force_static_fun();
  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)
xor    %eax,%eax
mov    %eax,%edi
call   1030 <static_fun@plt>
mov    $0x0,%al
call   1040 <force_static_fun@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @static_fun(i32* null)
%4 = tail call i32 (...) @force_static_fun()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  int n[5] = {23, 24, 65, 97, 12};
  int i;
  for (i = 5; i >= 0; i--) {
    printf("%d\n", n[i]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeda(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xed7(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xed5(%rip),%eax
mov    %eax,-0x10(%rbp)
movl   $0x5,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jl     1171 <main+0x61>
movslq -0x24(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%esi
lea    0xeb6(%rip),%rdi
call   1030 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
jmp    1145 <main+0x35>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0xc,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x61,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x41,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x18,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x17,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 undef)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 12)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 97)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 65)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 24)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 23)
ret i32 0
}
/* Variables and functions */
size_t strlen(char *);
char *strstr(char *, char *);
char *getHTTPHeader(char *response) {
  char *re, *re2;
  re = response;
  re2 = strstr(response, "\r\n\r\n");
  re[strlen(re) - strlen(re2)] = '\0';
  return re;
}


x86 assembly (clang, -O0):
<getHTTPHeader>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xec1(%rip),%rsi
call   1040 <strstr@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x28(%rbp),%rcx
mov    %rax,%rdx
mov    -0x20(%rbp),%rax
sub    %rdx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x10(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getHTTPHeader>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r15
lea    0xed1(%rip),%rsi
call   1040 <strstr@plt>
mov    %rax,%r14
mov    %r15,%rdi
call   1030 <strlen@plt>
mov    %rax,%rbx
mov    %r14,%rdi
call   1030 <strlen@plt>
sub    %rax,%rbx
movb   $0x0,(%r15,%rbx,1)
mov    %r15,%rax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [5 x i8] c"\0D\0A\0D\0A\00"
define i8* @getHTTPHeader(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %2
%5 = load i8*, i8** %2
store i8* %5, i8** %3
%6 = load i8*, i8** %2
%7 = call i8* @strstr(i8* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
store i8* %7, i8** %4
%8 = load i8*, i8** %3
%9 = load i8*, i8** %3
%10 = call i64 @strlen(i8* %9)
%11 = load i8*, i8** %4
%12 = call i64 @strlen(i8* %11)
%13 = sub i64 %10, %12
%14 = getelementptr inbounds i8, i8* %8, i64 %13
store i8 0, i8* %14
%15 = load i8*, i8** %3
ret i8* %15
}

LLVM IR (-O2):
@.str = [5 x i8] c"\0D\0A\0D\0A\00"
define i8* @getHTTPHeader(i8* returned %0) {
%2 = tail call i8* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%3 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%4 = tail call i64 @strlen(i8* dereferenceable(1) %2)
%5 = sub i64 %3, %4
%6 = getelementptr inbounds i8, i8* %0, i64 %5
store i8 0, i8* %6
ret i8* %0
}
/* Type definitions */
struct human_s {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct human_s *);
int human_free_entry(void *entry_ptr) {
  struct human_s *entry = (struct human_s *)entry_ptr;
  free(entry);
  return 0;
}


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

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

LLVM IR (-O0):
%struct.human_s = type { i32 }
define i32 @human_free_entry(i8* %0) {
%2 = alloca i8*
%3 = alloca %struct.human_s*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = bitcast i8* %4 to %struct.human_s*
store %struct.human_s* %5, %struct.human_s** %3
%6 = load %struct.human_s*, %struct.human_s** %3
%7 = call i32 @free(%struct.human_s* %6)
ret i32 0
}

LLVM IR (-O2):
%struct.human_s = type { i32 }
define i32 @human_free_entry(i8* nocapture %0) {
%2 = bitcast i8* %0 to %struct.human_s*
%3 = tail call i32 @free(%struct.human_s* %2)
ret i32 0
}