xunge/DecIR huggingface dataset:
int execute_socketcall() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @execute_socketcall() {
ret i32 0
}
char *strsep(pp, delim)
char **pp;
char *delim;
{
  char *p, *q;
  if (!(p = *pp))
    return 0;
  if (q = strpbrk(p, delim)) {
    *pp = q + 1;
    *q = '\0';
  } else
    *pp = 0;
  return p;
}


x86 assembly (clang, -O0):
<strsep>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    1142 <strsep+0x32>
movq   $0x0,-0x8(%rbp)
jmp    118b <strsep+0x7b>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <strpbrk@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
je     1178 <strsep+0x68>
mov    -0x28(%rbp),%rcx
add    $0x1,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
jmp    1183 <strsep+0x73>
mov    -0x10(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x20(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strsep>:
push   %r14
push   %rbx
push   %rax
mov    (%rdi),%rbx
test   %rbx,%rbx
je     1142 <strsep+0x32>
mov    %rdi,%r14
mov    %rbx,%rdi
call   1030 <strpbrk@plt>
test   %rax,%rax
je     113b <strsep+0x2b>
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,(%r14)
movb   $0x0,(%rax)
jmp    1142 <strsep+0x32>
movq   $0x0,(%r14)
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define i8* @strsep(i8** nocapture %0, i8* nocapture %1) {
%3 = load i8*, i8** %0
%4 = icmp eq i8* %3, null
br i1 %4, label %11, label %5
5: ; preds = %2
%6 = tail call i8* @strpbrk(i8* %3, i8* %1)
%7 = icmp eq i8* %6, null
br i1 %7, label %10, label %8
8: ; preds = %5
%9 = getelementptr inbounds i8, i8* %6, i64 1
store i8* %9, i8** %0
store i8 0, i8* %6
br label %11
10: ; preds = %5
store i8* null, i8** %0
br label %11
11: ; preds = %8, %10, %2
ret i8* %3
}
/* Type definitions */
struct timeval {
  int tv_sec;
  int tv_usec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/);
double D2MCE_Mtime() {
  double gettime;
  struct timeval now;
  gettimeofday(&now, 0);
  gettime = 1000000 * now.tv_sec + now.tv_usec;
  gettime /= 1000000;
  return gettime;
}


x86 assembly (clang, -O0):
<D2MCE_Mtime>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x10(%rbp),%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
imul   $0xf4240,-0x10(%rbp),%eax
add    -0xc(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xebd(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<D2MCE_Mtime>:
push   %rax
mov    %rsp,%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
imul   $0xf4240,(%rsp),%eax
add    0x4(%rsp),%eax
cvtsi2sd %eax,%xmm0
divsd  0xece(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
%struct.timeval = type { i32, i32 }
define double @D2MCE_Mtime() {
%1 = alloca double
%2 = alloca %struct.timeval
%3 = call i32 @gettimeofday(%struct.timeval* %2, i32 0)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %2, i32 0, i32 0
%5 = load i32, i32* %4
%6 = mul nsw i32 1000000, %5
%7 = getelementptr inbounds %struct.timeval, %struct.timeval* %2, i32 0, i32 1
%8 = load i32, i32* %7
%9 = add nsw i32 %6, %8
%10 = sitofp i32 %9 to double
store double %10, double* %1
%11 = load double, double* %1
%12 = fdiv double %11, 1.000000e+06
store double %12, double* %1
%13 = load double, double* %1
ret double %13
}

LLVM IR (-O2):
%struct.timeval = type { i32, i32 }
define double @D2MCE_Mtime() {
%1 = alloca %struct.timeval
%2 = bitcast %struct.timeval* %1 to i8*
%3 = call i32 @gettimeofday(%struct.timeval* %1, i32 0)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 0
%5 = load i32, i32* %4
%6 = mul nsw i32 %5, 1000000
%7 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 1
%8 = load i32, i32* %7
%9 = add nsw i32 %6, %8
%10 = sitofp i32 %9 to double
%11 = fdiv double %10, 1.000000e+06
ret double %11
}
void _M2_ldtoa_finish(void) {}


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

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

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

LLVM IR (-O2):
define void @_M2_ldtoa_finish() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *);
void enomem(void) {
  printf("out of memory\n");
  exit(1);
}


x86 assembly (clang, -O0):
<enomem>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<enomem>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"out of memory\0A\00"
define void @enomem() {
%1 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@str = [14 x i8] c"out of memory\00"
define void @enomem() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @exit(i32 1)
unreachable
}
void stosb(void *addr, int data, int cnt) {
  asm volatile("rep stosb;"
               : "+D"(addr), "+c"(cnt)
               : "a"(data)
               : "memory", "cc");
}


x86 assembly (clang, -O0):
<stosb>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%ecx
mov    -0xc(%rbp),%eax
rep stos %al,%es:(%rdi)
mov    %rdi,-0x8(%rbp)
mov    %ecx,-0x10(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<stosb>:
mov    %edx,%ecx
mov    %esi,%eax
rep stos %al,%es:(%rdi)
ret

LLVM IR (-O0):
define void @stosb(i8* %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i8*, i8** %4
%8 = load i32, i32* %6
%9 = load i32, i32* %5
%10 = call { i8*, i32 } asm sideeffect "rep stosb;", "={di},={cx},{ax},0,1,~{memory},~{cc},~{dirflag},~{fpsr},~{flags}"(i32 %9, i8* %7, i32 %8)
%11 = extractvalue { i8*, i32 } %10, 0
%12 = extractvalue { i8*, i32 } %10, 1
store i8* %11, i8** %4
store i32 %12, i32* %6
ret void
}

LLVM IR (-O2):
define void @stosb(i8* %0, i32 %1, i32 %2) {
%4 = tail call { i8*, i32 } asm sideeffect "rep stosb;", "={di},={cx},{ax},0,1,~{memory},~{cc},~{dirflag},~{fpsr},~{flags}"(i32 %1, i8* %0, i32 %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ _SC_NPROCESSORS_ONLN;
int /*<<< orphan*/ printf(char *, int);
int sysconf(int /*<<< orphan*/);
int main() {
  printf("Nr cpus = %d\n", sysconf(_SC_NPROCESSORS_ONLN));
  return 0;
}


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

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

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

LLVM IR (-O2):
@.str = [14 x i8] c"Nr cpus = %d\0A\00"
@_SC_NPROCESSORS_ONLN = global i32 0
define i32 @main() {
%1 = load i32, i32* @_SC_NPROCESSORS_ONLN
%2 = tail call i32 @sysconf(i32 %1)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %2)
ret i32 0
}
/* Variables and functions */
void nacl_incnonce(unsigned char *p, size_t len) {
  int i = len;
  for (; --i >= 0;) {
    if (++p[i] != 0)
      break;
  }
}


x86 assembly (clang, -O0):
<nacl_incnonce>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
jl     114b <nacl_incnonce+0x4b>
mov    -0x8(%rbp),%rcx
movslq -0x14(%rbp),%rdx
mov    (%rcx,%rdx,1),%al
add    $0x1,%al
mov    %al,(%rcx,%rdx,1)
movzbl %al,%eax
cmp    $0x0,%eax
je     1146 <nacl_incnonce+0x46>
jmp    114b <nacl_incnonce+0x4b>
jmp    1113 <nacl_incnonce+0x13>
pop    %rbp
ret

x86 assembly (clang, -O2):
<nacl_incnonce>:
mov    %esi,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
test   %eax,%eax
jle    111f <nacl_incnonce+0x1f>
addb   $0x1,-0x1(%rdi,%rax,1)
lea    -0x1(%rax),%rax
je     1110 <nacl_incnonce+0x10>
ret

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

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


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

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x5,%edi
mov    $0x3,%esi
mov    $0x5,%edx
mov    $0x7,%ecx
mov    $0x9,%r8d
mov    $0xb,%r9d
call   1030 <print_args@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @print_args(i32 5, i32 3, i32 5, i32 7, i32 9, i32 11)
ret i32 0
}
int search(char arr[], int start, int end, char value) {
  int i;
  for (i = start; i <= end; i++) {
    if (arr[i] == value) {
      return i;
    }
  }
  return -1;
}


x86 assembly (clang, -O0):
<search>:
push   %rbp
mov    %rsp,%rbp
mov    %cl,%al
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    %al,-0x19(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     115b <search+0x5b>
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
movsbl -0x19(%rbp),%ecx
cmp    %ecx,%eax
jne    1148 <search+0x48>
mov    -0x20(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1162 <search+0x62>
jmp    114d <search+0x4d>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1119 <search+0x19>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<search>:
mov    $0xffffffff,%eax
cmp    %edx,%esi
jg     112f <search+0x2f>
movslq %esi,%r8
add    $0x1,%edx
add    %r8,%rdi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmp    %cl,(%rdi)
je     1130 <search+0x30>
add    $0x1,%esi
add    $0x1,%rdi
cmp    %esi,%edx
jne    1120 <search+0x20>
ret
mov    %esi,%eax
ret

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

LLVM IR (-O2):
define i32 @search(i8* nocapture %0, i32 %1, i32 %2, i8 signext %3) {
%5 = icmp sgt i32 %1, %2
br i1 %5, label %20, label %6
6: ; preds = %4
%7 = sext i32 %1 to i64
%8 = add i32 %2, 1
br label %9
9: ; preds = %6, %14
%10 = phi i64 [ %7, %6 ], [ %15, %14 ]
%11 = getelementptr inbounds i8, i8* %0, i64 %10
%12 = load i8, i8* %11
%13 = icmp eq i8 %12, %3
br i1 %13, label %18, label %14
14: ; preds = %9
%15 = add nsw i64 %10, 1
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %8, %16
br i1 %17, label %20, label %9
18: ; preds = %9
%19 = trunc i64 %10 to i32
br label %20
20: ; preds = %14, %18, %4
%21 = phi i32 [ -1, %4 ], [ %19, %18 ], [ -1, %14 ]
ret i32 %21
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, char const *);
void usage(const char *argv0, int exit_code) {
  printf("Usage: %s [-h] <file>\n"
         "\n"
         "Options:\n"
         "  -h         display help\n",
         argv0);
  exit(exit_code);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec6(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %esi,%ebx
mov    %rdi,%rsi
lea    0xed3(%rip),%rdi
call   1030 <printf@plt>
mov    %ebx,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [59 x i8] c"Usage: %s [-h] <file>\0A\0AOptions:\0A -h display help\0A\00"
define void @usage(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 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = load i32, i32* %4
%8 = call i32 @exit(i32 %7)
unreachable
}

LLVM IR (-O2):
@.str = [59 x i8] c"Usage: %s [-h] <file>\0A\0AOptions:\0A -h display help\0A\00"
define void @usage(i8* %0, i32 %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = tail call i32 @exit(i32 %1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  int a;
  int b;
  int c;
  int sum;
  a = 2;
  b = 3;
  c = a + b;
  sum = c * c;
  printf("The result is %d", sum);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x2,-0x8(%rbp)
movl   $0x3,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xeb6(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [17 x i8] c"The result is %d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
store i32 2, i32* %2
store i32 3, i32* %3
%6 = load i32, i32* %2
%7 = load i32, i32* %3
%8 = add nsw i32 %6, %7
store i32 %8, i32* %4
%9 = load i32, i32* %4
%10 = load i32, i32* %4
%11 = mul nsw i32 %9, %10
store i32 %11, i32* %5
%12 = load i32, i32* %5
%13 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %12)
ret i32 0
}

LLVM IR (-O2):
@.str = [17 x i8] c"The result is %d\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 25)
ret i32 0
}
long extract_tbr(insn, invalid)
unsigned long insn;
int *invalid;
{
  long ret;
  ret = ((insn >> 16) & 0x1f) | ((insn >> 6) & 0x3e0);
  if (ret == (268))
    ret = 0;
  return ret;
}


x86 assembly (clang, -O0):
<extract_tbr>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
shr    $0x10,%rax
and    $0x1f,%rax
mov    -0x8(%rbp),%rcx
shr    $0x6,%rcx
and    $0x3e0,%rcx
or     %rcx,%rax
mov    %rax,-0x18(%rbp)
cmpq   $0x10c,-0x18(%rbp)
jne    1144 <extract_tbr+0x44>
movq   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<extract_tbr>:
mov    %edi,%ecx
shr    $0x10,%ecx
and    $0x1f,%ecx
shr    $0x6,%rdi
and    $0x3e0,%edi
or     %rdi,%rcx
xor    %eax,%eax
cmp    $0x10c,%rcx
cmovne %rcx,%rax
ret

LLVM IR (-O0):
define i64 @extract_tbr(i64 %0, i32* %1) {
%3 = alloca i64
%4 = alloca i32*
%5 = alloca i64
store i64 %0, i64* %3
store i32* %1, i32** %4
%6 = load i64, i64* %3
%7 = lshr i64 %6, 16
%8 = and i64 %7, 31
%9 = load i64, i64* %3
%10 = lshr i64 %9, 6
%11 = and i64 %10, 992
%12 = or i64 %8, %11
store i64 %12, i64* %5
%13 = load i64, i64* %5
%14 = icmp eq i64 %13, 268
br i1 %14, label %15, label %16
15: ; preds = %2
store i64 0, i64* %5
br label %16
16: ; preds = %15, %2
%17 = load i64, i64* %5
ret i64 %17
}

LLVM IR (-O2):
define i64 @extract_tbr(i64 %0, i32* nocapture readnone %1) {
%3 = lshr i64 %0, 16
%4 = and i64 %3, 31
%5 = lshr i64 %0, 6
%6 = and i64 %5, 992
%7 = or i64 %4, %6
%8 = icmp eq i64 %7, 268
%9 = select i1 %8, i64 0, i64 %7
ret i64 %9
}
/* Type definitions */
struct lwes_hash {
  int dummy;
};

/* Variables and functions */
struct lwes_hash *lwes_hash_create_with_bins(int);
struct lwes_hash *lwes_hash_create(void) {
  return lwes_hash_create_with_bins(10);
}


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

x86 assembly (clang, -O2):
<lwes_hash_create>:
mov    $0xa,%edi
jmp    1030 <lwes_hash_create_with_bins@plt>

LLVM IR (-O0):
%struct.lwes_hash = type { i32 }
define %struct.lwes_hash* @lwes_hash_create() {
%1 = call %struct.lwes_hash* @lwes_hash_create_with_bins(i32 10)
ret %struct.lwes_hash* %1
}

LLVM IR (-O2):
%struct.lwes_hash = type { i32 }
define %struct.lwes_hash* @lwes_hash_create() {
%1 = tail call %struct.lwes_hash* @lwes_hash_create_with_bins(i32 10)
ret %struct.lwes_hash* %1
}
void set_ParameterTable(unsigned char *pds, int table) { pds[3] = table; }


x86 assembly (clang, -O0):
<set_ParameterTable>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,0x3(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_ParameterTable>:
mov    %sil,0x3(%rdi)
ret

LLVM IR (-O0):
define void @set_ParameterTable(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = trunc i32 %5 to i8
%7 = load i8*, i8** %3
%8 = getelementptr inbounds i8, i8* %7, i64 3
store i8 %6, i8* %8
ret void
}

LLVM IR (-O2):
define void @set_ParameterTable(i8* nocapture writeonly %0, i32 %1) {
%3 = trunc i32 %1 to i8
%4 = getelementptr inbounds i8, i8* %0, i64 3
store i8 %3, i8* %4
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main(int argc, char *argv[]) {
  printf("Hello world\n");
  return 0;
}


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

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

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

LLVM IR (-O2):
@str = [12 x i8] c"Hello world\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
ret i32 0
}
int f2(int x, int y) {
  unsigned a = x;
  unsigned b = y;
  return a | b;
}


x86 assembly (clang, -O0):
<f2>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
or     -0x10(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @f2(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%7 = load i32, i32* %3
store i32 %7, i32* %5
%8 = load i32, i32* %4
store i32 %8, i32* %6
%9 = load i32, i32* %5
%10 = load i32, i32* %6
%11 = or i32 %9, %10
ret i32 %11
}

LLVM IR (-O2):
define i32 @f2(i32 %0, i32 %1) {
%3 = or i32 %1, %0
ret i32 %3
}
double action(double (*F)(int, float, double)) { return F(2, 3, 4); }


x86 assembly (clang, -O0):
<action>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x2,%edi
movss  0xee7(%rip),%xmm0
movsd  0xee7(%rip),%xmm1
call   *-0x8(%rbp)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<action>:
mov    %rdi,%rax
movss  0xef5(%rip),%xmm0
movsd  0xef5(%rip),%xmm1
mov    $0x2,%edi
jmp    *%rax

LLVM IR (-O0):
define double @action(double (i32, float, double)* %0) {
%2 = alloca double (i32, float, double)*
store double (i32, float, double)* %0, double (i32, float, double)** %2
%3 = load double (i32, float, double)*, double (i32, float, double)** %2
%4 = call double %3(i32 2, float 3.000000e+00, double 4.000000e+00)
ret double %4
}

LLVM IR (-O2):
define double @action(double (i32, float, double)* nocapture %0) {
%2 = tail call double %0(i32 2, float 3.000000e+00, double 4.000000e+00)
ret double %2
}
/* Variables and functions */
int /*<<< orphan*/ mempcpy(char *, char *, int);
void mempcpy2() {
  char src[] = {1, 2, 3, 4};
  char dst[1];
  mempcpy(dst, src, 4);
}


x86 assembly (clang, -O0):
<mempcpy2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0xee2(%rip),%eax
mov    %eax,-0x4(%rbp)
lea    -0x5(%rbp),%rdi
lea    -0x4(%rbp),%rsi
mov    $0x4,%edx
call   1030 <mempcpy@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mempcpy2>:
push   %rax
movl   $0x4030201,0x4(%rsp)
04
lea    0x3(%rsp),%rdi
lea    0x4(%rsp),%rsi
mov    $0x4,%edx
call   1030 <mempcpy@plt>
pop    %rax
ret

LLVM IR (-O0):
@__const.mempcpy2.src = [4 x i8] c"\01\02\03\04"
define void @mempcpy2() {
%1 = alloca [4 x i8]
%2 = alloca [1 x i8]
%3 = bitcast [4 x i8]* %1 to i8*
%4 = getelementptr inbounds [1 x i8], [1 x i8]* %2, i64 0, i64 0
%5 = getelementptr inbounds [4 x i8], [4 x i8]* %1, i64 0, i64 0
%6 = call i32 @mempcpy(i8* %4, i8* %5, i32 4)
ret void
}

LLVM IR (-O2):
define void @mempcpy2() {
%1 = alloca i32
%2 = alloca [1 x i8]
%3 = bitcast i32* %1 to i8*
store i32 67305985, i32* %1
%4 = getelementptr inbounds [1 x i8], [1 x i8]* %2, i64 0, i64 0
%5 = call i32 @mempcpy(i8* %4, i8* %3, i32 4)
ret void
}
int main(argc, argv)
int argc;
char *argv[];
{
  ZipFiles(
      "1.zip", 1, 1, "11", "zlibsimple.ilk", "zlibwapid.dll",
      "H:\\Dev\\thirdpart\\zlib-1.2."
      "8\\contrib\\vstudio\\vc10\\x86\\ZilbSimpleDebug\\Tmp\\ÐÂ½¨ÎÄ ¼þ¼Ð1");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xed3(%rip),%rdi
mov    $0x1,%edx
lea    0xecd(%rip),%rcx
lea    0xec9(%rip),%r8
lea    0xed1(%rip),%r9
lea    0xed8(%rip),%rax
mov    %edx,%esi
mov    %rax,(%rsp)
mov    $0x0,%al
call   1030 <ZipFiles@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf0e(%rip),%rax
mov    %rax,(%rsp)
lea    0xedd(%rip),%rdi
lea    0xedc(%rip),%rcx
lea    0xed8(%rip),%r8
lea    0xee0(%rip),%r9
mov    $0x1,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <ZipFiles@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"1.zip\00"
@.str.1 = [3 x i8] c"11\00"
@.str.2 = [15 x i8] c"zlibsimple.ilk\00"
@.str.3 = [14 x i8] c"zlibwapid.dll\00"
@.str.4 = [96 x i8] c"H:\\Dev\\thirdpart\\zlib-1.2.8\\contrib\\vstudio\\vc10\\x86\\ZilbSimpleDebug\\Tmp\\\C3\90\C3\82\C2\BD\C2\A8\C3\8E\C3\84 \C2\BC\C3\BE\C2\BC\C3\901\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (i8*, i32, i32, i8*, i8*, i8*, i8*, ...) bitcast (i32 (...)* @ZipFiles to i32 (i8*, i32, i32, i8*, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 1, i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.4, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"1.zip\00"
@.str.1 = [3 x i8] c"11\00"
@.str.2 = [15 x i8] c"zlibsimple.ilk\00"
@.str.3 = [14 x i8] c"zlibwapid.dll\00"
@.str.4 = [96 x i8] c"H:\\Dev\\thirdpart\\zlib-1.2.8\\contrib\\vstudio\\vc10\\x86\\ZilbSimpleDebug\\Tmp\\\C3\90\C3\82\C2\BD\C2\A8\C3\8E\C3\84 \C2\BC\C3\BE\C2\BC\C3\901\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (i8*, i32, i32, i8*, i8*, i8*, i8*, ...) bitcast (i32 (...)* @ZipFiles to i32 (i8*, i32, i32, i8*, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 1, i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.4, i64 0, i64 0))
ret i32 0
}
/* Type definitions */
typedef int uint8_t;

/* Variables and functions */
int log_sense_param_flags(int *);
uint8_t log_sense_param_tmc(uint8_t *param) {
  return (log_sense_param_flags(param) & 0x0C) >> 2;
}


x86 assembly (clang, -O0):
<log_sense_param_tmc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <log_sense_param_flags@plt>
and    $0xc,%eax
sar    $0x2,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<log_sense_param_tmc>:
push   %rax
call   1030 <log_sense_param_flags@plt>
shr    $0x2,%eax
and    $0x3,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @log_sense_param_tmc(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @log_sense_param_flags(i32* %3)
%5 = and i32 %4, 12
%6 = ashr i32 %5, 2
ret i32 %6
}

LLVM IR (-O2):
define i32 @log_sense_param_tmc(i32* %0) {
%2 = tail call i32 @log_sense_param_flags(i32* %0)
%3 = lshr i32 %2, 2
%4 = and i32 %3, 3
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ print_python_unsupported_msg();
int python_start_script_unsupported(const char *script __attribute__((unused)),
                                    int argc __attribute__((unused)),
                                    const char **argv __attribute__((unused))) {
  print_python_unsupported_msg();
  return -1;
}


x86 assembly (clang, -O0):
<python_start_script_unsupported>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    $0x0,%al
call   1030 <print_python_unsupported_msg@plt>
mov    $0xffffffff,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<python_start_script_unsupported>:
push   %rax
xor    %eax,%eax
call   1030 <print_python_unsupported_msg@plt>
mov    $0xffffffff,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @python_start_script_unsupported(i8* %0, i32 %1, i8** %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8**
store i8* %0, i8** %4
store i32 %1, i32* %5
store i8** %2, i8*** %6
%7 = call i32 (...) @print_python_unsupported_msg()
ret i32 -1
}

LLVM IR (-O2):
define i32 @python_start_script_unsupported(i8* nocapture readnone %0, i32 %1, i8** nocapture readnone %2) {
%4 = tail call i32 (...) @print_python_unsupported_msg()
ret i32 -1
}
int pixel_get_a(unsigned int pixel) { return (pixel & 0xFF000000) >> 24; }


x86 assembly (clang, -O0):
<pixel_get_a>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xff000000,%eax
shr    $0x18,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<pixel_get_a>:
mov    %edi,%eax
shr    $0x18,%eax
ret

LLVM IR (-O0):
define i32 @pixel_get_a(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = and i32 %3, -16777216
%5 = lshr i32 %4, 24
ret i32 %5
}

LLVM IR (-O2):
define i32 @pixel_get_a(i32 %0) {
%2 = lshr i32 %0, 24
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ rm(char *);
int /*<<< orphan*/ sm(char *);
void deckpm(int flag) {
  if (flag)
    sm("?81");
  else
    rm("?81");
}


x86 assembly (clang, -O0):
<deckpm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1146 <deckpm+0x26>
lea    0xec4(%rip),%rdi
call   1040 <sm@plt>
jmp    1152 <deckpm+0x32>
lea    0xeb3(%rip),%rdi
call   1030 <rm@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<deckpm>:
test   %edi,%edi
je     1130 <deckpm+0x10>
lea    0xed5(%rip),%rdi
jmp    1040 <sm@plt>
lea    0xec9(%rip),%rdi
jmp    1030 <rm@plt>

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

LLVM IR (-O2):
@.str = [4 x i8] c"?81\00"
define void @deckpm(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @sm(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
br label %7
5: ; preds = %1
%6 = tail call i32 @rm(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
br label %7
7: ; preds = %5, %3
ret void
}
/* Variables and functions */
int _ada_use_c2phc(int, int *, int *, double *);
int copy_dobldobl_container_to_target_solutions(void) {
  int *a, *b, fail;
  double *c;
  fail = _ada_use_c2phc(256, a, b, c);
  return fail;
}


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

x86 assembly (clang, -O2):
<copy_dobldobl_container_to_target_solutions>:
mov    $0x100,%edi
jmp    1030 <_ada_use_c2phc@plt>

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

LLVM IR (-O2):
define i32 @copy_dobldobl_container_to_target_solutions() {
%1 = tail call i32 @_ada_use_c2phc(i32 256, i32* undef, i32* undef, double* undef)
ret i32 %1
}
int getOrPut(char rec_buff[]) {
  if (rec_buff[0] == 'g' || rec_buff[0] == 'G')
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<getOrPut>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x67,%eax
je     1128 <getOrPut+0x28>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x47,%eax
jne    1134 <getOrPut+0x34>
movl   $0x1,-0x4(%rbp)
jmp    113b <getOrPut+0x3b>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<getOrPut>:
mov    (%rdi),%cl
and    $0xdf,%cl
xor    %eax,%eax
cmp    $0x47,%cl
sete   %al
ret

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

LLVM IR (-O2):
define i32 @getOrPut(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = and i8 %2, -33
%4 = icmp eq i8 %3, 71
%5 = zext i1 %4 to i32
ret i32 %5
}
double qYallop(double W, double GeoARCVact) {
  double Wi = W * 60;
  return (GeoARCVact -
          (11.8371 - 6.3226 * Wi + 0.7319 * Wi * Wi - 0.1018 * Wi * Wi * Wi)) /
         10;
}


x86 assembly (clang, -O0):
<qYallop>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  0xf12(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  0xee6(%rip),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xee2(%rip),%xmm2
addsd  %xmm2,%xmm1
movsd  0xec6(%rip),%xmm2
mulsd  -0x18(%rbp),%xmm2
movsd  -0x18(%rbp),%xmm3
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  0xea4(%rip),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm3
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  0xe62(%rip),%xmm1
divsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<qYallop>:
mulsd  0xef8(%rip),%xmm0
movsd  0xef8(%rip),%xmm2
mulsd  %xmm0,%xmm2
addsd  0xef4(%rip),%xmm2
movsd  0xef4(%rip),%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm0,%xmm3
addsd  %xmm2,%xmm3
movsd  0xee8(%rip),%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm3,%xmm2
subsd  %xmm2,%xmm1
divsd  0xed4(%rip),%xmm1
movapd %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @qYallop(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
store double %0, double* %3
store double %1, double* %4
%6 = load double, double* %3
%7 = fmul double %6, 6.000000e+01
store double %7, double* %5
%8 = load double, double* %4
%9 = load double, double* %5
%10 = call double @llvm.fmuladd.f64(double -6.322600e+00, double %9, double 1.183710e+01)
%11 = load double, double* %5
%12 = fmul double 7.319000e-01, %11
%13 = load double, double* %5
%14 = call double @llvm.fmuladd.f64(double %12, double %13, double %10)
%15 = load double, double* %5
%16 = fmul double 1.018000e-01, %15
%17 = load double, double* %5
%18 = fmul double %16, %17
%19 = load double, double* %5
%20 = fneg double %18
%21 = call double @llvm.fmuladd.f64(double %20, double %19, double %14)
%22 = fsub double %8, %21
%23 = fdiv double %22, 1.000000e+01
ret double %23
}

LLVM IR (-O2):
define double @qYallop(double %0, double %1) {
%3 = fmul double %0, 6.000000e+01
%4 = tail call double @llvm.fmuladd.f64(double %3, double -6.322600e+00, double 1.183710e+01)
%5 = fmul double %3, 7.319000e-01
%6 = tail call double @llvm.fmuladd.f64(double %5, double %3, double %4)
%7 = fmul double %3, -1.018000e-01
%8 = fmul double %3, %7
%9 = tail call double @llvm.fmuladd.f64(double %8, double %3, double %6)
%10 = fsub double %1, %9
%11 = fdiv double %10, 1.000000e+01
ret double %11
}
/* Variables and functions */
scalar_t__ has_colors();
int /*<<< orphan*/ no_colors_theme();
int /*<<< orphan*/ normal_color_theme();
int /*<<< orphan*/ set_normal_colors();
int /*<<< orphan*/ start_color();
int /*<<< orphan*/ use_default_colors();
void set_colors(void) {
  start_color();
  use_default_colors();
  set_normal_colors();
  if (has_colors()) {
    normal_color_theme();
  } else {
    no_colors_theme();
  }
}


x86 assembly (clang, -O0):
<set_colors>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1060 <start_color@plt>
mov    $0x0,%al
call   1030 <use_default_colors@plt>
mov    $0x0,%al
call   1040 <set_normal_colors@plt>
mov    $0x0,%al
call   1050 <has_colors@plt>
cmp    $0x0,%rax
je     1196 <set_colors+0x36>
mov    $0x0,%al
call   1080 <normal_color_theme@plt>
jmp    119d <set_colors+0x3d>
mov    $0x0,%al
call   1070 <no_colors_theme@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_colors>:
push   %rax
xor    %eax,%eax
call   1060 <start_color@plt>
xor    %eax,%eax
call   1030 <use_default_colors@plt>
xor    %eax,%eax
call   1040 <set_normal_colors@plt>
xor    %eax,%eax
call   1050 <has_colors@plt>
test   %rax,%rax
je     118a <set_colors+0x2a>
xor    %eax,%eax
pop    %rcx
jmp    1080 <normal_color_theme@plt>
xor    %eax,%eax
pop    %rcx
jmp    1070 <no_colors_theme@plt>

LLVM IR (-O0):
define void @set_colors() {
%1 = call i32 (...) @start_color()
%2 = call i32 (...) @use_default_colors()
%3 = call i32 (...) @set_normal_colors()
%4 = call i64 (...) @has_colors()
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 (...) @normal_color_theme()
br label %10
8: ; preds = %0
%9 = call i32 (...) @no_colors_theme()
br label %10
10: ; preds = %8, %6
ret void
}

LLVM IR (-O2):
define void @set_colors() {
%1 = tail call i32 (...) @start_color()
%2 = tail call i32 (...) @use_default_colors()
%3 = tail call i32 (...) @set_normal_colors()
%4 = tail call i64 (...) @has_colors()
%5 = icmp eq i64 %4, 0
br i1 %5, label %8, label %6
6: ; preds = %0
%7 = tail call i32 (...) @normal_color_theme()
br label %10
8: ; preds = %0
%9 = tail call i32 (...) @no_colors_theme()
br label %10
10: ; preds = %8, %6
ret void
}
/* Variables and functions */
int log10l(long double);
long double db10(long double x) {
  if (x < 1.e-20)
    return (-999.99);
  return (10. * log10l(x));
}


x86 assembly (clang, -O0):
<db10>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
fldt   0x10(%rbp)
fstpt  -0x20(%rbp)
fldt   -0x20(%rbp)
fldl   0xed9(%rip)
fucomip %st(1),%st
fstp   %st(0)
jbe    1144 <db10+0x34>
jmp    1136 <db10+0x26>
fldl   0xed4(%rip)
fstpt  -0x10(%rbp)
jmp    116c <db10+0x5c>
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1030 <log10l@plt>
cvtsi2sd %eax,%xmm0
movsd  0xeab(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
fldl   -0x28(%rbp)
fstpt  -0x10(%rbp)
fldt   -0x10(%rbp)
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<db10>:
sub    $0x18,%rsp
fldt   0x20(%rsp)
fldl   0xee2(%rip)
fldl   0xee4(%rip)
fucomip %st(2),%st
ja     114c <db10+0x3c>
fstp   %st(0)
fstpt  (%rsp)
call   1030 <log10l@plt>
cvtsi2sd %eax,%xmm0
mulsd  0xed2(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
fldl   0x10(%rsp)
fldz
fxch   %st(1)
fstp   %st(1)
add    $0x18,%rsp
ret

LLVM IR (-O0):
define x86_fp80 @db10(x86_fp80 %0) {
%2 = alloca x86_fp80
%3 = alloca x86_fp80
store x86_fp80 %0, x86_fp80* %3
%4 = load x86_fp80, x86_fp80* %3
%5 = fcmp olt x86_fp80 %4, 0xK3FBCBCE5086492111800
br i1 %5, label %6, label %7
6: ; preds = %1
store x86_fp80 0xKC008F9FF5C28F5C29000, x86_fp80* %2
br label %13
7: ; preds = %1
%8 = load x86_fp80, x86_fp80* %3
%9 = call i32 @log10l(x86_fp80 %8)
%10 = sitofp i32 %9 to double
%11 = fmul double 1.000000e+01, %10
%12 = fpext double %11 to x86_fp80
store x86_fp80 %12, x86_fp80* %2
br label %13
13: ; preds = %7, %6
%14 = load x86_fp80, x86_fp80* %2
ret x86_fp80 %14
}

LLVM IR (-O2):
define x86_fp80 @db10(x86_fp80 %0) {
%2 = fcmp olt x86_fp80 %0, 0xK3FBCBCE5086492111800
br i1 %2, label %8, label %3
3: ; preds = %1
%4 = tail call i32 @log10l(x86_fp80 %0)
%5 = sitofp i32 %4 to double
%6 = fmul double %5, 1.000000e+01
%7 = fpext double %6 to x86_fp80
br label %8
8: ; preds = %1, %3
%9 = phi x86_fp80 [ %7, %3 ], [ 0xKC008F9FF5C28F5C29000, %1 ]
ret x86_fp80 %9
}
void ff_hevc_put_hevc_bi_w_epel_h12_12_sse4() {}


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

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

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

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

/* Variables and functions */
int pthread_mutexattr_setprotocol(pthread_mutexattr_t *attr, int protocol) {
  (void)attr;
  (void)protocol;
  return 0;
}


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

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

LLVM IR (-O0):
define i32 @pthread_mutexattr_setprotocol(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
ret i32 0
}

LLVM IR (-O2):
define i32 @pthread_mutexattr_setprotocol(i32* nocapture readnone %0, i32 %1) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ print_letters(char *);
void print_arguments(int argc, char *argv[]) {
  int i = 1;
  for (i = 1; i < argc; i++) {
    print_letters(argv[i]);
  }
}


x86 assembly (clang, -O0):
<print_arguments>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1158 <print_arguments+0x48>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <print_letters@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    112d <print_arguments+0x1d>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_arguments>:
push   %r15
push   %r14
push   %rbx
cmp    $0x2,%edi
jl     1142 <print_arguments+0x32>
mov    %rsi,%r14
mov    %edi,%r15d
mov    $0x1,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    (%r14,%rbx,8),%rdi
call   1030 <print_letters@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    1130 <print_arguments+0x20>
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define void @print_arguments(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %4, label %13
4: ; preds = %2
%5 = zext i32 %0 to i64
br label %6
6: ; preds = %4, %6
%7 = phi i64 [ 1, %4 ], [ %11, %6 ]
%8 = getelementptr inbounds i8*, i8** %1, i64 %7
%9 = load i8*, i8** %8
%10 = tail call i32 @print_letters(i8* %9)
%11 = add nuw nsw i64 %7, 1
%12 = icmp eq i64 %11, %5
br i1 %12, label %13, label %6
13: ; preds = %6, %2
ret void
}
void rop3_155_1_0(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  unsigned char stk3;
  stk3 = T | S;
  stk2 = *D & stk3;
  stk1 = S ^ stk2;
  stk1 = ~stk1;
  *D = (stk1 & (~S)) | (*D & S);
}


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

x86 assembly (clang, -O2):
<rop3_155_1_0>:
or     %esi,%edx
mov    (%rdi),%al
and    %al,%dl
or     %sil,%dl
not    %dl
and    %sil,%al
or     %dl,%al
mov    %al,(%rdi)
ret

LLVM IR (-O0):
define void @rop3_155_1_0(i8* %0, i8 zeroext %1, i8 zeroext %2) {
%4 = alloca i8*
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
%9 = alloca i8
store i8* %0, i8** %4
store i8 %1, i8* %5
store i8 %2, i8* %6
%10 = load i8, i8* %6
%11 = zext i8 %10 to i32
%12 = load i8, i8* %5
%13 = zext i8 %12 to i32
%14 = or i32 %11, %13
%15 = trunc i32 %14 to i8
store i8 %15, i8* %9
%16 = load i8*, i8** %4
%17 = load i8, i8* %16
%18 = zext i8 %17 to i32
%19 = load i8, i8* %9
%20 = zext i8 %19 to i32
%21 = and i32 %18, %20
%22 = trunc i32 %21 to i8
store i8 %22, i8* %8
%23 = load i8, i8* %5
%24 = zext i8 %23 to i32
%25 = load i8, i8* %8
%26 = zext i8 %25 to i32
%27 = xor i32 %24, %26
%28 = trunc i32 %27 to i8
store i8 %28, i8* %7
%29 = load i8, i8* %7
%30 = zext i8 %29 to i32
%31 = xor i32 %30, -1
%32 = trunc i32 %31 to i8
store i8 %32, i8* %7
%33 = load i8, i8* %7
%34 = zext i8 %33 to i32
%35 = load i8, i8* %5
%36 = zext i8 %35 to i32
%37 = xor i32 %36, -1
%38 = and i32 %34, %37
%39 = load i8*, i8** %4
%40 = load i8, i8* %39
%41 = zext i8 %40 to i32
%42 = load i8, i8* %5
%43 = zext i8 %42 to i32
%44 = and i32 %41, %43
%45 = or i32 %38, %44
%46 = trunc i32 %45 to i8
%47 = load i8*, i8** %4
store i8 %46, i8* %47
ret void
}

LLVM IR (-O2):
define void @rop3_155_1_0(i8* nocapture %0, i8 zeroext %1, i8 zeroext %2) {
%4 = or i8 %2, %1
%5 = load i8, i8* %0
%6 = and i8 %5, %4
%7 = or i8 %6, %1
%8 = xor i8 %7, -1
%9 = and i8 %5, %1
%10 = or i8 %9, %8
store i8 %10, i8* %0
ret void
}