xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ genExtra3(char *);
void _foo_foo_() {
  genExtra3("#define FSUB1(name) PREFIX(SUFFIX(LOWCASE(name)))");
}


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

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

LLVM IR (-O0):
@.str = [50 x i8] c"#define FSUB1(name) PREFIX(SUFFIX(LOWCASE(name)))\00"
define void @_foo_foo_() {
%1 = call i32 @genExtra3(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [50 x i8] c"#define FSUB1(name) PREFIX(SUFFIX(LOWCASE(name)))\00"
define void @_foo_foo_() {
%1 = tail call i32 @genExtra3(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int listen(int, int);
int /*<<< orphan*/ unix_error(char *);
void Listen(int s, int backlog) {
  int n;
  if ((n = listen(s, backlog)) < 0)
    unix_error("listen error");
}


x86 assembly (clang, -O0):
<Listen>:
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   1040 <listen@plt>
mov    %eax,-0xc(%rbp)
cmp    $0x0,%eax
jge    1151 <Listen+0x31>
lea    0xeb4(%rip),%rdi
call   1030 <unix_error@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Listen>:
push   %rax
call   1040 <listen@plt>
test   %eax,%eax
js     112c <Listen+0xc>
pop    %rax
ret
lea    0xecd(%rip),%rdi
pop    %rax
jmp    1030 <unix_error@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"listen error\00"
define void @Listen(i32 %0, i32 %1) {
%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 = load i32, i32* %4
%8 = call i32 @listen(i32 %6, i32 %7)
store i32 %8, i32* %5
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 @unix_error(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
br label %12
12: ; preds = %10, %2
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"listen error\00"
define void @Listen(i32 %0, i32 %1) {
%3 = tail call i32 @listen(i32 %0, i32 %1)
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @unix_error(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
br label %7
7: ; preds = %5, %2
ret void
}
void autonomous6() {}


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

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

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

LLVM IR (-O2):
define void @autonomous6() {
ret void
}
int min_int(const int a, const int b) {
  if (b > a) {
    return a;
  }
  return b;
}


x86 assembly (clang, -O0):
<min_int>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    1121 <min_int+0x21>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1127 <min_int+0x27>
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<min_int>:
mov    %esi,%eax
cmp    %edi,%esi
cmovg  %edi,%eax
ret

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

LLVM IR (-O2):
define i32 @min_int(i32 %0, i32 %1) {
%3 = icmp sgt i32 %1, %0
%4 = select i1 %3, i32 %0, i32 %1
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ MC_avg_xy_mmx(int, int, int /*<<< orphan*/ *,
                                 int /*<<< orphan*/ const *, int);
void MC_avg_xy_16_mmx(uint8_t *dest, const uint8_t *ref, int stride,
                      int height) {
  MC_avg_xy_mmx(16, height, dest, ref, stride);
}


x86 assembly (clang, -O0):
<MC_avg_xy_16_mmx>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    -0x18(%rbp),%esi
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x14(%rbp),%r8d
mov    $0x10,%edi
call   1030 <MC_avg_xy_mmx@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MC_avg_xy_16_mmx>:
mov    %edx,%r8d
mov    %rsi,%rax
mov    %rdi,%rdx
mov    $0x10,%edi
mov    %ecx,%esi
mov    %rax,%rcx
jmp    1030 <MC_avg_xy_mmx@plt>

LLVM IR (-O0):
define void @MC_avg_xy_16_mmx(i32* %0, i32* %1, i32 %2, i32 %3) {
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i32
store i32* %0, i32** %5
store i32* %1, i32** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* %8
%10 = load i32*, i32** %5
%11 = load i32*, i32** %6
%12 = load i32, i32* %7
%13 = call i32 @MC_avg_xy_mmx(i32 16, i32 %9, i32* %10, i32* %11, i32 %12)
ret void
}

LLVM IR (-O2):
define void @MC_avg_xy_16_mmx(i32* %0, i32* %1, i32 %2, i32 %3) {
%5 = tail call i32 @MC_avg_xy_mmx(i32 16, i32 %3, i32* %0, i32* %1, i32 %2)
ret void
}
/* Type definitions */
struct task_struct {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ irqtime_account_irq(struct task_struct *);
int /*<<< orphan*/ vtime_account(struct task_struct *);
void vtime_account_irq_enter(struct task_struct *tsk) {
  vtime_account(tsk);
  irqtime_account_irq(tsk);
}


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

x86 assembly (clang, -O2):
<vtime_account_irq_enter>:
push   %rbx
mov    %rdi,%rbx
call   1040 <vtime_account@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <irqtime_account_irq@plt>

LLVM IR (-O0):
%struct.task_struct = type { i32 }
define void @vtime_account_irq_enter(%struct.task_struct* %0) {
%2 = alloca %struct.task_struct*
store %struct.task_struct* %0, %struct.task_struct** %2
%3 = load %struct.task_struct*, %struct.task_struct** %2
%4 = call i32 @vtime_account(%struct.task_struct* %3)
%5 = load %struct.task_struct*, %struct.task_struct** %2
%6 = call i32 @irqtime_account_irq(%struct.task_struct* %5)
ret void
}

LLVM IR (-O2):
%struct.task_struct = type { i32 }
define void @vtime_account_irq_enter(%struct.task_struct* %0) {
%2 = tail call i32 @vtime_account(%struct.task_struct* %0)
%3 = tail call i32 @irqtime_account_irq(%struct.task_struct* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ self_test(char *);
int main(void) {
  self_test("../../gcode/test/input");
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [23 x i8] c"../../gcode/test/input\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @self_test(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [23 x i8] c"../../gcode/test/input\00"
define i32 @main() {
%1 = tail call i32 @self_test(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
scalar_t__ tbcw_thread1();
void *tbcw_thread1_wrap(void *v __attribute__((unused))) {
  return (void *)(intptr_t)tbcw_thread1();
}


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

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

LLVM IR (-O0):
define i8* @tbcw_thread1_wrap(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i64 (...) @tbcw_thread1()
%4 = inttoptr i64 %3 to i8*
ret i8* %4
}

LLVM IR (-O2):
define i8* @tbcw_thread1_wrap(i8* nocapture readnone %0) {
%2 = tail call i64 (...) @tbcw_thread1()
%3 = inttoptr i64 %2 to i8*
ret i8* %3
}
int V3DTextureIsPowerOf2(int num) {
  int i;
  for (i = 1; i < num; i = (i << 1)) {
    if (num & i)
      return (0);
  }
  return (1);
}


x86 assembly (clang, -O0):
<V3DTextureIsPowerOf2>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1148 <V3DTextureIsPowerOf2+0x48>
mov    -0x8(%rbp),%eax
and    -0xc(%rbp),%eax
cmp    $0x0,%eax
je     1135 <V3DTextureIsPowerOf2+0x35>
movl   $0x0,-0x4(%rbp)
jmp    114f <V3DTextureIsPowerOf2+0x4f>
jmp    113a <V3DTextureIsPowerOf2+0x3a>
mov    -0xc(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110e <V3DTextureIsPowerOf2+0xe>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<V3DTextureIsPowerOf2>:
mov    $0x1,%eax
cmp    $0x2,%edi
jl     1122 <V3DTextureIsPowerOf2+0x22>
mov    $0x1,%eax
nop
test   %edi,%eax
jne    1120 <V3DTextureIsPowerOf2+0x20>
add    %eax,%eax
cmp    %edi,%eax
jl     1110 <V3DTextureIsPowerOf2+0x10>
mov    $0x1,%eax
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @V3DTextureIsPowerOf2(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 1, i32* %4
br label %5
5: ; preds = %16, %1
%6 = load i32, i32* %4
%7 = load i32, i32* %3
%8 = icmp slt i32 %6, %7
br i1 %8, label %9, label %19
9: ; preds = %5
%10 = load i32, i32* %3
%11 = load i32, i32* %4
%12 = and i32 %10, %11
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %9
store i32 0, i32* %2
br label %20
15: ; preds = %9
br label %16
16: ; preds = %15
%17 = load i32, i32* %4
%18 = shl i32 %17, 1
store i32 %18, i32* %4
br label %5
19: ; preds = %5
store i32 1, i32* %2
br label %20
20: ; preds = %19, %14
%21 = load i32, i32* %2
ret i32 %21
}

LLVM IR (-O2):
define i32 @V3DTextureIsPowerOf2(i32 %0) {
%2 = icmp sgt i32 %0, 1
br i1 %2, label %5, label %10
3: ; preds = %5
%4 = icmp slt i32 %9, %0
br i1 %4, label %5, label %10
5: ; preds = %1, %3
%6 = phi i32 [ %9, %3 ], [ 1, %1 ]
%7 = and i32 %6, %0
%8 = icmp eq i32 %7, 0
%9 = shl i32 %6, 1
br i1 %8, label %3, label %10
10: ; preds = %5, %3, %1
%11 = phi i32 [ 1, %1 ], [ 1, %3 ], [ 0, %5 ]
ret i32 %11
}
/* Type definitions */
struct dm_hash_table {
  int dummy;
};

/* Variables and functions */
void *dm_hash_lookup_binary(struct dm_hash_table *, char const *, scalar_t__);
scalar_t__ strlen(char const *);
void *dm_hash_lookup(struct dm_hash_table *t, const char *key) {
  return dm_hash_lookup_binary(t, key, strlen(key) + 1);
}


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

x86 assembly (clang, -O2):
<dm_hash_lookup>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
call   1030 <strlen@plt>
lea    0x1(%rax),%rdx
mov    %r14,%rdi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <dm_hash_lookup_binary@plt>

LLVM IR (-O0):
%struct.dm_hash_table = type { i32 }
define i8* @dm_hash_lookup(%struct.dm_hash_table* %0, i8* %1) {
%3 = alloca %struct.dm_hash_table*
%4 = alloca i8*
store %struct.dm_hash_table* %0, %struct.dm_hash_table** %3
store i8* %1, i8** %4
%5 = load %struct.dm_hash_table*, %struct.dm_hash_table** %3
%6 = load i8*, i8** %4
%7 = load i8*, i8** %4
%8 = call i64 @strlen(i8* %7)
%9 = add nsw i64 %8, 1
%10 = call i8* @dm_hash_lookup_binary(%struct.dm_hash_table* %5, i8* %6, i64 %9)
ret i8* %10
}

LLVM IR (-O2):
%struct.dm_hash_table = type { i32 }
define i8* @dm_hash_lookup(%struct.dm_hash_table* %0, i8* %1) {
%3 = tail call i64 @strlen(i8* dereferenceable(1) %1)
%4 = add nsw i64 %3, 1
%5 = tail call i8* @dm_hash_lookup_binary(%struct.dm_hash_table* %0, i8* %1, i64 %4)
ret i8* %5
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int fputc(int, int /*<<< orphan*/ *);
int putc(int c, FILE *fp) { return fputc(c, fp); }


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

x86 assembly (clang, -O2):
<putc>:
jmp    1030 <fputc@plt>

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

LLVM IR (-O2):
define i32 @putc(i32 %0, i32* nocapture %1) {
%3 = tail call i32 @fputc(i32 %0, i32* %1)
ret i32 %3
}
/* Variables and functions */
int LZ4_compress_default(char const *, char *, int, int);
int LZ4_compress_limitedOutput(const char *source, char *dest, int inputSize,
                               int maxOutputSize) {
  return LZ4_compress_default(source, dest, inputSize, maxOutputSize);
}


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

x86 assembly (clang, -O2):
<LZ4_compress_limitedOutput>:
jmp    1030 <LZ4_compress_default@plt>

LLVM IR (-O0):
define i32 @LZ4_compress_limitedOutput(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i8*, i8** %5
%10 = load i8*, i8** %6
%11 = load i32, i32* %7
%12 = load i32, i32* %8
%13 = call i32 @LZ4_compress_default(i8* %9, i8* %10, i32 %11, i32 %12)
ret i32 %13
}

LLVM IR (-O2):
define i32 @LZ4_compress_limitedOutput(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = tail call i32 @LZ4_compress_default(i8* %0, i8* %1, i32 %2, i32 %3)
ret i32 %5
}
/* Variables and functions */
scalar_t__ atof(char *);
int /*<<< orphan*/ printf(char *, float);
void main() {
  char *a = "-1";
  float b = (int)atof(a);
  printf("%f", b);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <atof@plt>
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
lea    0xeb2(%rip),%rdi
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <atof@plt>
cvtsi2ss %eax,%xmm0
lea    0xecb(%rip),%rdi
pop    %rax
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"-1\00"
@.str.1 = [3 x i8] c"%f\00"
define void @main() {
%1 = alloca i8*
%2 = alloca float
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8** %1
%3 = load i8*, i8** %1
%4 = call i64 @atof(i8* %3)
%5 = trunc i64 %4 to i32
%6 = sitofp i32 %5 to float
store float %6, float* %2
%7 = load float, float* %2
%8 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float %7)
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"-1\00"
@.str.1 = [3 x i8] c"%f\00"
define void @main() {
%1 = tail call i64 @atof(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%2 = trunc i64 %1 to i32
%3 = sitofp i32 %2 to float
%4 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float %3)
ret void
}
unsigned cntl0(unsigned char x) {
  static const unsigned char clz_lookup[16] = {4, 3, 2, 2, 1, 1, 1, 1,
                                               0, 0, 0, 0, 0, 0, 0, 0};
  unsigned char upper = x >> 4;
  unsigned char lower = x & 0x0F;
  return upper ? clz_lookup[upper] : 4 + clz_lookup[lower];
}


x86 assembly (clang, -O0):
<cntl0>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
sar    $0x4,%eax
mov    %al,-0x2(%rbp)
movzbl -0x1(%rbp),%eax
and    $0xf,%eax
mov    %al,-0x3(%rbp)
movzbl -0x2(%rbp),%eax
cmp    $0x0,%eax
je     1144 <cntl0+0x44>
movzbl -0x2(%rbp),%eax
mov    %eax,%ecx
lea    0xec8(%rip),%rax
movzbl (%rax,%rcx,1),%eax
mov    %eax,-0x8(%rbp)
jmp    115b <cntl0+0x5b>
movzbl -0x3(%rbp),%eax
mov    %eax,%ecx
lea    0xeaf(%rip),%rax
movzbl (%rax,%rcx,1),%eax
add    $0x4,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<cntl0>:
movzbl %dil,%eax
cmp    $0x10,%dil
jae    1119 <cntl0+0x19>
lea    0xeef(%rip),%rcx
movzbl (%rax,%rcx,1),%eax
add    $0x4,%eax
ret
shr    $0x4,%rax
lea    0xedc(%rip),%rcx
movzbl (%rax,%rcx,1),%eax
ret

LLVM IR (-O0):
@cntl0.clz_lookup = internal constant <{ [8 x i8], [8 x i8] }> <{ [8 x i8] c"\04\03\02\02\01\01\01\01", [8 x i8] zeroinitializer }>
define i32 @cntl0(i8 zeroext %0) {
%2 = alloca i8
%3 = alloca i8
%4 = alloca i8
store i8 %0, i8* %2
%5 = load i8, i8* %2
%6 = zext i8 %5 to i32
%7 = ashr i32 %6, 4
%8 = trunc i32 %7 to i8
store i8 %8, i8* %3
%9 = load i8, i8* %2
%10 = zext i8 %9 to i32
%11 = and i32 %10, 15
%12 = trunc i32 %11 to i8
store i8 %12, i8* %4
%13 = load i8, i8* %3
%14 = zext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %22
16: ; preds = %1
%17 = load i8, i8* %3
%18 = zext i8 %17 to i64
%19 = getelementptr inbounds [16 x i8], [16 x i8]* bitcast (<{ [8 x i8], [8 x i8] }>* @cntl0.clz_lookup to [16 x i8]*), i64 0, i64 %18
%20 = load i8, i8* %19
%21 = zext i8 %20 to i32
br label %29
22: ; preds = %1
%23 = load i8, i8* %4
%24 = zext i8 %23 to i64
%25 = getelementptr inbounds [16 x i8], [16 x i8]* bitcast (<{ [8 x i8], [8 x i8] }>* @cntl0.clz_lookup to [16 x i8]*), i64 0, i64 %24
%26 = load i8, i8* %25
%27 = zext i8 %26 to i32
%28 = add nsw i32 4, %27
br label %29
29: ; preds = %22, %16
%30 = phi i32 [ %21, %16 ], [ %28, %22 ]
ret i32 %30
}

LLVM IR (-O2):
@cntl0.clz_lookup = internal unnamed_addr constant <{ [8 x i8], [8 x i8] }> <{ [8 x i8] c"\04\03\02\02\01\01\01\01", [8 x i8] zeroinitializer }>
define i32 @cntl0(i8 zeroext %0) {
%2 = icmp ult i8 %0, 16
br i1 %2, label %9, label %3
3: ; preds = %1
%4 = lshr i8 %0, 4
%5 = zext i8 %4 to i64
%6 = getelementptr inbounds [16 x i8], [16 x i8]* bitcast (<{ [8 x i8], [8 x i8] }>* @cntl0.clz_lookup to [16 x i8]*), i64 0, i64 %5
%7 = load i8, i8* %6
%8 = zext i8 %7 to i32
br label %15
9: ; preds = %1
%10 = zext i8 %0 to i64
%11 = getelementptr inbounds [16 x i8], [16 x i8]* bitcast (<{ [8 x i8], [8 x i8] }>* @cntl0.clz_lookup to [16 x i8]*), i64 0, i64 %10
%12 = load i8, i8* %11
%13 = zext i8 %12 to i32
%14 = add nuw nsw i32 %13, 4
br label %15
15: ; preds = %9, %3
%16 = phi i32 [ %8, %3 ], [ %14, %9 ]
ret i32 %16
}
int test_imm_F7uint16_reg(unsigned short val) {
  return ((val) & (-0xF7 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_F7uint16_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
movzwl -0x2(%rbp),%edx
and    $0xffffff09,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_F7uint16_reg>:
test   $0xff09,%edi
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_F7uint16_reg(i16 zeroext %0) {
%2 = alloca i16
store i16 %0, i16* %2
%3 = load i16, i16* %2
%4 = zext i16 %3 to i32
%5 = and i32 %4, -247
%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_F7uint16_reg(i16 zeroext %0) {
%2 = and i16 %0, -247
%3 = icmp eq i16 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ U_WMRNOTIMPLEMENTED_swap(char *, int);
void U_WMRD9_swap(char *record, int torev) {
  U_WMRNOTIMPLEMENTED_swap(record, torev);
}


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

x86 assembly (clang, -O2):
<U_WMRD9_swap>:
jmp    1030 <U_WMRNOTIMPLEMENTED_swap@plt>

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

LLVM IR (-O2):
define void @U_WMRD9_swap(i8* %0, i32 %1) {
%3 = tail call i32 @U_WMRNOTIMPLEMENTED_swap(i8* %0, i32 %1)
ret void
}
unsigned long elf_hash(const unsigned char *name) {
  unsigned long h = 0, g;
  while (*name) {
    h = (h << 4) + *name++;
    if (g = h & 0xf0000000) {
      h ^= g >> 24;
    }
    h &= ~g;
  }
  return h;
}


x86 assembly (clang, -O0):
<elf_hash>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     117f <elf_hash+0x7f>
mov    -0x10(%rbp),%rax
shl    $0x4,%rax
mov    -0x8(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x8(%rbp)
movzbl (%rcx),%ecx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
movabs $0xf0000000,%rax
and    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
je     116a <elf_hash+0x6a>
mov    -0x18(%rbp),%rax
shr    $0x18,%rax
xor    -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rax
xor    $0xffffffffffffffff,%rax
and    -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
jmp    1110 <elf_hash+0x10>
mov    -0x10(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<elf_hash>:
mov    (%rdi),%cl
test   %cl,%cl
je     113d <elf_hash+0x3d>
add    $0x1,%rdi
xor    %eax,%eax
nopl   0x0(%rax)
shl    $0x4,%rax
movzbl %cl,%ecx
add    %rax,%rcx
mov    %ecx,%eax
and    $0xf0000000,%eax
mov    %rax,%rdx
shr    $0x18,%rdx
xor    %rcx,%rdx
not    %rax
and    %rdx,%rax
movzbl (%rdi),%ecx
add    $0x1,%rdi
test   %cl,%cl
jne    1110 <elf_hash+0x10>
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
define i64 @elf_hash(i8* %0) {
%2 = alloca i8*
%3 = alloca i64
%4 = alloca i64
store i8* %0, i8** %2
store i64 0, i64* %3
br label %5
5: ; preds = %25, %1
%6 = load i8*, i8** %2
%7 = load i8, i8* %6
%8 = icmp ne i8 %7, 0
br i1 %8, label %9, label %30
9: ; preds = %5
%10 = load i64, i64* %3
%11 = shl i64 %10, 4
%12 = load i8*, i8** %2
%13 = getelementptr inbounds i8, i8* %12, i32 1
store i8* %13, i8** %2
%14 = load i8, i8* %12
%15 = zext i8 %14 to i64
%16 = add i64 %11, %15
store i64 %16, i64* %3
%17 = load i64, i64* %3
%18 = and i64 %17, 4026531840
store i64 %18, i64* %4
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %25
20: ; preds = %9
%21 = load i64, i64* %4
%22 = lshr i64 %21, 24
%23 = load i64, i64* %3
%24 = xor i64 %23, %22
store i64 %24, i64* %3
br label %25
25: ; preds = %20, %9
%26 = load i64, i64* %4
%27 = xor i64 %26, -1
%28 = load i64, i64* %3
%29 = and i64 %28, %27
store i64 %29, i64* %3
br label %5
30: ; preds = %5
%31 = load i64, i64* %3
ret i64 %31
}

LLVM IR (-O2):
define i64 @elf_hash(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %19, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %17, %4 ], [ %2, %1 ]
%6 = phi i8* [ %9, %4 ], [ %0, %1 ]
%7 = phi i64 [ %16, %4 ], [ 0, %1 ]
%8 = shl i64 %7, 4
%9 = getelementptr inbounds i8, i8* %6, i64 1
%10 = zext i8 %5 to i64
%11 = add i64 %8, %10
%12 = and i64 %11, 4026531840
%13 = lshr exact i64 %12, 24
%14 = xor i64 %13, %11
%15 = xor i64 %12, -1
%16 = and i64 %14, %15
%17 = load i8, i8* %9
%18 = icmp eq i8 %17, 0
br i1 %18, label %19, label %4
19: ; preds = %4, %1
%20 = phi i64 [ 0, %1 ], [ %16, %4 ]
ret i64 %20
}
void gtk_tree_view_column_new_with_attributes() {}


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

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

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

LLVM IR (-O2):
define void @gtk_tree_view_column_new_with_attributes() {
ret void
}
int get_HasGDS(unsigned char *pds) { return (pds[7] & 128) != 0; }


x86 assembly (clang, -O0):
<get_HasGDS>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movzbl 0x7(%rax),%eax
and    $0x80,%eax
cmp    $0x0,%eax
setne  %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_HasGDS>:
movzbl 0x7(%rdi),%eax
shr    $0x7,%eax
ret

LLVM IR (-O0):
define i32 @get_HasGDS(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = getelementptr inbounds i8, i8* %3, i64 7
%5 = load i8, i8* %4
%6 = zext i8 %5 to i32
%7 = and i32 %6, 128
%8 = icmp ne i32 %7, 0
%9 = zext i1 %8 to i32
ret i32 %9
}

LLVM IR (-O2):
define i32 @get_HasGDS(i8* nocapture %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 7
%3 = load i8, i8* %2
%4 = lshr i8 %3, 7
%5 = zext i8 %4 to i32
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ execl(char *, char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, char *);
int xdoj_jc3_toplev(int argc, char **argv) {
  printf("%s: dummy.\n", argv[0]);
  execl("/usr/bin/fortune", "fortune", NULL);
  return argc;
}


x86 assembly (clang, -O0):
<xdoj_jc3_toplev>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xec3(%rip),%rdi
call   1030 <printf@plt>
lea    0xec3(%rip),%rdi
lea    0xec5(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1040 <execl@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xdoj_jc3_toplev>:
push   %rbx
mov    %edi,%ebx
mov    (%rsi),%rsi
lea    0xed3(%rip),%rdi
call   1030 <printf@plt>
lea    0xed3(%rip),%rdi
lea    0xed5(%rip),%rsi
xor    %edx,%edx
call   1040 <execl@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"%s: dummy.\0A\00"
@.str.1 = [17 x i8] c"/usr/bin/fortune\00"
@.str.2 = [8 x i8] c"fortune\00"
define i32 @xdoj_jc3_toplev(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = load i8**, i8*** %4
%6 = getelementptr inbounds i8*, i8** %5, i64 0
%7 = load i8*, i8** %6
%8 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = call i32 @execl(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32* null)
%10 = load i32, i32* %3
ret i32 %10
}

LLVM IR (-O2):
@.str = [12 x i8] c"%s: dummy.\0A\00"
@.str.1 = [17 x i8] c"/usr/bin/fortune\00"
@.str.2 = [8 x i8] c"fortune\00"
define i32 @xdoj_jc3_toplev(i32 returned %0, i8** nocapture %1) {
%3 = load i8*, i8** %1
%4 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = tail call i32 @execl(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32* null)
ret i32 %0
}
/* Type definitions */
typedef int /*<<< orphan*/ wchar_t;

/* Variables and functions */
int towide_euc_impl(int /*<<< orphan*/ *, char const *, unsigned int, int, int,
                    int, int);
int towide_eucjp(wchar_t *wc, const char *mb, unsigned n) {
  return (towide_euc_impl(wc, mb, n, 0x8e, 2, 0x8f, 3));
}


x86 assembly (clang, -O0):
<towide_eucjp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    $0x8e,%ecx
mov    $0x2,%r8d
mov    $0x8f,%r9d
movl   $0x3,(%rsp)
call   1030 <towide_euc_impl@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<towide_eucjp>:
push   %rax
movl   $0x3,(%rsp)
mov    $0x8e,%ecx
mov    $0x2,%r8d
mov    $0x8f,%r9d
call   1030 <towide_euc_impl@plt>
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @towide_eucjp(i32* %0, i8* %1, i32 %2) {
%4 = tail call i32 @towide_euc_impl(i32* %0, i8* %1, i32 %2, i32 142, i32 2, i32 143, i32 3)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ send_command(int);
void invert_screen() { send_command(0xa7); }


x86 assembly (clang, -O0):
<invert_screen>:
push   %rbp
mov    %rsp,%rbp
mov    $0xa7,%edi
call   1030 <send_command@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<invert_screen>:
mov    $0xa7,%edi
jmp    1030 <send_command@plt>

LLVM IR (-O0):
define void @invert_screen() {
%1 = call i32 @send_command(i32 167)
ret void
}

LLVM IR (-O2):
define void @invert_screen() {
%1 = tail call i32 @send_command(i32 167)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ echo();
int /*<<< orphan*/ endwin();
int /*<<< orphan*/ nocbreak();
void cleanup(void) {
  nocbreak();
  echo();
  endwin();
}


x86 assembly (clang, -O0):
<cleanup>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <nocbreak@plt>
mov    $0x0,%al
call   1030 <echo@plt>
mov    $0x0,%al
call   1040 <endwin@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<cleanup>:
push   %rax
xor    %eax,%eax
call   1050 <nocbreak@plt>
xor    %eax,%eax
call   1030 <echo@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <endwin@plt>

LLVM IR (-O0):
define void @cleanup() {
%1 = call i32 (...) @nocbreak()
%2 = call i32 (...) @echo()
%3 = call i32 (...) @endwin()
ret void
}

LLVM IR (-O2):
define void @cleanup() {
%1 = tail call i32 (...) @nocbreak()
%2 = tail call i32 (...) @echo()
%3 = tail call i32 (...) @endwin()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
char *strdup(char *);
void parser_replace_item(char **var, char *newitem) {
  free(*var);
  *var = strdup(newitem);
}


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

x86 assembly (clang, -O2):
<parser_replace_item>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    (%rdi),%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1040 <strdup@plt>
mov    %rax,(%rbx)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @parser_replace_item(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** %5
%7 = call i32 @free(i8* %6)
%8 = load i8*, i8** %4
%9 = call i8* @strdup(i8* %8)
%10 = load i8**, i8*** %3
store i8* %9, i8** %10
ret void
}

LLVM IR (-O2):
define void @parser_replace_item(i8** nocapture %0, i8* nocapture %1) {
%3 = load i8*, i8** %0
%4 = tail call i32 @free(i8* %3)
%5 = tail call i8* @strdup(i8* %1)
store i8* %5, i8** %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void help(void) {
  fprintf(stderr, "Usage: -i <input> {output}\n"
                  "Output:\n"
                  " ASUS: 	  -r <id>,<v1>,<v2>,<v3>,<v4>,<output file>\n"
                  "\n");
  exit(1);
}


x86 assembly (clang, -O0):
<help>:
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):
<help>:
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 = [89 x i8] c"Usage: -i <input> {output}\0AOutput:\0A ASUS: \09 -r <id>,<v1>,<v2>,<v3>,<v4>,<output file>\0A\0A\00"
define void @help() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [89 x i8] c"Usage: -i <input> {output}\0AOutput:\0A ASUS: \09 -r <id>,<v1>,<v2>,<v3>,<v4>,<output file>\0A\0A\00"
define void @help() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int f(int);
int /*<<< orphan*/ printf(char *, int);
int main(void) {
  int i = 0;
  i = f(f(i));
  printf("%d", i);
  return 0;
}


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

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

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = tail call i32 @f(i32 0)
%2 = tail call i32 @f(i32 %1)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %2)
ret i32 0
}
const char *hocr_get_build_string() { return "Development build"; }


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

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

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

LLVM IR (-O2):
@.str = [18 x i8] c"Development build\00"
define i8* @hocr_get_build_string() {
ret i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0)
}
/* Type definitions */
struct scsi_request {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ __scsi_release_request(struct scsi_request *);
int /*<<< orphan*/ kfree(void const *);
void scsi_release_request(struct scsi_request *sreq) {
  {
    __scsi_release_request(sreq);
    kfree((void const *)sreq);
    return;
  }
}


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

x86 assembly (clang, -O2):
<scsi_release_request>:
push   %rbx
mov    %rdi,%rbx
call   1040 <__scsi_release_request@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <kfree@plt>

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

LLVM IR (-O2):
%struct.scsi_request = type { i32 }
define void @scsi_release_request(%struct.scsi_request* %0) {
%2 = tail call i32 @__scsi_release_request(%struct.scsi_request* %0)
%3 = bitcast %struct.scsi_request* %0 to i8*
%4 = tail call i32 @kfree(i8* %3)
ret void
}
/* Variables and functions */
char *strdup(char const *);
int /*<<< orphan*/ unix_error(char *);
char *Strdup(const char *s1) {
  char *p;
  if ((p = strdup(s1)) == NULL) {
    unix_error("stdrup failed");
  }
  return (p);
}


x86 assembly (clang, -O0):
<Strdup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strdup@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
jne    114f <Strdup+0x2f>
lea    0xeb6(%rip),%rdi
call   1030 <unix_error@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Strdup>:
push   %rbx
call   1040 <strdup@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    113a <Strdup+0x1a>
lea    0xecb(%rip),%rdi
call   1030 <unix_error@plt>
mov    %rbx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [14 x i8] c"stdrup failed\00"
define noalias i8* @Strdup(i8* nocapture %0) {
%2 = tail call i8* @strdup(i8* %0)
%3 = icmp eq i8* %2, null
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 @unix_error(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
br label %6
6: ; preds = %4, %1
ret i8* %2
}
/* Variables and functions */
bool nrf52_errata_116(void) { return false; }


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

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

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

LLVM IR (-O2):
define i32 @nrf52_errata_116() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ OS_TaskRegister();
void task_12(void) {
  OS_TaskRegister();
  while (1)
    ;
  return;
}


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

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

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

LLVM IR (-O2):
define void @task_12() {
%1 = tail call i32 (...) @OS_TaskRegister()
br label %2
2: ; preds = %0, %2
br label %2
}
int issetugid(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @issetugid() {
ret i32 0
}
/* Variables and functions */
int f11(int *);
int f12(int *p) { return f11(p); }


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

x86 assembly (clang, -O2):
<f12>:
jmp    1030 <f11@plt>

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

LLVM IR (-O2):
define i32 @f12(i32* %0) {
%2 = tail call i32 @f11(i32* %0)
ret i32 %2
}
void g_DUMMY_scrollbar_connect(int win_id, int vp_id, float wx1, float wy1,
                               float wx2, float wy2, long flag) {
  win_id = win_id;
  vp_id = vp_id;
  wx1 = wx1;
  wy1 = wy1;
  wx2 = wx2;
  wy2 = wy2;
  flag = flag;
}


x86 assembly (clang, -O0):
<g_DUMMY_scrollbar_connect>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
movss  %xmm1,-0x10(%rbp)
movss  %xmm2,-0x14(%rbp)
movss  %xmm3,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x20(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @g_DUMMY_scrollbar_connect(i32 %0, i32 %1, float %2, float %3, float %4, float %5, i64 %6) {
%8 = alloca i32
%9 = alloca i32
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca i64
store i32 %0, i32* %8
store i32 %1, i32* %9
store float %2, float* %10
store float %3, float* %11
store float %4, float* %12
store float %5, float* %13
store i64 %6, i64* %14
%15 = load i32, i32* %8
store i32 %15, i32* %8
%16 = load i32, i32* %9
store i32 %16, i32* %9
%17 = load float, float* %10
store float %17, float* %10
%18 = load float, float* %11
store float %18, float* %11
%19 = load float, float* %12
store float %19, float* %12
%20 = load float, float* %13
store float %20, float* %13
%21 = load i64, i64* %14
store i64 %21, i64* %14
ret void
}

LLVM IR (-O2):
define void @g_DUMMY_scrollbar_connect(i32 %0, i32 %1, float %2, float %3, float %4, float %5, i64 %6) {
ret void
}
int main() {
  __builtin_va_list vl;
  return f(vl);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x20(%rbp),%rdi
mov    $0x0,%al
call   1030 <f@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
mov    %rsp,%rdi
xor    %eax,%eax
call   1030 <f@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.__va_list_tag = type { i32, i32, i8*, i8* }
define i32 @main() {
%1 = alloca i32
%2 = alloca [1 x %struct.__va_list_tag]
store i32 0, i32* %1
%3 = getelementptr inbounds [1 x %struct.__va_list_tag], [1 x %struct.__va_list_tag]* %2, i64 0, i64 0
%4 = call i32 (%struct.__va_list_tag*, ...) bitcast (i32 (...)* @f to i32 (%struct.__va_list_tag*, ...)*)(%struct.__va_list_tag* %3)
ret i32 %4
}

LLVM IR (-O2):
%struct.__va_list_tag = type { i32, i32, i8*, i8* }
define i32 @main() {
%1 = alloca [1 x %struct.__va_list_tag]
%2 = bitcast [1 x %struct.__va_list_tag]* %1 to i8*
%3 = getelementptr inbounds [1 x %struct.__va_list_tag], [1 x %struct.__va_list_tag]* %1, i64 0, i64 0
%4 = call i32 (%struct.__va_list_tag*, ...) bitcast (i32 (...)* @f to i32 (%struct.__va_list_tag*, ...)*)(%struct.__va_list_tag* %3)
ret i32 %4
}
/* Type definitions */
struct stat {
  int /*<<< orphan*/ st_mode;
};

/* Variables and functions */
scalar_t__ S_ISDIR(int /*<<< orphan*/);
int /*<<< orphan*/ stat(char const *, struct stat *);
int isdir(const char *path) {
  struct stat st;
  if (NULL == path) {
    return 1;
  }
  stat(path, &st);
  return S_ISDIR(st.st_mode) ? 0 : 1;
}


x86 assembly (clang, -O0):
<isdir>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
xor    %eax,%eax
cmp    -0x10(%rbp),%rax
jne    1144 <isdir+0x24>
movl   $0x1,-0x4(%rbp)
jmp    116d <isdir+0x4d>
mov    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <stat@plt>
mov    -0x18(%rbp),%edi
call   1030 <S_ISDIR@plt>
mov    %rax,%rdx
mov    $0x1,%eax
xor    %ecx,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isdir>:
test   %rdi,%rdi
je     1146 <isdir+0x26>
push   %rax
mov    %rsp,%rsi
call   1040 <stat@plt>
mov    (%rsp),%edi
call   1030 <S_ISDIR@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
sete   %al
add    $0x8,%rsp
ret
mov    $0x1,%eax
ret

LLVM IR (-O0):
%struct.stat = type { i32 }
define i32 @isdir(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca %struct.stat
store i8* %0, i8** %3
%5 = load i8*, i8** %3
%6 = icmp eq i8* null, %5
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 1, i32* %2
br label %17
8: ; preds = %1
%9 = load i8*, i8** %3
%10 = call i32 @stat(i8* %9, %struct.stat* %4)
%11 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 0
%12 = load i32, i32* %11
%13 = call i64 @S_ISDIR(i32 %12)
%14 = icmp ne i64 %13, 0
%15 = zext i1 %14 to i64
%16 = select i1 %14, i32 0, i32 1
store i32 %16, i32* %2
br label %17
17: ; preds = %8, %7
%18 = load i32, i32* %2
ret i32 %18
}

LLVM IR (-O2):
%struct.stat = type { i32 }
define i32 @isdir(i8* %0) {
%2 = alloca %struct.stat
%3 = bitcast %struct.stat* %2 to i8*
%4 = icmp eq i8* %0, null
br i1 %4, label %12, label %5
5: ; preds = %1
%6 = call i32 @stat(i8* %0, %struct.stat* %2)
%7 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 0
%8 = load i32, i32* %7
%9 = tail call i64 @S_ISDIR(i32 %8)
%10 = icmp eq i64 %9, 0
%11 = zext i1 %10 to i32
br label %12
12: ; preds = %1, %5
%13 = phi i32 [ %11, %5 ], [ 1, %1 ]
ret i32 %13
}
char *allones_one_BAD() {
  static char *const base = (char *)-1;
  static const unsigned long offset = 1;
  return base + offset;
}


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

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

LLVM IR (-O0):
@allones_one_BAD.base = internal constant i8* inttoptr (i64 -1 to i8*)
@allones_one_BAD.offset = internal constant i64 1
define i8* @allones_one_BAD() {
ret i8* getelementptr inbounds (i8, i8* inttoptr (i64 -1 to i8*), i64 1)
}

LLVM IR (-O2):
define noalias i8* @allones_one_BAD() {
ret i8* null
}
void free_2d_char(char **ptr) {
  free(ptr[0]);
  free(ptr);
}


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

x86 assembly (clang, -O2):
<free_2d_char>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @free_2d_char(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = load i8**, i8*** %2
%4 = getelementptr inbounds i8*, i8** %3, i64 0
%5 = load i8*, i8** %4
%6 = load i8**, i8*** %2
%7 = bitcast i8** %6 to i8*
ret void
}

LLVM IR (-O2):
define void @free_2d_char(i8** nocapture %0) {
%2 = load i8*, i8** %0
tail call void @free(i8* %2)
%3 = bitcast i8** %0 to i8*
tail call void @free(i8* %3)
ret void
}
int ls2h_hda_hwdep_add_sysfs(struct hda_codec *codec) { return 0; }


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

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

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

LLVM IR (-O2):
%struct.hda_codec = type opaque
define i32 @ls2h_hda_hwdep_add_sysfs(%struct.hda_codec* nocapture readnone %0) {
ret i32 0
}