xunge/DecIR huggingface dataset:
/* Variables and functions */
unsigned long I2CIntNumberGet(unsigned long);
int /*<<< orphan*/ IntEnable(unsigned long);
int /*<<< orphan*/ IntRegister(unsigned long, void (*)());
void I2CIntRegister(unsigned long ulBase, void (*pfnHandler)(void)) {
  unsigned long ulInt;
  ;
  ulInt = I2CIntNumberGet(ulBase);
  IntRegister(ulInt, pfnHandler);
  IntEnable(ulInt);
}


x86 assembly (clang, -O0):
<I2CIntRegister>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <I2CIntNumberGet@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <IntRegister@plt>
mov    -0x18(%rbp),%rdi
call   1030 <IntEnable@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<I2CIntRegister>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
call   1040 <I2CIntNumberGet@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r14,%rsi
call   1050 <IntRegister@plt>
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <IntEnable@plt>

LLVM IR (-O0):
define void @I2CIntRegister(i64 %0, void ()* %1) {
%3 = alloca i64
%4 = alloca void ()*
%5 = alloca i64
store i64 %0, i64* %3
store void ()* %1, void ()** %4
%6 = load i64, i64* %3
%7 = call i64 @I2CIntNumberGet(i64 %6)
store i64 %7, i64* %5
%8 = load i64, i64* %5
%9 = load void ()*, void ()** %4
%10 = bitcast void ()* %9 to void (...)*
%11 = call i32 @IntRegister(i64 %8, void (...)* %10)
%12 = load i64, i64* %5
%13 = call i32 @IntEnable(i64 %12)
ret void
}

LLVM IR (-O2):
define void @I2CIntRegister(i64 %0, void ()* %1) {
%3 = tail call i64 @I2CIntNumberGet(i64 %0)
%4 = bitcast void ()* %1 to void (...)*
%5 = tail call i32 @IntRegister(i64 %3, void (...)* %4)
%6 = tail call i32 @IntEnable(i64 %3)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ _system_depended_path(char const *);
int /*<<< orphan*/ *fopen(int /*<<< orphan*/, char const *);
FILE *wide_system_fopen(const char *filename, const char *mode) {
  return fopen(_system_depended_path(filename), mode);
}


x86 assembly (clang, -O0):
<wide_system_fopen>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <_system_depended_path@plt>
mov    %eax,%edi
mov    -0x10(%rbp),%rsi
call   1040 <fopen@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wide_system_fopen>:
push   %rbx
mov    %rsi,%rbx
call   1030 <_system_depended_path@plt>
mov    %eax,%edi
mov    %rbx,%rsi
pop    %rbx
jmp    1040 <fopen@plt>

LLVM IR (-O0):
define i32* @wide_system_fopen(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 @_system_depended_path(i8* %5)
%7 = load i8*, i8** %4
%8 = call i32* @fopen(i32 %6, i8* %7)
ret i32* %8
}

LLVM IR (-O2):
define i32* @wide_system_fopen(i8* %0, i8* %1) {
%3 = tail call i32 @_system_depended_path(i8* %0)
%4 = tail call i32* @fopen(i32 %3, i8* %1)
ret i32* %4
}
/* Type definitions */
typedef int uint8_t;

/* Variables and functions */
void h265vps_set_vps_id(uint8_t *p_h265vps, uint8_t i_vps_id) {
  p_h265vps[5] &= ~0xf0;
  p_h265vps[5] |= (i_vps_id << 4) & 0xf0;
}


x86 assembly (clang, -O0):
<h265vps_set_vps_id>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    0x14(%rax),%ecx
and    $0xffffff0f,%ecx
mov    %ecx,0x14(%rax)
mov    -0xc(%rbp),%ecx
shl    $0x4,%ecx
and    $0xf0,%ecx
mov    -0x8(%rbp),%rax
or     0x14(%rax),%ecx
mov    %ecx,0x14(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<h265vps_set_vps_id>:
mov    $0xffffff0f,%eax
and    0x14(%rdi),%eax
shl    $0x4,%esi
movzbl %sil,%ecx
or     %eax,%ecx
mov    %ecx,0x14(%rdi)
ret

LLVM IR (-O0):
define void @h265vps_set_vps_id(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 = getelementptr inbounds i32, i32* %5, i64 5
%7 = load i32, i32* %6
%8 = and i32 %7, -241
store i32 %8, i32* %6
%9 = load i32, i32* %4
%10 = shl i32 %9, 4
%11 = and i32 %10, 240
%12 = load i32*, i32** %3
%13 = getelementptr inbounds i32, i32* %12, i64 5
%14 = load i32, i32* %13
%15 = or i32 %14, %11
store i32 %15, i32* %13
ret void
}

LLVM IR (-O2):
define void @h265vps_set_vps_id(i32* nocapture %0, i32 %1) {
%3 = getelementptr inbounds i32, i32* %0, i64 5
%4 = load i32, i32* %3
%5 = and i32 %4, -241
%6 = shl i32 %1, 4
%7 = and i32 %6, 240
%8 = or i32 %5, %7
store i32 %8, i32* %3
ret void
}
/* Variables and functions */
float sqrt(float);
float CalcVecSize(float vec[3]) {
  return sqrt(vec[0] * vec[0] + vec[1] * vec[1] + vec[2] * vec[2]);
}


x86 assembly (clang, -O0):
<CalcVecSize>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm1
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm2
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm0
mov    -0x8(%rbp),%rax
mulss  0x4(%rax),%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm0
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1030 <sqrt@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CalcVecSize>:
movss  (%rdi),%xmm1
movss  0x4(%rdi),%xmm0
mulss  %xmm0,%xmm0
mulss  %xmm1,%xmm1
addss  %xmm0,%xmm1
movss  0x8(%rdi),%xmm0
mulss  %xmm0,%xmm0
addss  %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     113f <CalcVecSize+0x2f>
sqrtss %xmm0,%xmm0
ret
jmp    1030 <sqrt@plt>

LLVM IR (-O0):
define float @CalcVecSize(float* %0) {
%2 = alloca float*
store float* %0, float** %2
%3 = load float*, float** %2
%4 = getelementptr inbounds float, float* %3, i64 0
%5 = load float, float* %4
%6 = load float*, float** %2
%7 = getelementptr inbounds float, float* %6, i64 0
%8 = load float, float* %7
%9 = load float*, float** %2
%10 = getelementptr inbounds float, float* %9, i64 1
%11 = load float, float* %10
%12 = load float*, float** %2
%13 = getelementptr inbounds float, float* %12, i64 1
%14 = load float, float* %13
%15 = fmul float %11, %14
%16 = call float @llvm.fmuladd.f32(float %5, float %8, float %15)
%17 = load float*, float** %2
%18 = getelementptr inbounds float, float* %17, i64 2
%19 = load float, float* %18
%20 = load float*, float** %2
%21 = getelementptr inbounds float, float* %20, i64 2
%22 = load float, float* %21
%23 = call float @llvm.fmuladd.f32(float %19, float %22, float %16)
%24 = call float @sqrt(float %23)
ret float %24
}

LLVM IR (-O2):
define float @CalcVecSize(float* nocapture %0) {
%2 = load float, float* %0
%3 = getelementptr inbounds float, float* %0, i64 1
%4 = load float, float* %3
%5 = fmul float %4, %4
%6 = tail call float @llvm.fmuladd.f32(float %2, float %2, float %5)
%7 = getelementptr inbounds float, float* %0, i64 2
%8 = load float, float* %7
%9 = tail call float @llvm.fmuladd.f32(float %8, float %8, float %6)
%10 = tail call float @sqrt(float %9)
ret float %10
}
void ff_hevc_put_hevc_uni_qpel_hv48_12_sse4() {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ glClearStencil(int /*<<< orphan*/);
void ClearStencil(GLint s) { glClearStencil(s); }


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

x86 assembly (clang, -O2):
<ClearStencil>:
jmp    1030 <glClearStencil@plt>

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

LLVM IR (-O2):
define void @ClearStencil(i32 %0) {
%2 = tail call i32 @glClearStencil(i32 %0)
ret void
}
int foo(int x, int y, int z) {
  int i;
#pragma omp parallel for simd linear(y                                         \
                                     : x & 15) linear(x : 16) linear(z         \
                                                                     : x & 15)
  for (i = 0; i < 256; ++i)
    x += 16, y += x & 15, z += x & 15;
  return x + y + z;
}


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x100,-0x10(%rbp)
jge    1150 <foo+0x50>
mov    -0x4(%rbp),%eax
add    $0x10,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xf,%eax
add    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%eax
and    $0xf,%eax
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1114 <foo+0x14>
mov    -0x4(%rbp),%eax
add    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo>:
mov    %edi,%eax
and    $0xf,%eax
shl    $0x8,%eax
add    %eax,%esi
add    %edi,%esi
add    %edx,%eax
add    %esi,%eax
add    $0x1000,%eax
ret

LLVM IR (-O0):
define i32 @foo(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
store i32 0, i32* %7
br label %8
8: ; preds = %22, %3
%9 = load i32, i32* %7
%10 = icmp slt i32 %9, 256
br i1 %10, label %11, label %25
11: ; preds = %8
%12 = load i32, i32* %4
%13 = add nsw i32 %12, 16
store i32 %13, i32* %4
%14 = load i32, i32* %4
%15 = and i32 %14, 15
%16 = load i32, i32* %5
%17 = add nsw i32 %16, %15
store i32 %17, i32* %5
%18 = load i32, i32* %4
%19 = and i32 %18, 15
%20 = load i32, i32* %6
%21 = add nsw i32 %20, %19
store i32 %21, i32* %6
br label %22
22: ; preds = %11
%23 = load i32, i32* %7
%24 = add nsw i32 %23, 1
store i32 %24, i32* %7
br label %8
25: ; preds = %8
%26 = load i32, i32* %4
%27 = load i32, i32* %5
%28 = add nsw i32 %26, %27
%29 = load i32, i32* %6
%30 = add nsw i32 %28, %29
ret i32 %30
}

LLVM IR (-O2):
define i32 @foo(i32 %0, i32 %1, i32 %2) {
%4 = shl i32 %0, 8
%5 = and i32 %4, 3840
%6 = add i32 %5, %1
%7 = add i32 %0, 4096
%8 = add i32 %5, %2
%9 = add nsw i32 %6, %7
%10 = add nsw i32 %9, %8
ret i32 %10
}
/* Variables and functions */
float copysignf(float, float);
long int __lroundf(float x) {
  float adj;
  adj = 0x1.fffffep-2;
  adj = copysignf(adj, x);
  return x + adj;
}


x86 assembly (clang, -O0):
<__lroundf>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  0xf0f(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
movss  -0x4(%rbp),%xmm1
movaps 0xed9(%rip),%xmm2
pand   %xmm2,%xmm1
movaps 0xede(%rip),%xmm2
pand   %xmm2,%xmm0
por    %xmm1,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
addss  -0x8(%rbp),%xmm0
cvttss2si %xmm0,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<__lroundf>:
movaps 0xef9(%rip),%xmm1
andps  %xmm0,%xmm1
orps   0xeff(%rip),%xmm1
addss  %xmm0,%xmm1
cvttss2si %xmm1,%rax
ret

LLVM IR (-O0):
define i64 @__lroundf(float %0) {
%2 = alloca float
%3 = alloca float
store float %0, float* %2
store float 0x3FDFFFFFE0000000, float* %3
%4 = load float, float* %3
%5 = load float, float* %2
%6 = call float @llvm.copysign.f32(float %4, float %5)
store float %6, float* %3
%7 = load float, float* %2
%8 = load float, float* %3
%9 = fadd float %7, %8
%10 = fptosi float %9 to i64
ret i64 %10
}

LLVM IR (-O2):
define i64 @__lroundf(float %0) {
%2 = tail call float @llvm.copysign.f32(float 0x3FDFFFFFE0000000, float %0)
%3 = fadd float %2, %0
%4 = fptosi float %3 to i64
ret i64 %4
}
/* Variables and functions */
int /*<<< orphan*/ mrr_send_radio_data(int);
int /*<<< orphan*/ pmu_setting_temp_based(int);
void send_beacon() {
  pmu_setting_temp_based(1);
  mrr_send_radio_data(1);
  pmu_setting_temp_based(0);
}


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

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

LLVM IR (-O0):
define void @send_beacon() {
%1 = call i32 @pmu_setting_temp_based(i32 1)
%2 = call i32 @mrr_send_radio_data(i32 1)
%3 = call i32 @pmu_setting_temp_based(i32 0)
ret void
}

LLVM IR (-O2):
define void @send_beacon() {
%1 = tail call i32 @pmu_setting_temp_based(i32 1)
%2 = tail call i32 @mrr_send_radio_data(i32 1)
%3 = tail call i32 @pmu_setting_temp_based(i32 0)
ret void
}
void yy_1_ptExtSpacePlus(char *yytext, int yyleng) {
  ;
  ;
}


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

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

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

LLVM IR (-O2):
define void @yy_1_ptExtSpacePlus(i8* nocapture %0, i32 %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ TaskletC__Tasklet__resume();
void MessageBufferLayerP__0__Tasklet__resume(void) {
  TaskletC__Tasklet__resume();
}


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

x86 assembly (clang, -O2):
<MessageBufferLayerP__0__Tasklet__resume>:
xor    %eax,%eax
jmp    1030 <TaskletC__Tasklet__resume@plt>

LLVM IR (-O0):
define void @MessageBufferLayerP__0__Tasklet__resume() {
%1 = call i32 (...) @TaskletC__Tasklet__resume()
ret void
}

LLVM IR (-O2):
define void @MessageBufferLayerP__0__Tasklet__resume() {
%1 = tail call i32 (...) @TaskletC__Tasklet__resume()
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ __u8;
typedef int __u16;

/* Variables and functions */
void __put_unaligned_le16(__u16 val, __u8 *p) {
  *p++ = val;
  *p++ = val >> 8;
}


x86 assembly (clang, -O0):
<__put_unaligned_le16>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%ecx
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x4,%rdx
mov    %rdx,-0x10(%rbp)
mov    %ecx,(%rax)
mov    -0x4(%rbp),%ecx
sar    $0x8,%ecx
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x4,%rdx
mov    %rdx,-0x10(%rbp)
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<__put_unaligned_le16>:
mov    %edi,(%rsi)
sar    $0x8,%edi
mov    %edi,0x4(%rsi)
ret

LLVM IR (-O0):
define void @__put_unaligned_le16(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 = getelementptr inbounds i32, i32* %6, i32 1
store i32* %7, i32** %4
store i32 %5, i32* %6
%8 = load i32, i32* %3
%9 = ashr i32 %8, 8
%10 = load i32*, i32** %4
%11 = getelementptr inbounds i32, i32* %10, i32 1
store i32* %11, i32** %4
store i32 %9, i32* %10
ret void
}

LLVM IR (-O2):
define void @__put_unaligned_le16(i32 %0, i32* nocapture writeonly %1) {
%3 = getelementptr inbounds i32, i32* %1, i64 1
store i32 %0, i32* %1
%4 = ashr i32 %0, 8
store i32 %4, i32* %3
ret void
}
int ruben(int x) { return x + 1; }


x86 assembly (clang, -O0):
<ruben>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ruben>:
lea    0x1(%rdi),%eax
ret

LLVM IR (-O0):
define i32 @ruben(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = add nsw i32 %3, 1
ret i32 %4
}

LLVM IR (-O2):
define i32 @ruben(i32 %0) {
%2 = add nsw i32 %0, 1
ret i32 %2
}
int rtl839x_mac_force_mode_ctrl(int p) { return (0x02bc) + (p << 2); }


x86 assembly (clang, -O0):
<rtl839x_mac_force_mode_ctrl>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
shl    $0x2,%eax
add    $0x2bc,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<rtl839x_mac_force_mode_ctrl>:
lea    0x2bc(,%rdi,4),%eax
ret

LLVM IR (-O0):
define i32 @rtl839x_mac_force_mode_ctrl(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = shl i32 %3, 2
%5 = add nsw i32 700, %4
ret i32 %5
}

LLVM IR (-O2):
define i32 @rtl839x_mac_force_mode_ctrl(i32 %0) {
%2 = shl i32 %0, 2
%3 = add nsw i32 %2, 700
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ initializePageTable();
int construct_HelpScreen(void) {
  initializePageTable();
  return 1;
}


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

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

LLVM IR (-O0):
define i32 @construct_HelpScreen() {
%1 = call i32 (...) @initializePageTable()
ret i32 1
}

LLVM IR (-O2):
define i32 @construct_HelpScreen() {
%1 = tail call i32 (...) @initializePageTable()
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, double);
void printDouble(double d) { printf("%f", d); }


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

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

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

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
define void @printDouble(double %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double %0)
ret void
}
__attribute__((no)) int sum(int x, int y) { return x + y; }


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

x86 assembly (clang, -O2):
<sum>:
lea    (%rdi,%rsi,1),%eax
ret

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

LLVM IR (-O2):
define i32 @sum(i32 %0, i32 %1) {
%3 = add nsw i32 %1, %0
ret i32 %3
}
long infer__builtin_expect(long e, long x) {
  if (e == x) {
    return x;
  } else {
    return e;
  }
}


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

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

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

LLVM IR (-O2):
define i64 @infer__builtin_expect(i64 %0, i64 %1) {
ret i64 %0
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  scalar_t__ display;
};
typedef TYPE_1__ XPointerMovedEvent;

/* Variables and functions */
void *get_XPointerMovedEvent_display(void *_p) {
  return (void *)((XPointerMovedEvent *)_p)->display;
}


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

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

LLVM IR (-O0):
%struct.TYPE_2__ = type { i64 }
define i8* @get_XPointerMovedEvent_display(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = bitcast i8* %3 to %struct.TYPE_2__*
%5 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %4, i32 0, i32 0
%6 = load i64, i64* %5
%7 = inttoptr i64 %6 to i8*
ret i8* %7
}

LLVM IR (-O2):
define i8* @get_XPointerMovedEvent_display(i8* nocapture %0) {
%2 = bitcast i8* %0 to i64*
%3 = load i64, i64* %2
%4 = inttoptr i64 %3 to i8*
ret i8* %4
}
int iHxFaceGetAmount(int iAmountType, unsigned char *pszAmount,
                     unsigned char *pszPrompt, unsigned char *pszCurrencyCode,
                     int iDecimalPosition, unsigned char *pszLanguage) {
  return (99);
}


x86 assembly (clang, -O0):
<iHxFaceGetAmount>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9,-0x30(%rbp)
mov    $0x63,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @iHxFaceGetAmount(i32 %0, i8* %1, i8* %2, i8* %3, i32 %4, i8* %5) {
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i8*
store i32 %0, i32* %7
store i8* %1, i8** %8
store i8* %2, i8** %9
store i8* %3, i8** %10
store i32 %4, i32* %11
store i8* %5, i8** %12
ret i32 99
}

LLVM IR (-O2):
define i32 @iHxFaceGetAmount(i32 %0, i8* nocapture readnone %1, i8* nocapture readnone %2, i8* nocapture readnone %3, i32 %4, i8* nocapture readnone %5) {
ret i32 99
}
void DUMMY_eol(int a) { return; }


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

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

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

LLVM IR (-O2):
define void @DUMMY_eol(i32 %0) {
ret void
}
/* Variables and functions */
int _pb_print_bits(short *, int);
int _pb_print_bits_s(short value) {
  return _pb_print_bits(&value, sizeof(short));
  ;
}


x86 assembly (clang, -O0):
<_pb_print_bits_s>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
lea    -0x2(%rbp),%rdi
mov    $0x2,%esi
call   1030 <_pb_print_bits@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_pb_print_bits_s>:
push   %rax
mov    %di,0x6(%rsp)
lea    0x6(%rsp),%rdi
mov    $0x2,%esi
call   1030 <_pb_print_bits@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i32 @_pb_print_bits_s(i16 signext %0) {
%2 = alloca i16
store i16 %0, i16* %2
%3 = call i32 @_pb_print_bits(i16* %2, i32 2)
ret i32 %3
}

LLVM IR (-O2):
define i32 @_pb_print_bits_s(i16 signext %0) {
%2 = alloca i16
store i16 %0, i16* %2
%3 = call i32 @_pb_print_bits(i16* %2, i32 2)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, float *);
int main() {
  float rad, deg, a;
  printf("Enter the number in radiants");
  scanf("%5.2f", &rad);
  a = (180 / 3.14);
  deg = rad * a;
  printf("The value in degrees is %5.2f", deg);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xece(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
movss  0xeab(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x8(%rbp),%xmm0
mulss  -0x10(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xea8(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xedc(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf03(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
movss  0x4(%rsp),%xmm0
mulss  0xeb2(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xec8(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [29 x i8] c"Enter the number in radiants\00"
@.str.1 = [6 x i8] c"%5.2f\00"
@.str.2 = [30 x i8] c"The value in degrees is %5.2f\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
store i32 0, i32* %1
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float* %2)
store float 0x404CA99460000000, float* %4
%7 = load float, float* %2
%8 = load float, float* %4
%9 = fmul float %7, %8
store float %9, float* %3
%10 = load float, float* %3
%11 = fpext float %10 to double
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), double %11)
ret i32 0
}

LLVM IR (-O2):
@.str = [29 x i8] c"Enter the number in radiants\00"
@.str.1 = [6 x i8] c"%5.2f\00"
@.str.2 = [30 x i8] c"The value in degrees is %5.2f\00"
define i32 @main() {
%1 = alloca float
%2 = bitcast float* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float* %1)
%5 = load float, float* %1
%6 = fmul float %5, 0x404CA99460000000
%7 = fpext float %6 to double
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), double %7)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ funcion1(int, int);
int /*<<< orphan*/ printf(char *);
int main(int argc, char *argv[]) {
  printf("Inicio\n");
  funcion1(3, 3);
  printf("NOOO\n");
  printf("FIIIN\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
mov    $0x3,%esi
mov    %esi,%edi
call   1040 <funcion1@plt>
lea    0xeba(%rip),%rdi
call   1030 <printf@plt>
lea    0xeb4(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
mov    $0x3,%edi
mov    $0x3,%esi
call   1040 <funcion1@plt>
lea    0xec4(%rip),%rdi
call   1030 <puts@plt>
lea    0xebd(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@str = [7 x i8] c"Inicio\00"
@str.3 = [5 x i8] c"NOOO\00"
@str.4 = [6 x i8] c"FIIIN\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @funcion1(i32 3, i32 3)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.3, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.4, i64 0, i64 0))
ret i32 0
}
unsigned long asm_parity(unsigned long x) {
  x ^= (x >> 32);
  x ^= (x >> 16);
  x ^= (x >> 8);
  asm("addq  $0, %0  \n"
      "setnp %%al    \n"
      "movzx %%al, %0"
      : "=r"(x)
      : "0"(x)
      : "rax");
  return x;
}


x86 assembly (clang, -O0):
<asm_parity>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
shr    $0x20,%rax
xor    -0x8(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
shr    $0x10,%rax
xor    -0x8(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
shr    $0x8,%rax
xor    -0x8(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rcx
add    $0x0,%rcx
setnp  %al
movzbq %al,%rcx
mov    %rcx,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<asm_parity>:
mov    %rdi,%rax
shr    $0x20,%rax
xor    %rdi,%rax
mov    %rax,%rdx
shr    $0x10,%rdx
xor    %rax,%rdx
mov    %rdx,%rcx
shr    $0x8,%rcx
xor    %rdx,%rcx
add    $0x0,%rcx
setnp  %al
movzbq %al,%rcx
mov    %rcx,%rax
ret

LLVM IR (-O0):
define i64 @asm_parity(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = lshr i64 %3, 32
%5 = load i64, i64* %2
%6 = xor i64 %5, %4
store i64 %6, i64* %2
%7 = load i64, i64* %2
%8 = lshr i64 %7, 16
%9 = load i64, i64* %2
%10 = xor i64 %9, %8
store i64 %10, i64* %2
%11 = load i64, i64* %2
%12 = lshr i64 %11, 8
%13 = load i64, i64* %2
%14 = xor i64 %13, %12
store i64 %14, i64* %2
%15 = load i64, i64* %2
%16 = call i64 asm "addq $$0, $0 \0Asetnp %al \0Amovzx %al, $0", "=r,0,~{rax},~{dirflag},~{fpsr},~{flags}"(i64 %15)
store i64 %16, i64* %2
%17 = load i64, i64* %2
ret i64 %17
}

LLVM IR (-O2):
define i64 @asm_parity(i64 %0) {
%2 = lshr i64 %0, 32
%3 = xor i64 %2, %0
%4 = lshr i64 %3, 16
%5 = xor i64 %4, %3
%6 = lshr i64 %5, 8
%7 = xor i64 %6, %5
%8 = tail call i64 asm "addq $$0, $0 \0Asetnp %al \0Amovzx %al, $0", "=r,0,~{rax},~{dirflag},~{fpsr},~{flags}"(i64 %7)
ret i64 %8
}
/* Variables and functions */
int /*<<< orphan*/ os__signal(int, void *);
int /*<<< orphan*/ os__signal_notify(int);
void UserHandler(int sig, void *siginfo, void *context) {
  os__signal_notify(sig);
  os__signal(sig, (void *)UserHandler);
}


x86 assembly (clang, -O0):
<UserHandler>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <os__signal_notify@plt>
mov    -0x4(%rbp),%edi
mov    0x2eb3(%rip),%rsi
call   1040 <os__signal@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<UserHandler>:
push   %rbx
mov    %edi,%ebx
call   1030 <os__signal_notify@plt>
mov    0x2ec9(%rip),%rsi
mov    %ebx,%edi
pop    %rbx
jmp    1040 <os__signal@plt>

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

LLVM IR (-O2):
define void @UserHandler(i32 %0, i8* nocapture readnone %1, i8* nocapture readnone %2) {
%4 = tail call i32 @os__signal_notify(i32 %0)
%5 = tail call i32 @os__signal(i32 %0, i8* bitcast (void (i32, i8*, i8*)* @UserHandler to i8*))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ execute_connect();
int execute_accept() {
  execute_connect();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @execute_accept() {
%1 = tail call i32 (...) @execute_connect()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ tt_free();
void uci_exit() {
  tt_free();
  exit(0);
}


x86 assembly (clang, -O0):
<uci_exit>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <tt_free@plt>
xor    %edi,%edi
call   1030 <exit@plt>

x86 assembly (clang, -O2):
<uci_exit>:
push   %rax
xor    %eax,%eax
call   1040 <tt_free@plt>
xor    %edi,%edi
call   1030 <exit@plt>

LLVM IR (-O0):
define void @uci_exit() {
%1 = call i32 (...) @tt_free()
%2 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
define void @uci_exit() {
%1 = tail call i32 (...) @tt_free()
%2 = tail call i32 @exit(i32 0)
unreachable
}
/* Type definitions */
typedef int uint8_t;
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ prg8setBank2(int);
void namco_setParamsF0XX(uint16_t addr, uint8_t val) {
  (void)addr;
  prg8setBank2((val & 0x3F) << 13);
}


x86 assembly (clang, -O0):
<namco_setParamsF0XX>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
and    $0x3f,%edi
shl    $0xd,%edi
call   1030 <prg8setBank2@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<namco_setParamsF0XX>:
mov    %esi,%edi
and    $0x3f,%edi
shl    $0xd,%edi
jmp    1030 <prg8setBank2@plt>

LLVM IR (-O0):
define void @namco_setParamsF0XX(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 = and i32 %6, 63
%8 = shl i32 %7, 13
%9 = call i32 @prg8setBank2(i32 %8)
ret void
}

LLVM IR (-O2):
define void @namco_setParamsF0XX(i32 %0, i32 %1) {
%3 = shl i32 %1, 13
%4 = and i32 %3, 516096
%5 = tail call i32 @prg8setBank2(i32 %4)
ret void
}
int Bematech_FI_CGCIE(Var, Retorno) {
  return Formata("\x1b|35|02|\x1b", Var, Retorno);
}


x86 assembly (clang, -O0):
<Bematech_FI_CGCIE>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1030 <Formata@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Bematech_FI_CGCIE>:
mov    %esi,%edx
mov    %edi,%esi
lea    0xee5(%rip),%rdi
xor    %eax,%eax
jmp    1030 <Formata@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"\1B|35|02|\1B\00"
define i32 @Bematech_FI_CGCIE(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 (i8*, i32, i32, ...) bitcast (i32 (...)* @Formata to i32 (i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %6)
ret i32 %7
}

LLVM IR (-O2):
@.str = [10 x i8] c"\1B|35|02|\1B\00"
define i32 @Bematech_FI_CGCIE(i32 %0, i32 %1) {
%3 = tail call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @Formata to i32 (i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %1)
ret i32 %3
}
double add1(double a, double b, double fact) {
  double c;
  c = a + b + fact;
  return c;
}


x86 assembly (clang, -O0):
<add1>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
addsd  -0x10(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<add1>:
addsd  %xmm1,%xmm0
addsd  %xmm2,%xmm0
ret

LLVM IR (-O0):
define double @add1(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%8 = load double, double* %4
%9 = load double, double* %5
%10 = fadd double %8, %9
%11 = load double, double* %6
%12 = fadd double %10, %11
store double %12, double* %7
%13 = load double, double* %7
ret double %13
}

LLVM IR (-O2):
define double @add1(double %0, double %1, double %2) {
%4 = fadd double %0, %1
%5 = fadd double %4, %2
ret double %5
}
long utilities_lmax(long l0, long l1) {
  if (l0 > l1)
    return l0;
  else
    return l1;
}


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

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

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

LLVM IR (-O2):
define i64 @utilities_lmax(i64 %0, i64 %1) {
%3 = icmp sgt i64 %0, %1
%4 = select i1 %3, i64 %0, i64 %1
ret i64 %4
}
/* Variables and functions */
int strlen(char *);
__attribute__((visibility("default"))) int stringLength(char *str) {
  return strlen(str);
}


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

x86 assembly (clang, -O2):
<stringLength>:
jmp    1030 <strlen@plt>

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

LLVM IR (-O2):
define i32 @stringLength(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ regtest();
int /*<<< orphan*/ report_end();
int /*<<< orphan*/ report_start();
int main() {
  report_start();
  regtest();
  report_end();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @report_start()
%2 = tail call i32 (...) @regtest()
%3 = tail call i32 (...) @report_end()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isalpha(int);
void t_isalpha_0xb0() {
  Assert_real((isalpha(176) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isalpha.c",
              885, ("isalpha should be 0 for 0xb0"));
}


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

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

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

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalpha.c\00"
@.str.1 = [29 x i8] c"isalpha should be 0 for 0xb0\00"
define void @t_isalpha_0xb0() {
%1 = tail call i64 @isalpha(i32 176)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 885, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef int uint8_t;
typedef int const uint32_t;

/* Variables and functions */
uint32_t leuint32(const uint8_t *t) {
  return t[0] | t[1] << 8 | t[2] << 16 | t[3] << 24;
}


x86 assembly (clang, -O0):
<leuint32>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    -0x8(%rbp),%rcx
mov    0x4(%rcx),%ecx
shl    $0x8,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%rcx
mov    0x8(%rcx),%ecx
shl    $0x10,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%rcx
mov    0xc(%rcx),%ecx
shl    $0x18,%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<leuint32>:
mov    0x4(%rdi),%ecx
mov    0x8(%rdi),%edx
shl    $0x8,%ecx
or     (%rdi),%ecx
shl    $0x10,%edx
mov    0xc(%rdi),%eax
shl    $0x18,%eax
or     %edx,%eax
or     %ecx,%eax
ret

LLVM IR (-O0):
define i32 @leuint32(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 = load i32*, i32** %2
%7 = getelementptr inbounds i32, i32* %6, i64 1
%8 = load i32, i32* %7
%9 = shl i32 %8, 8
%10 = or i32 %5, %9
%11 = load i32*, i32** %2
%12 = getelementptr inbounds i32, i32* %11, i64 2
%13 = load i32, i32* %12
%14 = shl i32 %13, 16
%15 = or i32 %10, %14
%16 = load i32*, i32** %2
%17 = getelementptr inbounds i32, i32* %16, i64 3
%18 = load i32, i32* %17
%19 = shl i32 %18, 24
%20 = or i32 %15, %19
ret i32 %20
}

LLVM IR (-O2):
define i32 @leuint32(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = getelementptr inbounds i32, i32* %0, i64 1
%4 = load i32, i32* %3
%5 = shl i32 %4, 8
%6 = or i32 %5, %2
%7 = getelementptr inbounds i32, i32* %0, i64 2
%8 = load i32, i32* %7
%9 = shl i32 %8, 16
%10 = or i32 %6, %9
%11 = getelementptr inbounds i32, i32* %0, i64 3
%12 = load i32, i32* %11
%13 = shl i32 %12, 24
%14 = or i32 %10, %13
ret i32 %14
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fwrite(char *, int, int, int /*<<< orphan*/ *);
void debug_save_buffer(char *pstrFilename, char *pstrBuffer, int iSize) {
  FILE *pFile;
  pFile = fopen(pstrFilename, "wb");
  if (pFile) {
    fwrite(pstrBuffer, 1, iSize, pFile);
    fclose(pFile);
  }
}


x86 assembly (clang, -O0):
<debug_save_buffer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xeb2(%rip),%rsi
call   1040 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     1180 <debug_save_buffer+0x50>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%rcx
mov    $0x1,%esi
call   1050 <fwrite@plt>
mov    -0x20(%rbp),%rdi
call   1030 <fclose@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<debug_save_buffer>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %rsi,%rbx
lea    0xebf(%rip),%rsi
call   1040 <fopen@plt>
test   %rax,%rax
je     116d <debug_save_buffer+0x3d>
mov    %rax,%rbp
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %r14d,%edx
mov    %rax,%rcx
call   1050 <fwrite@plt>
mov    %rbp,%rdi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <fclose@plt>
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"wb\00"
define void @debug_save_buffer(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%8 = load i8*, i8** %4
%9 = call i32* @fopen(i8* %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32* %9, i32** %7
%10 = load i32*, i32** %7
%11 = icmp ne i32* %10, null
br i1 %11, label %12, label %19
12: ; preds = %3
%13 = load i8*, i8** %5
%14 = load i32, i32* %6
%15 = load i32*, i32** %7
%16 = call i32 @fwrite(i8* %13, i32 1, i32 %14, i32* %15)
%17 = load i32*, i32** %7
%18 = call i32 @fclose(i32* %17)
br label %19
19: ; preds = %12, %3
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"wb\00"
define void @debug_save_buffer(i8* nocapture %0, i8* nocapture %1, i32 %2) {
%4 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i32* %4, null
br i1 %5, label %9, label %6
6: ; preds = %3
%7 = tail call i32 @fwrite(i8* %1, i32 1, i32 %2, i32* %4)
%8 = tail call i32 @fclose(i32* %4)
br label %9
9: ; preds = %6, %3
ret void
}
/* Variables and functions */
int /*<<< orphan*/ memcpy(unsigned char *, unsigned char *, unsigned int);
int iscsiAuthClientData(unsigned char *outData, unsigned int *outLength,
                        unsigned char *inData, unsigned int inLength) {
  if (*outLength < inLength)
    return 1;
  memcpy(outData, inData, inLength);
  *outLength = inLength;
  return 0;
}


x86 assembly (clang, -O0):
<iscsiAuthClientData>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
cmp    -0x24(%rbp),%eax
jae    1142 <iscsiAuthClientData+0x32>
movl   $0x1,-0x4(%rbp)
jmp    1162 <iscsiAuthClientData+0x52>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x24(%rbp),%edx
call   1030 <memcpy@plt>
mov    -0x24(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<iscsiAuthClientData>:
push   %r14
push   %rbx
push   %rax
mov    $0x1,%eax
cmp    %ecx,(%rsi)
jb     1131 <iscsiAuthClientData+0x21>
mov    %ecx,%ebx
mov    %rsi,%r14
mov    %rdx,%rsi
mov    %ecx,%edx
call   1030 <memcpy@plt>
mov    %ebx,(%r14)
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define i32 @iscsiAuthClientData(i8* %0, i32* nocapture %1, i8* %2, i32 %3) {
%5 = load i32, i32* %1
%6 = icmp ult i32 %5, %3
br i1 %6, label %9, label %7
7: ; preds = %4
%8 = tail call i32 @memcpy(i8* %0, i8* %2, i32 %3)
store i32 %3, i32* %1
br label %9
9: ; preds = %4, %7
%10 = phi i32 [ 0, %7 ], [ 1, %4 ]
ret i32 %10
}
void ff_hevc_put_hevc_bi_w_epel_v32_10_sse4() {}


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

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

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

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