xunge/DecIR huggingface dataset:
void gui_swap(char *v[], int i, int j) {
  char *temp;
  temp = v[i];
  v[i] = v[j];
  v[j] = temp;
}


x86 assembly (clang, -O0):
<gui_swap>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x18(%rbp),%rdx
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
pop    %rbp
ret

x86 assembly (clang, -O2):
<gui_swap>:
movslq %esi,%rax
mov    (%rdi,%rax,8),%rcx
movslq %edx,%rdx
mov    (%rdi,%rdx,8),%rsi
mov    %rsi,(%rdi,%rax,8)
mov    %rcx,(%rdi,%rdx,8)
ret

LLVM IR (-O0):
define void @gui_swap(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 i32, i32* %5
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8*, i8** %8, i64 %10
%12 = load i8*, i8** %11
store i8* %12, i8** %7
%13 = load i8**, i8*** %4
%14 = load i32, i32* %6
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8*, i8** %13, i64 %15
%17 = load i8*, i8** %16
%18 = load i8**, i8*** %4
%19 = load i32, i32* %5
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8*, i8** %18, i64 %20
store i8* %17, i8** %21
%22 = load i8*, i8** %7
%23 = load i8**, i8*** %4
%24 = load i32, i32* %6
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8*, i8** %23, i64 %25
store i8* %22, i8** %26
ret void
}

LLVM IR (-O2):
define void @gui_swap(i8** nocapture %0, i32 %1, i32 %2) {
%4 = sext i32 %1 to i64
%5 = getelementptr inbounds i8*, i8** %0, i64 %4
%6 = load i8*, i8** %5
%7 = sext i32 %2 to i64
%8 = getelementptr inbounds i8*, i8** %0, i64 %7
%9 = load i8*, i8** %8
store i8* %9, i8** %5
store i8* %6, i8** %8
ret void
}
/* Variables and functions */
int calclen_l1b(unsigned int);
int calclen_l0a(unsigned int i, int z) {
  static int l[4] = {0x7fffffff, 4, 8, 16};
  z = l[z];
  if (i <= z)
    return i;
  return z + calclen_l1b(i - z);
}


x86 assembly (clang, -O0):
<calclen_l0a>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movslq -0xc(%rbp),%rcx
lea    0x2f07(%rip),%rax
mov    (%rax,%rcx,4),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
ja     1146 <calclen_l0a+0x36>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1161 <calclen_l0a+0x51>
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%edi
sub    -0xc(%rbp),%edi
call   1030 <calclen_l1b@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calclen_l0a>:
push   %rbx
mov    %edi,%eax
movslq %esi,%rcx
lea    0xee3(%rip),%rdx
mov    (%rdx,%rcx,4),%ebx
cmp    %edi,%ebx
jae    112f <calclen_l0a+0x1f>
sub    %ebx,%eax
mov    %eax,%edi
call   1030 <calclen_l1b@plt>
add    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@calclen_l0a.l = internal global [4 x i32] [i32 2147483647, i32 4, i32 8, i32 16]
define i32 @calclen_l0a(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%6 = load i32, i32* %5
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds [4 x i32], [4 x i32]* @calclen_l0a.l, i64 0, i64 %7
%9 = load i32, i32* %8
store i32 %9, i32* %5
%10 = load i32, i32* %4
%11 = load i32, i32* %5
%12 = icmp ule i32 %10, %11
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = load i32, i32* %4
store i32 %14, i32* %3
br label %22
15: ; preds = %2
%16 = load i32, i32* %5
%17 = load i32, i32* %4
%18 = load i32, i32* %5
%19 = sub i32 %17, %18
%20 = call i32 @calclen_l1b(i32 %19)
%21 = add nsw i32 %16, %20
store i32 %21, i32* %3
br label %22
22: ; preds = %15, %13
%23 = load i32, i32* %3
ret i32 %23
}

LLVM IR (-O2):
@calclen_l0a.l = internal unnamed_addr constant [4 x i32] [i32 2147483647, i32 4, i32 8, i32 16]
define i32 @calclen_l0a(i32 %0, i32 %1) {
%3 = sext i32 %1 to i64
%4 = getelementptr inbounds [4 x i32], [4 x i32]* @calclen_l0a.l, i64 0, i64 %3
%5 = load i32, i32* %4
%6 = icmp ult i32 %5, %0
br i1 %6, label %7, label %11
7: ; preds = %2
%8 = sub i32 %0, %5
%9 = tail call i32 @calclen_l1b(i32 %8)
%10 = add nsw i32 %9, %5
br label %11
11: ; preds = %2, %7
%12 = phi i32 [ %10, %7 ], [ %0, %2 ]
ret i32 %12
}
void gtk_border_get_type() {}


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

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

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

LLVM IR (-O2):
define void @gtk_border_get_type() {
ret void
}
/* Variables and functions */
unsigned char Rot2(unsigned char);
unsigned char S0(unsigned char X1, unsigned char X2) {
  return Rot2((X1 + X2) & 0xff);
}


x86 assembly (clang, -O0):
<S0>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movzbl -0x1(%rbp),%eax
movzbl -0x2(%rbp),%ecx
add    %ecx,%eax
and    $0xff,%eax
movzbl %al,%edi
call   1030 <Rot2@plt>
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<S0>:
add    %dil,%sil
movzbl %sil,%edi
jmp    1030 <Rot2@plt>

LLVM IR (-O0):
define zeroext i8 @S0(i8 zeroext %0, i8 zeroext %1) {
%3 = alloca i8
%4 = alloca i8
store i8 %0, i8* %3
store i8 %1, i8* %4
%5 = load i8, i8* %3
%6 = zext i8 %5 to i32
%7 = load i8, i8* %4
%8 = zext i8 %7 to i32
%9 = add nsw i32 %6, %8
%10 = and i32 %9, 255
%11 = trunc i32 %10 to i8
%12 = call zeroext i8 @Rot2(i8 zeroext %11)
ret i8 %12
}

LLVM IR (-O2):
define zeroext i8 @S0(i8 zeroext %0, i8 zeroext %1) {
%3 = add i8 %1, %0
%4 = tail call zeroext i8 @Rot2(i8 zeroext %3)
ret i8 %4
}
signed char identischar(signed char c) { return c; }


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

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

LLVM IR (-O0):
define signext i8 @identischar(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
ret i8 %3
}

LLVM IR (-O2):
define signext i8 @identischar(i8 returned signext %0) {
ret i8 %0
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ islower(int);
void t_islower_0x0a() {
  Assert_real((islower(10) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_islower.c",
              55, ("islower should be 0 for 0x0a"));
}


x86 assembly (clang, -O0):
<t_islower_0x0a>:
push   %rbp
mov    %rsp,%rbp
mov    $0xa,%edi
call   1030 <islower@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xebf(%rip),%rsi
mov    $0x37,%edx
lea    0xf5b(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_islower_0x0a>:
push   %rax
mov    $0xa,%edi
call   1030 <islower@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x37,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_islower.c\00"
@.str.1 = [29 x i8] c"islower should be 0 for 0x0a\00"
define void @t_islower_0x0a() {
%1 = call i64 @islower(i32 10)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 55, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_islower.c\00"
@.str.1 = [29 x i8] c"islower should be 0 for 0x0a\00"
define void @t_islower_0x0a() {
%1 = tail call i64 @islower(i32 10)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 55, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
int main() {
  char out = 0x55;
  __asm__("movb $0x80, %%al; cmpb $0x7F, %%al; seto %%al" : "=a"(out));
  return out;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movb   $0x55,-0x5(%rbp)
mov    $0x80,%al
cmp    $0x7f,%al
seto   %al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
mov    $0x80,%al
cmp    $0x7f,%al
seto   %al
movsbl %al,%eax
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
store i32 0, i32* %1
store i8 85, i8* %2
%3 = call i8 asm "movb $$0x80, %al; cmpb $$0x7F, %al; seto %al", "={ax},~{dirflag},~{fpsr},~{flags}"()
store i8 %3, i8* %2
%4 = load i8, i8* %2
%5 = sext i8 %4 to i32
ret i32 %5
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i8 asm "movb $$0x80, %al; cmpb $$0x7F, %al; seto %al", "={ax},~{dirflag},~{fpsr},~{flags}"()
%2 = sext i8 %1 to i32
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ echo();
int /*<<< orphan*/ endwin();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ noraw();
int /*<<< orphan*/ refresh();
void ion_exit(int exit_code) {
  echo();
  noraw();
  refresh();
  endwin();
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<ion_exit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1030 <echo@plt>
mov    $0x0,%al
call   1040 <noraw@plt>
mov    $0x0,%al
call   1050 <refresh@plt>
mov    $0x0,%al
call   1060 <endwin@plt>
mov    0x2e62(%rip),%rax
mov    (%rax),%edi
call   1070 <exit@plt>

x86 assembly (clang, -O2):
<ion_exit>:
push   %rax
xor    %eax,%eax
call   1030 <echo@plt>
xor    %eax,%eax
call   1040 <noraw@plt>
xor    %eax,%eax
call   1050 <refresh@plt>
xor    %eax,%eax
call   1060 <endwin@plt>
mov    0x2e6c(%rip),%rax
mov    (%rax),%edi
call   1070 <exit@plt>

LLVM IR (-O0):
@EXIT_SUCCESS = global i32 0
define void @ion_exit(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (...) @echo()
%4 = call i32 (...) @noraw()
%5 = call i32 (...) @refresh()
%6 = call i32 (...) @endwin()
%7 = load i32, i32* @EXIT_SUCCESS
%8 = call i32 @exit(i32 %7)
unreachable
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define void @ion_exit(i32 %0) {
%2 = tail call i32 (...) @echo()
%3 = tail call i32 (...) @noraw()
%4 = tail call i32 (...) @refresh()
%5 = tail call i32 (...) @endwin()
%6 = load i32, i32* @EXIT_SUCCESS
%7 = tail call i32 @exit(i32 %6)
unreachable
}
int am_setconfig(const char *path, const char *val) { return -1; }


x86 assembly (clang, -O0):
<am_setconfig>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0xffffffff,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @am_setconfig(i8* nocapture readnone %0, i8* nocapture readnone %1) {
ret i32 -1
}
/* Variables and functions */
const char *g(const char *s, size_t n) { return s; }


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

x86 assembly (clang, -O2):
<g>:
mov    %rdi,%rax
ret

LLVM IR (-O0):
define i8* @g(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %3
store i64 %1, i64* %4
%5 = load i8*, i8** %3
ret i8* %5
}

LLVM IR (-O2):
define i8* @g(i8* readnone returned %0, i64 %1) {
ret i8* %0
}
void f3() {
  int x, y;
  int d = &y - &x;
  int a[10];
  int *p = &a[2];
  int *q = &a[8];
  d = q - p;
}


x86 assembly (clang, -O0):
<f3>:
push   %rbp
mov    %rsp,%rbp
lea    -0x8(%rbp),%rax
lea    -0x4(%rbp),%rcx
sub    %rcx,%rax
sar    $0x2,%rax
mov    %eax,-0xc(%rbp)
lea    -0x40(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x48(%rbp)
lea    -0x40(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
mov    -0x48(%rbp),%rcx
sub    %rcx,%rax
sar    $0x2,%rax
mov    %eax,-0xc(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @f3() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [10 x i32]
%5 = alloca i32*
%6 = alloca i32*
%7 = ptrtoint i32* %2 to i64
%8 = ptrtoint i32* %1 to i64
%9 = sub i64 %7, %8
%10 = sdiv exact i64 %9, 4
%11 = trunc i64 %10 to i32
store i32 %11, i32* %3
%12 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 2
store i32* %12, i32** %5
%13 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 8
store i32* %13, i32** %6
%14 = load i32*, i32** %6
%15 = load i32*, i32** %5
%16 = ptrtoint i32* %14 to i64
%17 = ptrtoint i32* %15 to i64
%18 = sub i64 %16, %17
%19 = sdiv exact i64 %18, 4
%20 = trunc i64 %19 to i32
store i32 %20, i32* %3
ret void
}

LLVM IR (-O2):
define void @f3() {
ret void
}
/* Variables and functions */
char *calloc(int, int);
char *str_dup(char *src, int size) {
  char *str = calloc(size, sizeof(char));
  int i;
  for (i = 0; i < size; i++)
    str[i] = src[i];
  return str;
}


x86 assembly (clang, -O0):
<str_dup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%edi
mov    $0x1,%esi
call   1030 <calloc@plt>
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1167 <str_dup+0x57>
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1137 <str_dup+0x27>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<str_dup>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%ebp
mov    %rdi,%r14
mov    %esi,%edi
mov    $0x1,%esi
call   1030 <calloc@plt>
mov    %rax,%rbx
test   %ebp,%ebp
jle    1149 <str_dup+0x29>
mov    %ebp,%edx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <memcpy@plt>
mov    %rbx,%rax
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
define noalias i8* @str_dup(i8* nocapture %0, i32 %1) {
%3 = tail call i8* @calloc(i32 %1, i32 1)
%4 = icmp sgt i32 %1, 0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = zext i32 %1 to i64
br label %7
7: ; preds = %5, %2
ret i8* %3
}
void __ipipe_notify_vm_preemption(void) {}


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

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

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

LLVM IR (-O2):
define void @__ipipe_notify_vm_preemption() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ luaL_nonnullarg(int);
int /*<<< orphan*/ lua_pushobject(int /*<<< orphan*/);
int /*<<< orphan*/ lua_rawsettable();
void luaB_rawsettable(void) {
  lua_pushobject(luaL_nonnullarg(1));
  lua_pushobject(luaL_nonnullarg(2));
  lua_pushobject(luaL_nonnullarg(3));
  lua_rawsettable();
}


x86 assembly (clang, -O0):
<luaB_rawsettable>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
call   1040 <luaL_nonnullarg@plt>
mov    %eax,%edi
call   1050 <lua_pushobject@plt>
mov    $0x2,%edi
call   1040 <luaL_nonnullarg@plt>
mov    %eax,%edi
call   1050 <lua_pushobject@plt>
mov    $0x3,%edi
call   1040 <luaL_nonnullarg@plt>
mov    %eax,%edi
call   1050 <lua_pushobject@plt>
mov    $0x0,%al
call   1030 <lua_rawsettable@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<luaB_rawsettable>:
push   %rax
mov    $0x1,%edi
call   1040 <luaL_nonnullarg@plt>
mov    %eax,%edi
call   1050 <lua_pushobject@plt>
mov    $0x2,%edi
call   1040 <luaL_nonnullarg@plt>
mov    %eax,%edi
call   1050 <lua_pushobject@plt>
mov    $0x3,%edi
call   1040 <luaL_nonnullarg@plt>
mov    %eax,%edi
call   1050 <lua_pushobject@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <lua_rawsettable@plt>

LLVM IR (-O0):
define void @luaB_rawsettable() {
%1 = call i32 @luaL_nonnullarg(i32 1)
%2 = call i32 @lua_pushobject(i32 %1)
%3 = call i32 @luaL_nonnullarg(i32 2)
%4 = call i32 @lua_pushobject(i32 %3)
%5 = call i32 @luaL_nonnullarg(i32 3)
%6 = call i32 @lua_pushobject(i32 %5)
%7 = call i32 (...) @lua_rawsettable()
ret void
}

LLVM IR (-O2):
define void @luaB_rawsettable() {
%1 = tail call i32 @luaL_nonnullarg(i32 1)
%2 = tail call i32 @lua_pushobject(i32 %1)
%3 = tail call i32 @luaL_nonnullarg(i32 2)
%4 = tail call i32 @lua_pushobject(i32 %3)
%5 = tail call i32 @luaL_nonnullarg(i32 3)
%6 = tail call i32 @lua_pushobject(i32 %5)
%7 = tail call i32 (...) @lua_rawsettable()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ tx_hex_header(unsigned char *);
void tx_zrinit() {
  unsigned char zrinit_header[] = {0x01, 0, 0, 0, 4 | 0x01 | 0x02 | 0x20};
  tx_hex_header(zrinit_header);
}


x86 assembly (clang, -O0):
<tx_zrinit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0xee2(%rip),%eax
mov    %eax,-0x5(%rbp)
mov    0xedd(%rip),%al
mov    %al,-0x1(%rbp)
lea    -0x5(%rbp),%rdi
call   1030 <tx_hex_header@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tx_zrinit>:
push   %rax
movb   $0x27,0x4(%rsp)
movl   $0x1,(%rsp)
mov    %rsp,%rdi
call   1030 <tx_hex_header@plt>
pop    %rax
ret

LLVM IR (-O0):
@__const.tx_zrinit.zrinit_header = [5 x i8] c"\01\00\00\00'"
define void @tx_zrinit() {
%1 = alloca [5 x i8]
%2 = bitcast [5 x i8]* %1 to i8*
%3 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 0
%4 = call i32 @tx_hex_header(i8* %3)
ret void
}

LLVM IR (-O2):
@__const.tx_zrinit.zrinit_header = [5 x i8] c"\01\00\00\00'"
define void @tx_zrinit() {
%1 = alloca [5 x i8]
%2 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 0
%3 = call i32 @tx_hex_header(i8* %2)
ret void
}
int fun_coverage_if_elseif(int x) {
  if (x == 1) {
    return 8;
  } else if (x == 2) {
    return 9;
  } else if (x == 3) {
    return 10;
  } else if (x == 4) {
    return 11;
  } else {
    return 12;
  }
}


x86 assembly (clang, -O0):
<fun_coverage_if_elseif>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    111d <fun_coverage_if_elseif+0x1d>
movl   $0x8,-0x4(%rbp)
jmp    1166 <fun_coverage_if_elseif+0x66>
cmpl   $0x2,-0x8(%rbp)
jne    1133 <fun_coverage_if_elseif+0x33>
movl   $0x9,-0x4(%rbp)
jmp    1166 <fun_coverage_if_elseif+0x66>
cmpl   $0x3,-0x8(%rbp)
jne    1149 <fun_coverage_if_elseif+0x49>
movl   $0xa,-0x4(%rbp)
jmp    1166 <fun_coverage_if_elseif+0x66>
cmpl   $0x4,-0x8(%rbp)
jne    115f <fun_coverage_if_elseif+0x5f>
movl   $0xb,-0x4(%rbp)
jmp    1166 <fun_coverage_if_elseif+0x66>
movl   $0xc,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<fun_coverage_if_elseif>:
lea    -0x1(%rdi),%eax
lea    0x7(%rdi),%ecx
cmp    $0x4,%eax
mov    $0xc,%eax
cmovb  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @fun_coverage_if_elseif(i32 %0) {
%2 = add i32 %0, -1
%3 = icmp ult i32 %2, 4
%4 = add i32 %0, 7
%5 = select i1 %3, i32 %4, i32 12
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ cleanup();
int /*<<< orphan*/ init();
int /*<<< orphan*/ spamcolors();
int main(void) {
  init();
  spamcolors();
  cleanup();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @init()
%2 = tail call i32 (...) @spamcolors()
%3 = tail call i32 (...) @cleanup()
ret i32 0
}
/* Type definitions */
typedef enum bpf_map_type { ____Placeholder_bpf_map_type } bpf_map_type;
typedef int /*<<< orphan*/ __u32;

/* Variables and functions */
int bpf_create_map_node(int, int, int, int, int /*<<< orphan*/, int);
int bpf_create_map(enum bpf_map_type map_type, int key_size, int value_size,
                   int max_entries, __u32 map_flags) {
  return bpf_create_map_node(map_type, key_size, value_size, max_entries,
                             map_flags, -1);
}


x86 assembly (clang, -O0):
<bpf_create_map>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x14(%rbp),%r8d
mov    $0xffffffff,%r9d
call   1030 <bpf_create_map_node@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bpf_create_map>:
mov    $0xffffffff,%r9d
jmp    1030 <bpf_create_map_node@plt>

LLVM IR (-O0):
define i32 @bpf_create_map(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%11 = load i32, i32* %6
%12 = load i32, i32* %7
%13 = load i32, i32* %8
%14 = load i32, i32* %9
%15 = load i32, i32* %10
%16 = call i32 @bpf_create_map_node(i32 %11, i32 %12, i32 %13, i32 %14, i32 %15, i32 -1)
ret i32 %16
}

LLVM IR (-O2):
define i32 @bpf_create_map(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = tail call i32 @bpf_create_map_node(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 -1)
ret i32 %6
}
void get_crc_table(void) {}


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

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

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

LLVM IR (-O2):
define void @get_crc_table() {
ret void
}
/* Variables and functions */
int BIT(int);
int wpa_key_mgmt_wpa_ieee8021x(int akm) {
  return !!(akm & (BIT(0) | BIT(5) | BIT(7)));
}


x86 assembly (clang, -O0):
<wpa_key_mgmt_wpa_ieee8021x>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
xor    %edi,%edi
call   1030 <BIT@plt>
mov    %eax,-0x10(%rbp)
mov    $0x5,%edi
call   1030 <BIT@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%eax
or     %ecx,%eax
mov    %eax,-0xc(%rbp)
mov    $0x7,%edi
call   1030 <BIT@plt>
mov    -0xc(%rbp),%ecx
mov    %eax,%edx
mov    -0x8(%rbp),%eax
or     %edx,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wpa_key_mgmt_wpa_ieee8021x>:
push   %rbp
push   %r14
push   %rbx
mov    %edi,%r14d
xor    %edi,%edi
call   1030 <BIT@plt>
mov    %eax,%ebp
mov    $0x5,%edi
call   1030 <BIT@plt>
mov    %eax,%ebx
or     %ebp,%ebx
mov    $0x7,%edi
call   1030 <BIT@plt>
or     %ebx,%eax
xor    %ecx,%ecx
test   %r14d,%eax
setne  %cl
mov    %ecx,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @wpa_key_mgmt_wpa_ieee8021x(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @BIT(i32 0)
%5 = call i32 @BIT(i32 5)
%6 = or i32 %4, %5
%7 = call i32 @BIT(i32 7)
%8 = or i32 %6, %7
%9 = and i32 %3, %8
%10 = icmp ne i32 %9, 0
%11 = xor i1 %10, true
%12 = xor i1 %11, true
%13 = zext i1 %12 to i32
ret i32 %13
}

LLVM IR (-O2):
define i32 @wpa_key_mgmt_wpa_ieee8021x(i32 %0) {
%2 = tail call i32 @BIT(i32 0)
%3 = tail call i32 @BIT(i32 5)
%4 = or i32 %3, %2
%5 = tail call i32 @BIT(i32 7)
%6 = or i32 %4, %5
%7 = and i32 %6, %0
%8 = icmp ne i32 %7, 0
%9 = zext i1 %8 to i32
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ cent_1();
int /*<<< orphan*/ getchar();
int main() {
  cent_1();
  getchar();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @cent_1()
%2 = tail call i32 (...) @getchar()
ret i32 0
}
void rop3_166_1_0(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  unsigned char stk3;
  stk3 = ~T;
  stk2 = S & stk3;
  stk1 = *D ^ stk2;
  *D = (stk1 & (~S)) | (*D & S);
}


x86 assembly (clang, -O0):
<rop3_166_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
xor    $0xffffffff,%eax
mov    %al,-0xd(%rbp)
movzbl -0x9(%rbp),%eax
movzbl -0xd(%rbp),%ecx
and    %ecx,%eax
mov    %al,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
movzbl -0xc(%rbp),%ecx
xor    %ecx,%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_166_1_0>:
ret

LLVM IR (-O0):
define void @rop3_166_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 = xor i32 %11, -1
%13 = trunc i32 %12 to i8
store i8 %13, i8* %9
%14 = load i8, i8* %5
%15 = zext i8 %14 to i32
%16 = load i8, i8* %9
%17 = zext i8 %16 to i32
%18 = and i32 %15, %17
%19 = trunc i32 %18 to i8
store i8 %19, i8* %8
%20 = load i8*, i8** %4
%21 = load i8, i8* %20
%22 = zext i8 %21 to i32
%23 = load i8, i8* %8
%24 = zext i8 %23 to i32
%25 = xor i32 %22, %24
%26 = trunc i32 %25 to i8
store i8 %26, i8* %7
%27 = load i8, i8* %7
%28 = zext i8 %27 to i32
%29 = load i8, i8* %5
%30 = zext i8 %29 to i32
%31 = xor i32 %30, -1
%32 = and i32 %28, %31
%33 = load i8*, i8** %4
%34 = load i8, i8* %33
%35 = zext i8 %34 to i32
%36 = load i8, i8* %5
%37 = zext i8 %36 to i32
%38 = and i32 %35, %37
%39 = or i32 %32, %38
%40 = trunc i32 %39 to i8
%41 = load i8*, i8** %4
store i8 %40, i8* %41
ret void
}

LLVM IR (-O2):
define void @rop3_166_1_0(i8* nocapture %0, i8 zeroext %1, i8 zeroext %2) {
ret void
}
void FS_RemoveExtension(const char *in, char *out) {
  while (*in && *in != '.') {
    *out++ = *in++;
  }
  *out = '\0';
}


x86 assembly (clang, -O0):
<FS_RemoveExtension>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x11(%rbp)
je     1131 <FS_RemoveExtension+0x31>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2e,%eax
setne  %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
test   $0x1,%al
jne    1141 <FS_RemoveExtension+0x41>
jmp    1168 <FS_RemoveExtension+0x68>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
mov    (%rax),%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
jmp    110c <FS_RemoveExtension+0xc>
mov    -0x10(%rbp),%rax
movb   $0x0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<FS_RemoveExtension>:
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movzbl (%rdi,%rax,1),%ecx
test   %cl,%cl
je     1126 <FS_RemoveExtension+0x26>
cmp    $0x2e,%cl
je     1126 <FS_RemoveExtension+0x26>
mov    %cl,(%rsi,%rax,1)
add    $0x1,%rax
jmp    1110 <FS_RemoveExtension+0x10>
movb   $0x0,(%rsi,%rax,1)
ret

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

LLVM IR (-O2):
define void @FS_RemoveExtension(i8* nocapture %0, i8* nocapture writeonly %1) {
br label %3
3: ; preds = %7, %2
%4 = phi i8* [ %0, %2 ], [ %8, %7 ]
%5 = phi i8* [ %1, %2 ], [ %9, %7 ]
%6 = load i8, i8* %4
switch i8 %6, label %7 [
i8 0, label %10
i8 46, label %10
]
7: ; preds = %3
%8 = getelementptr inbounds i8, i8* %4, i64 1
%9 = getelementptr inbounds i8, i8* %5, i64 1
store i8 %6, i8* %5
br label %3
10: ; preds = %3, %3
store i8 0, i8* %5
ret void
}
/* Variables and functions */
void *__memcpy__(void *, void *, size_t);
void *_memcpy(void *dest, void *src, size_t len) {
  return __memcpy__(dest, src, len);
}


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

x86 assembly (clang, -O2):
<_memcpy>:
jmp    1030 <__memcpy__@plt>

LLVM IR (-O0):
define i8* @_memcpy(i8* %0, i8* %1, i64 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i64
store i8* %0, i8** %4
store i8* %1, i8** %5
store i64 %2, i64* %6
%7 = load i8*, i8** %4
%8 = load i8*, i8** %5
%9 = load i64, i64* %6
%10 = call i8* @__memcpy__(i8* %7, i8* %8, i64 %9)
ret i8* %10
}

LLVM IR (-O2):
define i8* @_memcpy(i8* %0, i8* %1, i64 %2) {
%4 = tail call i8* @__memcpy__(i8* %0, i8* %1, i64 %2)
ret i8* %4
}
void rb_disable_super(void) {}


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

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

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

LLVM IR (-O2):
define void @rb_disable_super() {
ret void
}
int fun148() { return 148; }


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

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

LLVM IR (-O0):
define i32 @fun148() {
ret i32 148
}

LLVM IR (-O2):
define i32 @fun148() {
ret i32 148
}
/* Variables and functions */
char *copyAfterTab(char *);
scalar_t__ strcmp(char *, char *);
int classMatch(char *fileClassPair, char *class) {
  char *p = copyAfterTab(fileClassPair);
  return (strcmp(class, p) == 0);
}


x86 assembly (clang, -O0):
<classMatch>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <copyAfterTab@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<classMatch>:
push   %rbx
mov    %rsi,%rbx
call   1030 <copyAfterTab@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1040 <strcmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
mov    %ecx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @classMatch(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%6 = load i8*, i8** %3
%7 = call i8* @copyAfterTab(i8* %6)
store i8* %7, i8** %5
%8 = load i8*, i8** %4
%9 = load i8*, i8** %5
%10 = call i64 @strcmp(i8* %8, i8* %9)
%11 = icmp eq i64 %10, 0
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
define i32 @classMatch(i8* %0, i8* %1) {
%3 = tail call i8* @copyAfterTab(i8* %0)
%4 = tail call i64 @strcmp(i8* %1, i8* %3)
%5 = icmp eq i64 %4, 0
%6 = zext i1 %5 to i32
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
void clear_memory(char *str) { free(str); }


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

x86 assembly (clang, -O2):
<clear_memory>:
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @clear_memory(i8* nocapture %0) {
%2 = tail call i32 @free(i8* %0)
ret void
}
unsigned short inw(unsigned short port) {
  unsigned short ret;
  asm volatile("inw (%%dx),%%ax" : "=a"(ret) : "d"(port));
  return ret;
}


x86 assembly (clang, -O0):
<inw>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
mov    -0x2(%rbp),%dx
in     (%dx),%ax
mov    %ax,-0x4(%rbp)
movzwl -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<inw>:
mov    %edi,%edx
in     (%dx),%ax
ret

LLVM IR (-O0):
define zeroext i16 @inw(i16 zeroext %0) {
%2 = alloca i16
%3 = alloca i16
store i16 %0, i16* %2
%4 = load i16, i16* %2
%5 = call i16 asm sideeffect "inw (%dx),%ax", "={ax},{dx},~{dirflag},~{fpsr},~{flags}"(i16 %4)
store i16 %5, i16* %3
%6 = load i16, i16* %3
ret i16 %6
}

LLVM IR (-O2):
define zeroext i16 @inw(i16 zeroext %0) {
%2 = tail call i16 asm sideeffect "inw (%dx),%ax", "={ax},{dx},~{dirflag},~{fpsr},~{flags}"(i16 %0)
ret i16 %2
}
void pinmux_show_map(struct seq_file *s, struct pinctrl_map const *map) {}


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

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

LLVM IR (-O0):
%struct.seq_file = type opaque
%struct.pinctrl_map = type opaque
define void @pinmux_show_map(%struct.seq_file* %0, %struct.pinctrl_map* %1) {
%3 = alloca %struct.seq_file*
%4 = alloca %struct.pinctrl_map*
store %struct.seq_file* %0, %struct.seq_file** %3
store %struct.pinctrl_map* %1, %struct.pinctrl_map** %4
ret void
}

LLVM IR (-O2):
%struct.seq_file = type opaque
%struct.pinctrl_map = type opaque
define void @pinmux_show_map(%struct.seq_file* nocapture %0, %struct.pinctrl_map* nocapture %1) {
ret void
}
/* Variables and functions */
int gcspy_dUtilsTileNum(char *start, char *end, int tileSize) {
  int tiles;
  int diff = (int)((size_t)end - (size_t)start);
  tiles = diff / tileSize;
  if ((diff % tileSize) != 0)
    ++tiles;
  return tiles;
}


x86 assembly (clang, -O0):
<gcspy_dUtilsTileNum>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%rcx
sub    %rcx,%rax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cltd
idivl  -0x14(%rbp)
mov    %eax,-0x18(%rbp)
mov    -0x1c(%rbp),%eax
cltd
idivl  -0x14(%rbp)
cmp    $0x0,%edx
je     1140 <gcspy_dUtilsTileNum+0x40>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<gcspy_dUtilsTileNum>:
mov    %edx,%ecx
mov    %rsi,%rax
sub    %edi,%eax
cltd
idiv   %ecx
cmp    $0x1,%edx
sbb    $0xffffffff,%eax
ret

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

LLVM IR (-O2):
define i32 @gcspy_dUtilsTileNum(i8* %0, i8* %1, i32 %2) {
%4 = ptrtoint i8* %1 to i64
%5 = ptrtoint i8* %0 to i64
%6 = sub i64 %4, %5
%7 = trunc i64 %6 to i32
%8 = sdiv i32 %7, %2
%9 = srem i32 %7, %2
%10 = icmp ne i32 %9, 0
%11 = zext i1 %10 to i32
%12 = add nsw i32 %8, %11
ret i32 %12
}
long pot2(int k) {
  if (k == 0)
    return 1;
  return 2 * pot2(k - 1);
}


x86 assembly (clang, -O0):
<pot2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    1132 <pot2+0x22>
movq   $0x1,-0x8(%rbp)
jmp    1145 <pot2+0x35>
mov    -0xc(%rbp),%edi
sub    $0x1,%edi
call   1030 <pot2@plt>
shl    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pot2>:
test   %edi,%edi
je     1125 <pot2+0x15>
push   %rax
add    $0xffffffff,%edi
call   1030 <pot2@plt>
add    %rax,%rax
add    $0x8,%rsp
ret
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i64 @pot2(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %3, label %5
3: ; preds = %1, %5
%4 = phi i64 [ %8, %5 ], [ 1, %1 ]
ret i64 %4
5: ; preds = %1
%6 = add nsw i32 %0, -1
%7 = tail call i64 @pot2(i32 %6)
%8 = shl nsw i64 %7, 1
br label %3
}
int verify_cmos_byte_index(unsigned index) {
  return (index < 14) || (index >= 256);
}


x86 assembly (clang, -O0):
<verify_cmos_byte_index>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    $0x1,%al
cmpl   $0xe,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jb     1123 <verify_cmos_byte_index+0x23>
cmpl   $0x100,-0x4(%rbp)
setae  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<verify_cmos_byte_index>:
add    $0xffffff00,%edi
xor    %eax,%eax
cmp    $0xffffff0e,%edi
setb   %al
ret

LLVM IR (-O0):
define i32 @verify_cmos_byte_index(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ult i32 %3, 14
br i1 %4, label %8, label %5
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp uge i32 %6, 256
br label %8
8: ; preds = %5, %1
%9 = phi i1 [ true, %1 ], [ %7, %5 ]
%10 = zext i1 %9 to i32
ret i32 %10
}

LLVM IR (-O2):
define i32 @verify_cmos_byte_index(i32 %0) {
%2 = add i32 %0, -256
%3 = icmp ult i32 %2, -242
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ SIGSEGV;
scalar_t__ raise(int /*<<< orphan*/);
int sigsegv(void) { return raise(SIGSEGV) == 0; }


x86 assembly (clang, -O0):
<sigsegv>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ecd(%rip),%rax
mov    (%rax),%edi
call   1030 <raise@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<sigsegv>:
push   %rax
mov    0x2ed0(%rip),%rax
mov    (%rax),%edi
call   1030 <raise@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
@SIGSEGV = global i32 0
define i32 @sigsegv() {
%1 = load i32, i32* @SIGSEGV
%2 = call i64 @raise(i32 %1)
%3 = icmp eq i64 %2, 0
%4 = zext i1 %3 to i32
ret i32 %4
}

LLVM IR (-O2):
@SIGSEGV = global i32 0
define i32 @sigsegv() {
%1 = load i32, i32* @SIGSEGV
%2 = tail call i64 @raise(i32 %1)
%3 = icmp eq i64 %2, 0
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void free_mem1(void *mem) { free(mem); }


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

x86 assembly (clang, -O2):
<free_mem1>:
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @free_mem1(i8* nocapture %0) {
%2 = tail call i32 @free(i8* %0)
ret void
}
/* Variables and functions */
int f146(int *);
int f147(int *p) { return f146(p); }


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

x86 assembly (clang, -O2):
<f147>:
jmp    1030 <f146@plt>

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

LLVM IR (-O2):
define i32 @f147(i32* %0) {
%2 = tail call i32 @f146(i32* %0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ cdflib_cumbet(double const *, double const *, double const *,
                                 double *, double *, double *);
void cdflib_cumnbn(const double *s, const double *xn, const double *pr,
                   const double *ompr, double *cum, double *ccum) {
  double T1;
  T1 = *s + 1.e0;
  cdflib_cumbet(pr, ompr, xn, &T1, cum, ccum);
  return;
}


x86 assembly (clang, -O0):
<cdflib_cumnbn>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rax
movsd  0xec4(%rip),%xmm0
addsd  (%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%r9
lea    -0x38(%rbp),%rcx
call   1030 <cdflib_cumbet@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cdflib_cumnbn>:
push   %rax
mov    %rdx,%rax
mov    %rsi,%rdx
movsd  (%rdi),%xmm0
addsd  0xedd(%rip),%xmm0
movsd  %xmm0,(%rsp)
mov    %rsp,%r10
mov    %rax,%rdi
mov    %rcx,%rsi
mov    %r10,%rcx
call   1030 <cdflib_cumbet@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @cdflib_cumnbn(double* %0, double* %1, double* %2, double* %3, double* %4, double* %5) {
%7 = alloca double*
%8 = alloca double*
%9 = alloca double*
%10 = alloca double*
%11 = alloca double*
%12 = alloca double*
%13 = alloca double
store double* %0, double** %7
store double* %1, double** %8
store double* %2, double** %9
store double* %3, double** %10
store double* %4, double** %11
store double* %5, double** %12
%14 = load double*, double** %7
%15 = load double, double* %14
%16 = fadd double %15, 1.000000e+00
store double %16, double* %13
%17 = load double*, double** %9
%18 = load double*, double** %10
%19 = load double*, double** %8
%20 = load double*, double** %11
%21 = load double*, double** %12
%22 = call i32 @cdflib_cumbet(double* %17, double* %18, double* %19, double* %13, double* %20, double* %21)
ret void
}

LLVM IR (-O2):
define void @cdflib_cumnbn(double* nocapture %0, double* %1, double* %2, double* %3, double* %4, double* %5) {
%7 = alloca double
%8 = bitcast double* %7 to i8*
%9 = load double, double* %0
%10 = fadd double %9, 1.000000e+00
store double %10, double* %7
%11 = call i32 @cdflib_cumbet(double* %2, double* %3, double* %1, double* %7, double* %4, double* %5)
ret void
}
/* Variables and functions */
int exact_square(int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int n;
  printf("Enter number: \n");
  scanf("%d", &n);
  if (exact_square(n) == 1) {
    printf("1");
  } else {
    printf("0");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
call   1030 <printf@plt>
lea    0xebe(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x8(%rbp),%edi
call   1040 <exact_square@plt>
cmp    $0x1,%eax
jne    117d <main+0x4d>
lea    0xea0(%rip),%rdi
call   1030 <printf@plt>
jmp    1189 <main+0x59>
lea    0xe91(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xebb(%rip),%rdi
call   1040 <puts@plt>
lea    0xeac(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1060 <scanf@plt>
mov    0x4(%rsp),%edi
call   1050 <exact_square@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
or     $0x30,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@str = [15 x i8] c"Enter number: \00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%5 = load i32, i32* %1
%6 = call i32 @exact_square(i32 %5)
%7 = icmp eq i32 %6, 1
%8 = select i1 %7, i32 49, i32 48
%9 = call i32 @putchar(i32 %8)
ret i32 0
}
void gtk_main_do_event() {}


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

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

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

LLVM IR (-O2):
define void @gtk_main_do_event() {
ret void
}