xunge/DecIR huggingface dataset:
const char *Process_Description(void) {
  return "The `Process` type is a wrapper for an operating system process as "
         "constructed by the unix-like call `popen`. In this sense it is much "
         "like "
         "a standard file in the operating system but that instead of writing "
         "data "
         "to a location you are writing it as input to a process.";
}


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

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

LLVM IR (-O0):
@.str = [269 x i8] c"The `Process` type is a wrapper for an operating system process as constructed by the unix-like call `popen`. In this sense it is much like a standard file in the operating system but that instead of writing data to a location you are writing it as input to a process.\00"
define i8* @Process_Description() {
ret i8* getelementptr inbounds ([269 x i8], [269 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [269 x i8] c"The `Process` type is a wrapper for an operating system process as constructed by the unix-like call `popen`. In this sense it is much like a standard file in the operating system but that instead of writing data to a location you are writing it as input to a process.\00"
define i8* @Process_Description() {
ret i8* getelementptr inbounds ([269 x i8], [269 x i8]* @.str, i64 0, i64 0)
}
int left(int index) { return index * 2; }


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

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

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

LLVM IR (-O2):
define i32 @left(i32 %0) {
%2 = shl nsw i32 %0, 1
ret i32 %2
}
/* Variables and functions */
scalar_t__ IsDependencyCompile();
int /*<<< orphan*/ _PrintPosition(long);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
void _Warning(long p_position, const char *p_message) {
  if (IsDependencyCompile())
    return;
  _PrintPosition(p_position);
  fprintf(stderr, "warning: %s\n", p_message);
}


x86 assembly (clang, -O0):
<_Warning>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1030 <IsDependencyCompile@plt>
cmp    $0x0,%rax
je     1156 <_Warning+0x26>
jmp    1178 <_Warning+0x48>
mov    -0x8(%rbp),%rdi
call   1040 <_PrintPosition@plt>
mov    0x2e7a(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xe8d(%rip),%rsi
call   1050 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_Warning>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
xor    %eax,%eax
call   1030 <IsDependencyCompile@plt>
test   %rax,%rax
je     114e <_Warning+0x1e>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
mov    %rbx,%rdi
call   1040 <_PrintPosition@plt>
mov    0x2e83(%rip),%rax
mov    (%rax),%edi
lea    0xe9a(%rip),%rsi
mov    %r14,%rdx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1050 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [13 x i8] c"warning: %s\0A\00"
define void @_Warning(i64 %0, i8* %1) {
%3 = alloca i64
%4 = alloca i8*
store i64 %0, i64* %3
store i8* %1, i8** %4
%5 = call i64 (...) @IsDependencyCompile()
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %2
br label %14
8: ; preds = %2
%9 = load i64, i64* %3
%10 = call i32 @_PrintPosition(i64 %9)
%11 = load i32, i32* @stderr
%12 = load i8*, i8** %4
%13 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %12)
br label %14
14: ; preds = %8, %7
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [13 x i8] c"warning: %s\0A\00"
define void @_Warning(i64 %0, i8* %1) {
%3 = tail call i64 (...) @IsDependencyCompile()
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %9
5: ; preds = %2
%6 = tail call i32 @_PrintPosition(i64 %0)
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %1)
br label %9
9: ; preds = %2, %5
ret void
}
/* Variables and functions */
int F2_cc_nu_p(double, double);
double F1_cc_anu_p(double xx, double Q2) { return F2_cc_nu_p(xx, Q2) / 2 / xx; }


x86 assembly (clang, -O0):
<F1_cc_anu_p>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
call   1030 <F2_cc_nu_p@plt>
mov    $0x2,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
divsd  -0x8(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<F1_cc_anu_p>:
push   %rax
movsd  %xmm0,(%rsp)
call   1030 <F2_cc_nu_p@plt>
mov    %eax,%ecx
shr    $0x1f,%ecx
add    %eax,%ecx
sar    %ecx
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
divsd  (%rsp),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @F1_cc_anu_p(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = load double, double* %3
%6 = load double, double* %4
%7 = call i32 @F2_cc_nu_p(double %5, double %6)
%8 = sdiv i32 %7, 2
%9 = sitofp i32 %8 to double
%10 = load double, double* %3
%11 = fdiv double %9, %10
ret double %11
}

LLVM IR (-O2):
define double @F1_cc_anu_p(double %0, double %1) {
%3 = tail call i32 @F2_cc_nu_p(double %0, double %1)
%4 = sdiv i32 %3, 2
%5 = sitofp i32 %4 to double
%6 = fdiv double %5, %0
ret double %6
}
/* Variables and functions */
int /*<<< orphan*/ error(int, char *, char *, char *);
int /*<<< orphan*/ exit(int);
void syntax_error(int lineno, char *line, char *cptr) {
  error(lineno, line, cptr, "syntax error");
  exit(1);
}


x86 assembly (clang, -O0):
<syntax_error>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xebb(%rip),%rcx
call   1030 <error@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

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

LLVM IR (-O0):
@.str = [13 x i8] c"syntax error\00"
define void @syntax_error(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 = load i8*, i8** %5
%9 = load i8*, i8** %6
%10 = call i32 @error(i32 %7, i8* %8, i8* %9, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%11 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [13 x i8] c"syntax error\00"
define void @syntax_error(i32 %0, i8* %1, i8* %2) {
%4 = tail call i32 @error(i32 %0, i8* %1, i8* %2, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @exit(i32 1)
unreachable
}
/* Type definitions */
typedef int uint32_t;
typedef scalar_t__ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ memcpy(int *, float *, int);
void modbus_set_float(float f, uint16_t *dest) {
  uint32_t i;
  memcpy(&i, &f, sizeof(uint32_t));
  dest[0] = (uint16_t)i;
  dest[1] = (uint16_t)(i >> 16);
}


x86 assembly (clang, -O0):
<modbus_set_float>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
mov    %rdi,-0x10(%rbp)
lea    -0x14(%rbp),%rdi
lea    -0x4(%rbp),%rsi
mov    $0x4,%edx
call   1030 <memcpy@plt>
movslq -0x14(%rbp),%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x14(%rbp),%eax
sar    $0x10,%eax
movslq %eax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x8(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<modbus_set_float>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
movss  %xmm0,0xc(%rsp)
lea    0x8(%rsp),%rdi
lea    0xc(%rsp),%rsi
mov    $0x4,%edx
call   1030 <memcpy@plt>
movslq 0x8(%rsp),%rax
mov    %rax,(%rbx)
sar    $0x10,%eax
cltq
mov    %rax,0x8(%rbx)
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @modbus_set_float(float %0, i64* %1) {
%3 = alloca float
%4 = alloca i64*
%5 = alloca i32
store float %0, float* %3
store i64* %1, i64** %4
%6 = call i32 @memcpy(i32* %5, float* %3, i32 4)
%7 = load i32, i32* %5
%8 = sext i32 %7 to i64
%9 = load i64*, i64** %4
%10 = getelementptr inbounds i64, i64* %9, i64 0
store i64 %8, i64* %10
%11 = load i32, i32* %5
%12 = ashr i32 %11, 16
%13 = sext i32 %12 to i64
%14 = load i64*, i64** %4
%15 = getelementptr inbounds i64, i64* %14, i64 1
store i64 %13, i64* %15
ret void
}

LLVM IR (-O2):
define void @modbus_set_float(float %0, i64* nocapture writeonly %1) {
%3 = alloca float
%4 = alloca i32
store float %0, float* %3
%5 = bitcast i32* %4 to i8*
%6 = call i32 @memcpy(i32* %4, float* %3, i32 4)
%7 = load i32, i32* %4
%8 = sext i32 %7 to i64
store i64 %8, i64* %1
%9 = ashr i32 %7, 16
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i64, i64* %1, i64 1
store i64 %10, i64* %11
ret void
}
void __stf(void) { __asm__ __volatile__("" : : : "memory"); }


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

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

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

LLVM IR (-O2):
define void @__stf() {
tail call void asm sideeffect "", "~{memory},~{dirflag},~{fpsr},~{flags}"()
ret void
}
void removeRightWall(int (*maze)[25], int startRow, int startCol) {
  int removeRow, removeCol;
  removeCol = (startCol + 1) * 2;
  removeRow = (startRow)*2 - 1 + 2;
  maze[removeRow][removeCol] = 0;
}


x86 assembly (clang, -O0):
<removeRightWall>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
shl    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
shl    $0x1,%eax
sub    $0x1,%eax
add    $0x2,%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
pop    %rbp
ret

x86 assembly (clang, -O2):
<removeRightWall>:
lea    (%rdx,%rdx,1),%eax
add    $0x2,%eax
lea    (%rsi,%rsi,1),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
cltq
imul   $0x64,%rcx,%rcx
add    %rdi,%rcx
movl   $0x0,(%rcx,%rax,4)
ret

LLVM IR (-O0):
define void @removeRightWall([25 x i32]* %0, i32 %1, i32 %2) {
%4 = alloca [25 x i32]*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store [25 x i32]* %0, [25 x i32]** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%9 = load i32, i32* %6
%10 = add nsw i32 %9, 1
%11 = mul nsw i32 %10, 2
store i32 %11, i32* %8
%12 = load i32, i32* %5
%13 = mul nsw i32 %12, 2
%14 = sub nsw i32 %13, 1
%15 = add nsw i32 %14, 2
store i32 %15, i32* %7
%16 = load [25 x i32]*, [25 x i32]** %4
%17 = load i32, i32* %7
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [25 x i32], [25 x i32]* %16, i64 %18
%20 = load i32, i32* %8
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [25 x i32], [25 x i32]* %19, i64 0, i64 %21
store i32 0, i32* %22
ret void
}

LLVM IR (-O2):
define void @removeRightWall([25 x i32]* nocapture writeonly %0, i32 %1, i32 %2) {
%4 = shl i32 %2, 1
%5 = add i32 %4, 2
%6 = shl nsw i32 %1, 1
%7 = or i32 %6, 1
%8 = sext i32 %7 to i64
%9 = sext i32 %5 to i64
%10 = getelementptr inbounds [25 x i32], [25 x i32]* %0, i64 %8, i64 %9
store i32 0, i32* %10
ret void
}
/* Variables and functions */
double floor(double);
void range(double *v, double r) { *v -= r * floor(*v / r); }


x86 assembly (clang, -O0):
<range>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
divsd  -0x10(%rbp),%xmm0
call   1030 <floor@plt>
movaps %xmm0,%xmm2
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
movq   %xmm0,%rcx
movabs $0x8000000000000000,%rdx
xor    %rdx,%rcx
movq   %rcx,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<range>:
push   %rbx
sub    $0x10,%rsp
movapd %xmm0,%xmm1
movsd  %xmm0,(%rsp)
mov    %rdi,%rbx
movsd  (%rdi),%xmm0
movsd  %xmm0,0x8(%rsp)
divsd  %xmm1,%xmm0
call   1030 <floor@plt>
mulsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx)
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @range(double* %0, double %1) {
%3 = alloca double*
%4 = alloca double
store double* %0, double** %3
store double %1, double* %4
%5 = load double, double* %4
%6 = load double*, double** %3
%7 = load double, double* %6
%8 = load double, double* %4
%9 = fdiv double %7, %8
%10 = call double @llvm.floor.f64(double %9)
%11 = load double*, double** %3
%12 = load double, double* %11
%13 = fneg double %5
%14 = call double @llvm.fmuladd.f64(double %13, double %10, double %12)
store double %14, double* %11
ret void
}

LLVM IR (-O2):
define void @range(double* nocapture %0, double %1) {
%3 = load double, double* %0
%4 = fdiv double %3, %1
%5 = tail call double @llvm.floor.f64(double %4)
%6 = fneg double %1
%7 = tail call double @llvm.fmuladd.f64(double %6, double %5, double %3)
store double %7, double* %0
ret void
}
int GetSectorSize(int N) { return (1 << (N & 0x07) << 7); }


x86 assembly (clang, -O0):
<GetSectorSize>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
and    $0x7,%ecx
mov    $0x1,%eax
shl    %cl,%eax
shl    $0x7,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<GetSectorSize>:
mov    %edi,%ecx
and    $0x7,%cl
mov    $0x80,%eax
shl    %cl,%eax
ret

LLVM IR (-O0):
define i32 @GetSectorSize(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = and i32 %3, 7
%5 = shl i32 1, %4
%6 = shl i32 %5, 7
ret i32 %6
}

LLVM IR (-O2):
define i32 @GetSectorSize(i32 %0) {
%2 = and i32 %0, 7
%3 = shl nuw nsw i32 128, %2
ret i32 %3
}
char **blkend(up)
register char **up;
{
  while (*up)
    up++;
  return (up);
}


x86 assembly (clang, -O0):
<blkend>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmpq   $0x0,(%rax)
je     1127 <blkend+0x27>
mov    -0x8(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x8(%rbp)
jmp    1108 <blkend+0x8>
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<blkend>:
mov    %rdi,%rax
add    $0xfffffffffffffff8,%rax
nopw   0x0(%rax,%rax,1)
cmpq   $0x0,0x8(%rax)
lea    0x8(%rax),%rax
jne    1110 <blkend+0x10>
ret

LLVM IR (-O0):
define i8** @blkend(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
br label %3
3: ; preds = %7, %1
%4 = load i8**, i8*** %2
%5 = load i8*, i8** %4
%6 = icmp ne i8* %5, null
br i1 %6, label %7, label %10
7: ; preds = %3
%8 = load i8**, i8*** %2
%9 = getelementptr inbounds i8*, i8** %8, i32 1
store i8** %9, i8*** %2
br label %3
10: ; preds = %3
%11 = load i8**, i8*** %2
ret i8** %11
}

LLVM IR (-O2):
define i8** @blkend(i8** %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i8** [ %0, %1 ], [ %6, %2 ]
%4 = load i8*, i8** %3
%5 = icmp eq i8* %4, null
%6 = getelementptr inbounds i8*, i8** %3, i64 1
br i1 %5, label %7, label %2
7: ; preds = %2
ret i8** %3
}
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int swap_symbols_for_standard_Laurent_witness_set(int nvr, int dim) {
  int fail;
  double *c;
  fail = _ada_use_c2phc4c(819, &nvr, &dim, c, 0);
  return fail;
}


x86 assembly (clang, -O0):
<swap_symbols_for_standard_Laurent_witness_set>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x18(%rbp),%rcx
mov    $0x333,%edi
lea    -0x4(%rbp),%rsi
lea    -0x8(%rbp),%rdx
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<swap_symbols_for_standard_Laurent_witness_set>:
push   %rax
mov    %edi,0x4(%rsp)
mov    %esi,(%rsp)
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
mov    $0x333,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @swap_symbols_for_standard_Laurent_witness_set(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = call i32 @_ada_use_c2phc4c(i32 819, i32* %3, i32* %4, double* undef, i32 0)
ret i32 %5
}
void v2param_remove_file(filename) char *filename;
{
  if (filename != (void *)0)
    (void)remove(filename);
}


x86 assembly (clang, -O0):
<v2param_remove_file>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1132 <v2param_remove_file+0x22>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1030 <remove@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<v2param_remove_file>:
test   %rdi,%rdi
je     111c <v2param_remove_file+0xc>
xor    %eax,%eax
jmp    1030 <remove@plt>
ret

LLVM IR (-O0):
define void @v2param_remove_file(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 %5, label %8
5: ; preds = %1
%6 = load i8*, i8** %2
%7 = call i32 (i8*, ...) bitcast (i32 (...)* @remove to i32 (i8*, ...)*)(i8* %6)
br label %8
8: ; preds = %5, %1
ret void
}

LLVM IR (-O2):
define void @v2param_remove_file(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 (i8*, ...) bitcast (i32 (...)* @remove to i32 (i8*, ...)*)(i8* %0)
br label %5
5: ; preds = %3, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ lhsz();
int /*<<< orphan*/ z_backsubstitute();
int /*<<< orphan*/ z_solve_cell();
void z_solve(void) {
  lhsz();
  z_solve_cell();
  z_backsubstitute();
}


x86 assembly (clang, -O0):
<z_solve>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <lhsz@plt>
mov    $0x0,%al
call   1050 <z_solve_cell@plt>
mov    $0x0,%al
call   1040 <z_backsubstitute@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<z_solve>:
push   %rax
xor    %eax,%eax
call   1030 <lhsz@plt>
xor    %eax,%eax
call   1050 <z_solve_cell@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <z_backsubstitute@plt>

LLVM IR (-O0):
define void @z_solve() {
%1 = call i32 (...) @lhsz()
%2 = call i32 (...) @z_solve_cell()
%3 = call i32 (...) @z_backsubstitute()
ret void
}

LLVM IR (-O2):
define void @z_solve() {
%1 = tail call i32 (...) @lhsz()
%2 = tail call i32 (...) @z_solve_cell()
%3 = tail call i32 (...) @z_backsubstitute()
ret void
}
void ff_hevc_h_loop_filter_luma_12_avx() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_h_loop_filter_luma_12_avx() {
ret void
}
/* Variables and functions */
scalar_t__ errno;
long strtol(char const *, char **, int);
long SnortStrtol(const char *nptr, char **endptr, int base) {
  long iRet;
  errno = 0;
  iRet = strtol(nptr, endptr, base);
  return iRet;
}


x86 assembly (clang, -O0):
<SnortStrtol>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    0x2eb6(%rip),%rax
movq   $0x0,(%rax)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <strtol@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SnortStrtol>:
mov    0x2ec9(%rip),%rax
movq   $0x0,(%rax)
jmp    1030 <strtol@plt>

LLVM IR (-O0):
@errno = global i64 0
define i64 @SnortStrtol(i8* %0, i8** %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i64
store i8* %0, i8** %4
store i8** %1, i8*** %5
store i32 %2, i32* %6
store i64 0, i64* @errno
%8 = load i8*, i8** %4
%9 = load i8**, i8*** %5
%10 = load i32, i32* %6
%11 = call i64 @strtol(i8* %8, i8** %9, i32 %10)
store i64 %11, i64* %7
%12 = load i64, i64* %7
ret i64 %12
}

LLVM IR (-O2):
@errno = global i64 0
define i64 @SnortStrtol(i8* %0, i8** nocapture %1, i32 %2) {
store i64 0, i64* @errno
%4 = tail call i64 @strtol(i8* %0, i8** %1, i32 %2)
ret i64 %4
}
/* Type definitions */
typedef scalar_t__ node_color;

/* Variables and functions */
int COLOR_CH(uintptr_t node_color) {
  return ((0 != ((node_color)&1))) ? 'R' : 'B';
}


x86 assembly (clang, -O0):
<COLOR_CH>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
and    $0x1,%rsi
xor    %eax,%eax
mov    %eax,%edx
mov    $0x42,%eax
mov    $0x52,%ecx
cmp    %rsi,%rdx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<COLOR_CH>:
and    $0x1,%edi
shl    $0x4,%edi
lea    0x42(%rdi),%eax
ret

LLVM IR (-O0):
define i32 @COLOR_CH(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = and i64 %3, 1
%5 = icmp ne i64 0, %4
%6 = zext i1 %5 to i64
%7 = select i1 %5, i32 82, i32 66
ret i32 %7
}

LLVM IR (-O2):
define i32 @COLOR_CH(i64 %0) {
%2 = and i64 %0, 1
%3 = icmp eq i64 %2, 0
%4 = select i1 %3, i32 66, i32 82
ret i32 %4
}
int ide_wait_irq() {
  unsigned int status;
  int i;
  for (i = 0; i < 10000000; i++) {
    status = (*((volatile unsigned long *)(0xA05F6904)));
    if ((status & 1) != 0)
      return 0;
  }
  return 1;
}


x86 assembly (clang, -O0):
<ide_wait_irq>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0xc(%rbp)
cmpl   $0x989680,-0xc(%rbp)
jge    1151 <ide_wait_irq+0x51>
mov    $0xa05f6904,%eax
mov    (%rax),%rax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     113e <ide_wait_irq+0x3e>
movl   $0x0,-0x4(%rbp)
jmp    1158 <ide_wait_irq+0x58>
jmp    1143 <ide_wait_irq+0x43>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110b <ide_wait_irq+0xb>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ide_wait_irq>:
mov    $0x989680,%ecx
mov    $0xa05f6904,%edx
xor    %eax,%eax
nopl   0x0(%rax)
testq  $0x1,(%rdx)
jne    1147 <ide_wait_irq+0x47>
mov    (%rdx),%rsi
test   $0x1,%sil
jne    1147 <ide_wait_irq+0x47>
mov    (%rdx),%rsi
test   $0x1,%sil
jne    1147 <ide_wait_irq+0x47>
mov    (%rdx),%rsi
test   $0x1,%sil
jne    1147 <ide_wait_irq+0x47>
mov    (%rdx),%rsi
test   $0x1,%sil
jne    1147 <ide_wait_irq+0x47>
add    $0xfffffffb,%ecx
jne    1110 <ide_wait_irq+0x10>
mov    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @ide_wait_irq() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %3
br label %4
4: ; preds = %15, %0
%5 = load i32, i32* %3
%6 = icmp slt i32 %5, 10000000
br i1 %6, label %7, label %18
7: ; preds = %4
%8 = load volatile i64, i64* inttoptr (i64 2690607364 to i64*)
%9 = trunc i64 %8 to i32
store i32 %9, i32* %2
%10 = load i32, i32* %2
%11 = and i32 %10, 1
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %7
store i32 0, i32* %1
br label %19
14: ; preds = %7
br label %15
15: ; preds = %14
%16 = load i32, i32* %3
%17 = add nsw i32 %16, 1
store i32 %17, i32* %3
br label %4
18: ; preds = %4
store i32 1, i32* %1
br label %19
19: ; preds = %18, %13
%20 = load i32, i32* %1
ret i32 %20
}

LLVM IR (-O2):
define i32 @ide_wait_irq() {
br label %20
1: ; preds = %20
%2 = load volatile i64, i64* inttoptr (i64 2690607364 to i64*)
%3 = and i64 %2, 1
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %25
5: ; preds = %1
%6 = load volatile i64, i64* inttoptr (i64 2690607364 to i64*)
%7 = and i64 %6, 1
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %25
9: ; preds = %5
%10 = load volatile i64, i64* inttoptr (i64 2690607364 to i64*)
%11 = and i64 %10, 1
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %25
13: ; preds = %9
%14 = load volatile i64, i64* inttoptr (i64 2690607364 to i64*)
%15 = and i64 %14, 1
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %25
17: ; preds = %13
%18 = add nuw nsw i32 %21, 5
%19 = icmp eq i32 %18, 10000000
br i1 %19, label %25, label %20
20: ; preds = %17, %0
%21 = phi i32 [ 0, %0 ], [ %18, %17 ]
%22 = load volatile i64, i64* inttoptr (i64 2690607364 to i64*)
%23 = and i64 %22, 1
%24 = icmp eq i64 %23, 0
br i1 %24, label %1, label %25
25: ; preds = %17, %13, %9, %5, %1, %20
%26 = phi i32 [ 0, %20 ], [ 0, %1 ], [ 0, %5 ], [ 0, %9 ], [ 0, %13 ], [ 1, %17 ]
ret i32 %26
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int fwrite(char const *, int, int, int /*<<< orphan*/ *);
int write_chars_bin(FILE *out, const char *s, int count) {
  if (fwrite(s, 1, count, out) != count)
    return -1;
  return 0;
}


x86 assembly (clang, -O0):
<write_chars_bin>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
mov    -0x10(%rbp),%rcx
mov    $0x1,%esi
call   1030 <fwrite@plt>
cmp    -0x1c(%rbp),%eax
je     114d <write_chars_bin+0x3d>
movl   $0xffffffff,-0x4(%rbp)
jmp    1154 <write_chars_bin+0x44>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_chars_bin>:
push   %rbx
mov    %edx,%ebx
mov    %rdi,%rcx
mov    %rsi,%rdi
mov    $0x1,%esi
call   1030 <fwrite@plt>
xor    %ecx,%ecx
cmp    %ebx,%eax
setne  %cl
neg    %ecx
mov    %ecx,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @write_chars_bin(i32* nocapture %0, i8* nocapture %1, i32 %2) {
%4 = tail call i32 @fwrite(i8* %1, i32 1, i32 %2, i32* %0)
%5 = icmp ne i32 %4, %2
%6 = sext i1 %5 to i32
ret i32 %6
}
/* Variables and functions */
int rnd_32int();
double rnd_real53(void) {
  unsigned long a = rnd_32int() >> 5, b = rnd_32int() >> 6;
  return (a * 67108864.0 + b) * (1.0 / 9007199254740992.0);
}


x86 assembly (clang, -O0):
<rnd_real53>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
xor    %eax,%eax
mov    %al,-0x11(%rbp)
call   1030 <rnd_32int@plt>
mov    %eax,%ecx
mov    -0x11(%rbp),%al
sar    $0x5,%ecx
movslq %ecx,%rcx
mov    %rcx,-0x8(%rbp)
call   1030 <rnd_32int@plt>
sar    $0x6,%eax
cltq
mov    %rax,-0x10(%rbp)
movaps 0xeca(%rip),%xmm3
movq   -0x8(%rbp),%xmm0
punpckldq %xmm3,%xmm0
movapd 0xec9(%rip),%xmm2
subpd  %xmm2,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
movq   -0x10(%rbp),%xmm1
punpckldq %xmm3,%xmm1
subpd  %xmm2,%xmm1
movaps %xmm1,%xmm2
unpckhpd %xmm1,%xmm1
addsd  %xmm2,%xmm1
movsd  0xe82(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe6a(%rip),%xmm1
mulsd  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rnd_real53>:
push   %rbx
xor    %eax,%eax
call   1030 <rnd_32int@plt>
sar    $0x5,%eax
movslq %eax,%rbx
xor    %eax,%eax
call   1030 <rnd_32int@plt>
sar    $0x6,%eax
cltq
movq   %rbx,%xmm1
movdqa 0xec9(%rip),%xmm2
punpckldq %xmm2,%xmm1
movapd 0xecd(%rip),%xmm3
subpd  %xmm3,%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
addsd  %xmm1,%xmm0
movq   %rax,%xmm1
punpckldq %xmm2,%xmm1
subpd  %xmm3,%xmm1
movapd %xmm1,%xmm2
unpckhpd %xmm1,%xmm2
mulsd  0xeb0(%rip),%xmm0
addsd  %xmm1,%xmm2
addsd  %xmm2,%xmm0
mulsd  0xea8(%rip),%xmm0
pop    %rbx
ret

LLVM IR (-O0):
define double @rnd_real53() {
%1 = alloca i64
%2 = alloca i64
%3 = call i32 (...) @rnd_32int()
%4 = ashr i32 %3, 5
%5 = sext i32 %4 to i64
store i64 %5, i64* %1
%6 = call i32 (...) @rnd_32int()
%7 = ashr i32 %6, 6
%8 = sext i32 %7 to i64
store i64 %8, i64* %2
%9 = load i64, i64* %1
%10 = uitofp i64 %9 to double
%11 = load i64, i64* %2
%12 = uitofp i64 %11 to double
%13 = call double @llvm.fmuladd.f64(double %10, double 0x4190000000000000, double %12)
%14 = fmul double %13, 0x3CA0000000000000
ret double %14
}

LLVM IR (-O2):
define double @rnd_real53() {
%1 = tail call i32 (...) @rnd_32int()
%2 = ashr i32 %1, 5
%3 = sext i32 %2 to i64
%4 = tail call i32 (...) @rnd_32int()
%5 = ashr i32 %4, 6
%6 = sext i32 %5 to i64
%7 = uitofp i64 %3 to double
%8 = uitofp i64 %6 to double
%9 = tail call double @llvm.fmuladd.f64(double %7, double 0x4190000000000000, double %8)
%10 = fmul double %9, 0x3CA0000000000000
ret double %10
}
void StopModeDetectionTriggerHost(unsigned long MMIOBase,
                                  unsigned long offset) {
  *(volatile unsigned long *)((unsigned long)(0x1E700000) +
                              (unsigned long)(offset)) =
      (((*(volatile unsigned long *)((unsigned long)(0x1E700000) +
                                     (unsigned long)(offset))) &
        (~0x00000001)) |
       (unsigned long)((0) & (0x00000001)));
}


x86 assembly (clang, -O0):
<StopModeDetectionTriggerHost>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1e700000,%rax
mov    (%rax),%rcx
and    $0xfffffffffffffffe,%rcx
or     $0x0,%rcx
mov    -0x10(%rbp),%rax
add    $0x1e700000,%rax
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<StopModeDetectionTriggerHost>:
andq   $0xfffffffffffffffe,0x1e700000(%rsi)
fe
ret

LLVM IR (-O0):
define void @StopModeDetectionTriggerHost(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %4
%6 = add i64 510656512, %5
%7 = inttoptr i64 %6 to i64*
%8 = load volatile i64, i64* %7
%9 = and i64 %8, -2
%10 = or i64 %9, 0
%11 = load i64, i64* %4
%12 = add i64 510656512, %11
%13 = inttoptr i64 %12 to i64*
store volatile i64 %10, i64* %13
ret void
}

LLVM IR (-O2):
define void @StopModeDetectionTriggerHost(i64 %0, i64 %1) {
%3 = add i64 %1, 510656512
%4 = inttoptr i64 %3 to i64*
%5 = load volatile i64, i64* %4
%6 = and i64 %5, -2
store volatile i64 %6, i64* %4
ret void
}
/* Variables and functions */
double ln_get_mercury_earth_dist(double);
double ln_get_mercury_sdiam(double JD) {
  double So = 3.36;
  double dist;
  dist = ln_get_mercury_earth_dist(JD);
  return So / dist;
}


x86 assembly (clang, -O0):
<ln_get_mercury_sdiam>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  0xedb(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <ln_get_mercury_earth_dist@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
divsd  -0x18(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ln_get_mercury_sdiam>:
push   %rax
call   1030 <ln_get_mercury_earth_dist@plt>
movsd  0xee2(%rip),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @ln_get_mercury_sdiam(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
store double %0, double* %2
store double 3.360000e+00, double* %3
%5 = load double, double* %2
%6 = call double @ln_get_mercury_earth_dist(double %5)
store double %6, double* %4
%7 = load double, double* %3
%8 = load double, double* %4
%9 = fdiv double %7, %8
ret double %9
}

LLVM IR (-O2):
define double @ln_get_mercury_sdiam(double %0) {
%2 = tail call double @ln_get_mercury_earth_dist(double %0)
%3 = fdiv double 3.360000e+00, %2
ret double %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void print_usage(void) {
  printf(
      "Required_args:: -i={input_path} -m={missing_path} -e={expected_path}\n");
}


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

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

LLVM IR (-O0):
@.str = [70 x i8] c"Required_args:: -i={input_path} -m={missing_path} -e={expected_path}\0A\00"
define void @print_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [69 x i8] c"Required_args:: -i={input_path} -m={missing_path} -e={expected_path}\00"
define void @print_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int MTU2_ch3_count();
double MTU2_ch3_unit_in_sec();
double tcnt_get_in_ms(void) {
  int n;
  double t;
  n = MTU2_ch3_count();
  t = MTU2_ch3_unit_in_sec() * 1000.0 * (double)n;
  return t;
}


x86 assembly (clang, -O0):
<tcnt_get_in_ms>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1040 <MTU2_ch3_count@plt>
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1030 <MTU2_ch3_unit_in_sec@plt>
movsd  0xebf(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsi2sdl -0x4(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tcnt_get_in_ms>:
push   %rbx
xor    %eax,%eax
call   1040 <MTU2_ch3_count@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1030 <MTU2_ch3_unit_in_sec@plt>
mulsd  0xec7(%rip),%xmm0
cvtsi2sd %ebx,%xmm1
mulsd  %xmm1,%xmm0
pop    %rbx
ret

LLVM IR (-O0):
define double @tcnt_get_in_ms() {
%1 = alloca i32
%2 = alloca double
%3 = call i32 (...) @MTU2_ch3_count()
store i32 %3, i32* %1
%4 = call double (...) @MTU2_ch3_unit_in_sec()
%5 = fmul double %4, 1.000000e+03
%6 = load i32, i32* %1
%7 = sitofp i32 %6 to double
%8 = fmul double %5, %7
store double %8, double* %2
%9 = load double, double* %2
ret double %9
}

LLVM IR (-O2):
define double @tcnt_get_in_ms() {
%1 = tail call i32 (...) @MTU2_ch3_count()
%2 = tail call double (...) @MTU2_ch3_unit_in_sec()
%3 = fmul double %2, 1.000000e+03
%4 = sitofp i32 %1 to double
%5 = fmul double %3, %4
ret double %5
}
dodnl(ap, c) char **ap;
{
  register t;
  while ((t = getchr()) != '\n' && t >= 0)
    ;
}


x86 assembly (clang, -O0):
<dodnl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    $0x0,%al
call   1030 <getchr@plt>
mov    %eax,%ecx
mov    %ecx,-0x18(%rbp)
xor    %eax,%eax
cmp    $0xa,%ecx
mov    %al,-0x19(%rbp)
je     1143 <dodnl+0x33>
cmpl   $0x0,-0x18(%rbp)
setge  %al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%al
test   $0x1,%al
jne    1153 <dodnl+0x43>
jmp    1158 <dodnl+0x48>
jmp    111f <dodnl+0xf>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dodnl>:
push   %rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <getchr@plt>
cmp    $0xa,%eax
je     1130 <dodnl+0x20>
test   %eax,%eax
jns    1120 <dodnl+0x10>
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @dodnl(i8** nocapture readnone %0, i32 %1) {
br label %3
3: ; preds = %3, %2
%4 = tail call i32 (...) @getchr()
%5 = icmp ne i32 %4, 10
%6 = icmp sgt i32 %4, -1
%7 = and i1 %5, %6
br i1 %7, label %3, label %8
8: ; preds = %3
ret i32 undef
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
uint8_t intToByte(uint32_t in) { return (uint8_t)in; }


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

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

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

LLVM IR (-O2):
define i32 @intToByte(i32 returned %0) {
ret i32 %0
}
/* Variables and functions */
int /*<<< orphan*/ print(char *);
int main() {
  print("Hello World!\n");
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [14 x i8] c"Hello World!\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @print(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [14 x i8] c"Hello World!\0A\00"
define i32 @main() {
%1 = tail call i32 @print(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
void XkbGetMapChanges() {}


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

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

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

LLVM IR (-O2):
define void @XkbGetMapChanges() {
ret void
}
/* Variables and functions */
int adjustmode(int /*<<< orphan*/, int /*<<< orphan*/);
delmode(int f, int n) { return (adjustmode(0, 0)); }


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

x86 assembly (clang, -O2):
<delmode>:
xor    %edi,%edi
xor    %esi,%esi
jmp    1030 <adjustmode@plt>

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

LLVM IR (-O2):
define i32 @delmode(i32 %0, i32 %1) {
%3 = tail call i32 @adjustmode(i32 0, i32 0)
ret i32 %3
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  int /*<<< orphan*/ *display;
};
typedef TYPE_1__ XMotionEvent;
typedef int /*<<< orphan*/ Display;

/* Variables and functions */
void set_XMotionEvent_display(void *_p, void *_v) {
  ((XMotionEvent *)_p)->display = (Display *)_v;
}


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

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

LLVM IR (-O0):
%struct.TYPE_2__ = type { i32* }
define void @set_XMotionEvent_display(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = bitcast i8* %5 to i32*
%7 = load i8*, i8** %3
%8 = bitcast i8* %7 to %struct.TYPE_2__*
%9 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %8, i32 0, i32 0
store i32* %6, i32** %9
ret void
}

LLVM IR (-O2):
define void @set_XMotionEvent_display(i8* nocapture writeonly %0, i8* %1) {
%3 = bitcast i8* %0 to i8**
store i8* %1, i8** %3
ret void
}
/* Variables and functions */
int /*<<< orphan*/ hd44780_command(int);
void lcd_disable_cursor() {
  hd44780_command((0x08 | ((1) ? 0x04 : 0) | ((0) ? 0x02 : 0) | ((0) ? 1 : 0)));
}


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

x86 assembly (clang, -O2):
<lcd_disable_cursor>:
mov    $0xc,%edi
jmp    1030 <hd44780_command@plt>

LLVM IR (-O0):
define void @lcd_disable_cursor() {
%1 = call i32 @hd44780_command(i32 12)
ret void
}

LLVM IR (-O2):
define void @lcd_disable_cursor() {
%1 = tail call i32 @hd44780_command(i32 12)
ret void
}
/* Type definitions */
struct vec4 {
  int dummy;
};

/* Variables and functions */
int vec4_is_zero(float *);
__attribute__((always_)) bool psvec4_is_zero(struct vec4 *a) {
  return vec4_is_zero((float *)a);
}


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

x86 assembly (clang, -O2):
<psvec4_is_zero>:
jmp    1030 <vec4_is_zero@plt>

LLVM IR (-O0):
%struct.vec4 = type { i32 }
define i32 @psvec4_is_zero(%struct.vec4* %0) {
%2 = alloca %struct.vec4*
store %struct.vec4* %0, %struct.vec4** %2
%3 = load %struct.vec4*, %struct.vec4** %2
%4 = bitcast %struct.vec4* %3 to float*
%5 = call i32 @vec4_is_zero(float* %4)
ret i32 %5
}

LLVM IR (-O2):
%struct.vec4 = type { i32 }
define i32 @psvec4_is_zero(%struct.vec4* %0) {
%2 = bitcast %struct.vec4* %0 to float*
%3 = tail call i32 @vec4_is_zero(float* %2)
ret i32 %3
}
/* Variables and functions */
int *calloc(int, int);
int main() {
  int *val = calloc(5, sizeof(int));
  val[4] = 123;
  return val[4];
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x5,%edi
mov    $0x4,%esi
call   1030 <calloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movl   $0x7b,0x10(%rax)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x5,%edi
mov    $0x4,%esi
call   1030 <calloc@plt>
mov    $0x7b,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
store i32 0, i32* %1
%3 = call i32* @calloc(i32 5, i32 4)
store i32* %3, i32** %2
%4 = load i32*, i32** %2
%5 = getelementptr inbounds i32, i32* %4, i64 4
store i32 123, i32* %5
%6 = load i32*, i32** %2
%7 = getelementptr inbounds i32, i32* %6, i64 4
%8 = load i32, i32* %7
ret i32 %8
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32* @calloc(i32 5, i32 4)
ret i32 123
}
/* Variables and functions */
int analyze_board(char *, int);
int game_over(char *board) {
  if (analyze_board(board, 1) > -2)
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<game_over>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x1,%esi
call   1030 <analyze_board@plt>
cmp    $0xfffffffe,%eax
jle    113f <game_over+0x2f>
movl   $0x1,-0x4(%rbp)
jmp    1146 <game_over+0x36>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<game_over>:
push   %rax
mov    $0x1,%esi
call   1030 <analyze_board@plt>
xor    %ecx,%ecx
cmp    $0xffffffff,%eax
setge  %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @game_over(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i32 @analyze_board(i8* %4, i32 1)
%6 = icmp sgt i32 %5, -2
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 1, i32* %2
br label %9
8: ; preds = %1
store i32 0, i32* %2
br label %9
9: ; preds = %8, %7
%10 = load i32, i32* %2
ret i32 %10
}

LLVM IR (-O2):
define i32 @game_over(i8* %0) {
%2 = tail call i32 @analyze_board(i8* %0, i32 1)
%3 = icmp sgt i32 %2, -2
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Type definitions */
struct wl_proxy {
  int dummy;
};
struct wl_keyboard {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ wl_proxy_destroy(struct wl_proxy *);
void wl_keyboard_destroy(struct wl_keyboard *wl_keyboard) {
  wl_proxy_destroy((struct wl_proxy *)wl_keyboard);
}


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

x86 assembly (clang, -O2):
<wl_keyboard_destroy>:
jmp    1030 <wl_proxy_destroy@plt>

LLVM IR (-O0):
%struct.wl_keyboard = type { i32 }
%struct.wl_proxy = type { i32 }
define void @wl_keyboard_destroy(%struct.wl_keyboard* %0) {
%2 = alloca %struct.wl_keyboard*
store %struct.wl_keyboard* %0, %struct.wl_keyboard** %2
%3 = load %struct.wl_keyboard*, %struct.wl_keyboard** %2
%4 = bitcast %struct.wl_keyboard* %3 to %struct.wl_proxy*
%5 = call i32 @wl_proxy_destroy(%struct.wl_proxy* %4)
ret void
}

LLVM IR (-O2):
%struct.wl_keyboard = type { i32 }
%struct.wl_proxy = type { i32 }
define void @wl_keyboard_destroy(%struct.wl_keyboard* %0) {
%2 = bitcast %struct.wl_keyboard* %0 to %struct.wl_proxy*
%3 = tail call i32 @wl_proxy_destroy(%struct.wl_proxy* %2)
ret void
}
/* Variables and functions */
void *malloc(size_t);
void *test23_malloc(size_t n) {
  static int invoke_count = 0;
  switch (++invoke_count) {
  case 1:
    return malloc(n);
  case 2:
    return malloc(n);
  default:
    return 0;
  }
}


x86 assembly (clang, -O0):
<test23_malloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    0x2f0a(%rip),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    %eax,0x2efe(%rip)
sub    $0x1,%eax
je     114d <test23_malloc+0x3d>
jmp    113c <test23_malloc+0x2c>
mov    -0x14(%rbp),%eax
sub    $0x2,%eax
je     115f <test23_malloc+0x4f>
jmp    1171 <test23_malloc+0x61>
mov    -0x10(%rbp),%rdi
call   1030 <malloc@plt>
mov    %rax,-0x8(%rbp)
jmp    1179 <test23_malloc+0x69>
mov    -0x10(%rbp),%rdi
call   1030 <malloc@plt>
mov    %rax,-0x8(%rbp)
jmp    1179 <test23_malloc+0x69>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test23_malloc>:
mov    0x2f16(%rip),%eax
lea    0x1(%rax),%ecx
mov    %ecx,0x2f0d(%rip)
cmp    $0x1,%eax
ja     1129 <test23_malloc+0x19>
jmp    1030 <malloc@plt>
xor    %eax,%eax
ret

LLVM IR (-O0):
@test23_malloc.invoke_count = internal global i32 0
define i8* @test23_malloc(i64 %0) {
%2 = alloca i8*
%3 = alloca i64
store i64 %0, i64* %3
%4 = load i32, i32* @test23_malloc.invoke_count
%5 = add nsw i32 %4, 1
store i32 %5, i32* @test23_malloc.invoke_count
switch i32 %5, label %12 [
i32 1, label %6
i32 2, label %9
]
6: ; preds = %1
%7 = load i64, i64* %3
%8 = call i8* @malloc(i64 %7)
store i8* %8, i8** %2
br label %13
9: ; preds = %1
%10 = load i64, i64* %3
%11 = call i8* @malloc(i64 %10)
store i8* %11, i8** %2
br label %13
12: ; preds = %1
store i8* null, i8** %2
br label %13
13: ; preds = %12, %9, %6
%14 = load i8*, i8** %2
ret i8* %14
}

LLVM IR (-O2):
@test23_malloc.invoke_count = internal unnamed_addr global i32 0
define noalias i8* @test23_malloc(i64 %0) {
%2 = load i32, i32* @test23_malloc.invoke_count
%3 = add nsw i32 %2, 1
store i32 %3, i32* @test23_malloc.invoke_count
%4 = icmp ult i32 %2, 2
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = tail call i8* @malloc(i64 %0)
br label %7
7: ; preds = %1, %5
%8 = phi i8* [ null, %1 ], [ %6, %5 ]
ret i8* %8
}
void unsigned_char_or_signed_char_signed_char(unsigned char *LHS,
                                              signed char RHS) {
  (*LHS) |= RHS;
}


x86 assembly (clang, -O0):
<unsigned_char_or_signed_char_signed_char>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
movsbl -0x9(%rbp),%edx
mov    -0x8(%rbp),%rax
movzbl (%rax),%ecx
or     %edx,%ecx
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<unsigned_char_or_signed_char_signed_char>:
or     %sil,(%rdi)
ret

LLVM IR (-O0):
define void @unsigned_char_or_signed_char_signed_char(i8* %0, i8 signext %1) {
%3 = alloca i8*
%4 = alloca i8
store i8* %0, i8** %3
store i8 %1, i8* %4
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
%7 = load i8*, i8** %3
%8 = load i8, i8* %7
%9 = zext i8 %8 to i32
%10 = or i32 %9, %6
%11 = trunc i32 %10 to i8
store i8 %11, i8* %7
ret void
}

LLVM IR (-O2):
define void @unsigned_char_or_signed_char_signed_char(i8* nocapture %0, i8 signext %1) {
%3 = load i8, i8* %0
%4 = or i8 %3, %1
store i8 %4, i8* %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ winpack_shutdown();
void mt_shutdown(void) { winpack_shutdown(); }


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

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

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

LLVM IR (-O2):
define void @mt_shutdown() {
%1 = tail call i32 (...) @winpack_shutdown()
ret void
}
void g_value_array_append() {}


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

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

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

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