xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ abort();
int do_layer3(int);
int main() {
  if (do_layer3(-1) != 2)
    abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0xffffffff,%edi
call   1040 <do_layer3@plt>
cmp    $0x2,%eax
je     1149 <main+0x29>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xffffffff,%edi
call   1040 <do_layer3@plt>
cmp    $0x2,%eax
jne    1134 <main+0x14>
xor    %eax,%eax
pop    %rcx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @do_layer3(i32 -1)
%3 = icmp ne i32 %2, 2
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 (...) @abort()
unreachable
6: ; preds = %0
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @do_layer3(i32 -1)
%2 = icmp eq i32 %1, 2
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 (...) @abort()
unreachable
5: ; preds = %0
ret i32 0
}
void foo066(int p) {}


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

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

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

LLVM IR (-O2):
define void @foo066(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ force_exit();
int /*<<< orphan*/ save_score();
void over_state_handle_input(int input) {
  if (input == ('\n')) {
    save_score();
    force_exit();
  }
  if (input == ('q'))
    force_exit();
}


x86 assembly (clang, -O0):
<over_state_handle_input>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0xa,-0x4(%rbp)
jne    1143 <over_state_handle_input+0x23>
mov    $0x0,%al
call   1030 <save_score@plt>
mov    $0x0,%al
call   1040 <force_exit@plt>
cmpl   $0x71,-0x4(%rbp)
jne    1154 <over_state_handle_input+0x34>
mov    $0x0,%al
call   1040 <force_exit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<over_state_handle_input>:
cmp    $0x71,%edi
je     1136 <over_state_handle_input+0x16>
cmp    $0xa,%edi
jne    113d <over_state_handle_input+0x1d>
push   %rax
xor    %eax,%eax
call   1030 <save_score@plt>
add    $0x8,%rsp
xor    %eax,%eax
jmp    1040 <force_exit@plt>
ret

LLVM IR (-O0):
define void @over_state_handle_input(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp eq i32 %3, 10
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = call i32 (...) @save_score()
%7 = call i32 (...) @force_exit()
br label %8
8: ; preds = %5, %1
%9 = load i32, i32* %2
%10 = icmp eq i32 %9, 113
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 (...) @force_exit()
br label %13
13: ; preds = %11, %8
ret void
}

LLVM IR (-O2):
define void @over_state_handle_input(i32 %0) {
switch i32 %0, label %6 [
i32 10, label %2
i32 113, label %4
]
2: ; preds = %1
%3 = tail call i32 (...) @save_score()
br label %4
4: ; preds = %1, %2
%5 = tail call i32 (...) @force_exit()
br label %6
6: ; preds = %4, %1
ret void
}
/* Variables and functions */
int ArgNum();
int GetFlag(int);
int /*<<< orphan*/ SetFlag(int, int);
void Act_BitSet(void) {
  int v = ArgNum();
  int x = ArgNum();
  SetFlag(v, GetFlag(v) | (1 << x));
}


x86 assembly (clang, -O0):
<Act_BitSet>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1050 <ArgNum@plt>
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1050 <ArgNum@plt>
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <GetFlag@plt>
mov    -0xc(%rbp),%edi
mov    %eax,%esi
mov    -0x8(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
or     %eax,%esi
call   1030 <SetFlag@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Act_BitSet>:
push   %rbp
push   %rbx
push   %rax
xor    %eax,%eax
call   1050 <ArgNum@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1050 <ArgNum@plt>
mov    %eax,%ebp
mov    %ebx,%edi
call   1040 <GetFlag@plt>
bts    %ebp,%eax
mov    %ebx,%edi
mov    %eax,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <SetFlag@plt>

LLVM IR (-O0):
define void @Act_BitSet() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 (...) @ArgNum()
store i32 %3, i32* %1
%4 = call i32 (...) @ArgNum()
store i32 %4, i32* %2
%5 = load i32, i32* %1
%6 = load i32, i32* %1
%7 = call i32 @GetFlag(i32 %6)
%8 = load i32, i32* %2
%9 = shl i32 1, %8
%10 = or i32 %7, %9
%11 = call i32 @SetFlag(i32 %5, i32 %10)
ret void
}

LLVM IR (-O2):
define void @Act_BitSet() {
%1 = tail call i32 (...) @ArgNum()
%2 = tail call i32 (...) @ArgNum()
%3 = tail call i32 @GetFlag(i32 %1)
%4 = shl nuw i32 1, %2
%5 = or i32 %3, %4
%6 = tail call i32 @SetFlag(i32 %1, i32 %5)
ret void
}
void cx_CharPtr_print(char *const *const value) { printf("\"%s\"", *value); }


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

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

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

LLVM IR (-O2):
@.str = [5 x i8] c"\22%s\22\00"
define void @cx_CharPtr_print(i8** nocapture %0) {
%2 = load i8*, i8** %0
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %2)
ret void
}
unsigned int nextpow2(unsigned int x) {
  x--;
  x |= (x >> 1);
  x |= (x >> 2);
  x |= (x >> 4);
  x |= (x >> 8);
  x |= (x >> 16);
  x++;
  return x;
}


x86 assembly (clang, -O0):
<nextpow2>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
shr    $0x1,%eax
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
shr    $0x2,%eax
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
shr    $0x4,%eax
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
shr    $0x8,%eax
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
shr    $0x10,%eax
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<nextpow2>:
lea    -0x1(%rdi),%eax
mov    %eax,%ecx
shr    %ecx
or     %eax,%ecx
mov    %ecx,%eax
shr    $0x2,%eax
or     %ecx,%eax
mov    %eax,%ecx
shr    $0x4,%ecx
or     %eax,%ecx
mov    %ecx,%edx
shr    $0x8,%edx
or     %ecx,%edx
mov    %edx,%eax
shr    $0x10,%eax
or     %edx,%eax
add    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @nextpow2(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = add i32 %3, -1
store i32 %4, i32* %2
%5 = load i32, i32* %2
%6 = lshr i32 %5, 1
%7 = load i32, i32* %2
%8 = or i32 %7, %6
store i32 %8, i32* %2
%9 = load i32, i32* %2
%10 = lshr i32 %9, 2
%11 = load i32, i32* %2
%12 = or i32 %11, %10
store i32 %12, i32* %2
%13 = load i32, i32* %2
%14 = lshr i32 %13, 4
%15 = load i32, i32* %2
%16 = or i32 %15, %14
store i32 %16, i32* %2
%17 = load i32, i32* %2
%18 = lshr i32 %17, 8
%19 = load i32, i32* %2
%20 = or i32 %19, %18
store i32 %20, i32* %2
%21 = load i32, i32* %2
%22 = lshr i32 %21, 16
%23 = load i32, i32* %2
%24 = or i32 %23, %22
store i32 %24, i32* %2
%25 = load i32, i32* %2
%26 = add i32 %25, 1
store i32 %26, i32* %2
%27 = load i32, i32* %2
ret i32 %27
}

LLVM IR (-O2):
define i32 @nextpow2(i32 %0) {
%2 = add i32 %0, -1
%3 = lshr i32 %2, 1
%4 = or i32 %3, %2
%5 = lshr i32 %4, 2
%6 = or i32 %5, %4
%7 = lshr i32 %6, 4
%8 = or i32 %7, %6
%9 = lshr i32 %8, 8
%10 = or i32 %9, %8
%11 = lshr i32 %10, 16
%12 = or i32 %11, %10
%13 = add i32 %12, 1
ret i32 %13
}
void rop3_71_0_0(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  unsigned char stk3;
  stk3 = *D ^ T;
  stk2 = S & stk3;
  stk1 = T ^ stk2;
  stk1 = ~stk1;
  *D = stk1;
}


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

x86 assembly (clang, -O2):
<rop3_71_0_0>:
mov    (%rdi),%al
xor    %dl,%al
and    %sil,%al
xor    %dl,%al
not    %al
mov    %al,(%rdi)
ret

LLVM IR (-O0):
define void @rop3_71_0_0(i8* %0, i8 zeroext %1, i8 zeroext %2) {
%4 = alloca i8*
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
%9 = alloca i8
store i8* %0, i8** %4
store i8 %1, i8* %5
store i8 %2, i8* %6
%10 = load i8*, i8** %4
%11 = load i8, i8* %10
%12 = zext i8 %11 to i32
%13 = load i8, i8* %6
%14 = zext i8 %13 to i32
%15 = xor i32 %12, %14
%16 = trunc i32 %15 to i8
store i8 %16, i8* %9
%17 = load i8, i8* %5
%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* %6
%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 = load i8*, i8** %4
store i8 %33, i8* %34
ret void
}

LLVM IR (-O2):
define void @rop3_71_0_0(i8* nocapture %0, i8 zeroext %1, i8 zeroext %2) {
%4 = load i8, i8* %0
%5 = xor i8 %4, %2
%6 = and i8 %5, %1
%7 = xor i8 %6, %2
%8 = xor i8 %7, -1
store i8 %8, i8* %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void yet_another_function(void *thing, int bob) {
  printf(">>> in yet_another_function");
}


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

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

LLVM IR (-O0):
@.str = [28 x i8] c">>> in yet_another_function\00"
define void @yet_another_function(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [28 x i8] c">>> in yet_another_function\00"
define void @yet_another_function(i8* nocapture readnone %0, i32 %1) {
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ ft_putendl_fd(char *, int);
int /*<<< orphan*/ ft_putnbr_fd(int, int);
void ft_putnbrendl_fd(int nbr, int fd) {
  ft_putnbr_fd(nbr, fd);
  ft_putendl_fd("", fd);
}


x86 assembly (clang, -O0):
<ft_putnbrendl_fd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <ft_putnbr_fd@plt>
mov    -0x8(%rbp),%esi
lea    0xebd(%rip),%rdi
call   1040 <ft_putendl_fd@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_putnbrendl_fd>:
push   %rbx
mov    %esi,%ebx
call   1030 <ft_putnbr_fd@plt>
lea    0xed1(%rip),%rdi
mov    %ebx,%esi
pop    %rbx
jmp    1040 <ft_putendl_fd@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
define void @ft_putnbrendl_fd(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = call i32 @ft_putnbr_fd(i32 %5, i32 %6)
%8 = load i32, i32* %4
%9 = call i32 @ft_putendl_fd(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i32 %8)
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
define void @ft_putnbrendl_fd(i32 %0, i32 %1) {
%3 = tail call i32 @ft_putnbr_fd(i32 %0, i32 %1)
%4 = tail call i32 @ft_putendl_fd(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i32 %1)
ret void
}
int main(int argc, char **argv) {
  void *p;
  return argv == p && argv != p;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%rdx
xor    %eax,%eax
cmp    %rdx,%rcx
mov    %al,-0x19(%rbp)
jne    1139 <main+0x39>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
cmp    %rcx,%rax
setne  %al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i8**, i8*** %5
%8 = load i8*, i8** %6
%9 = bitcast i8* %8 to i8**
%10 = icmp eq i8** %7, %9
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load i8**, i8*** %5
%13 = load i8*, i8** %6
%14 = bitcast i8* %13 to i8**
%15 = icmp ne i8** %12, %14
br label %16
16: ; preds = %11, %2
%17 = phi i1 [ false, %2 ], [ %15, %11 ]
%18 = zext i1 %17 to i32
ret i32 %18
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ uint64_t;

/* Variables and functions */
int /*<<< orphan*/ __atomic_fetch_add_8(int /*<<< orphan*/ *, int,
                                        int /*<<< orphan*/);
int main(int argc, char **argv) {
  uint64_t var;
  __atomic_fetch_add_8(&var, 1, 0);
  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    -0x14(%rbp),%rdi
mov    $0x1,%esi
xor    %edx,%edx
call   1030 <__atomic_fetch_add_8@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0x4(%rsp),%rdi
mov    $0x1,%esi
xor    %edx,%edx
call   1030 <__atomic_fetch_add_8@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
%5 = call i32 @__atomic_fetch_add_8(i32* %3, i32 1, i32 0)
ret i32 0
}
int len(char *line) {
  int i, c;
  for (i = 0; (c = line[i]) != '\0'; ++i)
    ;
  return i;
}


x86 assembly (clang, -O0):
<len>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
mov    %eax,-0x10(%rbp)
cmp    $0x0,%eax
je     113a <len+0x3a>
jmp    112c <len+0x2c>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <len+0xf>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @len(i8* nocapture %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i64 [ %7, %2 ], [ 0, %1 ]
%4 = getelementptr inbounds i8, i8* %0, i64 %3
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 0
%7 = add nuw i64 %3, 1
br i1 %6, label %8, label %2
8: ; preds = %2
%9 = trunc i64 %3 to i32
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ memcpy(unsigned char *, unsigned char const *, size_t);
size_t last_blocks_correction(const unsigned char *in, unsigned char *out,
                              size_t len) {
  size_t tail;
  memcpy(out, in, len);
  if ((tail = len % 16) == 0)
    tail = 16;
  tail += 16;
  return tail;
}


x86 assembly (clang, -O0):
<last_blocks_correction>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <memcpy@plt>
mov    -0x18(%rbp),%rax
and    $0xf,%rax
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    1153 <last_blocks_correction+0x43>
movq   $0x10,-0x20(%rbp)
mov    -0x20(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<last_blocks_correction>:
push   %rbx
mov    %rdx,%rbx
mov    %rdi,%rax
mov    %rsi,%rdi
mov    %rax,%rsi
call   1030 <memcpy@plt>
and    $0xf,%ebx
lea    0x10(%rbx),%rcx
test   %rbx,%rbx
mov    $0x20,%eax
cmovne %rcx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
define i64 @last_blocks_correction(i8* %0, i8* %1, i64 %2) {
%4 = tail call i32 @memcpy(i8* %1, i8* %0, i64 %2)
%5 = and i64 %2, 15
%6 = icmp eq i64 %5, 0
%7 = or i64 %5, 16
%8 = select i1 %6, i64 32, i64 %7
ret i64 %8
}
void fa84(void) {
a:
  ({
    P01A:
      goto P01A;
      ({
        P012A:
          goto P012A;
          0;
      });
    P01B:
      goto P01B;
      ({
        P013A:
          goto P013A;
          0;
      });
    P01C:
      goto P01C;
      0;
  });
p0B:
  goto p0B;
  goto a;
P0B:
  goto P0B;
  ({
    P02A:
      goto P02A;
      ({
        P024A:
          goto P024A;
          0;
      });
    P02B:
      goto P02B;
      ({
        P025A:
          goto P025A;
          0;
      });
    P02C:
      goto P02C;
      0;
  });
P0C:
  goto P0C;
  0;
P0D:
  goto P0D;
}


x86 assembly (clang, -O0):
<fa84>:
push   %rbp
mov    %rsp,%rbp
jmp    1109 <fa84+0x9>
jmp    1109 <fa84+0x9>

x86 assembly (clang, -O2):
<fa84>:
jmp    1100 <fa84>

LLVM IR (-O0):
define void @fa84() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
br label %7
7: ; preds = %0
br label %8
8: ; preds = %8, %7
br label %8
9: ; No predecessors!
br label %10
10: ; preds = %10, %9
br label %10
11: ; preds = %11
br label %11
12: ; No predecessors!
br label %13
13: ; preds = %13, %12
br label %13
14: ; preds = %14
br label %14
15: ; preds = %15
br label %15
16: ; preds = %16
br label %16
17: ; No predecessors!
br label %18
18: ; preds = %18, %17
br label %18
19: ; No predecessors!
br label %20
20: ; preds = %20, %19
br label %20
21: ; preds = %21
br label %21
22: ; No predecessors!
br label %23
23: ; preds = %23, %22
br label %23
24: ; preds = %24
br label %24
25: ; preds = %25
br label %25
26: ; preds = %26
br label %26
}

LLVM IR (-O2):
define void @fa84() {
br label %1
1: ; preds = %1, %0
br label %1
}
int main(void) {
  extern length;
  int arr[] = {3, 4, 6, 2, 5, 4, 1, 5, 9, 8, 7};
  print(arr, length);
  qsort(arr, 0, length - 1);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
lea    -0x30(%rbp),%rdi
lea    0xebd(%rip),%rsi
mov    $0x2c,%edx
call   1050 <memcpy@plt>
lea    -0x30(%rbp),%rdi
mov    0x2e88(%rip),%rax
mov    (%rax),%esi
mov    $0x0,%al
call   1040 <print@plt>
lea    -0x30(%rbp),%rdi
mov    0x2e74(%rip),%rax
mov    (%rax),%edx
sub    $0x1,%edx
xor    %esi,%esi
mov    $0x0,%al
call   1030 <qsort@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x38,%rsp
movups 0xeee(%rip),%xmm0
movups %xmm0,0x1c(%rsp)
movaps 0xed6(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xeba(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    0x2e8f(%rip),%r14
mov    (%r14),%esi
mov    %rsp,%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <print@plt>
mov    (%r14),%edx
add    $0xffffffff,%edx
mov    %rbx,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <qsort@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.arr = [11 x i32] [i32 3, i32 4, i32 6, i32 2, i32 5, i32 4, i32 1, i32 5, i32 9, i32 8, i32 7]
@length = external global i32
define i32 @main() {
%1 = alloca [11 x i32]
%2 = bitcast [11 x i32]* %1 to i8*
%3 = getelementptr inbounds [11 x i32], [11 x i32]* %1, i64 0, i64 0
%4 = load i32, i32* @length
%5 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @print to i32 (i32*, i32, ...)*)(i32* %3, i32 %4)
%6 = getelementptr inbounds [11 x i32], [11 x i32]* %1, i64 0, i64 0
%7 = load i32, i32* @length
%8 = sub nsw i32 %7, 1
%9 = call i32 (i32*, i32, i32, ...) bitcast (i32 (...)* @qsort to i32 (i32*, i32, i32, ...)*)(i32* %6, i32 0, i32 %8)
ret i32 0
}

LLVM IR (-O2):
@__const.main.arr = [11 x i32] [i32 3, i32 4, i32 6, i32 2, i32 5, i32 4, i32 1, i32 5, i32 9, i32 8, i32 7]
@length = external global i32
define i32 @main() {
%1 = alloca [11 x i32]
%2 = bitcast [11 x i32]* %1 to i8*
%3 = getelementptr inbounds [11 x i32], [11 x i32]* %1, i64 0, i64 0
%4 = load i32, i32* @length
%5 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @print to i32 (i32*, i32, ...)*)(i32* %3, i32 %4)
%6 = load i32, i32* @length
%7 = add nsw i32 %6, -1
%8 = call i32 (i32*, i32, i32, ...) bitcast (i32 (...)* @qsort to i32 (i32*, i32, i32, ...)*)(i32* %3, i32 0, i32 %7)
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ EBADF;
int /*<<< orphan*/ errno;
int /*<<< orphan*/ printf(char *);
int feof(FILE *stream __attribute__((unused))) {
  printf("feof\n");
  errno = EBADF;
  return -1;
}


x86 assembly (clang, -O0):
<feof>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
call   1030 <printf@plt>
mov    0x2ea9(%rip),%rax
mov    (%rax),%ecx
mov    0x2ea8(%rip),%rax
mov    %ecx,(%rax)
mov    $0xffffffff,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<feof>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
mov    0x2eb4(%rip),%rax
mov    (%rax),%eax
mov    0x2eb3(%rip),%rcx
mov    %eax,(%rcx)
mov    $0xffffffff,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@EBADF = global i32 0
@errno = global i32 0
@str = [5 x i8] c"feof\00"
define i32 @feof(i32* nocapture readnone %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
%3 = load i32, i32* @EBADF
store i32 %3, i32* @errno
ret i32 -1
}
/* Variables and functions */
long long cuts();
int /*<<< orphan*/ printf(char *, long long);
int /*<<< orphan*/ scanf(char *, long long *);
int main(void) {
  long long int t, i, pieces;
  scanf("%lld", &t);
  for (i = 0; i < t; i++) {
    pieces = cuts();
    printf("%lld\n", pieces);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
movq   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmp    -0x10(%rbp),%rax
jge    1191 <main+0x61>
mov    $0x0,%al
call   1030 <cuts@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
lea    0xe8a(%rip),%rdi
call   1040 <printf@plt>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1157 <main+0x27>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xec5(%rip),%rdi
mov    %rsp,%rsi
call   1050 <scanf@plt>
cmpq   $0x0,(%rsp)
jle    117c <main+0x4c>
lea    0xeb4(%rip),%r14
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %eax,%eax
call   1030 <cuts@plt>
mov    %r14,%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
add    $0x1,%rbx
cmp    (%rsp),%rbx
jl     1160 <main+0x30>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c"%lld\00"
@.str.1 = [6 x i8] c"%lld\0A\00"
define i32 @main() {
%1 = alloca i64
%2 = bitcast i64* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64* %1)
%4 = load i64, i64* %1
%5 = icmp sgt i64 %4, 0
br i1 %5, label %6, label %13
6: ; preds = %0, %6
%7 = phi i64 [ %10, %6 ], [ 0, %0 ]
%8 = call i64 (...) @cuts()
%9 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i64 %8)
%10 = add nuw nsw i64 %7, 1
%11 = load i64, i64* %1
%12 = icmp slt i64 %10, %11
br i1 %12, label %6, label %13
13: ; preds = %6, %0
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void show_help(void) {
  printf("Usage: %s [OPTION]... DIRECTORY...\n\n    Remove the DIRECTORY(ies), "
         "if they are empty.\n\nOptions:\n    -v, --verbose\toutput a "
         "diagnostic for every directory processed\n    -h, --help\t\tdisplay "
         "this help\n     -V, --version\tdisplay version information\n\n "
         "Report bugs to <bulliver@gmail.com>\n",
         "rmdir");
}


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

x86 assembly (clang, -O2):
<show_help>:
lea    0xee9(%rip),%rdi
lea    0xffe(%rip),%rsi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [284 x i8] c"Usage: %s [OPTION]... DIRECTORY...\0A\0A Remove the DIRECTORY(ies), if they are empty.\0A\0AOptions:\0A -v, --verbose\09output a diagnostic for every directory processed\0A -h, --help\09\09display this help\0A -V, --version\09display version information\0A\0A Report bugs to <bulliver@gmail.com>\0A\00"
@.str.1 = [6 x i8] c"rmdir\00"
define void @show_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([284 x i8], [284 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [284 x i8] c"Usage: %s [OPTION]... DIRECTORY...\0A\0A Remove the DIRECTORY(ies), if they are empty.\0A\0AOptions:\0A -v, --verbose\09output a diagnostic for every directory processed\0A -h, --help\09\09display this help\0A -V, --version\09display version information\0A\0A Report bugs to <bulliver@gmail.com>\0A\00"
@.str.1 = [6 x i8] c"rmdir\00"
define void @show_help() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([284 x i8], [284 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_strip() {
  printf("NOT IMPLEMENTED:"
         "pa_strip"
         "\n");
}


x86 assembly (clang, -O0):
<pa_strip>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [26 x i8] c"NOT IMPLEMENTED:pa_strip\0A\00"
define i32 @pa_strip() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@str = [25 x i8] c"NOT IMPLEMENTED:pa_strip\00"
define i32 @pa_strip() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
/* Variables and functions */
int _hex_to_int(char *);
double fuel_trim_percent(char *data) {
  return (_hex_to_int(data) - 128.) * 100. / 128.;
}


x86 assembly (clang, -O0):
<fuel_trim_percent>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <_hex_to_int@plt>
cvtsi2sd %eax,%xmm0
movsd  0xecf(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xecb(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xeb7(%rip),%xmm1
divsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fuel_trim_percent>:
push   %rax
call   1030 <_hex_to_int@plt>
cvtsi2sd %eax,%xmm0
addsd  0xede(%rip),%xmm0
mulsd  0xede(%rip),%xmm0
mulsd  0xede(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @fuel_trim_percent(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @_hex_to_int(i8* %3)
%5 = sitofp i32 %4 to double
%6 = fsub double %5, 1.280000e+02
%7 = fmul double %6, 1.000000e+02
%8 = fdiv double %7, 1.280000e+02
ret double %8
}

LLVM IR (-O2):
define double @fuel_trim_percent(i8* %0) {
%2 = tail call i32 @_hex_to_int(i8* %0)
%3 = sitofp i32 %2 to double
%4 = fadd double %3, -1.280000e+02
%5 = fmul double %4, 1.000000e+02
%6 = fmul double %5, 7.812500e-03
ret double %6
}
void handle_48(sig) int sig;
{}


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

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

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

LLVM IR (-O2):
define void @handle_48(i32 %0) {
ret void
}
void gdk_keymap_get_default() {}


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

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

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

LLVM IR (-O2):
define void @gdk_keymap_get_default() {
ret void
}
int __sys_read(int iFileHandle, char *pcBuffer, int iLen) { return 0; }


x86 assembly (clang, -O0):
<__sys_read>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @__sys_read(i32 %0, i8* nocapture readnone %1, i32 %2) {
ret i32 0
}
void XSetScreenSaver() {}


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

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

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

LLVM IR (-O2):
define void @XSetScreenSaver() {
ret void
}
int relay_config_check_network_ssl_priorities(const void *pointer, void *data,
                                              struct t_config_option *option,
                                              const char *value) {
  (void)data;
  (void)option;
  (void)value;
  return 1;
}


x86 assembly (clang, -O0):
<relay_config_check_network_ssl_priorities>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    $0x1,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.t_config_option = type opaque
define i32 @relay_config_check_network_ssl_priorities(i8* %0, i8* %1, %struct.t_config_option* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca %struct.t_config_option*
%8 = alloca i8*
store i8* %0, i8** %5
store i8* %1, i8** %6
store %struct.t_config_option* %2, %struct.t_config_option** %7
store i8* %3, i8** %8
%9 = load i8*, i8** %6
%10 = load %struct.t_config_option*, %struct.t_config_option** %7
%11 = load i8*, i8** %8
ret i32 1
}

LLVM IR (-O2):
%struct.t_config_option = type opaque
define i32 @relay_config_check_network_ssl_priorities(i8* nocapture readnone %0, i8* nocapture readnone %1, %struct.t_config_option* nocapture readnone %2, i8* nocapture readnone %3) {
ret i32 1
}
/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ system(char *);
int main() {
  int i;
  for (i; i <= 99999; i++) {
    if (i % 2 == 0)
      system("zenity --info --text \"`toilet -F border -f pagga \"Gatos y "
             "Tetas\"`\"");
    else
      system("zenity --info --text \"`toilet -F border -f pagga \"Tetas y "
             "Gatos\"`\"");
  }
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x1869f,-0x8(%rbp)
jg     1170 <main+0x60>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1151 <main+0x41>
lea    0xeb9(%rip),%rdi
call   1030 <system@plt>
jmp    115d <main+0x4d>
lea    0xeeb(%rip),%rdi
call   1030 <system@plt>
jmp    1162 <main+0x52>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    111f <main+0xf>
mov    0x2e69(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
mov    0x2ed9(%rip),%rax
mov    (%rax),%eax
ret

LLVM IR (-O0):
@.str = [67 x i8] c"zenity --info --text \22`toilet -F border -f pagga \22Gatos y Tetas\22`\22\00"
@.str.1 = [67 x i8] c"zenity --info --text \22`toilet -F border -f pagga \22Tetas y Gatos\22`\22\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = load i32, i32* %2
br label %4
4: ; preds = %16, %0
%5 = load i32, i32* %2
%6 = icmp sle i32 %5, 99999
br i1 %6, label %7, label %19
7: ; preds = %4
%8 = load i32, i32* %2
%9 = srem i32 %8, 2
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %7
%12 = call i32 @system(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str, i64 0, i64 0))
br label %15
13: ; preds = %7
%14 = call i32 @system(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.1, i64 0, i64 0))
br label %15
15: ; preds = %13, %11
br label %16
16: ; preds = %15
%17 = load i32, i32* %2
%18 = add nsw i32 %17, 1
store i32 %18, i32* %2
br label %4
19: ; preds = %4
%20 = load i32, i32* @EXIT_SUCCESS
ret i32 %20
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = load i32, i32* @EXIT_SUCCESS
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ assem_debug(char *, int, int);
int /*<<< orphan*/ output_w32(int);
void emit_ftosizs(int s, int d) {
  assem_debug("ftosizs s%d,s%d", d, s);
  output_w32(0xeebd0ac0 | ((d & 14) << 11) | ((d & 1) << 22) | ((s & 14) >> 1) |
             ((s & 1) << 5));
}


x86 assembly (clang, -O0):
<emit_ftosizs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%esi
mov    -0x4(%rbp),%edx
lea    0xec5(%rip),%rdi
call   1030 <assem_debug@plt>
mov    -0x8(%rbp),%edi
and    $0xe,%edi
shl    $0xb,%edi
or     $0xeebd0ac0,%edi
mov    -0x8(%rbp),%eax
and    $0x1,%eax
shl    $0x16,%eax
or     %eax,%edi
mov    -0x4(%rbp),%eax
and    $0xe,%eax
sar    $0x1,%eax
or     %eax,%edi
mov    -0x4(%rbp),%eax
and    $0x1,%eax
shl    $0x5,%eax
or     %eax,%edi
call   1040 <output_w32@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<emit_ftosizs>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
lea    0xed2(%rip),%rdi
mov    %ebp,%edx
call   1030 <assem_debug@plt>
mov    %ebx,%eax
and    $0xe,%eax
shl    $0xb,%eax
and    $0x1,%ebx
shl    $0x16,%ebx
mov    %ebp,%ecx
shr    %ecx
and    $0x7,%ecx
shl    $0x5,%ebp
movzbl %bpl,%edi
or     %ecx,%edi
or     %ebx,%edi
or     %eax,%edi
or     $0xeebd0ac0,%edi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1040 <output_w32@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"ftosizs s%d,s%d\00"
define void @emit_ftosizs(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = load i32, i32* %3
%7 = call i32 @assem_debug(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %6)
%8 = load i32, i32* %4
%9 = and i32 %8, 14
%10 = shl i32 %9, 11
%11 = or i32 -289600832, %10
%12 = load i32, i32* %4
%13 = and i32 %12, 1
%14 = shl i32 %13, 22
%15 = or i32 %11, %14
%16 = load i32, i32* %3
%17 = and i32 %16, 14
%18 = ashr i32 %17, 1
%19 = or i32 %15, %18
%20 = load i32, i32* %3
%21 = and i32 %20, 1
%22 = shl i32 %21, 5
%23 = or i32 %19, %22
%24 = call i32 @output_w32(i32 %23)
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"ftosizs s%d,s%d\00"
define void @emit_ftosizs(i32 %0, i32 %1) {
%3 = tail call i32 @assem_debug(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %1, i32 %0)
%4 = shl i32 %1, 11
%5 = and i32 %4, 28672
%6 = shl i32 %1, 22
%7 = and i32 %6, 4194304
%8 = lshr i32 %0, 1
%9 = and i32 %8, 7
%10 = shl i32 %0, 5
%11 = and i32 %10, 32
%12 = or i32 %9, %11
%13 = or i32 %12, %7
%14 = or i32 %13, %5
%15 = or i32 %14, -289600832
%16 = tail call i32 @output_w32(i32 %15)
ret void
}
int flock(int fd, int operation) {
  ;
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @flock(i32 %0, i32 %1) {
ret i32 0
}
void persistent_deinit(void) {}


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

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

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

LLVM IR (-O2):
define void @persistent_deinit() {
ret void
}
int HelpItem26(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @HelpItem26() {
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ time_t;
struct tm {
  int dummy;
};

/* Variables and functions */
struct tm *gmtime_r(int /*<<< orphan*/ const *, struct tm *);
struct tm *gmtime(const time_t *timep) {
  static struct tm tm;
  return gmtime_r(timep, &tm);
}


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

x86 assembly (clang, -O2):
<gmtime>:
lea    0x2f15(%rip),%rsi
jmp    1030 <gmtime_r@plt>

LLVM IR (-O0):
%struct.tm = type { i32 }
@gmtime.tm = internal global %struct.tm zeroinitializer
define %struct.tm* @gmtime(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call %struct.tm* @gmtime_r(i32* %3, %struct.tm* @gmtime.tm)
ret %struct.tm* %4
}

LLVM IR (-O2):
%struct.tm = type { i32 }
@gmtime.tm = internal global %struct.tm zeroinitializer
define %struct.tm* @gmtime(i32* %0) {
%2 = tail call %struct.tm* @gmtime_r(i32* %0, %struct.tm* @gmtime.tm)
ret %struct.tm* %2
}
/* Type definitions */
typedef scalar_t__ uint64_t;

/* Variables and functions */
uint64_t max_u64(uint64_t a, uint64_t b) { return a > b ? a : b; }


x86 assembly (clang, -O0):
<max_u64>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
jle    1127 <max_u64+0x27>
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    112f <max_u64+0x2f>
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<max_u64>:
mov    %rsi,%rax
cmp    %rsi,%rdi
cmovg  %rdi,%rax
ret

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

LLVM IR (-O2):
define i64 @max_u64(i64 %0, i64 %1) {
%3 = icmp sgt i64 %0, %1
%4 = select i1 %3, i64 %0, i64 %1
ret i64 %4
}
void g_param_spec_get_name() {}


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

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

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

LLVM IR (-O2):
define void @g_param_spec_get_name() {
ret void
}
/* Variables and functions */
char *realloc(char *, size_t);
int _lines_realloc(char **lines, int pos, size_t column) {
  char *p;
  if ((p = realloc(lines[pos], column + 1)) == NULL)
    return 1;
  lines[pos] = p;
  return 0;
}


x86 assembly (clang, -O0):
<_lines_realloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x20(%rbp),%rsi
add    $0x1,%rsi
call   1030 <realloc@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
jne    1156 <_lines_realloc+0x46>
movl   $0x1,-0x4(%rbp)
jmp    116d <_lines_realloc+0x5d>
mov    -0x28(%rbp),%rdx
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_lines_realloc>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
movslq %esi,%rbx
mov    (%rdi,%rbx,8),%rdi
lea    0x1(%rdx),%rsi
call   1030 <realloc@plt>
test   %rax,%rax
je     1134 <_lines_realloc+0x24>
mov    %rax,(%r14,%rbx,8)
xor    %eax,%eax
jmp    1139 <_lines_realloc+0x29>
mov    $0x1,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define i32 @_lines_realloc(i8** nocapture %0, i32 %1, i64 %2) {
%4 = sext i32 %1 to i64
%5 = getelementptr inbounds i8*, i8** %0, i64 %4
%6 = load i8*, i8** %5
%7 = add i64 %2, 1
%8 = tail call i8* @realloc(i8* %6, i64 %7)
%9 = icmp eq i8* %8, null
br i1 %9, label %11, label %10
10: ; preds = %3
store i8* %8, i8** %5
br label %11
11: ; preds = %3, %10
%12 = phi i32 [ 0, %10 ], [ 1, %3 ]
ret i32 %12
}
/* Variables and functions */
int /*<<< orphan*/ ct(int);
int main() {
  ct(4);
  ct(7);
  ct(11);
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x4,%edi
call   1030 <ct@plt>
mov    $0x7,%edi
call   1030 <ct@plt>
mov    $0xb,%edi
call   1030 <ct@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @ct(i32 4)
%2 = tail call i32 @ct(i32 7)
%3 = tail call i32 @ct(i32 11)
ret i32 0
}
float f2(float x) { return 3 * x; }


x86 assembly (clang, -O0):
<f2>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  0xeef(%rip),%xmm0
mulss  -0x4(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<f2>:
mulss  0xef8(%rip),%xmm0
ret

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

LLVM IR (-O2):
define float @f2(float %0) {
%2 = fmul float %0, 3.000000e+00
ret float %2
}
/* Type definitions */
typedef unsigned char uint8_t;

/* Variables and functions */
unsigned int clock(void) {
  unsigned char h = (*(volatile uint8_t *)0x52bf);
  unsigned char l = (*(volatile uint8_t *)0x52c0);
  return ((unsigned int)(h) << 8 | l);
}


x86 assembly (clang, -O0):
<clock>:
push   %rbp
mov    %rsp,%rbp
mov    $0x52bf,%eax
mov    (%rax),%al
mov    %al,-0x1(%rbp)
mov    $0x52c0,%eax
mov    (%rax),%al
mov    %al,-0x2(%rbp)
movzbl -0x1(%rbp),%eax
shl    $0x8,%eax
movzbl -0x2(%rbp),%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<clock>:
movzbl 0x52bf,%eax
movzbl 0x52c0,%ecx
shl    $0x8,%eax
or     %ecx,%eax
ret

LLVM IR (-O0):
define i32 @clock() {
%1 = alloca i8
%2 = alloca i8
%3 = load volatile i8, i8* inttoptr (i64 21183 to i8*)
store i8 %3, i8* %1
%4 = load volatile i8, i8* inttoptr (i64 21184 to i8*)
store i8 %4, i8* %2
%5 = load i8, i8* %1
%6 = zext i8 %5 to i32
%7 = shl i32 %6, 8
%8 = load i8, i8* %2
%9 = zext i8 %8 to i32
%10 = or i32 %7, %9
ret i32 %10
}

LLVM IR (-O2):
define i32 @clock() {
%1 = load volatile i8, i8* inttoptr (i64 21183 to i8*)
%2 = load volatile i8, i8* inttoptr (i64 21184 to i8*)
%3 = zext i8 %1 to i32
%4 = shl nuw nsw i32 %3, 8
%5 = zext i8 %2 to i32
%6 = or i32 %4, %5
ret i32 %6
}