xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ close(int);
void closePipes(int ia_pipe_fds[2]) {
  if (ia_pipe_fds[0] != -1) {
    close(ia_pipe_fds[0]);
  }
  if (ia_pipe_fds[1] != -1) {
    close(ia_pipe_fds[1]);
  }
}


x86 assembly (clang, -O0):
<closePipes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmpl   $0xffffffff,(%rax)
je     1134 <closePipes+0x24>
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
call   1030 <close@plt>
mov    -0x8(%rbp),%rax
cmpl   $0xffffffff,0x4(%rax)
je     114e <closePipes+0x3e>
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%edi
call   1030 <close@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<closePipes>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%edi
cmp    $0xffffffff,%edi
je     1120 <closePipes+0x10>
call   1030 <close@plt>
mov    0x4(%rbx),%edi
cmp    $0xffffffff,%edi
je     112e <closePipes+0x1e>
pop    %rbx
jmp    1030 <close@plt>
pop    %rbx
ret

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

LLVM IR (-O2):
define void @closePipes(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = icmp eq i32 %2, -1
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @close(i32 %2)
br label %6
6: ; preds = %4, %1
%7 = getelementptr inbounds i32, i32* %0, i64 1
%8 = load i32, i32* %7
%9 = icmp eq i32 %8, -1
br i1 %9, label %12, label %10
10: ; preds = %6
%11 = tail call i32 @close(i32 %8)
br label %12
12: ; preds = %10, %6
ret void
}
/* Variables and functions */
int /*<<< orphan*/ move(int, int);
int /*<<< orphan*/ refresh();
void tui_flush(void) {
  move((25 - 1), (1 - 1));
  refresh();
}


x86 assembly (clang, -O0):
<tui_flush>:
push   %rbp
mov    %rsp,%rbp
mov    $0x18,%edi
xor    %esi,%esi
call   1040 <move@plt>
mov    $0x0,%al
call   1030 <refresh@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<tui_flush>:
push   %rax
mov    $0x18,%edi
xor    %esi,%esi
call   1040 <move@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <refresh@plt>

LLVM IR (-O0):
define void @tui_flush() {
%1 = call i32 @move(i32 24, i32 0)
%2 = call i32 (...) @refresh()
ret void
}

LLVM IR (-O2):
define void @tui_flush() {
%1 = tail call i32 @move(i32 24, i32 0)
%2 = tail call i32 (...) @refresh()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ close(int);
void i2c_close(int file) { close(file); }


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

x86 assembly (clang, -O2):
<i2c_close>:
jmp    1030 <close@plt>

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

LLVM IR (-O2):
define void @i2c_close(i32 %0) {
%2 = tail call i32 @close(i32 %0)
ret void
}
void set(char tictac[3][3], int r, int c, char val) { tictac[r][c] = val; }


x86 assembly (clang, -O0):
<set>:
push   %rbp
mov    %rsp,%rbp
mov    %cl,%al
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%dl
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
pop    %rbp
ret

x86 assembly (clang, -O2):
<set>:
movslq %esi,%rax
movslq %edx,%rdx
lea    (%rax,%rax,2),%rax
add    %rdi,%rax
mov    %cl,(%rdx,%rax,1)
ret

LLVM IR (-O0):
define void @set([3 x i8]* %0, i32 %1, i32 %2, i8 signext %3) {
%5 = alloca [3 x i8]*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8
store [3 x i8]* %0, [3 x i8]** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i8 %3, i8* %8
%9 = load i8, i8* %8
%10 = load [3 x i8]*, [3 x i8]** %5
%11 = load i32, i32* %6
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [3 x i8], [3 x i8]* %10, i64 %12
%14 = load i32, i32* %7
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [3 x i8], [3 x i8]* %13, i64 0, i64 %15
store i8 %9, i8* %16
ret void
}

LLVM IR (-O2):
define void @set([3 x i8]* nocapture writeonly %0, i32 %1, i32 %2, i8 signext %3) {
%5 = sext i32 %1 to i64
%6 = sext i32 %2 to i64
%7 = getelementptr inbounds [3 x i8], [3 x i8]* %0, i64 %5, i64 %6
store i8 %3, i8* %7
ret void
}
/* Variables and functions */
int /*<<< orphan*/ stack_swap(int /*<<< orphan*/, int /*<<< orphan*/);
void reverse_array(int *start, int *end) {
  int *left;
  int *right;
  left = start;
  right = end;
  while (left < right)
    stack_swap(left++, right--);
}


x86 assembly (clang, -O0):
<reverse_array>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
cmp    -0x20(%rbp),%rax
jae    116a <reverse_array+0x5a>
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x18(%rbp)
mov    %eax,%edi
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0xfffffffffffffffc,%rcx
mov    %rcx,-0x20(%rbp)
mov    %eax,%esi
call   1030 <stack_swap@plt>
jmp    1130 <reverse_array+0x20>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<reverse_array>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
cmp    %rsi,%rdi
jae    114f <reverse_array+0x3f>
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0x4(%rdi),%r15
mov    %r14d,%ebp
nopl   0x0(%rax)
add    $0xfffffffffffffffc,%r14
mov    %ebx,%edi
mov    %ebp,%esi
call   1030 <stack_swap@plt>
add    $0xfffffffc,%ebp
lea    0x4(%r15),%rax
add    $0x4,%ebx
cmp    %r14,%r15
mov    %rax,%r15
jb     1130 <reverse_array+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @reverse_array(i32* %0, i32* %1) {
%3 = icmp ult i32* %0, %1
br i1 %3, label %4, label %15
4: ; preds = %2, %4
%5 = phi i32* [ %10, %4 ], [ %1, %2 ]
%6 = phi i32* [ %7, %4 ], [ %0, %2 ]
%7 = getelementptr inbounds i32, i32* %6, i64 1
%8 = ptrtoint i32* %6 to i64
%9 = trunc i64 %8 to i32
%10 = getelementptr inbounds i32, i32* %5, i64 -1
%11 = ptrtoint i32* %5 to i64
%12 = trunc i64 %11 to i32
%13 = tail call i32 @stack_swap(i32 %9, i32 %12)
%14 = icmp ult i32* %7, %10
br i1 %14, label %4, label %15
15: ; preds = %4, %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void createShellcode() { printf("Creating...\n"); }


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

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

LLVM IR (-O0):
@.str = [13 x i8] c"Creating...\0A\00"
define void @createShellcode() {
%1 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [12 x i8] c"Creating...\00"
define void @createShellcode() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
ret void
}
void handle_USR2(int sig) {}


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

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

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

LLVM IR (-O2):
define void @handle_USR2(i32 %0) {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ copro_mc6809nc_read(int /*<<< orphan*/);
uint32_t dbg_memread(uint32_t addr) { return copro_mc6809nc_read(addr); }


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

x86 assembly (clang, -O2):
<dbg_memread>:
jmp    1030 <copro_mc6809nc_read@plt>

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

LLVM IR (-O2):
define i32 @dbg_memread(i32 %0) {
%2 = tail call i32 @copro_mc6809nc_read(i32 %0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ TaskInfoHandle();
int /*<<< orphan*/ UAVObjLogging(int /*<<< orphan*/);
void TaskInfoLogging() { UAVObjLogging(TaskInfoHandle()); }


x86 assembly (clang, -O0):
<TaskInfoLogging>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <TaskInfoHandle@plt>
mov    %eax,%edi
call   1030 <UAVObjLogging@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<TaskInfoLogging>:
push   %rax
xor    %eax,%eax
call   1040 <TaskInfoHandle@plt>
mov    %eax,%edi
pop    %rax
jmp    1030 <UAVObjLogging@plt>

LLVM IR (-O0):
define void @TaskInfoLogging() {
%1 = call i32 (...) @TaskInfoHandle()
%2 = call i32 @UAVObjLogging(i32 %1)
ret void
}

LLVM IR (-O2):
define void @TaskInfoLogging() {
%1 = tail call i32 (...) @TaskInfoHandle()
%2 = tail call i32 @UAVObjLogging(i32 %1)
ret void
}
float fuel_percent(float thruster_seconds_used, float flight_elapsed_time,
                   float *fuel_percent_used) {
  float max_thrust_endurance = 240;
  float max_air_bearing_endurance = 720;
  float thrust_fuel_percent_used;
  float air_bearing_fuel_percent_used;
  thrust_fuel_percent_used =
      (max_thrust_endurance - thruster_seconds_used) / max_thrust_endurance;
  air_bearing_fuel_percent_used =
      (max_air_bearing_endurance - air_bearing_fuel_percent_used) /
      max_air_bearing_endurance;
  *fuel_percent_used = thrust_fuel_percent_used + air_bearing_fuel_percent_used;
  return 0;
}


x86 assembly (clang, -O0):
<fuel_percent>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
movss  0xeea(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  0xed9(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x14(%rbp),%xmm0
subss  -0x4(%rbp),%xmm0
divss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x18(%rbp),%xmm0
subss  -0x20(%rbp),%xmm0
divss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x1c(%rbp),%xmm0
addss  -0x20(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
xorps  %xmm0,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<fuel_percent>:
movl   $0x7fc00000,(%rdi)
xorps  %xmm0,%xmm0
ret

LLVM IR (-O0):
define float @fuel_percent(float %0, float %1, float* %2) {
%4 = alloca float
%5 = alloca float
%6 = alloca float*
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
store float %0, float* %4
store float %1, float* %5
store float* %2, float** %6
store float 2.400000e+02, float* %7
store float 7.200000e+02, float* %8
%11 = load float, float* %7
%12 = load float, float* %4
%13 = fsub float %11, %12
%14 = load float, float* %7
%15 = fdiv float %13, %14
store float %15, float* %9
%16 = load float, float* %8
%17 = load float, float* %10
%18 = fsub float %16, %17
%19 = load float, float* %8
%20 = fdiv float %18, %19
store float %20, float* %10
%21 = load float, float* %9
%22 = load float, float* %10
%23 = fadd float %21, %22
%24 = load float*, float** %6
store float %23, float* %24
ret float 0.000000e+00
}

LLVM IR (-O2):
define float @fuel_percent(float %0, float %1, float* nocapture writeonly %2) {
store float 0x7FF8000000000000, float* %2
ret float 0.000000e+00
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char const *);
void function(const char *argType, void *arg) { printf("2: %s\n", argType); }


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

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

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

LLVM IR (-O2):
@.str = [7 x i8] c"2: %s\0A\00"
define void @function(i8* %0, i8* nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
char *hash_plugin_summary(void) { return ("mysql5 \t\tMySQL > 4.1 plugin"); }


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

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

LLVM IR (-O0):
@.str = [28 x i8] c"mysql5 \09\09MySQL > 4.1 plugin\00"
define i8* @hash_plugin_summary() {
ret i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [28 x i8] c"mysql5 \09\09MySQL > 4.1 plugin\00"
define i8* @hash_plugin_summary() {
ret i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0)
}
void rop3_84_0_1(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  stk2 = T | S;
  stk2 = ~stk2;
  stk1 = *D | stk2;
  stk1 = ~stk1;
  *D = (stk1 & S) | (stk1 & (~T)) | (T & (~S) & *D);
}


x86 assembly (clang, -O0):
<rop3_84_0_1>:
push   %rbp
mov    %rsp,%rbp
mov    %dl,%al
mov    %sil,%cl
mov    %rdi,-0x8(%rbp)
mov    %cl,-0x9(%rbp)
mov    %al,-0xa(%rbp)
movzbl -0xa(%rbp),%eax
movzbl -0x9(%rbp),%ecx
or     %ecx,%eax
mov    %al,-0xc(%rbp)
movzbl -0xc(%rbp),%eax
xor    $0xffffffff,%eax
mov    %al,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
movzbl -0xc(%rbp),%ecx
or     %ecx,%eax
mov    %al,-0xb(%rbp)
movzbl -0xb(%rbp),%eax
xor    $0xffffffff,%eax
mov    %al,-0xb(%rbp)
movzbl -0xb(%rbp),%eax
movzbl -0x9(%rbp),%ecx
and    %ecx,%eax
movzbl -0xb(%rbp),%ecx
movzbl -0xa(%rbp),%edx
xor    $0xffffffff,%edx
and    %edx,%ecx
or     %ecx,%eax
movzbl -0xa(%rbp),%ecx
movzbl -0x9(%rbp),%edx
xor    $0xffffffff,%edx
and    %edx,%ecx
mov    -0x8(%rbp),%rdx
movzbl (%rdx),%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_84_0_1>:
mov    %esi,%eax
not    %al
and    %dl,%al
xor    %sil,%al
and    (%rdi),%al
xor    %sil,%al
mov    %al,(%rdi)
ret

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

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


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

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

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

LLVM IR (-O2):
define void @XkbNoteControlsChanges() {
ret void
}
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int syscon_number_of_dobldobl_polynomials(int *length) {
  int *b, fail;
  double *c;
  fail = _ada_use_c2phc4c(332, length, b, c, 0);
  return fail;
}


x86 assembly (clang, -O0):
<syscon_number_of_dobldobl_polynomials>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    $0x14c,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<syscon_number_of_dobldobl_polynomials>:
mov    %rdi,%rsi
mov    $0x14c,%edi
xor    %r8d,%r8d
jmp    1030 <_ada_use_c2phc4c@plt>

LLVM IR (-O0):
define i32 @syscon_number_of_dobldobl_polynomials(i32* %0) {
%2 = alloca i32*
%3 = alloca i32*
%4 = alloca i32
%5 = alloca double*
store i32* %0, i32** %2
%6 = load i32*, i32** %2
%7 = load i32*, i32** %3
%8 = load double*, double** %5
%9 = call i32 @_ada_use_c2phc4c(i32 332, i32* %6, i32* %7, double* %8, i32 0)
store i32 %9, i32* %4
%10 = load i32, i32* %4
ret i32 %10
}

LLVM IR (-O2):
define i32 @syscon_number_of_dobldobl_polynomials(i32* %0) {
%2 = tail call i32 @_ada_use_c2phc4c(i32 332, i32* %0, i32* undef, double* undef, i32 0)
ret i32 %2
}
void _Block_release_object_default(const void *ptr) {
  if (!ptr)
    return;
}


x86 assembly (clang, -O0):
<_Block_release_object_default>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1118 <_Block_release_object_default+0x18>
jmp    1118 <_Block_release_object_default+0x18>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @_Block_release_object_default(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp ne i8* %3, null
br i1 %4, label %6, label %5
5: ; preds = %1
br label %6
6: ; preds = %5, %1
ret void
}

LLVM IR (-O2):
define void @_Block_release_object_default(i8* nocapture %0) {
ret void
}
/* Type definitions */
typedef unsigned int uint32_t;

/* Variables and functions */
uint32_t extractUnsignedBits(uint32_t word, uint32_t lowBitOffset,
                             uint32_t size) {
  return (word >> lowBitOffset) & ((1u << size) - 1);
}


x86 assembly (clang, -O0):
<extractUnsignedBits>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
shr    %cl,%eax
mov    -0xc(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
sub    $0x1,%ecx
and    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<extractUnsignedBits>:
mov    %esi,%ecx
shr    %cl,%edi
mov    $0xffffffff,%eax
mov    %edx,%ecx
shl    %cl,%eax
not    %eax
and    %edi,%eax
ret

LLVM IR (-O0):
define i32 @extractUnsignedBits(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* %4
%8 = load i32, i32* %5
%9 = lshr i32 %7, %8
%10 = load i32, i32* %6
%11 = shl i32 1, %10
%12 = sub i32 %11, 1
%13 = and i32 %9, %12
ret i32 %13
}

LLVM IR (-O2):
define i32 @extractUnsignedBits(i32 %0, i32 %1, i32 %2) {
%4 = lshr i32 %0, %1
%5 = shl nsw i32 -1, %2
%6 = xor i32 %5, -1
%7 = and i32 %4, %6
ret i32 %7
}
/* Type definitions */
typedef int /*<<< orphan*/ voidpf;
typedef int /*<<< orphan*/ uInt;

/* Variables and functions */
int /*<<< orphan*/ calloc(int /*<<< orphan*/, int /*<<< orphan*/);
voidpf my_alloc(voidpf opaque, uInt items, uInt size) {
  return calloc(items, size);
}


x86 assembly (clang, -O0):
<my_alloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <calloc@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<my_alloc>:
mov    %esi,%edi
mov    %edx,%esi
jmp    1030 <calloc@plt>

LLVM IR (-O0):
define i32 @my_alloc(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* %5
%8 = load i32, i32* %6
%9 = call i32 @calloc(i32 %7, i32 %8)
ret i32 %9
}

LLVM IR (-O2):
define i32 @my_alloc(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @calloc(i32 %1, i32 %2)
ret i32 %4
}
/* Type definitions */
struct Stream {
  int dummy;
};
struct Buffer {
  int dummy;
};

/* Variables and functions */
int buffer_put(struct Buffer *, void const *, size_t);
int /*<<< orphan*/ set_error(struct Stream *, char *);
int store(struct Buffer *dest, const void *src, size_t n, struct Stream *str) {
  int r;
  if ((r = buffer_put(dest, src, n)) != 0)
    set_error(str, "Insufficient capacity of raw bytes'"
                   " accumulator");
  return r;
}


x86 assembly (clang, -O0):
<store>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <buffer_put@plt>
mov    %eax,-0x24(%rbp)
cmp    $0x0,%eax
je     1165 <store+0x45>
mov    -0x20(%rbp),%rdi
lea    0xea0(%rip),%rsi
call   1040 <set_error@plt>
mov    -0x24(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<store>:
push   %rbp
push   %rbx
push   %rax
mov    %rcx,%rbx
call   1030 <buffer_put@plt>
mov    %eax,%ebp
test   %eax,%eax
je     1140 <store+0x20>
lea    0xec8(%rip),%rsi
mov    %rbx,%rdi
call   1040 <set_error@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
%struct.Buffer = type { i32 }
%struct.Stream = type { i32 }
@.str = [48 x i8] c"Insufficient capacity of raw bytes' accumulator\00"
define i32 @store(%struct.Buffer* %0, i8* %1, i64 %2, %struct.Stream* %3) {
%5 = alloca %struct.Buffer*
%6 = alloca i8*
%7 = alloca i64
%8 = alloca %struct.Stream*
%9 = alloca i32
store %struct.Buffer* %0, %struct.Buffer** %5
store i8* %1, i8** %6
store i64 %2, i64* %7
store %struct.Stream* %3, %struct.Stream** %8
%10 = load %struct.Buffer*, %struct.Buffer** %5
%11 = load i8*, i8** %6
%12 = load i64, i64* %7
%13 = call i32 @buffer_put(%struct.Buffer* %10, i8* %11, i64 %12)
store i32 %13, i32* %9
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %4
%16 = load %struct.Stream*, %struct.Stream** %8
%17 = call i32 @set_error(%struct.Stream* %16, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0))
br label %18
18: ; preds = %15, %4
%19 = load i32, i32* %9
ret i32 %19
}

LLVM IR (-O2):
%struct.Buffer = type { i32 }
%struct.Stream = type { i32 }
@.str = [48 x i8] c"Insufficient capacity of raw bytes' accumulator\00"
define i32 @store(%struct.Buffer* %0, i8* %1, i64 %2, %struct.Stream* %3) {
%5 = tail call i32 @buffer_put(%struct.Buffer* %0, i8* %1, i64 %2)
%6 = icmp eq i32 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %4
%8 = tail call i32 @set_error(%struct.Stream* %3, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0))
br label %9
9: ; preds = %7, %4
ret i32 %5
}
/* Variables and functions */
double cosh(double);
double sinh(double);
double coth(double n) {
  if (sinh(n) == 0) {
    return 0. / 0.;
  }
  return cosh(n) / sinh(n);
}


x86 assembly (clang, -O0):
<coth>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1030 <sinh@plt>
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    115c <coth+0x3c>
jp     115c <coth+0x3c>
movsd  0xeae(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1186 <coth+0x66>
movsd  -0x10(%rbp),%xmm0
call   1040 <cosh@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1030 <sinh@plt>
movaps %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<coth>:
sub    $0x18,%rsp
movsd  %xmm0,0x8(%rsp)
call   1030 <sinh@plt>
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1148 <coth+0x28>
jp     1148 <coth+0x28>
movsd  0xebd(%rip),%xmm0
add    $0x18,%rsp
ret
movsd  0x8(%rsp),%xmm0
call   1040 <cosh@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
call   1030 <sinh@plt>
movsd  0x10(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @coth(double %0) {
%2 = alloca double
%3 = alloca double
store double %0, double* %3
%4 = load double, double* %3
%5 = call double @sinh(double %4)
%6 = fcmp oeq double %5, 0.000000e+00
br i1 %6, label %7, label %8
7: ; preds = %1
store double 0x7FF8000000000000, double* %2
br label %14
8: ; preds = %1
%9 = load double, double* %3
%10 = call double @cosh(double %9)
%11 = load double, double* %3
%12 = call double @sinh(double %11)
%13 = fdiv double %10, %12
store double %13, double* %2
br label %14
14: ; preds = %8, %7
%15 = load double, double* %2
ret double %15
}

LLVM IR (-O2):
define double @coth(double %0) {
%2 = tail call double @sinh(double %0)
%3 = fcmp oeq double %2, 0.000000e+00
br i1 %3, label %8, label %4
4: ; preds = %1
%5 = tail call double @cosh(double %0)
%6 = tail call double @sinh(double %0)
%7 = fdiv double %5, %6
br label %8
8: ; preds = %1, %4
%9 = phi double [ %7, %4 ], [ 0x7FF8000000000000, %1 ]
ret double %9
}
/* Variables and functions */
int /*<<< orphan*/ Mossa(int *, int *, int);
int /*<<< orphan*/ Print();
int /*<<< orphan*/ Replace(int, int, int);
void Turno(int r, int c, int player) {
  Print();
  Mossa(&r, &c, player);
  Replace(r, c, player);
}


x86 assembly (clang, -O0):
<Turno>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    $0x0,%al
call   1050 <Print@plt>
mov    -0xc(%rbp),%edx
lea    -0x4(%rbp),%rdi
lea    -0x8(%rbp),%rsi
call   1030 <Mossa@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1040 <Replace@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Turno>:
push   %rbx
sub    $0x10,%rsp
mov    %edx,%ebx
mov    %edi,0xc(%rsp)
mov    %esi,0x8(%rsp)
xor    %eax,%eax
call   1050 <Print@plt>
lea    0xc(%rsp),%rdi
lea    0x8(%rsp),%rsi
mov    %ebx,%edx
call   1030 <Mossa@plt>
mov    0xc(%rsp),%edi
mov    0x8(%rsp),%esi
mov    %ebx,%edx
call   1040 <Replace@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @Turno(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = call i32 (...) @Print()
%8 = load i32, i32* %6
%9 = call i32 @Mossa(i32* %4, i32* %5, i32 %8)
%10 = load i32, i32* %4
%11 = load i32, i32* %5
%12 = load i32, i32* %6
%13 = call i32 @Replace(i32 %10, i32 %11, i32 %12)
ret void
}

LLVM IR (-O2):
define void @Turno(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%6 = tail call i32 (...) @Print()
%7 = call i32 @Mossa(i32* %4, i32* %5, i32 %2)
%8 = load i32, i32* %4
%9 = load i32, i32* %5
%10 = call i32 @Replace(i32 %8, i32 %9, i32 %2)
ret void
}
/* Forward declarations */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
typedef scalar_t__ u_int;
typedef int /*<<< orphan*/ bool_t;
struct TYPE_3__ {
  int /*<<< orphan*/ x_handy;
};
typedef TYPE_1__ XDR;

/* Variables and functions */
int /*<<< orphan*/ TRUE;
bool_t x_putbytes(XDR *xdrs, const char *bp, u_int len) {
  xdrs->x_handy += len;
  return (TRUE);
}


x86 assembly (clang, -O0):
<x_putbytes>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rdx
mov    -0x8(%rbp),%rax
movslq (%rax),%rcx
add    %rdx,%rcx
mov    %ecx,(%rax)
mov    0x2ec1(%rip),%rax
mov    (%rax),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<x_putbytes>:
add    %edx,(%rdi)
mov    0x2edf(%rip),%rax
mov    (%rax),%eax
ret

LLVM IR (-O0):
%struct.TYPE_3__ = type { i32 }
@TRUE = global i32 0
define i32 @x_putbytes(%struct.TYPE_3__* %0, i8* %1, i64 %2) {
%4 = alloca %struct.TYPE_3__*
%5 = alloca i8*
%6 = alloca i64
store %struct.TYPE_3__* %0, %struct.TYPE_3__** %4
store i8* %1, i8** %5
store i64 %2, i64* %6
%7 = load i64, i64* %6
%8 = load %struct.TYPE_3__*, %struct.TYPE_3__** %4
%9 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %8, i32 0, i32 0
%10 = load i32, i32* %9
%11 = sext i32 %10 to i64
%12 = add nsw i64 %11, %7
%13 = trunc i64 %12 to i32
store i32 %13, i32* %9
%14 = load i32, i32* @TRUE
ret i32 %14
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i32 }
@TRUE = global i32 0
define i32 @x_putbytes(%struct.TYPE_3__* nocapture %0, i8* nocapture readnone %1, i64 %2) {
%4 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 0
%5 = load i32, i32* %4
%6 = trunc i64 %2 to i32
%7 = add i32 %5, %6
store i32 %7, i32* %4
%8 = load i32, i32* @TRUE
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void mem_free(void *p) { free(p); }


x86 assembly (clang, -O0):
<mem_free>:
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):
<mem_free>:
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @mem_free(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 @mem_free(i8* nocapture %0) {
%2 = tail call i32 @free(i8* %0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ AES_KEY;

/* Variables and functions */
int /*<<< orphan*/ AES_set_decrypt_key(unsigned char const *, int const,
                                       int /*<<< orphan*/ *);
void JTR_AES_set_decrypt_key(const unsigned char *userKey, const int bits,
                             AES_KEY *key) {
  AES_set_decrypt_key(userKey, bits, key);
}


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

x86 assembly (clang, -O2):
<JTR_AES_set_decrypt_key>:
jmp    1030 <AES_set_decrypt_key@plt>

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

LLVM IR (-O2):
define void @JTR_AES_set_decrypt_key(i8* %0, i32 %1, i32* %2) {
%4 = tail call i32 @AES_set_decrypt_key(i8* %0, i32 %1, i32* %2)
ret void
}
int bintree_inteq(void *current, void *added) {
  int int_added = *((int *)added);
  int int_current = *((int *)current);
  return int_added - int_current;
}


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

x86 assembly (clang, -O2):
<bintree_inteq>:
mov    (%rsi),%eax
sub    (%rdi),%eax
ret

LLVM IR (-O0):
define i32 @bintree_inteq(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %3
store i8* %1, i8** %4
%7 = load i8*, i8** %4
%8 = bitcast i8* %7 to i32*
%9 = load i32, i32* %8
store i32 %9, i32* %5
%10 = load i8*, i8** %3
%11 = bitcast i8* %10 to i32*
%12 = load i32, i32* %11
store i32 %12, i32* %6
%13 = load i32, i32* %5
%14 = load i32, i32* %6
%15 = sub nsw i32 %13, %14
ret i32 %15
}

LLVM IR (-O2):
define i32 @bintree_inteq(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %1 to i32*
%4 = load i32, i32* %3
%5 = bitcast i8* %0 to i32*
%6 = load i32, i32* %5
%7 = sub nsw i32 %4, %6
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ ft_putnbr_x(int);
int ft_printf_x(unsigned int nbr) {
  int ret;
  int copy;
  copy = nbr;
  ret = 0;
  if (nbr == 0)
    ret++;
  while (nbr >= 1) {
    nbr = nbr / 16;
    ret++;
  }
  ft_putnbr_x(copy);
  return (ret);
}


x86 assembly (clang, -O0):
<ft_printf_x>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    113b <ft_printf_x+0x2b>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1140 <ft_printf_x+0x30>
cmpl   $0x1,-0x4(%rbp)
jb     1161 <ft_printf_x+0x51>
mov    -0x4(%rbp),%eax
shr    $0x4,%eax
mov    %eax,-0x4(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1140 <ft_printf_x+0x30>
mov    -0xc(%rbp),%edi
call   1030 <ft_putnbr_x@plt>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_printf_x>:
push   %rbx
test   %edi,%edi
je     112f <ft_printf_x+0x1f>
xor    %ebx,%ebx
mov    %edi,%eax
mov    %edi,%ecx
nopl   0x0(%rax,%rax,1)
shr    $0x4,%ecx
add    $0x1,%ebx
cmp    $0xf,%eax
mov    %ecx,%eax
ja     1120 <ft_printf_x+0x10>
jmp    1134 <ft_printf_x+0x24>
mov    $0x1,%ebx
call   1030 <ft_putnbr_x@plt>
mov    %ebx,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @ft_printf_x(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %9, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %6, %3 ], [ %0, %1 ]
%5 = phi i32 [ %7, %3 ], [ 0, %1 ]
%6 = lshr i32 %4, 4
%7 = add nuw nsw i32 %5, 1
%8 = icmp ult i32 %4, 16
br i1 %8, label %9, label %3
9: ; preds = %3, %1
%10 = phi i32 [ 1, %1 ], [ %7, %3 ]
%11 = tail call i32 @ft_putnbr_x(i32 %0)
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
int isqrt(int);
void t_sqrt_172() {
  Assert_real((isqrt(172) == 13),
              "/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/stdlib/isqrt.c",
              865, ("Integer square root of 172 should be 13"));
}


x86 assembly (clang, -O0):
<t_sqrt_172>:
push   %rbp
mov    %rsp,%rbp
mov    $0xac,%edi
call   1030 <isqrt@plt>
cmp    $0xd,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xec0(%rip),%rsi
mov    $0x361,%edx
lea    0xf56(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_sqrt_172>:
push   %rax
mov    $0xac,%edi
call   1030 <isqrt@plt>
xor    %edi,%edi
cmp    $0xd,%eax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf60(%rip),%rcx
mov    $0x361,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [162 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/stdlib/isqrt.c\00"
@.str.1 = [40 x i8] c"Integer square root of 172 should be 13\00"
define void @t_sqrt_172() {
%1 = call i32 @isqrt(i32 172)
%2 = icmp eq i32 %1, 13
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([162 x i8], [162 x i8]* @.str, i64 0, i64 0), i32 865, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [162 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/stdlib/isqrt.c\00"
@.str.1 = [40 x i8] c"Integer square root of 172 should be 13\00"
define void @t_sqrt_172() {
%1 = tail call i32 @isqrt(i32 172)
%2 = icmp eq i32 %1, 13
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([162 x i8], [162 x i8]* @.str, i64 0, i64 0), i32 865, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0))
ret void
}
fun(int n, int a[]) {
  int i = 0;
  while (n) {
    a[15 - i] = n % 2;
    n = n / 2;
    i++;
  }
  return a;
}


x86 assembly (clang, -O0):
<fun>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1155 <fun+0x55>
mov    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0x10(%rbp),%rax
mov    $0xf,%ecx
sub    -0x14(%rbp),%ecx
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x4(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1112 <fun+0x12>
mov    -0x10(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<fun>:
mov    %rsi,%rax
test   %edi,%edi
je     1131 <fun+0x31>
lea    0x3c(%rax),%r8
mov    %edi,%edx
nopl   (%rax)
shr    $0x1f,%edx
add    %edi,%edx
mov    %edx,%esi
and    $0xfffffffe,%esi
mov    %edi,%ecx
sub    %esi,%ecx
mov    %ecx,(%r8)
sar    %edx
add    $0x1,%edi
add    $0xfffffffffffffffc,%r8
cmp    $0x2,%edi
mov    %edx,%edi
ja     1110 <fun+0x10>
ret

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

LLVM IR (-O2):
define i32 @fun(i32 %0, i32* %1) {
%3 = icmp eq i32 %0, 0
br i1 %3, label %14, label %4
4: ; preds = %2, %4
%5 = phi i64 [ %11, %4 ], [ 0, %2 ]
%6 = phi i32 [ %10, %4 ], [ %0, %2 ]
%7 = srem i32 %6, 2
%8 = sub nsw i64 15, %5
%9 = getelementptr inbounds i32, i32* %1, i64 %8
store i32 %7, i32* %9
%10 = sdiv i32 %6, 2
%11 = add nuw i64 %5, 1
%12 = add i32 %6, 1
%13 = icmp ult i32 %12, 3
br i1 %13, label %14, label %4
14: ; preds = %4, %2
%15 = ptrtoint i32* %1 to i64
%16 = trunc i64 %15 to i32
ret i32 %16
}
/* Variables and functions */
double __nv_log1p(double);
double log1p(double __a) { return __nv_log1p(__a); }


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

x86 assembly (clang, -O2):
<log1p>:
jmp    1030 <__nv_log1p@plt>

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

LLVM IR (-O2):
define double @log1p(double %0) {
%2 = tail call double @__nv_log1p(double %0)
ret double %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int lida = 0, desejada = 0;
  scanf("%d", &lida);
  scanf("%d", &desejada);
  printf("%d", lida - desejada);
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
movl   $0x0,0xc(%rsp)
movl   $0x0,0x8(%rsp)
lea    0xec4(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    0xc(%rsp),%esi
sub    0x8(%rsp),%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%4 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%7 = load i32, i32* %1
%8 = load i32, i32* %2
%9 = sub nsw i32 %7, %8
%10 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %9)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ strlen(char const *const);
int /*<<< orphan*/ write(int, char const *const, int /*<<< orphan*/);
void alarm_msg(const char *const message) {
  write(2, message, strlen(message));
}


x86 assembly (clang, -O0):
<alarm_msg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x10(%rbp),%rsi
mov    %eax,%edx
mov    $0x2,%edi
call   1030 <write@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<alarm_msg>:
push   %rbx
mov    %rdi,%rbx
call   1040 <strlen@plt>
mov    $0x2,%edi
mov    %rbx,%rsi
mov    %eax,%edx
pop    %rbx
jmp    1030 <write@plt>

LLVM IR (-O0):
define void @alarm_msg(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @strlen(i8* %4)
%6 = call i32 @write(i32 2, i8* %3, i32 %5)
ret void
}

LLVM IR (-O2):
define void @alarm_msg(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = tail call i32 @write(i32 2, i8* %0, i32 %2)
ret void
}
/* Variables and functions */
int ap_get_single_string_command(int, int, char *, int);
int ap_get_artist(int session, char *str) {
  return (ap_get_single_string_command(session, 0xcc10, str, 256));
}


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

x86 assembly (clang, -O2):
<ap_get_artist>:
mov    %rsi,%rdx
mov    $0xcc10,%esi
mov    $0x100,%ecx
jmp    1030 <ap_get_single_string_command@plt>

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

LLVM IR (-O2):
define i32 @ap_get_artist(i32 %0, i8* %1) {
%3 = tail call i32 @ap_get_single_string_command(i32 %0, i32 52240, i8* %1, i32 256)
ret i32 %3
}
int c_tolower(int c) {
  switch (c) {
  case 'a' + ('A' - 'a'):
  case 'b' + ('A' - 'a'):
  case 'c' + ('A' - 'a'):
  case 'd' + ('A' - 'a'):
  case 'e' + ('A' - 'a'):
  case 'f' + ('A' - 'a'):
  case 'g' + ('A' - 'a'):
  case 'h' + ('A' - 'a'):
  case 'i' + ('A' - 'a'):
  case 'j' + ('A' - 'a'):
  case 'k' + ('A' - 'a'):
  case 'l' + ('A' - 'a'):
  case 'm' + ('A' - 'a'):
  case 'n' + ('A' - 'a'):
  case 'o' + ('A' - 'a'):
  case 'p' + ('A' - 'a'):
  case 'q' + ('A' - 'a'):
  case 'r' + ('A' - 'a'):
  case 's' + ('A' - 'a'):
  case 't' + ('A' - 'a'):
  case 'u' + ('A' - 'a'):
  case 'v' + ('A' - 'a'):
  case 'w' + ('A' - 'a'):
  case 'x' + ('A' - 'a'):
  case 'y' + ('A' - 'a'):
  case 'z' + ('A' - 'a'):
    return c - 'A' + 'a';
  default:
    return c;
  }
}


x86 assembly (clang, -O0):
<c_tolower>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffffbf,%eax
sub    $0x19,%eax
ja     112c <c_tolower+0x2c>
jmp    111b <c_tolower+0x1b>
mov    -0x8(%rbp),%eax
sub    $0x41,%eax
add    $0x61,%eax
mov    %eax,-0x4(%rbp)
jmp    1132 <c_tolower+0x32>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<c_tolower>:
lea    -0x41(%rdi),%ecx
lea    0x20(%rdi),%eax
cmp    $0x1a,%ecx
cmovae %edi,%eax
ret

LLVM IR (-O0):
define i32 @c_tolower(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %9 [
i32 65, label %5
i32 66, label %5
i32 67, label %5
i32 68, label %5
i32 69, label %5
i32 70, label %5
i32 71, label %5
i32 72, label %5
i32 73, label %5
i32 74, label %5
i32 75, label %5
i32 76, label %5
i32 77, label %5
i32 78, label %5
i32 79, label %5
i32 80, label %5
i32 81, label %5
i32 82, label %5
i32 83, label %5
i32 84, label %5
i32 85, label %5
i32 86, label %5
i32 87, label %5
i32 88, label %5
i32 89, label %5
i32 90, label %5
]
5: ; preds = %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1
%6 = load i32, i32* %3
%7 = sub nsw i32 %6, 65
%8 = add nsw i32 %7, 97
store i32 %8, i32* %2
br label %11
9: ; preds = %1
%10 = load i32, i32* %3
store i32 %10, i32* %2
br label %11
11: ; preds = %9, %5
%12 = load i32, i32* %2
ret i32 %12
}

LLVM IR (-O2):
define i32 @c_tolower(i32 %0) {
%2 = add i32 %0, -65
%3 = icmp ult i32 %2, 26
%4 = add nsw i32 %0, 32
%5 = select i1 %3, i32 %4, i32 %0
ret i32 %5
}
int test_imm_A3uint8_reg(unsigned char val) {
  return ((val) & (0xA3 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_A3uint8_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%edx
and    $0xa3,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_A3uint8_reg>:
test   $0xa3,%dil
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_A3uint8_reg(i8 zeroext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
%5 = and i32 %4, 163
%6 = icmp ne i32 %5, 0
%7 = zext i1 %6 to i64
%8 = select i1 %6, i32 -20, i32 -40
ret i32 %8
}

LLVM IR (-O2):
define i32 @test_imm_A3uint8_reg(i8 zeroext %0) {
%2 = and i8 %0, -93
%3 = icmp eq i8 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}