xunge/DecIR huggingface dataset:
/* Variables and functions */
int Mali_RdReg(int, int, int);
int /*<<< orphan*/ printk(char *, int, int);
void Mali_DisplayReg(int unit, int core, int regnum) {
  int v = Mali_RdReg(unit, core, regnum);
  printk("Reg: 0x%08x Value: %08x\n", (unit << 28) + (core << 16) + regnum, v);
}


x86 assembly (clang, -O0):
<Mali_DisplayReg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1040 <Mali_RdReg@plt>
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%esi
shl    $0x1c,%esi
mov    -0x8(%rbp),%eax
shl    $0x10,%eax
add    %eax,%esi
add    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0xea3(%rip),%rdi
call   1030 <printk@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Mali_DisplayReg>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %esi,%ebp
mov    %edi,%ebx
call   1040 <Mali_RdReg@plt>
shl    $0x1c,%ebx
shl    $0x10,%ebp
add    %ebx,%ebp
add    %r14d,%ebp
lea    0xebe(%rip),%rdi
mov    %ebp,%esi
mov    %eax,%edx
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <printk@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"Reg: 0x%08x Value: %08x\0A\00"
define void @Mali_DisplayReg(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
%8 = load i32, i32* %4
%9 = load i32, i32* %5
%10 = load i32, i32* %6
%11 = call i32 @Mali_RdReg(i32 %8, i32 %9, i32 %10)
store i32 %11, i32* %7
%12 = load i32, i32* %4
%13 = shl i32 %12, 28
%14 = load i32, i32* %5
%15 = shl i32 %14, 16
%16 = add nsw i32 %13, %15
%17 = load i32, i32* %6
%18 = add nsw i32 %16, %17
%19 = load i32, i32* %7
%20 = call i32 @printk(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %18, i32 %19)
ret void
}

LLVM IR (-O2):
@.str = [25 x i8] c"Reg: 0x%08x Value: %08x\0A\00"
define void @Mali_DisplayReg(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @Mali_RdReg(i32 %0, i32 %1, i32 %2)
%5 = shl i32 %0, 28
%6 = shl i32 %1, 16
%7 = add nsw i32 %6, %5
%8 = add nsw i32 %7, %2
%9 = tail call i32 @printk(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %8, i32 %4)
ret void
}
/* Type definitions */
typedef unsigned long uint32_t;

/* Variables and functions */
void SysExcIntClear(uint32_t ui32IntFlags) {
  (*((volatile unsigned long *)(0x400F900C))) = ui32IntFlags;
}


x86 assembly (clang, -O0):
<SysExcIntClear>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rcx
mov    $0x400f900c,%eax
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<SysExcIntClear>:
mov    %rdi,0x400f900c
40
ret

LLVM IR (-O0):
define void @SysExcIntClear(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
store volatile i64 %3, i64* inttoptr (i64 1074761740 to i64*)
ret void
}

LLVM IR (-O2):
define void @SysExcIntClear(i64 %0) {
store volatile i64 %0, i64* inttoptr (i64 1074761740 to i64*)
ret void
}
char *http_status(int alive) { return alive ? "keep-alive" : "close"; }


x86 assembly (clang, -O0):
<http_status>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edx
lea    0xefa(%rip),%rax
lea    0xee8(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<http_status>:
test   %edi,%edi
lea    0xf02(%rip),%rcx
lea    0xef0(%rip),%rax
cmove  %rcx,%rax
ret

LLVM IR (-O0):
@.str = [11 x i8] c"keep-alive\00"
@.str.1 = [6 x i8] c"close\00"
define i8* @http_status(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ne i32 %3, 0
%5 = zext i1 %4 to i64
%6 = select i1 %4, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0)
ret i8* %6
}

LLVM IR (-O2):
@.str = [11 x i8] c"keep-alive\00"
@.str.1 = [6 x i8] c"close\00"
define i8* @http_status(i32 %0) {
%2 = icmp eq i32 %0, 0
%3 = select i1 %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0)
ret i8* %3
}
/* Type definitions */
typedef int /*<<< orphan*/ va_list;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/ *);
int /*<<< orphan*/ vfprintf(int /*<<< orphan*/ *, char *, int /*<<< orphan*/);
void log_entry(FILE *fp, char *format, va_list ap) {
  vfprintf(fp, format, ap);
  fputc('\n', fp);
}


x86 assembly (clang, -O0):
<log_entry>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1040 <vfprintf@plt>
mov    -0x8(%rbp),%rsi
mov    $0xa,%edi
call   1030 <fputc@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<log_entry>:
push   %rbx
mov    %rdi,%rbx
call   1040 <vfprintf@plt>
mov    $0xa,%edi
mov    %rbx,%rsi
pop    %rbx
jmp    1030 <fputc@plt>

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

LLVM IR (-O2):
define void @log_entry(i32* nocapture %0, i8* nocapture %1, i32 %2) {
%4 = tail call i32 @vfprintf(i32* %0, i8* %1, i32 %2)
%5 = tail call i32 @fputc(i8 signext 10, i32* %0)
ret void
}
double dt_air(double t0_dem, double tempk_water, double tempk_desert,
              double dtair_desert) {
  double a, b, result;
  a = (dtair_desert - 0.0) / (tempk_desert - tempk_water);
  b = 0.0 - a * tempk_water;
  result = t0_dem * a + b;
  return result;
}


x86 assembly (clang, -O0):
<dt_air>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
subsd  %xmm1,%xmm0
movsd  -0x18(%rbp),%xmm1
subsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
xorps  %xmm1,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<dt_air>:
subsd  %xmm1,%xmm2
divsd  %xmm2,%xmm3
mulsd  %xmm3,%xmm1
xorpd  %xmm2,%xmm2
subsd  %xmm1,%xmm2
mulsd  %xmm3,%xmm0
addsd  %xmm2,%xmm0
ret

LLVM IR (-O0):
define double @dt_air(double %0, double %1, double %2, double %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
store double %0, double* %5
store double %1, double* %6
store double %2, double* %7
store double %3, double* %8
%12 = load double, double* %8
%13 = fsub double %12, 0.000000e+00
%14 = load double, double* %7
%15 = load double, double* %6
%16 = fsub double %14, %15
%17 = fdiv double %13, %16
store double %17, double* %9
%18 = load double, double* %9
%19 = load double, double* %6
%20 = fneg double %18
%21 = call double @llvm.fmuladd.f64(double %20, double %19, double 0.000000e+00)
store double %21, double* %10
%22 = load double, double* %5
%23 = load double, double* %9
%24 = load double, double* %10
%25 = call double @llvm.fmuladd.f64(double %22, double %23, double %24)
store double %25, double* %11
%26 = load double, double* %11
ret double %26
}

LLVM IR (-O2):
define double @dt_air(double %0, double %1, double %2, double %3) {
%5 = fsub double %2, %1
%6 = fdiv double %3, %5
%7 = fneg double %6
%8 = tail call double @llvm.fmuladd.f64(double %7, double %1, double 0.000000e+00)
%9 = tail call double @llvm.fmuladd.f64(double %0, double %6, double %8)
ret double %9
}
/* Variables and functions */
int /*<<< orphan*/ Root123(int, double);
int /*<<< orphan*/ Root4(double);
int /*<<< orphan*/ Root5(double);
int /*<<< orphan*/ Root6(int, double);
void Roots(int n, double X) {
  if (n <= 3)
    Root123(n, X);
  else if (n == 4)
    Root4(X);
  else if (n == 5)
    Root5(X);
  else
    Root6(n, X);
  return;
}


x86 assembly (clang, -O0):
<Roots>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
cmpl   $0x3,-0x4(%rbp)
jg     116c <Roots+0x2c>
mov    -0x4(%rbp),%edi
movsd  -0x10(%rbp),%xmm0
call   1060 <Root123@plt>
jmp    11b5 <Roots+0x75>
cmpl   $0x4,-0x4(%rbp)
jne    1185 <Roots+0x45>
movsd  -0x10(%rbp),%xmm0
call   1040 <Root4@plt>
jmp    11b0 <Roots+0x70>
cmpl   $0x5,-0x4(%rbp)
jne    119e <Roots+0x5e>
movsd  -0x10(%rbp),%xmm0
call   1030 <Root5@plt>
jmp    11ab <Roots+0x6b>
mov    -0x4(%rbp),%edi
movsd  -0x10(%rbp),%xmm0
call   1050 <Root6@plt>
jmp    11b0 <Roots+0x70>
jmp    11b5 <Roots+0x75>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Roots>:
cmp    $0x3,%edi
jg     114a <Roots+0xa>
jmp    1060 <Root123@plt>
cmp    $0x5,%edi
je     1159 <Roots+0x19>
cmp    $0x4,%edi
jne    115e <Roots+0x1e>
jmp    1040 <Root4@plt>
jmp    1030 <Root5@plt>
jmp    1050 <Root6@plt>

LLVM IR (-O0):
define void @Roots(i32 %0, double %1) {
%3 = alloca i32
%4 = alloca double
store i32 %0, i32* %3
store double %1, double* %4
%5 = load i32, i32* %3
%6 = icmp sle i32 %5, 3
br i1 %6, label %7, label %11
7: ; preds = %2
%8 = load i32, i32* %3
%9 = load double, double* %4
%10 = call i32 @Root123(i32 %8, double %9)
br label %29
11: ; preds = %2
%12 = load i32, i32* %3
%13 = icmp eq i32 %12, 4
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = load double, double* %4
%16 = call i32 @Root4(double %15)
br label %28
17: ; preds = %11
%18 = load i32, i32* %3
%19 = icmp eq i32 %18, 5
br i1 %19, label %20, label %23
20: ; preds = %17
%21 = load double, double* %4
%22 = call i32 @Root5(double %21)
br label %27
23: ; preds = %17
%24 = load i32, i32* %3
%25 = load double, double* %4
%26 = call i32 @Root6(i32 %24, double %25)
br label %27
27: ; preds = %23, %20
br label %28
28: ; preds = %27, %14
br label %29
29: ; preds = %28, %7
ret void
}

LLVM IR (-O2):
define void @Roots(i32 %0, double %1) {
%3 = icmp slt i32 %0, 4
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call i32 @Root123(i32 %0, double %1)
br label %13
6: ; preds = %2
switch i32 %0, label %11 [
i32 4, label %7
i32 5, label %9
]
7: ; preds = %6
%8 = tail call i32 @Root4(double %1)
br label %13
9: ; preds = %6
%10 = tail call i32 @Root5(double %1)
br label %13
11: ; preds = %6
%12 = tail call i32 @Root6(i32 %0, double %1)
br label %13
13: ; preds = %7, %11, %9, %4
ret void
}
void CONF_set_nconf(void) {}


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

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

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

LLVM IR (-O2):
define void @CONF_set_nconf() {
ret void
}
int defined_twice_a(void) { return 1; }


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

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

LLVM IR (-O0):
define i32 @defined_twice_a() {
ret i32 1
}

LLVM IR (-O2):
define i32 @defined_twice_a() {
ret i32 1
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  scalar_t__ serial;
};
typedef TYPE_1__ XKeymapEvent;

/* Variables and functions */
unsigned long get_XKeymapEvent_serial(void *_p) {
  return (unsigned long)((XKeymapEvent *)_p)->serial;
}


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

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

LLVM IR (-O0):
%struct.TYPE_2__ = type { i64 }
define i64 @get_XKeymapEvent_serial(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
ret i64 %6
}

LLVM IR (-O2):
define i64 @get_XKeymapEvent_serial(i8* nocapture %0) {
%2 = bitcast i8* %0 to i64*
%3 = load i64, i64* %2
ret i64 %3
}
void _Unwind_Backtrace() {}


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

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

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

LLVM IR (-O2):
define void @_Unwind_Backtrace() {
ret void
}
__uint128_t __attribute__((no)) ushift_3_ll(unsigned long long data) {
  return (__uint128_t)data << 3;
}


x86 assembly (clang, -O0):
<ushift_3_ll>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x18(%rbp)
mov    -0x18(%rbp),%rcx
mov    %rcx,%rax
shl    $0x3,%rax
shr    $0x3d,%rcx
mov    %rcx,-0x8(%rbp)
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%rdx
pop    %rbp
ret

x86 assembly (clang, -O2):
<ushift_3_ll>:
lea    0x0(,%rdi,8),%rax
shr    $0x3d,%rdi
mov    %rdi,%rdx
ret

LLVM IR (-O0):
define { i64, i64 } @ushift_3_ll(i64 %0) {
%2 = alloca i128
%3 = alloca i64
store i64 %0, i64* %3
%4 = load i64, i64* %3
%5 = zext i64 %4 to i128
%6 = shl i128 %5, 3
store i128 %6, i128* %2
%7 = bitcast i128* %2 to { i64, i64 }*
%8 = load { i64, i64 }, { i64, i64 }* %7
ret { i64, i64 } %8
}

LLVM IR (-O2):
define { i64, i64 } @ushift_3_ll(i64 %0) {
%2 = shl i64 %0, 3
%3 = lshr i64 %0, 61
%4 = insertvalue { i64, i64 } poison, i64 %2, 0
%5 = insertvalue { i64, i64 } %4, i64 %3, 1
ret { i64, i64 } %5
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main(int argc, char *argv[]) {
  int a = 16;
  if (!a >= 15) {
    printf("YES\n");
  } else {
    printf("NO\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x10,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
cmp    $0xf,%eax
jl     1155 <main+0x45>
lea    0xeb5(%rip),%rdi
call   1030 <printf@plt>
jmp    1161 <main+0x51>
lea    0xea9(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
@str = [3 x i8] c"NO\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ linety(int);
int /*<<< orphan*/ linewidth(double);
int /*<<< orphan*/ setgray(double);
void set_line_gwt(double g, double w, int it) {
  setgray(g);
  linewidth(w);
  linety(it);
}


x86 assembly (clang, -O0):
<set_line_gwt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
mov    %edi,-0x14(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1050 <setgray@plt>
movsd  -0x10(%rbp),%xmm0
call   1030 <linewidth@plt>
mov    -0x14(%rbp),%edi
call   1040 <linety@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_line_gwt>:
push   %rbx
sub    $0x10,%rsp
mov    %edi,%ebx
movsd  %xmm1,0x8(%rsp)
call   1050 <setgray@plt>
movsd  0x8(%rsp),%xmm0
call   1030 <linewidth@plt>
mov    %ebx,%edi
add    $0x10,%rsp
pop    %rbx
jmp    1040 <linety@plt>

LLVM IR (-O0):
define void @set_line_gwt(double %0, double %1, i32 %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca i32
store double %0, double* %4
store double %1, double* %5
store i32 %2, i32* %6
%7 = load double, double* %4
%8 = call i32 @setgray(double %7)
%9 = load double, double* %5
%10 = call i32 @linewidth(double %9)
%11 = load i32, i32* %6
%12 = call i32 @linety(i32 %11)
ret void
}

LLVM IR (-O2):
define void @set_line_gwt(double %0, double %1, i32 %2) {
%4 = tail call i32 @setgray(double %0)
%5 = tail call i32 @linewidth(double %1)
%6 = tail call i32 @linety(i32 %2)
ret void
}
/* Variables and functions */
scalar_t__ CHAR_MIN;
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ puts(char *);
int main(void) {
  printf("编译器中的 char 型是");
  if (CHAR_MIN)
    puts("有符号的");
  else
    puts("无符号的 ");
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
call   1040 <printf@plt>
mov    0x2ea6(%rip),%rax
cmpq   $0x0,(%rax)
je     115d <main+0x3d>
lea    0xec9(%rip),%rdi
call   1030 <puts@plt>
jmp    1169 <main+0x49>
lea    0xec5(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <printf@plt>
mov    0x2eb4(%rip),%rax
cmpq   $0x0,(%rax)
lea    0xeea(%rip),%rax
lea    0xed6(%rip),%rdi
cmove  %rax,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [28 x i8] c"\E7\BC\96\E8\AF\91\E5\99\A8\E4\B8\AD\E7\9A\84 char \E5\9E\8B\E6\98\AF\00"
@CHAR_MIN = global i64 0
@.str.1 = [13 x i8] c"\E6\9C\89\E7\AC\A6\E5\8F\B7\E7\9A\84\00"
@.str.2 = [14 x i8] c"\E6\97\A0\E7\AC\A6\E5\8F\B7\E7\9A\84 \00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%3 = load i64, i64* @CHAR_MIN
%4 = icmp ne i64 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = call i32 @puts(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %9
7: ; preds = %0
%8 = call i32 @puts(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
br label %9
9: ; preds = %7, %5
ret i32 0
}

LLVM IR (-O2):
@.str = [28 x i8] c"\E7\BC\96\E8\AF\91\E5\99\A8\E4\B8\AD\E7\9A\84 char \E5\9E\8B\E6\98\AF\00"
@CHAR_MIN = global i64 0
@.str.1 = [13 x i8] c"\E6\9C\89\E7\AC\A6\E5\8F\B7\E7\9A\84\00"
@.str.2 = [14 x i8] c"\E6\97\A0\E7\AC\A6\E5\8F\B7\E7\9A\84 \00"
define i32 @main() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%2 = load i64, i64* @CHAR_MIN
%3 = icmp eq i64 %2, 0
%4 = select i1 %3, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0)
%5 = tail call i32 @puts(i8* dereferenceable(1) %4)
ret i32 0
}
/* Type definitions */
struct stream {
  int dummy;
};

/* Variables and functions */
int decode_atom_format_6_1(unsigned char const *, struct stream *);
int decode_atom_format_6_6(const unsigned char *pkt, struct stream *stream) {
  return decode_atom_format_6_1(pkt, stream);
}


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

x86 assembly (clang, -O2):
<decode_atom_format_6_6>:
jmp    1030 <decode_atom_format_6_1@plt>

LLVM IR (-O0):
%struct.stream = type { i32 }
define i32 @decode_atom_format_6_6(i8* %0, %struct.stream* %1) {
%3 = alloca i8*
%4 = alloca %struct.stream*
store i8* %0, i8** %3
store %struct.stream* %1, %struct.stream** %4
%5 = load i8*, i8** %3
%6 = load %struct.stream*, %struct.stream** %4
%7 = call i32 @decode_atom_format_6_1(i8* %5, %struct.stream* %6)
ret i32 %7
}

LLVM IR (-O2):
%struct.stream = type { i32 }
define i32 @decode_atom_format_6_6(i8* %0, %struct.stream* %1) {
%3 = tail call i32 @decode_atom_format_6_1(i8* %0, %struct.stream* %1)
ret i32 %3
}
vmshello() {}


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

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

LLVM IR (-O0):
define i32 @vmshello() {
%1 = alloca i32
%2 = load i32, i32* %1
ret i32 %2
}

LLVM IR (-O2):
define i32 @vmshello() {
ret i32 undef
}
/* Variables and functions */
scalar_t__ chdir(char *);
int /*<<< orphan*/ cmd_getcwd(int, char **);
int /*<<< orphan*/ perror(char *);
void cmd_setcwd(int argc, char *argv[]) {
  if (argc < 2)
    cmd_getcwd(argc, argv);
  else if (chdir(argv[1]))
    perror("chdir");
}


x86 assembly (clang, -O0):
<cmd_setcwd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x4(%rbp)
jge    115a <cmd_setcwd+0x2a>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <cmd_getcwd@plt>
jmp    1182 <cmd_setcwd+0x52>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1040 <chdir@plt>
cmp    $0x0,%rax
je     117d <cmd_setcwd+0x4d>
lea    0xe88(%rip),%rdi
call   1050 <perror@plt>
jmp    1182 <cmd_setcwd+0x52>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmd_setcwd>:
cmp    $0x1,%edi
jg     113a <cmd_setcwd+0xa>
jmp    1030 <cmd_getcwd@plt>
push   %rax
mov    0x8(%rsi),%rdi
call   1040 <chdir@plt>
test   %rax,%rax
lea    0x8(%rsp),%rsp
jne    114f <cmd_setcwd+0x1f>
ret
lea    0xeaa(%rip),%rdi
jmp    1050 <perror@plt>

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

LLVM IR (-O2):
@.str = [6 x i8] c"chdir\00"
define void @cmd_setcwd(i32 %0, i8** %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call i32 @cmd_getcwd(i32 %0, i8** %1)
br label %13
6: ; preds = %2
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = tail call i64 @chdir(i8* %8)
%10 = icmp eq i64 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %6
%12 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %13
13: ; preds = %6, %11, %4
ret void
}
void SSL_set_read_ahead(void) {}


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

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

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

LLVM IR (-O2):
define void @SSL_set_read_ahead() {
ret void
}
/* Variables and functions */
void DebugP_log4(const char *format, uintptr_t p1, uintptr_t p2, uintptr_t p3,
                 uintptr_t p4) {}


x86 assembly (clang, -O0):
<DebugP_log4>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @DebugP_log4(i8* %0, i64 %1, i64 %2, i64 %3, i64 %4) {
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
store i8* %0, i8** %6
store i64 %1, i64* %7
store i64 %2, i64* %8
store i64 %3, i64* %9
store i64 %4, i64* %10
ret void
}

LLVM IR (-O2):
define void @DebugP_log4(i8* nocapture %0, i64 %1, i64 %2, i64 %3, i64 %4) {
ret void
}
void InterpolatePlane() {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ __infer_nondet_int();
wint_t towctrans(wint_t wc, wctrans_t desc) { return __infer_nondet_int(); }


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

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

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

LLVM IR (-O2):
define i32 @towctrans(i32 %0, i32 %1) {
%3 = tail call i32 (...) @__infer_nondet_int()
ret i32 %3
}
void midi_uninit(void) {}


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

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

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

LLVM IR (-O2):
define void @midi_uninit() {
ret void
}
/* Variables and functions */
scalar_t__ avx_enabled();
int tst_audit4_aux();
int do_test(void) {
  if (avx_enabled())
    return tst_audit4_aux();
  else
    return 77;
}


x86 assembly (clang, -O0):
<do_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1040 <avx_enabled@plt>
cmp    $0x0,%rax
je     1148 <do_test+0x28>
mov    $0x0,%al
call   1030 <tst_audit4_aux@plt>
mov    %eax,-0x4(%rbp)
jmp    114f <do_test+0x2f>
movl   $0x4d,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_test>:
push   %rax
xor    %eax,%eax
call   1040 <avx_enabled@plt>
test   %rax,%rax
je     1135 <do_test+0x15>
xor    %eax,%eax
pop    %rcx
jmp    1030 <tst_audit4_aux@plt>
mov    $0x4d,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @do_test() {
%1 = alloca i32
%2 = call i64 (...) @avx_enabled()
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 (...) @tst_audit4_aux()
store i32 %5, i32* %1
br label %7
6: ; preds = %0
store i32 77, i32* %1
br label %7
7: ; preds = %6, %4
%8 = load i32, i32* %1
ret i32 %8
}

LLVM IR (-O2):
define i32 @do_test() {
%1 = tail call i64 (...) @avx_enabled()
%2 = icmp eq i64 %1, 0
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 (...) @tst_audit4_aux()
br label %5
5: ; preds = %0, %3
%6 = phi i32 [ %4, %3 ], [ 77, %0 ]
ret i32 %6
}
void fn00401C46() { return; }


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

x86 assembly (clang, -O2):
ret

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

LLVM IR (-O2):
define void @fn00401C46() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ GaussSeidel(int, int, double *, double *, double *);
extern void SolveGaussSeidel(int n, int ks, double *A, double *x, double *b) {
  GaussSeidel(n, ks, A, x, b);
  return;
}


x86 assembly (clang, -O0):
<SolveGaussSeidel>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%r8
call   1030 <GaussSeidel@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SolveGaussSeidel>:
jmp    1030 <GaussSeidel@plt>

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

LLVM IR (-O2):
define void @SolveGaussSeidel(i32 %0, i32 %1, double* %2, double* %3, double* %4) {
%6 = tail call i32 @GaussSeidel(i32 %0, i32 %1, double* %2, double* %3, double* %4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ stdout;
void print_number(int i) {
  printf("%d\n", i);
  fflush(stdout);
}


x86 assembly (clang, -O0):
<print_number>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xecb(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e9f(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_number>:
push   %rax
mov    %edi,%esi
lea    0xed6(%rip),%rdi
call   1030 <printf@plt>
mov    0x2eaa(%rip),%rax
mov    (%rax),%edi
pop    %rax
jmp    1040 <fflush@plt>

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
@stdout = global i32 0
define void @print_number(i32 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %0)
%3 = load i32, i32* @stdout
%4 = tail call i32 @fflush(i32 %3)
ret void
}
__attribute__((no)) int foo_wrong(int a) {
  void *l = &&failure;
  if (a == 4)
    goto *l;
  return 150;
error:
  return a;
failure:
  return a + 2;
}


x86 assembly (clang, -O0):
<foo_wrong>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
lea    0x27(%rip),%rax
mov    %rax,-0x10(%rbp)
cmpl   $0x4,-0x8(%rbp)
jne    1129 <foo_wrong+0x29>
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    1143 <foo_wrong+0x43>
movl   $0x96,-0x4(%rbp)
jmp    113e <foo_wrong+0x3e>
mov    -0x8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret
mov    -0x18(%rbp),%rax
jmp    *%rax

x86 assembly (clang, -O2):
<foo_wrong>:
cmp    $0x4,%edi
mov    $0x6,%ecx
mov    $0x96,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @foo_wrong(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i8*
store i32 %0, i32* %3
store i8* blockaddress(@foo_wrong, %12), i8** %4
%5 = load i32, i32* %3
%6 = icmp eq i32 %5, 4
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = load i8*, i8** %4
br label %17
9: ; preds = %1
store i32 150, i32* %2
br label %15
10: ; No predecessors!
%11 = load i32, i32* %3
store i32 %11, i32* %2
br label %15
12: ; preds = %17
%13 = load i32, i32* %3
%14 = add nsw i32 %13, 2
store i32 %14, i32* %2
br label %15
15: ; preds = %12, %10, %9
%16 = load i32, i32* %2
ret i32 %16
17: ; preds = %7
%18 = phi i8* [ %8, %7 ]
indirectbr i8* %18, [label %12]
}

LLVM IR (-O2):
define i32 @foo_wrong(i32 %0) {
%2 = icmp eq i32 %0, 4
%3 = select i1 %2, i32 6, i32 150
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ sprintf(char *, char *, char *);
scalar_t__ system(char *);
void mkdir(char *s) {
  char shellCommand[64];
  sprintf(shellCommand, "mkdir %s", s);
  if (0 != system(shellCommand)) {
    puts("mkdir failed");
    exit(-1);
  }
}


x86 assembly (clang, -O0):
<mkdir>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x50(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xea5(%rip),%rsi
call   1050 <sprintf@plt>
lea    -0x50(%rbp),%rdi
call   1040 <system@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
je     118d <mkdir+0x4d>
lea    0xe8b(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%edi
call   1060 <exit@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mkdir>:
push   %rbx
sub    $0x40,%rsp
mov    %rdi,%rdx
lea    0xeb1(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1050 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <system@plt>
test   %rax,%rax
jne    116d <mkdir+0x2d>
add    $0x40,%rsp
pop    %rbx
ret
lea    0xe95(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"mkdir %s\00"
@.str.1 = [13 x i8] c"mkdir failed\00"
define void @mkdir(i8* %0) {
%2 = alloca i8*
%3 = alloca [64 x i8]
store i8* %0, i8** %2
%4 = getelementptr inbounds [64 x i8], [64 x i8]* %3, i64 0, i64 0
%5 = load i8*, i8** %2
%6 = call i32 @sprintf(i8* %4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = getelementptr inbounds [64 x i8], [64 x i8]* %3, i64 0, i64 0
%8 = call i64 @system(i8* %7)
%9 = icmp ne i64 0, %8
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = call i32 @puts(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 @exit(i32 -1)
unreachable
13: ; preds = %1
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"mkdir %s\00"
@.str.1 = [13 x i8] c"mkdir failed\00"
define void @mkdir(i8* %0) {
%2 = alloca [64 x i8]
%3 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%4 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* %0)
%5 = call i64 @system(i8* %3)
%6 = icmp eq i64 %5, 0
br i1 %6, label %10, label %7
7: ; preds = %1
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%9 = tail call i32 @exit(i32 -1)
unreachable
10: ; preds = %1
ret void
}
/* Variables and functions */
int process();
int main(int argc, char **argv) { return process(); }


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1030 <process@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @process()
ret i32 %3
}
void init_usb_hardware(void) {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @RTVfsFileFromRTFile() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, size_t);
int /*<<< orphan*/ stderr;
void lmalloc_oom(size_t size) {
  fprintf(stderr, "lmalloc: Out of memory trying to allocate %zu bytes\n",
          size);
  fflush(stderr);
  abort();
}


x86 assembly (clang, -O0):
<lmalloc_oom>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2e9d(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xeb0(%rip),%rsi
call   1040 <fprintf@plt>
mov    0x2e84(%rip),%rax
mov    (%rax),%edi
call   1050 <fflush@plt>
mov    $0x0,%al
call   1030 <abort@plt>

x86 assembly (clang, -O2):
<lmalloc_oom>:
push   %rbx
mov    %rdi,%rdx
mov    0x2ea5(%rip),%rbx
mov    (%rbx),%edi
lea    0xebc(%rip),%rsi
call   1040 <fprintf@plt>
mov    (%rbx),%edi
call   1050 <fflush@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [53 x i8] c"lmalloc: Out of memory trying to allocate %zu bytes\0A\00"
define void @lmalloc_oom(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i32, i32* @stderr
%4 = load i64, i64* %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0), i64 %4)
%6 = load i32, i32* @stderr
%7 = call i32 @fflush(i32 %6)
%8 = call i32 (...) @abort()
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [53 x i8] c"lmalloc: Out of memory trying to allocate %zu bytes\0A\00"
define void @lmalloc_oom(i64 %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0), i64 %0)
%4 = load i32, i32* @stderr
%5 = tail call i32 @fflush(i32 %4)
%6 = tail call i32 (...) @abort()
unreachable
}
void ff_hevc_put_hevc_uni_w_epel_hv64_8_sse4() {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @g_value_set_object() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ asst();
int /*<<< orphan*/ callt();
int /*<<< orphan*/ part();
main() {
  asst();
  part();
  callt();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @asst()
%2 = tail call i32 (...) @part()
%3 = tail call i32 (...) @callt()
ret i32 0
}
OP(ed, d7) { illegal_2(); }


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

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

LLVM IR (-O0):
define i32 @OP(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%6 = call i32 (...) @illegal_2()
%7 = load i32, i32* %3
ret i32 %7
}

LLVM IR (-O2):
define i32 @OP(i32 %0, i32 %1) {
%3 = tail call i32 (...) @illegal_2()
ret i32 undef
}
/* Variables and functions */
scalar_t__ __VERIFIER_nondet_int();
int /*<<< orphan*/ my_thread1();
void *thr2(void *arg) {
  if (__VERIFIER_nondet_int())
    my_thread1();
  return 0;
}


x86 assembly (clang, -O0):
<thr2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x0,%al
call   1040 <__VERIFIER_nondet_int@plt>
cmp    $0x0,%rax
je     1144 <thr2+0x24>
mov    $0x0,%al
call   1030 <my_thread1@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<thr2>:
push   %rax
xor    %eax,%eax
call   1040 <__VERIFIER_nondet_int@plt>
test   %rax,%rax
je     1134 <thr2+0x14>
xor    %eax,%eax
call   1030 <my_thread1@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i8* @thr2(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i64 (...) @__VERIFIER_nondet_int()
%4 = icmp ne i64 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 (...) @my_thread1()
br label %7
7: ; preds = %5, %1
ret i8* null
}

LLVM IR (-O2):
define noalias i8* @thr2(i8* nocapture readnone %0) {
%2 = tail call i64 (...) @__VERIFIER_nondet_int()
%3 = icmp eq i64 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 (...) @my_thread1()
br label %6
6: ; preds = %4, %1
ret i8* null
}
void Delay_ms(unsigned int value) {
  unsigned int i, j;
  volatile int dummy = 0;
  for (i = 0; i < value; i++) {
    for (j = 0; j < 2000; j++) {
      dummy++;
    }
  }
}


x86 assembly (clang, -O0):
<Delay_ms>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x4(%rbp),%eax
jae    115f <Delay_ms+0x5f>
movl   $0x0,-0xc(%rbp)
cmpl   $0x7d0,-0xc(%rbp)
jae    114c <Delay_ms+0x4c>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1128 <Delay_ms+0x28>
jmp    1151 <Delay_ms+0x51>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1115 <Delay_ms+0x15>
pop    %rbp
ret

x86 assembly (clang, -O2):
<Delay_ms>:
movl   $0x0,-0x4(%rsp)
test   %edi,%edi
je     1145 <Delay_ms+0x45>
xor    %eax,%eax
xchg   %ax,%ax
mov    $0x7d0,%ecx
cs nopw 0x0(%rax,%rax,1)
nop
addl   $0x1,-0x4(%rsp)
addl   $0x1,-0x4(%rsp)
addl   $0x1,-0x4(%rsp)
addl   $0x1,-0x4(%rsp)
addl   $0x1,-0x4(%rsp)
add    $0xfffffffb,%ecx
jne    1120 <Delay_ms+0x20>
add    $0x1,%eax
cmp    %edi,%eax
jne    1110 <Delay_ms+0x10>
ret

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

LLVM IR (-O2):
define void @Delay_ms(i32 %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
store volatile i32 0, i32* %2
%4 = icmp eq i32 %0, 0
br i1 %4, label %24, label %5
5: ; preds = %1, %21
%6 = phi i32 [ %22, %21 ], [ 0, %1 ]
br label %7
7: ; preds = %7, %5
%8 = phi i32 [ 0, %5 ], [ %19, %7 ]
%9 = load volatile i32, i32* %2
%10 = add nsw i32 %9, 1
store volatile i32 %10, i32* %2
%11 = load volatile i32, i32* %2
%12 = add nsw i32 %11, 1
store volatile i32 %12, i32* %2
%13 = load volatile i32, i32* %2
%14 = add nsw i32 %13, 1
store volatile i32 %14, i32* %2
%15 = load volatile i32, i32* %2
%16 = add nsw i32 %15, 1
store volatile i32 %16, i32* %2
%17 = load volatile i32, i32* %2
%18 = add nsw i32 %17, 1
store volatile i32 %18, i32* %2
%19 = add nuw nsw i32 %8, 5
%20 = icmp eq i32 %19, 2000
br i1 %20, label %21, label %7
21: ; preds = %7
%22 = add nuw i32 %6, 1
%23 = icmp eq i32 %22, %0
br i1 %23, label %24, label %5
24: ; preds = %21, %1
ret void
}
/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ test_parallel_search();
int main(int argc, char **argv) {
  test_parallel_search();
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1030 <test_parallel_search@plt>
mov    0x2eac(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <test_parallel_search@plt>
mov    0x2ec1(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @test_parallel_search()
%4 = load i32, i32* @EXIT_SUCCESS
ret i32 %4
}
/* Variables and functions */
scalar_t__ RAND_MAX;
scalar_t__ rand();
double rn() {
  double result;
  result = (double)rand() / (double)RAND_MAX;
  return result;
}


x86 assembly (clang, -O0):
<rn>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <rand@plt>
cvtsi2sd %rax,%xmm0
mov    0x2ebd(%rip),%rax
cvtsi2sdq (%rax),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rn>:
push   %rax
xor    %eax,%eax
call   1030 <rand@plt>
cvtsi2sd %rax,%xmm0
mov    0x2ec4(%rip),%rax
cvtsi2sdq (%rax),%xmm1
divsd  %xmm1,%xmm0
pop    %rax
ret

LLVM IR (-O0):
@RAND_MAX = global i64 0
define double @rn() {
%1 = alloca double
%2 = call i64 (...) @rand()
%3 = sitofp i64 %2 to double
%4 = load i64, i64* @RAND_MAX
%5 = sitofp i64 %4 to double
%6 = fdiv double %3, %5
store double %6, double* %1
%7 = load double, double* %1
ret double %7
}

LLVM IR (-O2):
@RAND_MAX = global i64 0
define double @rn() {
%1 = tail call i64 (...) @rand()
%2 = sitofp i64 %1 to double
%3 = load i64, i64* @RAND_MAX
%4 = sitofp i64 %3 to double
%5 = fdiv double %2, %4
ret double %5
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void get_bearer(char *bname) { printf("%s\n", bname); }


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

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

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

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
define void @get_bearer(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fputc(short, int /*<<< orphan*/ *);
short fputword(short n, FILE *file) {
  fputc(n & 0xff, file);
  fputc((n >> 8) & 0xff, file);
  return n;
}


x86 assembly (clang, -O0):
<fputword>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
mov    %rsi,-0x10(%rbp)
movswl -0x2(%rbp),%eax
and    $0xff,%eax
mov    -0x10(%rbp),%rsi
movswl %ax,%edi
call   1030 <fputc@plt>
movswl -0x2(%rbp),%eax
sar    $0x8,%eax
and    $0xff,%eax
mov    -0x10(%rbp),%rsi
movswl %ax,%edi
call   1030 <fputc@plt>
movswl -0x2(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fputword>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %edi,%ebx
movzbl %bl,%edi
call   1030 <fputc@plt>
movzbl %bh,%edi
mov    %r14,%rsi
call   1030 <fputc@plt>
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define signext i16 @fputword(i16 signext %0, i32* %1) {
%3 = alloca i16
%4 = alloca i32*
store i16 %0, i16* %3
store i32* %1, i32** %4
%5 = load i16, i16* %3
%6 = sext i16 %5 to i32
%7 = and i32 %6, 255
%8 = trunc i32 %7 to i16
%9 = load i32*, i32** %4
%10 = call i32 @fputc(i16 signext %8, i32* %9)
%11 = load i16, i16* %3
%12 = sext i16 %11 to i32
%13 = ashr i32 %12, 8
%14 = and i32 %13, 255
%15 = trunc i32 %14 to i16
%16 = load i32*, i32** %4
%17 = call i32 @fputc(i16 signext %15, i32* %16)
%18 = load i16, i16* %3
ret i16 %18
}

LLVM IR (-O2):
define signext i16 @fputword(i16 returned signext %0, i32* nocapture %1) {
%3 = and i16 %0, 255
%4 = tail call i32 @fputc(i16 signext %3, i32* %1)
%5 = lshr i16 %0, 8
%6 = tail call i32 @fputc(i16 signext %5, i32* %1)
ret i16 %0
}