xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ gall_peter(long double *, long double *);
int project(long double *in, long double *out) {
  long double in2[2];
  in2[0] = in[0];
  in2[1] = in[1];
  gall_peter(in2, out);
  return 1;
}


x86 assembly (clang, -O0):
<project>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
fldt   (%rax)
fstpt  -0x30(%rbp)
mov    -0x8(%rbp),%rax
fldt   0x10(%rax)
fstpt  -0x20(%rbp)
lea    -0x30(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <gall_peter@plt>
mov    $0x1,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<project>:
sub    $0x28,%rsp
fldt   (%rdi)
fstpt  (%rsp)
fldt   0x10(%rdi)
fstpt  0x10(%rsp)
mov    %rsp,%rdi
call   1030 <gall_peter@plt>
mov    $0x1,%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
define i32 @project(x86_fp80* %0, x86_fp80* %1) {
%3 = alloca x86_fp80*
%4 = alloca x86_fp80*
%5 = alloca [2 x x86_fp80]
store x86_fp80* %0, x86_fp80** %3
store x86_fp80* %1, x86_fp80** %4
%6 = load x86_fp80*, x86_fp80** %3
%7 = getelementptr inbounds x86_fp80, x86_fp80* %6, i64 0
%8 = load x86_fp80, x86_fp80* %7
%9 = getelementptr inbounds [2 x x86_fp80], [2 x x86_fp80]* %5, i64 0, i64 0
store x86_fp80 %8, x86_fp80* %9
%10 = load x86_fp80*, x86_fp80** %3
%11 = getelementptr inbounds x86_fp80, x86_fp80* %10, i64 1
%12 = load x86_fp80, x86_fp80* %11
%13 = getelementptr inbounds [2 x x86_fp80], [2 x x86_fp80]* %5, i64 0, i64 1
store x86_fp80 %12, x86_fp80* %13
%14 = getelementptr inbounds [2 x x86_fp80], [2 x x86_fp80]* %5, i64 0, i64 0
%15 = load x86_fp80*, x86_fp80** %4
%16 = call i32 @gall_peter(x86_fp80* %14, x86_fp80* %15)
ret i32 1
}

LLVM IR (-O2):
define i32 @project(x86_fp80* nocapture %0, x86_fp80* %1) {
%3 = alloca [2 x x86_fp80]
%4 = bitcast [2 x x86_fp80]* %3 to i8*
%5 = load x86_fp80, x86_fp80* %0
%6 = getelementptr inbounds [2 x x86_fp80], [2 x x86_fp80]* %3, i64 0, i64 0
store x86_fp80 %5, x86_fp80* %6
%7 = getelementptr inbounds x86_fp80, x86_fp80* %0, i64 1
%8 = load x86_fp80, x86_fp80* %7
%9 = getelementptr inbounds [2 x x86_fp80], [2 x x86_fp80]* %3, i64 0, i64 1
store x86_fp80 %8, x86_fp80* %9
%10 = call i32 @gall_peter(x86_fp80* %6, x86_fp80* %1)
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ abort();
void *calloc(size_t, size_t);
int /*<<< orphan*/ perror(char *);
void *xcalloc(size_t nmemb, size_t size) {
  void *ptr = calloc(nmemb, size);
  if (ptr == NULL) {
    perror("xcalloc: out of memory.\n");
    abort();
    return NULL;
  }
  return ptr;
}


x86 assembly (clang, -O0):
<xcalloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <calloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    116f <xcalloc+0x3f>
lea    0xe9d(%rip),%rdi
call   1050 <perror@plt>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xcalloc>:
push   %rax
call   1040 <calloc@plt>
test   %rax,%rax
je     113d <xcalloc+0xd>
pop    %rcx
ret
lea    0xebc(%rip),%rdi
call   1050 <perror@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"xcalloc: out of memory.\0A\00"
define i8* @xcalloc(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
%5 = alloca i8*
store i64 %0, i64* %3
store i64 %1, i64* %4
%6 = load i64, i64* %3
%7 = load i64, i64* %4
%8 = call i8* @calloc(i64 %6, i64 %7)
store i8* %8, i8** %5
%9 = load i8*, i8** %5
%10 = icmp eq i8* %9, null
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = call i32 @perror(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%13 = call i32 (...) @abort()
unreachable
14: ; preds = %2
%15 = load i8*, i8** %5
ret i8* %15
}

LLVM IR (-O2):
@.str = [25 x i8] c"xcalloc: out of memory.\0A\00"
define noalias i8* @xcalloc(i64 %0, i64 %1) {
%3 = tail call i8* @calloc(i64 %0, i64 %1)
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %8
5: ; preds = %2
%6 = tail call i32 @perror(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 (...) @abort()
unreachable
8: ; preds = %2
ret i8* %3
}
/* Variables and functions */
int _iscntrl(int);
int iscntrl(int c) { return _iscntrl(c); }


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

x86 assembly (clang, -O2):
<iscntrl>:
jmp    1030 <_iscntrl@plt>

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

LLVM IR (-O2):
define i32 @iscntrl(i32 %0) {
%2 = tail call i32 @_iscntrl(i32 %0)
ret i32 %2
}
/* Type definitions */
typedef int /*<<< orphan*/ va_list;

/* Variables and functions */
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int vfprintf(int /*<<< orphan*/, char const *, int /*<<< orphan*/);
int sarvprintf_std_error(const char *format, va_list args) {
  int res = vfprintf(stderr, format, args);
  fflush(stderr);
  return res;
}


x86 assembly (clang, -O0):
<sarvprintf_std_error>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    0x2eaa(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
call   1040 <vfprintf@plt>
mov    %eax,-0x10(%rbp)
mov    0x2e92(%rip),%rax
mov    (%rax),%edi
call   1030 <fflush@plt>
mov    -0x10(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sarvprintf_std_error>:
push   %r14
push   %rbx
push   %rax
mov    %esi,%edx
mov    %rdi,%rsi
mov    0x2eb0(%rip),%r14
mov    (%r14),%edi
call   1040 <vfprintf@plt>
mov    %eax,%ebx
mov    (%r14),%edi
call   1030 <fflush@plt>
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@stderr = global i32 0
define i32 @sarvprintf_std_error(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%6 = load i32, i32* @stderr
%7 = load i8*, i8** %3
%8 = load i32, i32* %4
%9 = call i32 @vfprintf(i32 %6, i8* %7, i32 %8)
store i32 %9, i32* %5
%10 = load i32, i32* @stderr
%11 = call i32 @fflush(i32 %10)
%12 = load i32, i32* %5
ret i32 %12
}

LLVM IR (-O2):
@stderr = global i32 0
define i32 @sarvprintf_std_error(i8* %0, i32 %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 @vfprintf(i32 %3, i8* %0, i32 %1)
%5 = load i32, i32* @stderr
%6 = tail call i32 @fflush(i32 %5)
ret i32 %4
}
void main() { asm("nop"); }


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

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

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

LLVM IR (-O2):
define void @main() {
tail call void asm sideeffect "nop", "~{dirflag},~{fpsr},~{flags}"()
ret void
}
void *ERR_PTR(long errornr) { return (void *)errornr; }


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

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

LLVM IR (-O0):
define i8* @ERR_PTR(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = inttoptr i64 %3 to i8*
ret i8* %4
}

LLVM IR (-O2):
define i8* @ERR_PTR(i64 %0) {
%2 = inttoptr i64 %0 to i8*
ret i8* %2
}
/* Variables and functions */
int f(int);
int main() {
  for (int i, j = 0, k; i = f(j); j += i) {
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <f@plt>
mov    %eax,-0x8(%rbp)
cmp    $0x0,%eax
je     114d <main+0x3d>
jmp    113f <main+0x2f>
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    1126 <main+0x16>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %ebx,%edi
call   1030 <f@plt>
add    %eax,%ebx
test   %eax,%eax
jne    1120 <main+0x10>
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @main() {
br label %1
1: ; preds = %1, %0
%2 = phi i32 [ 0, %0 ], [ %5, %1 ]
%3 = tail call i32 @f(i32 %2)
%4 = icmp eq i32 %3, 0
%5 = add nsw i32 %3, %2
br i1 %4, label %6, label %1
6: ; preds = %1
ret i32 0
}
int is_valid_frame_id_char(char c) {
  if (c >= 'A' && c <= 'Z')
    return 1;
  if (c >= '0' && c <= '9')
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<is_valid_frame_id_char>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x41,%eax
jl     1130 <is_valid_frame_id_char+0x30>
movsbl -0x5(%rbp),%eax
cmp    $0x5a,%eax
jg     1130 <is_valid_frame_id_char+0x30>
movl   $0x1,-0x4(%rbp)
jmp    115d <is_valid_frame_id_char+0x5d>
movsbl -0x5(%rbp),%eax
cmp    $0x30,%eax
jl     1156 <is_valid_frame_id_char+0x56>
movsbl -0x5(%rbp),%eax
cmp    $0x39,%eax
jg     1156 <is_valid_frame_id_char+0x56>
movl   $0x1,-0x4(%rbp)
jmp    115d <is_valid_frame_id_char+0x5d>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_valid_frame_id_char>:
lea    -0x41(%rdi),%eax
cmp    $0x1a,%al
setb   %al
add    $0xd0,%dil
cmp    $0xa,%dil
setb   %cl
or     %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
define i32 @is_valid_frame_id_char(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
%6 = icmp sge i32 %5, 65
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load i8, i8* %3
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 90
br i1 %10, label %11, label %12
11: ; preds = %7
store i32 1, i32* %2
br label %22
12: ; preds = %7, %1
%13 = load i8, i8* %3
%14 = sext i8 %13 to i32
%15 = icmp sge i32 %14, 48
br i1 %15, label %16, label %21
16: ; preds = %12
%17 = load i8, i8* %3
%18 = sext i8 %17 to i32
%19 = icmp sle i32 %18, 57
br i1 %19, label %20, label %21
20: ; preds = %16
store i32 1, i32* %2
br label %22
21: ; preds = %16, %12
store i32 0, i32* %2
br label %22
22: ; preds = %21, %20, %11
%23 = load i32, i32* %2
ret i32 %23
}

LLVM IR (-O2):
define i32 @is_valid_frame_id_char(i8 signext %0) {
%2 = add i8 %0, -65
%3 = icmp ult i8 %2, 26
%4 = add i8 %0, -48
%5 = icmp ult i8 %4, 10
%6 = or i1 %3, %5
%7 = zext i1 %6 to i32
ret i32 %7
}
/* Variables and functions */
double median(int /*<<< orphan*/ *, int /*<<< orphan*/, int /*<<< orphan*/ *,
              int /*<<< orphan*/);
double median_opt(int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                  int /*<<< orphan*/);
int test_both_empty() {
  return 0.0 == median(NULL, 0, NULL, 0) && 0.0 == median_opt(NULL, NULL, 0);
}


x86 assembly (clang, -O0):
<test_both_empty>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %eax,%eax
mov    %eax,%edx
xor    %ecx,%ecx
mov    %rdx,%rdi
mov    %ecx,%esi
call   1030 <median@plt>
movaps %xmm0,%xmm1
xor    %eax,%eax
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
mov    %al,-0x1(%rbp)
jne    1176 <test_both_empty+0x56>
jp     1176 <test_both_empty+0x56>
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
mov    %rsi,%rdi
call   1040 <median_opt@plt>
movaps %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
sete   %al
setnp  %cl
and    %cl,%al
mov    %al,-0x1(%rbp)
mov    -0x1(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_both_empty>:
push   %rbx
xor    %ebx,%ebx
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1030 <median@plt>
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1158 <test_both_empty+0x38>
jp     1158 <test_both_empty+0x38>
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1040 <median_opt@plt>
cmpeqsd 0xeb0(%rip),%xmm0
movq   %xmm0,%rbx
and    $0x1,%ebx
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @test_both_empty() {
%1 = call double @median(i32* null, i32 0, i32* null, i32 0)
%2 = fcmp oeq double 0.000000e+00, %1
br i1 %2, label %3, label %6
3: ; preds = %0
%4 = call double @median_opt(i32* null, i32* null, i32 0)
%5 = fcmp oeq double 0.000000e+00, %4
br label %6
6: ; preds = %3, %0
%7 = phi i1 [ false, %0 ], [ %5, %3 ]
%8 = zext i1 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @test_both_empty() {
%1 = tail call double @median(i32* null, i32 0, i32* null, i32 0)
%2 = fcmp oeq double %1, 0.000000e+00
br i1 %2, label %3, label %7
3: ; preds = %0
%4 = tail call double @median_opt(i32* null, i32* null, i32 0)
%5 = fcmp oeq double %4, 0.000000e+00
%6 = zext i1 %5 to i32
br label %7
7: ; preds = %3, %0
%8 = phi i32 [ 0, %0 ], [ %6, %3 ]
ret i32 %8
}
/* Variables and functions */
int f(int);
void main() {
  int a = 0;
  if (a) {
    f(a);
  }
  int b;
  b = f(1);
  if (b) {
  ERROR:
    goto ERROR;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1131 <main+0x21>
mov    -0x4(%rbp),%edi
call   1030 <f@plt>
mov    $0x1,%edi
call   1030 <f@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     1152 <main+0x42>
jmp    114d <main+0x3d>
jmp    114d <main+0x3d>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
call   1030 <f@plt>
test   %eax,%eax
je     1122 <main+0x12>
nop
jmp    1120 <main+0x10>
pop    %rax
ret

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

LLVM IR (-O2):
define void @main() {
%1 = tail call i32 @f(i32 1)
%2 = icmp eq i32 %1, 0
br i1 %2, label %4, label %3
3: ; preds = %0, %3
br label %3
4: ; preds = %0
ret void
}
/* Variables and functions */
float music_get_volume();
float f_music_volume() { return music_get_volume(); }


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

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

LLVM IR (-O0):
define float @f_music_volume() {
%1 = call float (...) @music_get_volume()
ret float %1
}

LLVM IR (-O2):
define float @f_music_volume() {
%1 = tail call float (...) @music_get_volume()
ret float %1
}
void test122_TestProg_targetInit__I() {}


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

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

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

LLVM IR (-O2):
define void @test122_TestProg_targetInit__I() {
ret void
}
/* Variables and functions */
float fast_log10(float);
float fast_coefficient_to_dB(float coeff) { return 20.0f * fast_log10(coeff); }


x86 assembly (clang, -O0):
<fast_coefficient_to_dB>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <fast_log10@plt>
movaps %xmm0,%xmm1
movss  0xece(%rip),%xmm0
mulss  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fast_coefficient_to_dB>:
push   %rax
call   1030 <fast_log10@plt>
mulss  0xee2(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @fast_coefficient_to_dB(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = call float @fast_log10(float %3)
%5 = fmul float 2.000000e+01, %4
ret float %5
}

LLVM IR (-O2):
define float @fast_coefficient_to_dB(float %0) {
%2 = tail call float @fast_log10(float %0)
%3 = fmul float %2, 2.000000e+01
ret float %3
}
void gl2psPrintGzipFooter(void) {}


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

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

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

LLVM IR (-O2):
define void @gl2psPrintGzipFooter() {
ret void
}
/* Variables and functions */
int F2_cc_nu_p(double, double);
double F1_nc_p(double xx, double Q2) { return F2_cc_nu_p(xx, Q2) / 2 / xx; }


x86 assembly (clang, -O0):
<F1_nc_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_nc_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_nc_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_nc_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 */
bool nrf51_errata_69(void) { return false; }


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

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

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

LLVM IR (-O2):
define i32 @nrf51_errata_69() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ sesc_simulation_mark_id(int);
void sesc_simulation_mark_id_(int id) { sesc_simulation_mark_id(id); }


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

x86 assembly (clang, -O2):
<sesc_simulation_mark_id_>:
jmp    1030 <sesc_simulation_mark_id@plt>

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

LLVM IR (-O2):
define void @sesc_simulation_mark_id_(i32 %0) {
%2 = tail call i32 @sesc_simulation_mark_id(i32 %0)
ret void
}
void INT_Excep_TPU1_TCI1V(void) {}


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

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

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

LLVM IR (-O2):
define void @INT_Excep_TPU1_TCI1V() {
ret void
}
/* Variables and functions */
scalar_t__ EOF;
scalar_t__ getchar();
int /*<<< orphan*/ printf(char *, int);
void main() {
  int a;
  while (a = (getchar() != EOF)) {
    printf("%d\n", a);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1040 <getchar@plt>
mov    0x2eb2(%rip),%rcx
cmp    (%rcx),%rax
setne  %al
mov    %al,%cl
and    $0x1,%cl
movzbl %cl,%ecx
mov    %ecx,-0x4(%rbp)
test   $0x1,%al
jne    1154 <main+0x34>
jmp    1168 <main+0x48>
mov    -0x4(%rbp),%esi
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
jmp    1128 <main+0x8>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1040 <getchar@plt>
mov    0x2eb6(%rip),%r14
cmp    (%r14),%rax
je     1159 <main+0x39>
lea    0xec2(%rip),%rbx
xchg   %ax,%ax
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
cmp    (%r14),%rax
jne    1140 <main+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@EOF = global i64 0
@.str = [4 x i8] c"%d\0A\00"
define void @main() {
%1 = alloca i32
br label %2
2: ; preds = %7, %0
%3 = call i64 (...) @getchar()
%4 = load i64, i64* @EOF
%5 = icmp ne i64 %3, %4
%6 = zext i1 %5 to i32
store i32 %6, i32* %1
br i1 %5, label %7, label %10
7: ; preds = %2
%8 = load i32, i32* %1
%9 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %8)
br label %2
10: ; preds = %2
ret void
}

LLVM IR (-O2):
@EOF = global i64 0
@.str = [4 x i8] c"%d\0A\00"
define void @main() {
%1 = tail call i64 (...) @getchar()
%2 = load i64, i64* @EOF
%3 = icmp eq i64 %1, %2
br i1 %3, label %9, label %4
4: ; preds = %0, %4
%5 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 1)
%6 = tail call i64 (...) @getchar()
%7 = load i64, i64* @EOF
%8 = icmp eq i64 %6, %7
br i1 %8, label %9, label %4
9: ; preds = %4, %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ SerialWriteChar(int);
void SerialDataEnd() {
  SerialWriteChar((0XFE));
  SerialWriteChar((0XFF));
}


x86 assembly (clang, -O0):
<SerialDataEnd>:
push   %rbp
mov    %rsp,%rbp
mov    $0xfe,%edi
call   1030 <SerialWriteChar@plt>
mov    $0xff,%edi
call   1030 <SerialWriteChar@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<SerialDataEnd>:
push   %rax
mov    $0xfe,%edi
call   1030 <SerialWriteChar@plt>
mov    $0xff,%edi
pop    %rax
jmp    1030 <SerialWriteChar@plt>

LLVM IR (-O0):
define void @SerialDataEnd() {
%1 = call i32 @SerialWriteChar(i32 254)
%2 = call i32 @SerialWriteChar(i32 255)
ret void
}

LLVM IR (-O2):
define void @SerialDataEnd() {
%1 = tail call i32 @SerialWriteChar(i32 254)
%2 = tail call i32 @SerialWriteChar(i32 255)
ret void
}
int main() {
  int a = -1;
  static int b = -2147483647 - 1;
  static int c = 0;
  int t = a - (b - c);
  if (t != 2147483647)
    __builtin_abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xffffffff,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    0x2ef9(%rip),%ecx
sub    0x2efb(%rip),%ecx
sub    %ecx,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x7fffffff,-0xc(%rbp)
je     114c <main+0x3c>
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@main.b = internal global i32 -2147483648
@main.c = internal global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 -1, i32* %2
%4 = load i32, i32* %2
%5 = load i32, i32* @main.b
%6 = load i32, i32* @main.c
%7 = sub nsw i32 %5, %6
%8 = sub nsw i32 %4, %7
store i32 %8, i32* %3
%9 = load i32, i32* %3
%10 = icmp ne i32 %9, 2147483647
br i1 %10, label %11, label %12
11: ; preds = %0
unreachable
12: ; preds = %0
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
void outl_p(unsigned int value, unsigned short port) {
  __asm__ __volatile__("out"
                       "l"
                       " %"
                       "0,%"
                       "w"
                       "1"
                       "\noutb %%al,$0x80"
                       :
                       : "a"(value), "Nd"(port));
}


x86 assembly (clang, -O0):
<outl_p>:
push   %rbp
mov    %rsp,%rbp
mov    %si,%ax
mov    %edi,-0x4(%rbp)
mov    %ax,-0x6(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x6(%rbp),%dx
out    %eax,(%dx)
out    %al,$0x80
pop    %rbp
ret

x86 assembly (clang, -O2):
<outl_p>:
mov    %esi,%edx
mov    %edi,%eax
out    %eax,(%dx)
out    %al,$0x80
ret

LLVM IR (-O0):
define void @outl_p(i32 %0, i16 zeroext %1) {
%3 = alloca i32
%4 = alloca i16
store i32 %0, i32* %3
store i16 %1, i16* %4
%5 = load i32, i32* %3
%6 = load i16, i16* %4
ret void
}

LLVM IR (-O2):
define void @outl_p(i32 %0, i16 zeroext %1) {
tail call void asm sideeffect "outl $0,${1:w}\0Aoutb %al,$$0x80", "{ax},N{dx},~{dirflag},~{fpsr},~{flags}"(i32 %0, i16 %1)
ret void
}
void adapt_vt_ext_close(void) {}


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

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

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

LLVM IR (-O2):
define void @adapt_vt_ext_close() {
ret void
}
/* Variables and functions */
char *basename(char *);
char *os_basename(char *path) { return path == NULL ? NULL : basename(path); }


x86 assembly (clang, -O0):
<os_basename>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1132 <os_basename+0x22>
xor    %eax,%eax
mov    %rax,-0x10(%rbp)
jmp    113f <os_basename+0x2f>
mov    -0x8(%rbp),%rdi
call   1030 <basename@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<os_basename>:
test   %rdi,%rdi
je     111a <os_basename+0xa>
jmp    1030 <basename@plt>
xor    %eax,%eax
ret

LLVM IR (-O0):
define i8* @os_basename(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %6
5: ; preds = %1
br label %9
6: ; preds = %1
%7 = load i8*, i8** %2
%8 = call i8* @basename(i8* %7)
br label %9
9: ; preds = %6, %5
%10 = phi i8* [ null, %5 ], [ %8, %6 ]
ret i8* %10
}

LLVM IR (-O2):
define i8* @os_basename(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i8* @basename(i8* %0)
br label %5
5: ; preds = %1, %3
%6 = phi i8* [ %4, %3 ], [ null, %1 ]
ret i8* %6
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main() {
  int num = 465;
  switch (num % 2 + num % 3 + num % 5) {
  case 0:
    printf("It divides.\n");
    break;
  default:
    printf("It doesn't divide.");
    break;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1d1,-0x8(%rbp)
movslq -0x8(%rbp),%rdx
mov    %edx,%ecx
mov    %ecx,%eax
shr    $0x1f,%eax
mov    %ecx,%esi
add    %eax,%esi
and    $0xfffffffe,%esi
mov    %ecx,%eax
sub    %esi,%eax
imul   $0x55555556,%rdx,%rdi
mov    %rdi,%rsi
shr    $0x3f,%rsi
shr    $0x20,%rdi
add    %esi,%edi
mov    %edi,%esi
lea    (%rsi,%rsi,2),%edi
mov    %ecx,%esi
sub    %edi,%esi
add    %esi,%eax
imul   $0x66666667,%rdx,%rsi
mov    %rsi,%rdx
shr    $0x3f,%rdx
sar    $0x21,%rsi
add    %edx,%esi
mov    %esi,%edx
lea    (%rdx,%rdx,4),%edx
sub    %edx,%ecx
add    %ecx,%eax
jne    1194 <main+0x84>
jmp    1183 <main+0x73>
lea    0xe76(%rip),%rdi
call   1030 <printf@plt>
jmp    11a0 <main+0x90>
lea    0xe72(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [13 x i8] c"It divides.\0A\00"
@.str.1 = [19 x i8] c"It doesn't divide.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 465, i32* %2
%3 = load i32, i32* %2
%4 = srem i32 %3, 2
%5 = load i32, i32* %2
%6 = srem i32 %5, 3
%7 = add nsw i32 %4, %6
%8 = load i32, i32* %2
%9 = srem i32 %8, 5
%10 = add nsw i32 %7, %9
switch i32 %10, label %13 [
i32 0, label %11
]
11: ; preds = %0
%12 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
br label %15
13: ; preds = %0
%14 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
br label %15
15: ; preds = %13, %11
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [19 x i8] c"It doesn't divide.\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}
sfunc1(int a, int b) { return a * b + 1; }


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

x86 assembly (clang, -O2):
<sfunc1>:
imul   %esi,%edi
lea    0x1(%rdi),%eax
ret

LLVM IR (-O0):
define i32 @sfunc1(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = mul nsw i32 %5, %6
%8 = add nsw i32 %7, 1
ret i32 %8
}

LLVM IR (-O2):
define i32 @sfunc1(i32 %0, i32 %1) {
%3 = mul nsw i32 %1, %0
%4 = add nsw i32 %3, 1
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ gen_call(char *);
int /*<<< orphan*/ gen_pop();
void gen_arithm_shift_left(void) {
  gen_pop();
  gen_call("ccasl");
}


x86 assembly (clang, -O0):
<gen_arithm_shift_left>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <gen_pop@plt>
lea    0xece(%rip),%rdi
call   1040 <gen_call@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<gen_arithm_shift_left>:
push   %rax
xor    %eax,%eax
call   1030 <gen_pop@plt>
lea    0xed1(%rip),%rdi
pop    %rax
jmp    1040 <gen_call@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"ccasl\00"
define void @gen_arithm_shift_left() {
%1 = call i32 (...) @gen_pop()
%2 = call i32 @gen_call(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"ccasl\00"
define void @gen_arithm_shift_left() {
%1 = tail call i32 (...) @gen_pop()
%2 = tail call i32 @gen_call(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
ret void
}
int k(int a, int b) { return b << 15; }


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

x86 assembly (clang, -O2):
<k>:
mov    %esi,%eax
shl    $0xf,%eax
ret

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

LLVM IR (-O2):
define i32 @k(i32 %0, i32 %1) {
%3 = shl i32 %1, 15
ret i32 %3
}
float ADC_Voltage(int adcvalue) {
  const float popugai = (3.283 / 1.603) / 4095;
  const int adczero = 186;
  return (adcvalue - adczero) * popugai;
}


x86 assembly (clang, -O0):
<ADC_Voltage>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movss  0xef1(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movl   $0xba,-0xc(%rbp)
mov    -0x4(%rbp),%eax
sub    $0xba,%eax
cvtsi2ss %eax,%xmm0
movss  0xed1(%rip),%xmm1
mulss  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<ADC_Voltage>:
add    $0xffffff46,%edi
cvtsi2ss %edi,%xmm0
mulss  0xeee(%rip),%xmm0
ret

LLVM IR (-O0):
define float @ADC_Voltage(i32 %0) {
%2 = alloca i32
%3 = alloca float
%4 = alloca i32
store i32 %0, i32* %2
store float 0x3F40636660000000, float* %3
store i32 186, i32* %4
%5 = load i32, i32* %2
%6 = sub nsw i32 %5, 186
%7 = sitofp i32 %6 to float
%8 = fmul float %7, 0x3F40636660000000
ret float %8
}

LLVM IR (-O2):
define float @ADC_Voltage(i32 %0) {
%2 = add nsw i32 %0, -186
%3 = sitofp i32 %2 to float
%4 = fmul float %3, 0x3F40636660000000
ret float %4
}
/* Type definitions */
typedef int /*<<< orphan*/ time_t;
struct tm {
  int dummy;
};

/* Variables and functions */
struct tm *localtime(int /*<<< orphan*/ *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
struct tm *time___new_Tm_localtime___impl() {
  struct tm *tm;
  time_t t = time(NULL);
  tm = localtime(&t);
  return tm;
}


x86 assembly (clang, -O0):
<time___new_Tm_localtime___impl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %eax,%eax
mov    %eax,%edi
call   1040 <time@plt>
mov    %eax,-0xc(%rbp)
lea    -0xc(%rbp),%rdi
call   1030 <localtime@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<time___new_Tm_localtime___impl>:
push   %rax
xor    %edi,%edi
call   1040 <time@plt>
mov    %eax,0x4(%rsp)
lea    0x4(%rsp),%rdi
call   1030 <localtime@plt>
pop    %rcx
ret

LLVM IR (-O0):
%struct.tm = type { i32 }
define %struct.tm* @time___new_Tm_localtime___impl() {
%1 = alloca %struct.tm*
%2 = alloca i32
%3 = call i32 @time(i32* null)
store i32 %3, i32* %2
%4 = call %struct.tm* @localtime(i32* %2)
store %struct.tm* %4, %struct.tm** %1
%5 = load %struct.tm*, %struct.tm** %1
ret %struct.tm* %5
}

LLVM IR (-O2):
%struct.tm = type { i32 }
define %struct.tm* @time___new_Tm_localtime___impl() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 @time(i32* null)
store i32 %3, i32* %1
%4 = call %struct.tm* @localtime(i32* %1)
ret %struct.tm* %4
}
unsigned int AT91F_SPI_Open(const unsigned int null) { return (0); }


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @MT_trace_irq_on() {
ret void
}
int radius_out_range(radius)
double radius;
{
  if (radius < 0.0 || radius > 300.0)
    return (1);
  else
    return (0);
}


x86 assembly (clang, -O0):
<radius_out_range>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x10(%rbp),%xmm0
ja     112e <radius_out_range+0x2e>
movsd  -0x10(%rbp),%xmm0
movsd  0xedc(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    113a <radius_out_range+0x3a>
movl   $0x1,-0x4(%rbp)
jmp    1141 <radius_out_range+0x41>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<radius_out_range>:
xorpd  %xmm1,%xmm1
ucomisd %xmm0,%xmm1
seta   %al
ucomisd 0xeed(%rip),%xmm0
seta   %cl
or     %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
define i32 @radius_out_range(double %0) {
%2 = alloca i32
%3 = alloca double
store double %0, double* %3
%4 = load double, double* %3
%5 = fcmp olt double %4, 0.000000e+00
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = load double, double* %3
%8 = fcmp ogt double %7, 3.000000e+02
br i1 %8, label %9, label %10
9: ; preds = %6, %1
store i32 1, i32* %2
br label %11
10: ; preds = %6
store i32 0, i32* %2
br label %11
11: ; preds = %10, %9
%12 = load i32, i32* %2
ret i32 %12
}

LLVM IR (-O2):
define i32 @radius_out_range(double %0) {
%2 = fcmp olt double %0, 0.000000e+00
%3 = fcmp ogt double %0, 3.000000e+02
%4 = or i1 %2, %3
%5 = zext i1 %4 to i32
ret i32 %5
}
void CLI_PrintSessionReason(void) {}


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

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

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

LLVM IR (-O2):
define void @CLI_PrintSessionReason() {
ret void
}
/* Type definitions */
typedef int uint8_t;
struct PatternGen_Random {
  int dummy;
};

/* Variables and functions */
int PatternGen_Rand(struct PatternGen_Random *);
uint8_t PatternGen_RandByte(struct PatternGen_Random *R) {
  return (PatternGen_Rand(R) >> 7) & 0xff;
}


x86 assembly (clang, -O0):
<PatternGen_RandByte>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <PatternGen_Rand@plt>
sar    $0x7,%eax
and    $0xff,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PatternGen_RandByte>:
push   %rax
call   1030 <PatternGen_Rand@plt>
shr    $0x7,%eax
movzbl %al,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.PatternGen_Random = type { i32 }
define i32 @PatternGen_RandByte(%struct.PatternGen_Random* %0) {
%2 = alloca %struct.PatternGen_Random*
store %struct.PatternGen_Random* %0, %struct.PatternGen_Random** %2
%3 = load %struct.PatternGen_Random*, %struct.PatternGen_Random** %2
%4 = call i32 @PatternGen_Rand(%struct.PatternGen_Random* %3)
%5 = ashr i32 %4, 7
%6 = and i32 %5, 255
ret i32 %6
}

LLVM IR (-O2):
%struct.PatternGen_Random = type { i32 }
define i32 @PatternGen_RandByte(%struct.PatternGen_Random* %0) {
%2 = tail call i32 @PatternGen_Rand(%struct.PatternGen_Random* %0)
%3 = lshr i32 %2, 7
%4 = and i32 %3, 255
ret i32 %4
}
float __ocl_bitselect_float(float a, float b, float c) {
  union {
    int i;
    float f;
  } ua, ub, uc, ures;
  ua.f = a;
  ub.f = b;
  uc.f = c;
  ures.i = (ub.i & uc.i) | (ua.i & (~(uc.i)));
  return ures.f;
}


x86 assembly (clang, -O0):
<__ocl_bitselect_float>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  -0x4(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x20(%rbp)
mov    -0x18(%rbp),%eax
and    -0x20(%rbp),%eax
mov    -0x10(%rbp),%ecx
mov    -0x20(%rbp),%edx
xor    $0xffffffff,%edx
and    %edx,%ecx
or     %ecx,%eax
mov    %eax,-0x28(%rbp)
movss  -0x28(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<__ocl_bitselect_float>:
movd   %xmm0,%eax
movd   %xmm1,%ecx
movd   %xmm2,%edx
xor    %eax,%ecx
and    %edx,%ecx
xor    %eax,%ecx
movd   %ecx,%xmm0
ret

LLVM IR (-O0):
%union.anon = type { i32 }
define float @__ocl_bitselect_float(float %0, float %1, float %2) {
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca %union.anon
%8 = alloca %union.anon
%9 = alloca %union.anon
%10 = alloca %union.anon
store float %0, float* %4
store float %1, float* %5
store float %2, float* %6
%11 = load float, float* %4
%12 = bitcast %union.anon* %7 to float*
store float %11, float* %12
%13 = load float, float* %5
%14 = bitcast %union.anon* %8 to float*
store float %13, float* %14
%15 = load float, float* %6
%16 = bitcast %union.anon* %9 to float*
store float %15, float* %16
%17 = bitcast %union.anon* %8 to i32*
%18 = load i32, i32* %17
%19 = bitcast %union.anon* %9 to i32*
%20 = load i32, i32* %19
%21 = and i32 %18, %20
%22 = bitcast %union.anon* %7 to i32*
%23 = load i32, i32* %22
%24 = bitcast %union.anon* %9 to i32*
%25 = load i32, i32* %24
%26 = xor i32 %25, -1
%27 = and i32 %23, %26
%28 = or i32 %21, %27
%29 = bitcast %union.anon* %10 to i32*
store i32 %28, i32* %29
%30 = bitcast %union.anon* %10 to float*
%31 = load float, float* %30
ret float %31
}

LLVM IR (-O2):
define float @__ocl_bitselect_float(float %0, float %1, float %2) {
%4 = bitcast float %0 to i32
%5 = bitcast float %1 to i32
%6 = bitcast float %2 to i32
%7 = and i32 %6, %5
%8 = xor i32 %6, -1
%9 = and i32 %8, %4
%10 = or i32 %7, %9
%11 = bitcast i32 %10 to float
ret float %11
}
/* Variables and functions */
int /*<<< orphan*/ TransformAlarmC__0__AlarmFrom__fired();
void Atm128AlarmC__0__Alarm__fired(void) {
  TransformAlarmC__0__AlarmFrom__fired();
}


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

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

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

LLVM IR (-O2):
define void @Atm128AlarmC__0__Alarm__fired() {
%1 = tail call i32 (...) @TransformAlarmC__0__AlarmFrom__fired()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ StudentModel_displayAllStudentInfo();
void Controller_displayAllStudentInfo() {
  StudentModel_displayAllStudentInfo();
  return;
}


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

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

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

LLVM IR (-O2):
define void @Controller_displayAllStudentInfo() {
%1 = tail call i32 (...) @StudentModel_displayAllStudentInfo()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ __builtin_rdprs(int, int);
int x() {
  __builtin_rdprs(3, 934);
  return 0;
}


x86 assembly (clang, -O0):
<x>:
push   %rbp
mov    %rsp,%rbp
mov    $0x3,%edi
mov    $0x3a6,%esi
call   1030 <__builtin_rdprs@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<x>:
push   %rax
mov    $0x3,%edi
mov    $0x3a6,%esi
call   1030 <__builtin_rdprs@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @x() {
%1 = call i32 @__builtin_rdprs(i32 3, i32 934)
ret i32 0
}

LLVM IR (-O2):
define i32 @x() {
%1 = tail call i32 @__builtin_rdprs(i32 3, i32 934)
ret i32 0
}
char *usage() {
  return "Missing arguments. Expected: shortpath [ -n nodes | -f "
         "path/to/input.txt ]    \n\nExample:\n./shortpath 1000    "
         "\n\tgenerates graph of 1000 nodes; see init_graph() for more info.   "
         " \n\n./shortpath sample.txt    \n\treads graph from sample.txt    "
         "\n\nshortpath expects data from *.txt file as following format:    "
         "\n\t7    \n\t8\t6\t7\t5\t3\t0\t9    \n\t4\t2\t4\t2\t4\t2\t4    "
         "\n\t8\t6\t7\t5\t3\t0\t9    \n\t4\t2\t4\t2\t4\t2\t4    "
         "\n\t1\t1\t2\t3\t5\t8\t13    \n\t4\t2\t4\t2\t4\t2\t4    "
         "\n\t1\t3\t3\t3\t3\t3\t7    \n\tfirst integer on first line indicates "
         "number of nodes.    \n\t(see text_to_graph() for more information)\n";
}


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

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

LLVM IR (-O0):
@.str = [550 x i8] c"Missing arguments. Expected: shortpath [ -n nodes | -f path/to/input.txt ] \0A\0AExample:\0A./shortpath 1000 \0A\09generates graph of 1000 nodes; see init_graph() for more info. \0A\0A./shortpath sample.txt \0A\09reads graph from sample.txt \0A\0Ashortpath expects data from *.txt file as following format: \0A\097 \0A\098\096\097\095\093\090\099 \0A\094\092\094\092\094\092\094 \0A\098\096\097\095\093\090\099 \0A\094\092\094\092\094\092\094 \0A\091\091\092\093\095\098\0913 \0A\094\092\094\092\094\092\094 \0A\091\093\093\093\093\093\097 \0A\09first integer on first line indicates number of nodes. \0A\09(see text_to_graph() for more information)\0A\00"
define i8* @usage() {
ret i8* getelementptr inbounds ([550 x i8], [550 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [550 x i8] c"Missing arguments. Expected: shortpath [ -n nodes | -f path/to/input.txt ] \0A\0AExample:\0A./shortpath 1000 \0A\09generates graph of 1000 nodes; see init_graph() for more info. \0A\0A./shortpath sample.txt \0A\09reads graph from sample.txt \0A\0Ashortpath expects data from *.txt file as following format: \0A\097 \0A\098\096\097\095\093\090\099 \0A\094\092\094\092\094\092\094 \0A\098\096\097\095\093\090\099 \0A\094\092\094\092\094\092\094 \0A\091\091\092\093\095\098\0913 \0A\094\092\094\092\094\092\094 \0A\091\093\093\093\093\093\097 \0A\09first integer on first line indicates number of nodes. \0A\09(see text_to_graph() for more information)\0A\00"
define i8* @usage() {
ret i8* getelementptr inbounds ([550 x i8], [550 x i8]* @.str, i64 0, i64 0)
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ by_ptr(int /*<<< orphan*/);
void or_by_ptr(uint32_t x) {
  by_ptr(x);
  or ();
}


x86 assembly (clang, -O0):
<or_by_ptr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <by_ptr@plt>
mov    $0x0,%al
call   1040 <or@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<or_by_ptr>:
push   %rax
call   1030 <by_ptr@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <or@plt>

LLVM IR (-O0):
define void @or_by_ptr(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @by_ptr(i32 %3)
%5 = call i32 (...) @or()
ret void
}

LLVM IR (-O2):
define void @or_by_ptr(i32 %0) {
%2 = tail call i32 @by_ptr(i32 %0)
%3 = tail call i32 (...) @or()
ret void
}
unsigned xrop3_88_0_1(unsigned char s, unsigned char t) {
  unsigned D = 0x00ff;
  unsigned S = ((unsigned)s << 8) | s;
  unsigned T = ((unsigned)t << 8) | t;
  unsigned stk1;
  unsigned stk2;
  unsigned stk3;
  stk3 = S | T;
  stk2 = D & stk3;
  stk1 = T ^ stk2;
  return (stk1 & S) | (stk1 & (~T)) | (T & (~S) & D);
}


x86 assembly (clang, -O0):
<xrop3_88_0_1>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movl   $0xff,-0x8(%rbp)
movzbl -0x1(%rbp),%eax
shl    $0x8,%eax
movzbl -0x1(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0xc(%rbp)
movzbl -0x2(%rbp),%eax
shl    $0x8,%eax
movzbl -0x2(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
or     -0x10(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%eax
and    -0x1c(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%eax
xor    -0x18(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
and    -0xc(%rbp),%eax
mov    -0x14(%rbp),%ecx
mov    -0x10(%rbp),%edx
xor    $0xffffffff,%edx
and    %edx,%ecx
or     %ecx,%eax
mov    -0x10(%rbp),%ecx
mov    -0xc(%rbp),%edx
xor    $0xffffffff,%edx
and    %edx,%ecx
and    -0x8(%rbp),%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xrop3_88_0_1>:
mov    %edi,%eax
shl    $0x8,%eax
or     %edi,%eax
mov    %esi,%ecx
shl    $0x8,%ecx
or     %esi,%ecx
or     %esi,%edi
mov    %ecx,%edx
xor    %edi,%edx
and    %eax,%edx
not    %ecx
and    %edi,%ecx
not    %eax
and    %esi,%eax
or     %ecx,%eax
or     %edx,%eax
ret

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

LLVM IR (-O2):
define i32 @xrop3_88_0_1(i8 zeroext %0, i8 zeroext %1) {
%3 = zext i8 %0 to i32
%4 = mul nuw nsw i32 %3, 257
%5 = zext i8 %1 to i32
%6 = mul nuw nsw i32 %5, 257
%7 = or i8 %1, %0
%8 = zext i8 %7 to i32
%9 = xor i32 %6, %8
%10 = and i32 %9, %4
%11 = xor i32 %6, -1
%12 = and i32 %11, %8
%13 = xor i32 %4, -1
%14 = and i32 %13, %5
%15 = or i32 %12, %14
%16 = or i32 %15, %10
ret i32 %16
}
/* Variables and functions */
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int _usage(void) {
  fputs("Usage: "
        "unlink"
        " file\n",
        stderr);
  return 1;
}


x86 assembly (clang, -O0):
<_usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%esi
lea    0xedc(%rip),%rdi
call   1030 <fputs@plt>
mov    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_usage>:
push   %rax
mov    0x2ec8(%rip),%rax
mov    (%rax),%esi
lea    0xedf(%rip),%rdi
call   1030 <fputs@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [20 x i8] c"Usage: unlink file\0A\00"
@stderr = global i32 0
define i32 @_usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fputs(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 1
}

LLVM IR (-O2):
@.str = [20 x i8] c"Usage: unlink file\0A\00"
@stderr = global i32 0
define i32 @_usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fputs(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 1
}