xunge/DecIR huggingface dataset:
int solo5_app_main(const struct solo5_start_info *si __attribute__((unused))) {
  puts("\n**** Solo5 standalone test_notls ****\n\n");
  __asm__ __volatile("movq %%fs:0x28, %%rax" : : : "rax");
  return 1;
}


x86 assembly (clang, -O0):
<solo5_app_main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
mov    %fs:0x28,%rax
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<solo5_app_main>:
push   %rax
lea    0xee8(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
mov    %fs:0x28,%rax
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.solo5_start_info = type opaque
@.str = [41 x i8] c"\0A**** Solo5 standalone test_notls ****\0A\0A\00"
define i32 @solo5_app_main(%struct.solo5_start_info* %0) {
%2 = alloca %struct.solo5_start_info*
store %struct.solo5_start_info* %0, %struct.solo5_start_info** %2
%3 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0))
ret i32 1
}

LLVM IR (-O2):
%struct.solo5_start_info = type opaque
@.str = [41 x i8] c"\0A**** Solo5 standalone test_notls ****\0A\0A\00"
define i32 @solo5_app_main(%struct.solo5_start_info* nocapture readnone %0) {
%2 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0))
tail call void asm sideeffect "movq %fs:0x28, %rax", "~{rax},~{dirflag},~{fpsr},~{flags}"()
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ cfg_biased(void *, float);
void fctl_biased(void *pa, float u) {
  float v = 0 + ((0.7 - 0) * (u * u));
  cfg_biased(pa, v);
}


x86 assembly (clang, -O0):
<fctl_biased>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xec9(%rip),%xmm1
mulsd  %xmm1,%xmm0
xorps  %xmm1,%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
movss  -0x10(%rbp),%xmm0
call   1030 <cfg_biased@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fctl_biased>:
mulss  %xmm0,%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  0xee0(%rip),%xmm0
xorpd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
jmp    1030 <cfg_biased@plt>

LLVM IR (-O0):
define void @fctl_biased(i8* %0, float %1) {
%3 = alloca i8*
%4 = alloca float
%5 = alloca float
store i8* %0, i8** %3
store float %1, float* %4
%6 = load float, float* %4
%7 = load float, float* %4
%8 = fmul float %6, %7
%9 = fpext float %8 to double
%10 = call double @llvm.fmuladd.f64(double 0x3FE6666666666666, double %9, double 0.000000e+00)
%11 = fptrunc double %10 to float
store float %11, float* %5
%12 = load i8*, i8** %3
%13 = load float, float* %5
%14 = call i32 @cfg_biased(i8* %12, float %13)
ret void
}

LLVM IR (-O2):
define void @fctl_biased(i8* %0, float %1) {
%3 = fmul float %1, %1
%4 = fpext float %3 to double
%5 = tail call double @llvm.fmuladd.f64(double %4, double 0x3FE6666666666666, double 0.000000e+00)
%6 = fptrunc double %5 to float
%7 = tail call i32 @cfg_biased(i8* %0, float %6)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void show_statistics(char *email) {
  printf("Showing statistics about %s\n", email);
  return;
}


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

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

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

LLVM IR (-O2):
@.str = [29 x i8] c"Showing statistics about %s\0A\00"
define void @show_statistics(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
void reverse(int *a1, int *a2) {
  register int t;
  for (;;) {
    t = *--a2;
    if (a2 <= a1)
      return;
    *a2 = *a1;
    *a1++ = t;
  }
}


x86 assembly (clang, -O0):
<reverse>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0xfffffffffffffffc,%rcx
mov    %rcx,-0x10(%rbp)
mov    -0x4(%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
cmp    -0x8(%rbp),%rax
ja     1131 <reverse+0x31>
pop    %rbp
ret
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x14(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %rax,%rdx
add    $0x4,%rdx
mov    %rdx,-0x8(%rbp)
mov    %ecx,(%rax)
jmp    110c <reverse+0xc>

x86 assembly (clang, -O2):
<reverse>:
add    $0xfffffffffffffffc,%rsi
cmp    %rdi,%rsi
jbe    112a <reverse+0x2a>
add    $0x4,%rdi
nopl   (%rax)
mov    (%rsi),%eax
mov    -0x4(%rdi),%ecx
mov    %ecx,(%rsi)
mov    %eax,-0x4(%rdi)
add    $0xfffffffffffffffc,%rsi
lea    0x4(%rdi),%rax
cmp    %rdi,%rsi
mov    %rax,%rdi
ja     1110 <reverse+0x10>
ret

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

LLVM IR (-O2):
define void @reverse(i32* %0, i32* %1) {
%3 = getelementptr inbounds i32, i32* %1, i64 -1
%4 = icmp ugt i32* %3, %0
br i1 %4, label %6, label %5
5: ; preds = %6, %2
ret void
6: ; preds = %2, %6
%7 = phi i32* [ %12, %6 ], [ %3, %2 ]
%8 = phi i32* [ %11, %6 ], [ %0, %2 ]
%9 = load i32, i32* %7
%10 = load i32, i32* %8
store i32 %10, i32* %7
%11 = getelementptr inbounds i32, i32* %8, i64 1
store i32 %9, i32* %8
%12 = getelementptr inbounds i32, i32* %7, i64 -1
%13 = icmp ugt i32* %12, %11
br i1 %13, label %6, label %5
}
/* Variables and functions */
int /*<<< orphan*/ DEBUG_ASSERT(int);
unsigned long I2SRxFIFOLimitGet(unsigned long ulBase) {
  DEBUG_ASSERT(ulBase == 0x40054000);
  return ((*((volatile unsigned long *)(ulBase + 0x0000080C))) & 0xFFFE);
}


x86 assembly (clang, -O0):
<I2SRxFIFOLimitGet>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x40054000,-0x8(%rbp)
40
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <DEBUG_ASSERT@plt>
mov    -0x8(%rbp),%rax
mov    0x80c(%rax),%rax
and    $0xfffe,%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<I2SRxFIFOLimitGet>:
push   %rbx
mov    %rdi,%rbx
xor    %edi,%edi
cmp    $0x40054000,%rbx
sete   %dil
call   1030 <DEBUG_ASSERT@plt>
mov    0x80c(%rbx),%rax
and    $0xfffe,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i64 @I2SRxFIFOLimitGet(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = icmp eq i64 %3, 1074085888
%5 = zext i1 %4 to i32
%6 = call i32 @DEBUG_ASSERT(i32 %5)
%7 = load i64, i64* %2
%8 = add i64 %7, 2060
%9 = inttoptr i64 %8 to i64*
%10 = load volatile i64, i64* %9
%11 = and i64 %10, 65534
ret i64 %11
}

LLVM IR (-O2):
define i64 @I2SRxFIFOLimitGet(i64 %0) {
%2 = icmp eq i64 %0, 1074085888
%3 = zext i1 %2 to i32
%4 = tail call i32 @DEBUG_ASSERT(i32 %3)
%5 = add i64 %0, 2060
%6 = inttoptr i64 %5 to i64*
%7 = load volatile i64, i64* %6
%8 = and i64 %7, 65534
ret i64 %8
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void echo(char *ch) { printf("%s\n", ch); }


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

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

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

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
define void @echo(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ f(int, int, int, int, int);
void testTortureExecute(void) {
  int exc_rad = 2;
  int N = 8;
  int i;
  for (i = 1; i < 4; i++)
    f(i, 1, exc_rad, 2 * exc_rad + 1, N);
  return;
}


x86 assembly (clang, -O0):
<testTortureExecute>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x2,-0x4(%rbp)
movl   $0x8,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
cmpl   $0x4,-0xc(%rbp)
jge    1162 <testTortureExecute+0x52>
mov    -0xc(%rbp),%edi
mov    -0x4(%rbp),%edx
mov    -0x4(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
mov    -0x8(%rbp),%r8d
mov    $0x1,%esi
call   1030 <f@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    112d <testTortureExecute+0x1d>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<testTortureExecute>:
push   %rax
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x5,%ecx
mov    $0x8,%r8d
call   1030 <f@plt>
mov    $0x2,%edi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x5,%ecx
mov    $0x8,%r8d
call   1030 <f@plt>
mov    $0x3,%edi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x5,%ecx
mov    $0x8,%r8d
pop    %rax
jmp    1030 <f@plt>

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

LLVM IR (-O2):
define void @testTortureExecute() {
%1 = tail call i32 @f(i32 1, i32 1, i32 2, i32 5, i32 8)
%2 = tail call i32 @f(i32 2, i32 1, i32 2, i32 5, i32 8)
%3 = tail call i32 @f(i32 3, i32 1, i32 2, i32 5, i32 8)
ret void
}
void blk_unplug_work(void *data) { return; }


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

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

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

LLVM IR (-O2):
define void @blk_unplug_work(i8* nocapture %0) {
ret void
}
/* Type definitions */
struct ipsecalgent {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ assert(int /*<<< orphan*/);
void freeipsecalgent(struct ipsecalgent *ptr) {
  assert("freeipsecalgent not implmemented" == NULL);
}


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

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

LLVM IR (-O0):
%struct.ipsecalgent = type { i32 }
@.str = [33 x i8] c"freeipsecalgent not implmemented\00"
define void @freeipsecalgent(%struct.ipsecalgent* %0) {
%2 = alloca %struct.ipsecalgent*
store %struct.ipsecalgent* %0, %struct.ipsecalgent** %2
%3 = call i32 @assert(i32 0)
ret void
}

LLVM IR (-O2):
%struct.ipsecalgent = type { i32 }
define void @freeipsecalgent(%struct.ipsecalgent* nocapture readnone %0) {
%2 = tail call i32 @assert(i32 0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ print_u32(char **, int, int /*<<< orphan*/);
void print_int(char **str, int num, uint32_t base) {
  char *buf = *str;
  if (num < 0) {
    *(buf++) = '-';
    num = -num;
  }
  print_u32(&buf, num, base);
  *str = buf;
}


x86 assembly (clang, -O0):
<print_int>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
cmpl   $0x0,-0xc(%rbp)
jge    1151 <print_int+0x41>
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x18(%rbp)
movb   $0x2d,(%rax)
xor    %eax,%eax
sub    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    -0x18(%rbp),%rdi
call   1030 <print_u32@plt>
mov    -0x18(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_int>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
mov    (%rdi),%rax
mov    %rax,0x8(%rsp)
test   %esi,%esi
jns    1132 <print_int+0x22>
lea    0x1(%rax),%rcx
mov    %rcx,0x8(%rsp)
movb   $0x2d,(%rax)
neg    %esi
lea    0x8(%rsp),%rdi
call   1030 <print_u32@plt>
mov    0x8(%rsp),%rax
mov    %rax,(%rbx)
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @print_int(i8** %0, i32 %1, i32 %2) {
%4 = alloca i8**
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
store i8** %0, i8*** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%8 = load i8**, i8*** %4
%9 = load i8*, i8** %8
store i8* %9, i8** %7
%10 = load i32, i32* %5
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %17
12: ; preds = %3
%13 = load i8*, i8** %7
%14 = getelementptr inbounds i8, i8* %13, i32 1
store i8* %14, i8** %7
store i8 45, i8* %13
%15 = load i32, i32* %5
%16 = sub nsw i32 0, %15
store i32 %16, i32* %5
br label %17
17: ; preds = %12, %3
%18 = load i32, i32* %5
%19 = load i32, i32* %6
%20 = call i32 @print_u32(i8** %7, i32 %18, i32 %19)
%21 = load i8*, i8** %7
%22 = load i8**, i8*** %4
store i8* %21, i8** %22
ret void
}

LLVM IR (-O2):
define void @print_int(i8** nocapture %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = bitcast i8** %4 to i8*
%6 = load i8*, i8** %0
store i8* %6, i8** %4
%7 = icmp slt i32 %1, 0
br i1 %7, label %8, label %11
8: ; preds = %3
%9 = getelementptr inbounds i8, i8* %6, i64 1
store i8* %9, i8** %4
store i8 45, i8* %6
%10 = sub nsw i32 0, %1
br label %11
11: ; preds = %8, %3
%12 = phi i32 [ %10, %8 ], [ %1, %3 ]
%13 = call i32 @print_u32(i8** %4, i32 %12, i32 %2)
%14 = load i8*, i8** %4
store i8* %14, i8** %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char const *);
void err(const char *msg) {
  printf(msg);
  printf("------- End 2Sum -------\n");
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<err>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <printf@plt>
lea    0xec4(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e98(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<err>:
push   %rax
call   1040 <printf@plt>
lea    0xec3(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e97(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [26 x i8] c"------- End 2Sum -------\0A\00"
@EXIT_FAILURE = global i32 0
define void @err(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* %3)
%5 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%6 = load i32, i32* @EXIT_FAILURE
%7 = call i32 @exit(i32 %6)
unreachable
}

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
@str = [25 x i8] c"------- End 2Sum -------\00"
define void @err(i8* nocapture %0) {
%2 = tail call i32 @printf(i8* dereferenceable(1) %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
%4 = load i32, i32* @EXIT_FAILURE
%5 = tail call i32 @exit(i32 %4)
unreachable
}
/* Variables and functions */
int getpid();
int /*<<< orphan*/ printf(char *, int);
int main() {
  int pid;
  pid = getpid();
  printf("El pid es %d.\n", pid);
  return 0;
}


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

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

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

LLVM IR (-O2):
@.str = [15 x i8] c"El pid es %d.\0A\00"
define i32 @main() {
%1 = tail call i32 (...) @getpid()
%2 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ assert(void *);
int keyzen_list_keys_count(void *list) {
  assert(list);
  return *(int *)list;
}


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

x86 assembly (clang, -O2):
<keyzen_list_keys_count>:
push   %rbx
mov    %rdi,%rbx
call   1030 <assert@plt>
mov    (%rbx),%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @keyzen_list_keys_count(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @assert(i8* %3)
%5 = load i8*, i8** %2
%6 = bitcast i8* %5 to i32*
%7 = load i32, i32* %6
ret i32 %7
}

LLVM IR (-O2):
define i32 @keyzen_list_keys_count(i8* %0) {
%2 = tail call i32 @assert(i8* %0)
%3 = bitcast i8* %0 to i32*
%4 = load i32, i32* %3
ret i32 %4
}
int hashfunct(str, hash_size)
register char str[];
int hash_size;
{
  register int hashval;
  register int locstr;
  hashval = 0;
  locstr = 0;
  while (str[locstr])
    hashval = ((hashval << 1) + (unsigned char)str[locstr++]) % hash_size;
  return (hashval);
}


x86 assembly (clang, -O0):
<hashfunct>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
cmpb   $0x0,(%rax,%rcx,1)
je     1155 <hashfunct+0x55>
mov    -0x10(%rbp),%eax
shl    $0x1,%eax
mov    -0x8(%rbp),%rcx
mov    -0x14(%rbp),%edx
mov    %edx,%esi
add    $0x1,%esi
mov    %esi,-0x14(%rbp)
movslq %edx,%rdx
movzbl (%rcx,%rdx,1),%ecx
add    %ecx,%eax
cltd
idivl  -0xc(%rbp)
mov    %edx,-0x10(%rbp)
jmp    1119 <hashfunct+0x19>
mov    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<hashfunct>:
mov    (%rdi),%al
test   %al,%al
je     1127 <hashfunct+0x27>
add    $0x1,%rdi
xor    %edx,%edx
nopl   0x0(%rax)
movzbl %al,%eax
lea    (%rax,%rdx,2),%eax
cltd
idiv   %esi
movzbl (%rdi),%eax
add    $0x1,%rdi
test   %al,%al
jne    1110 <hashfunct+0x10>
mov    %edx,%eax
ret
xor    %edx,%edx
mov    %edx,%eax
ret

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

LLVM IR (-O2):
define i32 @hashfunct(i8* nocapture %0, i32 %1) {
%3 = load i8, i8* %0
%4 = icmp eq i8 %3, 0
br i1 %4, label %17, label %5
5: ; preds = %2, %5
%6 = phi i64 [ %10, %5 ], [ 0, %2 ]
%7 = phi i8 [ %15, %5 ], [ %3, %2 ]
%8 = phi i32 [ %13, %5 ], [ 0, %2 ]
%9 = shl i32 %8, 1
%10 = add nuw nsw i64 %6, 1
%11 = zext i8 %7 to i32
%12 = add nsw i32 %9, %11
%13 = srem i32 %12, %1
%14 = getelementptr inbounds i8, i8* %0, i64 %10
%15 = load i8, i8* %14
%16 = icmp eq i8 %15, 0
br i1 %16, label %17, label %5
17: ; preds = %5, %2
%18 = phi i32 [ 0, %2 ], [ %13, %5 ]
ret i32 %18
}
/* Type definitions */
typedef int /*<<< orphan*/ DIR;

/* Variables and functions */
int /*<<< orphan*/ _DIAGASSERT(int /*<<< orphan*/);
int /*<<< orphan*/ *__opendir2(char const *, int);
DIR *opendir(const char *name) {
  _DIAGASSERT(name != NULL);
  return (__opendir2(name, 0x0001 | 0x0002));
}


x86 assembly (clang, -O0):
<opendir>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <_DIAGASSERT@plt>
mov    -0x8(%rbp),%rdi
mov    $0x3,%esi
call   1030 <__opendir2@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<opendir>:
push   %rbx
mov    %rdi,%rbx
xor    %edi,%edi
test   %rbx,%rbx
setne  %dil
call   1040 <_DIAGASSERT@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
pop    %rbx
jmp    1030 <__opendir2@plt>

LLVM IR (-O0):
define i32* @opendir(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp ne i8* %3, null
%5 = zext i1 %4 to i32
%6 = call i32 @_DIAGASSERT(i32 %5)
%7 = load i8*, i8** %2
%8 = call i32* @__opendir2(i8* %7, i32 3)
ret i32* %8
}

LLVM IR (-O2):
define i32* @opendir(i8* %0) {
%2 = icmp ne i8* %0, null
%3 = zext i1 %2 to i32
%4 = tail call i32 @_DIAGASSERT(i32 %3)
%5 = tail call i32* @__opendir2(i8* %0, i32 3)
ret i32* %5
}
/* Variables and functions */
int f(int, int, int, int /*<<< orphan*/);
main() { return f(5, 2, 3, 0); }


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x5,%edi
mov    $0x2,%esi
mov    $0x3,%edx
xor    %ecx,%ecx
call   1030 <f@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
mov    $0x5,%edi
mov    $0x2,%esi
mov    $0x3,%edx
xor    %ecx,%ecx
jmp    1030 <f@plt>

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

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


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

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

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
define void @bar() {
%1 = call i32 @printf(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
define void @bar() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ mem_copy_vect2word_big(int /*<<< orphan*/ *,
                                          unsigned char const *);
uint16_t arch_mem_copy_vect2word_big(uint16_t *word, const unsigned char *v) {
  return mem_copy_vect2word_big(word, v);
}


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

x86 assembly (clang, -O2):
<arch_mem_copy_vect2word_big>:
jmp    1030 <mem_copy_vect2word_big@plt>

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

LLVM IR (-O2):
define i32 @arch_mem_copy_vect2word_big(i32* %0, i8* %1) {
%3 = tail call i32 @mem_copy_vect2word_big(i32* %0, i8* %1)
ret i32 %3
}
/* Variables and functions */
int ms6931_write(int, char *, int);
int ms6931_setpos(int fd, int pos) {
  static char out[3] = {'~', 0x24, 0};
  pos &= 0xFF;
  out[2] = (char)pos;
  return ms6931_write(fd, out, 3);
}


x86 assembly (clang, -O0):
<ms6931_setpos>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
and    $0xff,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %al,0x2ef8(%rip)
mov    -0x4(%rbp),%edi
lea    0x2eec(%rip),%rsi
mov    $0x3,%edx
call   1030 <ms6931_write@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ms6931_setpos>:
mov    %sil,0x2f13(%rip)
lea    0x2f0a(%rip),%rsi
mov    $0x3,%edx
jmp    1030 <ms6931_write@plt>

LLVM IR (-O0):
@ms6931_setpos.out = internal global [3 x i8] c"~$\00"
define i32 @ms6931_setpos(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = and i32 %5, 255
store i32 %6, i32* %4
%7 = load i32, i32* %4
%8 = trunc i32 %7 to i8
store i8 %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @ms6931_setpos.out, i64 0, i64 2)
%9 = load i32, i32* %3
%10 = call i32 @ms6931_write(i32 %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @ms6931_setpos.out, i64 0, i64 0), i32 3)
ret i32 %10
}

LLVM IR (-O2):
@ms6931_setpos.out = internal global [3 x i8] c"~$\00"
define i32 @ms6931_setpos(i32 %0, i32 %1) {
%3 = trunc i32 %1 to i8
store i8 %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @ms6931_setpos.out, i64 0, i64 2)
%4 = tail call i32 @ms6931_write(i32 %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @ms6931_setpos.out, i64 0, i64 0), i32 3)
ret i32 %4
}
int cpupri_init(struct cpupri *cp) { return 0; }


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

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

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

LLVM IR (-O2):
%struct.cpupri = type opaque
define i32 @cpupri_init(%struct.cpupri* nocapture readnone %0) {
ret i32 0
}
void foo771(int p) {}


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

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

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

LLVM IR (-O2):
define void @foo771(i32 %0) {
ret void
}
int dxl_get_lowbyte(int word) {
  unsigned short temp;
  temp = word & 0xff;
  return (int)temp;
}


x86 assembly (clang, -O0):
<dxl_get_lowbyte>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xff,%eax
mov    %ax,-0x6(%rbp)
movzwl -0x6(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<dxl_get_lowbyte>:
movzbl %dil,%eax
ret

LLVM IR (-O0):
define i32 @dxl_get_lowbyte(i32 %0) {
%2 = alloca i32
%3 = alloca i16
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = and i32 %4, 255
%6 = trunc i32 %5 to i16
store i16 %6, i16* %3
%7 = load i16, i16* %3
%8 = zext i16 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @dxl_get_lowbyte(i32 %0) {
%2 = and i32 %0, 255
ret i32 %2
}
void nofree(void *data) {}


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

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

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

LLVM IR (-O2):
define void @nofree(i8* nocapture %0) {
ret void
}
void free_fmatrix(float **m) {
  free(m[0]);
  free(m);
}


x86 assembly (clang, -O0):
<free_fmatrix>:
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_fmatrix>:
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_fmatrix(float** %0) {
%2 = alloca float**
store float** %0, float*** %2
%3 = load float**, float*** %2
%4 = getelementptr inbounds float*, float** %3, i64 0
%5 = load float*, float** %4
%6 = bitcast float* %5 to i8*
%7 = load float**, float*** %2
%8 = bitcast float** %7 to i8*
ret void
}

LLVM IR (-O2):
define void @free_fmatrix(float** nocapture %0) {
%2 = bitcast float** %0 to i8**
%3 = load i8*, i8** %2
tail call void @free(i8* %3)
%4 = bitcast float** %0 to i8*
tail call void @free(i8* %4)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ sqlite3_file;

/* Variables and functions */
int SQLITE_OK;
int wrap_CheckReservedLock(sqlite3_file *pFile, int *pResOut) {
  *pResOut = 0;
  return SQLITE_OK;
}


x86 assembly (clang, -O0):
<wrap_CheckReservedLock>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movl   $0x0,(%rax)
mov    0x2ecb(%rip),%rax
mov    (%rax),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<wrap_CheckReservedLock>:
movl   $0x0,(%rsi)
mov    0x2edb(%rip),%rax
mov    (%rax),%eax
ret

LLVM IR (-O0):
@SQLITE_OK = global i32 0
define i32 @wrap_CheckReservedLock(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
store i32* %0, i32** %3
store i32* %1, i32** %4
%5 = load i32*, i32** %4
store i32 0, i32* %5
%6 = load i32, i32* @SQLITE_OK
ret i32 %6
}

LLVM IR (-O2):
@SQLITE_OK = global i32 0
define i32 @wrap_CheckReservedLock(i32* nocapture readnone %0, i32* nocapture writeonly %1) {
store i32 0, i32* %1
%3 = load i32, i32* @SQLITE_OK
ret i32 %3
}
/* Variables and functions */
int oku();
int /*<<< orphan*/ yaz(int);
int main() {
  int x, y;
  x = oku();
  yaz(x);
  yaz(9);
  y = oku();
  yaz(y + 5);
  yaz(oku() + 5);
  yaz(oku() + oku());
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <oku@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <yaz@plt>
mov    $0x9,%edi
call   1030 <yaz@plt>
mov    $0x0,%al
call   1040 <oku@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
add    $0x5,%edi
call   1030 <yaz@plt>
mov    $0x0,%al
call   1040 <oku@plt>
mov    %eax,%edi
add    $0x5,%edi
call   1030 <yaz@plt>
mov    $0x0,%al
call   1040 <oku@plt>
mov    %eax,-0x10(%rbp)
mov    $0x0,%al
call   1040 <oku@plt>
mov    -0x10(%rbp),%edi
add    %eax,%edi
call   1030 <yaz@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1040 <oku@plt>
mov    %eax,%edi
call   1030 <yaz@plt>
mov    $0x9,%edi
call   1030 <yaz@plt>
xor    %eax,%eax
call   1040 <oku@plt>
lea    0x5(%rax),%edi
call   1030 <yaz@plt>
xor    %eax,%eax
call   1040 <oku@plt>
lea    0x5(%rax),%edi
call   1030 <yaz@plt>
xor    %eax,%eax
call   1040 <oku@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1040 <oku@plt>
add    %eax,%ebx
mov    %ebx,%edi
call   1030 <yaz@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 (...) @oku()
store i32 %4, i32* %2
%5 = load i32, i32* %2
%6 = call i32 @yaz(i32 %5)
%7 = call i32 @yaz(i32 9)
%8 = call i32 (...) @oku()
store i32 %8, i32* %3
%9 = load i32, i32* %3
%10 = add nsw i32 %9, 5
%11 = call i32 @yaz(i32 %10)
%12 = call i32 (...) @oku()
%13 = add nsw i32 %12, 5
%14 = call i32 @yaz(i32 %13)
%15 = call i32 (...) @oku()
%16 = call i32 (...) @oku()
%17 = add nsw i32 %15, %16
%18 = call i32 @yaz(i32 %17)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @oku()
%2 = tail call i32 @yaz(i32 %1)
%3 = tail call i32 @yaz(i32 9)
%4 = tail call i32 (...) @oku()
%5 = add nsw i32 %4, 5
%6 = tail call i32 @yaz(i32 %5)
%7 = tail call i32 (...) @oku()
%8 = add nsw i32 %7, 5
%9 = tail call i32 @yaz(i32 %8)
%10 = tail call i32 (...) @oku()
%11 = tail call i32 (...) @oku()
%12 = add nsw i32 %11, %10
%13 = tail call i32 @yaz(i32 %12)
ret i32 0
}
/* Variables and functions */
int strcmp(char const *, char const *);
int my_strcmp(const char *s1, const char *s2) { return strcmp(s1, s2); }


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

x86 assembly (clang, -O2):
<my_strcmp>:
jmp    1030 <strcmp@plt>

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

LLVM IR (-O2):
define i32 @my_strcmp(i8* nocapture %0, i8* nocapture %1) {
%3 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(1) %1)
ret i32 %3
}
void round_robin_priority(struct process *proc) {}


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

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

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

LLVM IR (-O2):
%struct.process = type opaque
define void @round_robin_priority(%struct.process* nocapture %0) {
ret void
}
void g_unichar_isalnum() {}


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

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

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

LLVM IR (-O2):
define void @g_unichar_isalnum() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ svga_readw_common(int /*<<< orphan*/, int /*<<< orphan*/,
                                     void *);
uint16_t svga_readw(uint32_t addr, void *p) {
  return svga_readw_common(addr, 0, p);
}


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

x86 assembly (clang, -O2):
<svga_readw>:
mov    %rsi,%rdx
xor    %esi,%esi
jmp    1030 <svga_readw_common@plt>

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

LLVM IR (-O2):
define i32 @svga_readw(i32 %0, i8* %1) {
%3 = tail call i32 @svga_readw_common(i32 %0, i32 0, i8* %1)
ret i32 %3
}
char *value(p)
register char *p;
{
  if ((p = index(p, '=')) == 0)
    return (((void *)0));
  p++;
  return (p);
}


x86 assembly (clang, -O0):
<value>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x3d,%esi
call   1030 <index@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
jne    1145 <value+0x35>
movq   $0x0,-0x8(%rbp)
jmp    1159 <value+0x49>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<value>:
push   %rax
mov    $0x3d,%esi
call   1030 <index@plt>
lea    0x1(%rax),%rcx
test   %rax,%rax
cmovne %rcx,%rax
pop    %rcx
ret

LLVM IR (-O0):
define i8* @value(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i8* @index(i8* %4, i32 61)
store i8* %5, i8** %3
%6 = icmp eq i8* %5, null
br i1 %6, label %7, label %8
7: ; preds = %1
store i8* null, i8** %2
br label %12
8: ; preds = %1
%9 = load i8*, i8** %3
%10 = getelementptr inbounds i8, i8* %9, i32 1
store i8* %10, i8** %3
%11 = load i8*, i8** %3
store i8* %11, i8** %2
br label %12
12: ; preds = %8, %7
%13 = load i8*, i8** %2
ret i8* %13
}

LLVM IR (-O2):
define i8* @value(i8* %0) {
%2 = tail call i8* @index(i8* %0, i32 61)
%3 = icmp eq i8* %2, null
%4 = getelementptr inbounds i8, i8* %2, i64 1
%5 = select i1 %3, i8* null, i8* %4
ret i8* %5
}
/* Variables and functions */
int safe_add(int, int);
int add(int register2, int register3) { return safe_add(register2, register3); }


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

x86 assembly (clang, -O2):
<add>:
jmp    1030 <safe_add@plt>

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

LLVM IR (-O2):
define i32 @add(i32 %0, i32 %1) {
%3 = tail call i32 @safe_add(i32 %0, i32 %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ port_byte_out(int, unsigned char);
void set_cursor(int offset) {
  offset /= 2;
  port_byte_out(0x3D4, 14);
  port_byte_out(0x3D5, (unsigned char)(offset >> 8));
  port_byte_out(0x3D4, 15);
  port_byte_out(0x3D5, (unsigned char)(offset & 0xff));
}


x86 assembly (clang, -O0):
<set_cursor>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x4(%rbp)
mov    $0x3d4,%edi
mov    $0xe,%esi
call   1030 <port_byte_out@plt>
mov    -0x4(%rbp),%eax
sar    $0x8,%eax
mov    $0x3d5,%edi
movzbl %al,%esi
call   1030 <port_byte_out@plt>
mov    $0x3d4,%edi
mov    $0xf,%esi
call   1030 <port_byte_out@plt>
mov    -0x4(%rbp),%eax
and    $0xff,%eax
mov    $0x3d5,%edi
movzbl %al,%esi
call   1030 <port_byte_out@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_cursor>:
push   %rbx
mov    %edi,%ebx
shr    $0x1f,%ebx
add    %edi,%ebx
sar    %ebx
mov    $0x3d4,%edi
mov    $0xe,%esi
call   1030 <port_byte_out@plt>
movzbl %bh,%esi
mov    $0x3d5,%edi
call   1030 <port_byte_out@plt>
mov    $0x3d4,%edi
mov    $0xf,%esi
call   1030 <port_byte_out@plt>
movzbl %bl,%esi
mov    $0x3d5,%edi
pop    %rbx
jmp    1030 <port_byte_out@plt>

LLVM IR (-O0):
define void @set_cursor(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = sdiv i32 %3, 2
store i32 %4, i32* %2
%5 = call i32 @port_byte_out(i32 980, i8 zeroext 14)
%6 = load i32, i32* %2
%7 = ashr i32 %6, 8
%8 = trunc i32 %7 to i8
%9 = call i32 @port_byte_out(i32 981, i8 zeroext %8)
%10 = call i32 @port_byte_out(i32 980, i8 zeroext 15)
%11 = load i32, i32* %2
%12 = and i32 %11, 255
%13 = trunc i32 %12 to i8
%14 = call i32 @port_byte_out(i32 981, i8 zeroext %13)
ret void
}

LLVM IR (-O2):
define void @set_cursor(i32 %0) {
%2 = sdiv i32 %0, 2
%3 = tail call i32 @port_byte_out(i32 980, i8 zeroext 14)
%4 = lshr i32 %2, 8
%5 = trunc i32 %4 to i8
%6 = tail call i32 @port_byte_out(i32 981, i8 zeroext %5)
%7 = tail call i32 @port_byte_out(i32 980, i8 zeroext 15)
%8 = trunc i32 %2 to i8
%9 = tail call i32 @port_byte_out(i32 981, i8 zeroext %8)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ sqlite3_free(void *);
void fts3HashFree(void *p) { sqlite3_free(p); }


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

x86 assembly (clang, -O2):
<fts3HashFree>:
jmp    1030 <sqlite3_free@plt>

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

LLVM IR (-O2):
define void @fts3HashFree(i8* %0) {
%2 = tail call i32 @sqlite3_free(i8* %0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
struct list_head {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ clear_compression_mode_pg(struct list_head *);
uint8_t clear_9840_comp(struct list_head *m) {
  ;
  return clear_compression_mode_pg(m);
}


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

x86 assembly (clang, -O2):
<clear_9840_comp>:
jmp    1030 <clear_compression_mode_pg@plt>

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

LLVM IR (-O2):
%struct.list_head = type { i32 }
define i32 @clear_9840_comp(%struct.list_head* %0) {
%2 = tail call i32 @clear_compression_mode_pg(%struct.list_head* %0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ implicitSignChange(unsigned int);
int main(int argc, char **argv) { return !implicitSignChange(~0U); }


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)
mov    $0xffffffff,%edi
call   1030 <implicitSignChange@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xffffffff,%edi
call   1030 <implicitSignChange@plt>
xor    %ecx,%ecx
test   %eax,%eax
sete   %cl
mov    %ecx,%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 @implicitSignChange(i32 -1)
%7 = icmp ne i32 %6, 0
%8 = xor i1 %7, true
%9 = zext i1 %8 to i32
ret i32 %9
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @implicitSignChange(i32 -1)
%4 = icmp eq i32 %3, 0
%5 = zext i1 %4 to i32
ret i32 %5
}
ARMusic_Player() {}


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

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

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

LLVM IR (-O2):
define i32 @ARMusic_Player() {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ i();
main() { i(); }


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

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

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 (...) @i()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @i()
ret i32 0
}
const char *get_auth_type(void) { return "Unknown"; }


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

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

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

LLVM IR (-O2):
@.str = [8 x i8] c"Unknown\00"
define i8* @get_auth_type() {
ret i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0)
}
void I422ToYUY2Row_Any_SSE2() {}


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

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

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

LLVM IR (-O2):
define void @I422ToYUY2Row_Any_SSE2() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ e_abs();
int /*<<< orphan*/ e_eor();
void e_eor_abs() {
  e_abs();
  e_eor();
}


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

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

LLVM IR (-O0):
define void @e_eor_abs() {
%1 = call i32 (...) @e_abs()
%2 = call i32 (...) @e_eor()
ret void
}

LLVM IR (-O2):
define void @e_eor_abs() {
%1 = tail call i32 (...) @e_abs()
%2 = tail call i32 (...) @e_eor()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printBackTrace();
int main() {
  printBackTrace();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @printBackTrace()
ret i32 0
}
void foo033() {}


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

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

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

LLVM IR (-O2):
define void @foo033() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ clearLCDLine(int);
void clearLCDLines() {
  clearLCDLine(0);
  clearLCDLine(1);
}


x86 assembly (clang, -O0):
<clearLCDLines>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <clearLCDLine@plt>
mov    $0x1,%edi
call   1030 <clearLCDLine@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<clearLCDLines>:
push   %rax
xor    %edi,%edi
call   1030 <clearLCDLine@plt>
mov    $0x1,%edi
pop    %rax
jmp    1030 <clearLCDLine@plt>

LLVM IR (-O0):
define void @clearLCDLines() {
%1 = call i32 @clearLCDLine(i32 0)
%2 = call i32 @clearLCDLine(i32 1)
ret void
}

LLVM IR (-O2):
define void @clearLCDLines() {
%1 = tail call i32 @clearLCDLine(i32 0)
%2 = tail call i32 @clearLCDLine(i32 1)
ret void
}