xunge/DecIR huggingface dataset:
/* Variables and functions */
int EOF;
int getchar();
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ putchar(int);
main() {
  int c;
  printf("%i\n", EOF);
  while ((c = getchar()) != EOF) {
    putchar(c);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2ea2(%rip),%rax
mov    (%rax),%esi
lea    0xeb1(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    0x2e83(%rip),%rcx
cmp    (%rcx),%eax
je     117a <main+0x4a>
mov    -0x8(%rbp),%edi
call   1030 <putchar@plt>
jmp    1154 <main+0x24>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    0x2eb0(%rip),%rbx
mov    (%rbx),%esi
lea    0xebf(%rip),%rdi
call   1040 <printf@plt>
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   1050 <getchar@plt>
cmp    (%rbx),%eax
je     1164 <main+0x34>
mov    %eax,%edi
call   1030 <putchar@plt>
jmp    1150 <main+0x20>
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%i\0A\00"
@EOF = global i32 0
define i32 @main() {
%1 = load i32, i32* @EOF
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = tail call i32 (...) @getchar()
%4 = load i32, i32* @EOF
%5 = icmp eq i32 %3, %4
br i1 %5, label %12, label %6
6: ; preds = %0, %6
%7 = phi i32 [ %9, %6 ], [ %3, %0 ]
%8 = tail call i32 @putchar(i32 %7)
%9 = tail call i32 (...) @getchar()
%10 = load i32, i32* @EOF
%11 = icmp eq i32 %9, %10
br i1 %11, label %12, label %6
12: ; preds = %6, %0
ret i32 0
}
/* Variables and functions */
long getDigitSum(long);
long getDigitSumFactorization(long, long *);
int isSmithNumber(long int N) {
  long int isPrime, digitSum, digitSumFactor;
  digitSumFactor = getDigitSumFactorization(N, &isPrime);
  if (isPrime)
    return 0;
  digitSum = getDigitSum(N);
  return digitSum == digitSumFactor;
}


x86 assembly (clang, -O0):
<isSmithNumber>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <getDigitSumFactorization@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1154 <isSmithNumber+0x34>
movl   $0x0,-0x4(%rbp)
jmp    1174 <isSmithNumber+0x54>
mov    -0x10(%rbp),%rdi
call   1030 <getDigitSum@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x28(%rbp),%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isSmithNumber>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    %rsp,%rsi
call   1040 <getDigitSumFactorization@plt>
mov    %rax,%r14
xor    %eax,%eax
cmpq   $0x0,(%rsp)
jne    114e <isSmithNumber+0x2e>
mov    %rbx,%rdi
call   1030 <getDigitSum@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %r14,%rcx
sete   %al
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @isSmithNumber(i64 %0) {
%2 = alloca i32
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
store i64 %0, i64* %3
%7 = load i64, i64* %3
%8 = call i64 @getDigitSumFactorization(i64 %7, i64* %4)
store i64 %8, i64* %6
%9 = load i64, i64* %4
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %1
store i32 0, i32* %2
br label %19
12: ; preds = %1
%13 = load i64, i64* %3
%14 = call i64 @getDigitSum(i64 %13)
store i64 %14, i64* %5
%15 = load i64, i64* %5
%16 = load i64, i64* %6
%17 = icmp eq i64 %15, %16
%18 = zext i1 %17 to i32
store i32 %18, i32* %2
br label %19
19: ; preds = %12, %11
%20 = load i32, i32* %2
ret i32 %20
}

LLVM IR (-O2):
define i32 @isSmithNumber(i64 %0) {
%2 = alloca i64
%3 = bitcast i64* %2 to i8*
%4 = call i64 @getDigitSumFactorization(i64 %0, i64* %2)
%5 = load i64, i64* %2
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = call i64 @getDigitSum(i64 %0)
%9 = icmp eq i64 %8, %4
%10 = zext i1 %9 to i32
br label %11
11: ; preds = %1, %7
%12 = phi i32 [ %10, %7 ], [ 0, %1 ]
ret i32 %12
}
/* Type definitions */
typedef int /*<<< orphan*/ fpos_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int fgetpos(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int fget_pos(FILE *stream, fpos_t *ptr) { return (fgetpos(stream, ptr)); }


x86 assembly (clang, -O0):
<fget_pos>:
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 <fgetpos@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fget_pos>:
jmp    1030 <fgetpos@plt>

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

LLVM IR (-O2):
define i32 @fget_pos(i32* nocapture %0, i32* nocapture %1) {
%3 = tail call i32 @fgetpos(i32* %0, i32* %1)
ret i32 %3
}
void gtk_button_get_type() {}


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

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

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

LLVM IR (-O2):
define void @gtk_button_get_type() {
ret void
}
int rt_thread_setconcurrency(int nthr) {
  int status = 0;
  return status;
}


x86 assembly (clang, -O0):
<rt_thread_setconcurrency>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @rt_thread_setconcurrency(i32 %0) {
ret i32 0
}
float scaleRangef(float x, float in_min, float in_max, float out_min,
                  float out_max) {
  return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}


x86 assembly (clang, -O0):
<scaleRangef>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
movss  %xmm4,-0x14(%rbp)
movss  -0x4(%rbp),%xmm0
subss  -0x8(%rbp),%xmm0
movss  -0x14(%rbp),%xmm1
subss  -0x10(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  -0xc(%rbp),%xmm1
subss  -0x8(%rbp),%xmm1
divss  %xmm1,%xmm0
addss  -0x10(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<scaleRangef>:
subss  %xmm1,%xmm0
subss  %xmm3,%xmm4
mulss  %xmm4,%xmm0
subss  %xmm1,%xmm2
divss  %xmm2,%xmm0
addss  %xmm3,%xmm0
ret

LLVM IR (-O0):
define float @scaleRangef(float %0, float %1, float %2, float %3, float %4) {
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
store float %0, float* %6
store float %1, float* %7
store float %2, float* %8
store float %3, float* %9
store float %4, float* %10
%11 = load float, float* %6
%12 = load float, float* %7
%13 = fsub float %11, %12
%14 = load float, float* %10
%15 = load float, float* %9
%16 = fsub float %14, %15
%17 = fmul float %13, %16
%18 = load float, float* %8
%19 = load float, float* %7
%20 = fsub float %18, %19
%21 = fdiv float %17, %20
%22 = load float, float* %9
%23 = fadd float %21, %22
ret float %23
}

LLVM IR (-O2):
define float @scaleRangef(float %0, float %1, float %2, float %3, float %4) {
%6 = fsub float %0, %1
%7 = fsub float %4, %3
%8 = fmul float %6, %7
%9 = fsub float %2, %1
%10 = fdiv float %8, %9
%11 = fadd float %10, %3
ret float %11
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void ICMPv6head(int osvers, int osrel, int ossub) {
  printf("iecho/s ierep/s oerep/s idu/s odu/s ird/s ord/s ite/s "
         "ote/s  _icmpv6_");
}


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

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

LLVM IR (-O0):
@.str = [70 x i8] c"iecho/s ierep/s oerep/s idu/s odu/s ird/s ord/s ite/s ote/s _icmpv6_\00"
define void @ICMPv6head(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [70 x i8] c"iecho/s ierep/s oerep/s idu/s odu/s ird/s ord/s ite/s ote/s _icmpv6_\00"
define void @ICMPv6head(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0))
ret void
}
int heavy_calcs(int n, float *restrict range1, float *restrict range2) {
  if (n > 1000)
    return 1;
  float tmpvalues[1000] = {0};
  {
    float *restrict ptv = tmpvalues;
    for (int i = 0; i < n; i++) {
      ptv[i] = range1[i] + range2[i];
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<heavy_calcs>:
push   %rbp
mov    %rsp,%rbp
sub    $0xfd0,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
cmpl   $0x3e8,-0x8(%rbp)
jle    113f <heavy_calcs+0x2f>
movl   $0x1,-0x4(%rbp)
jmp    11c7 <heavy_calcs+0xb7>
lea    -0xfc0(%rbp),%rdi
xor    %esi,%esi
mov    $0xfa0,%edx
call   1030 <memset@plt>
lea    -0xfc0(%rbp),%rax
mov    %rax,-0xfc8(%rbp)
movl   $0x0,-0xfcc(%rbp)
mov    -0xfcc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11c0 <heavy_calcs+0xb0>
mov    -0x10(%rbp),%rax
movslq -0xfcc(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x18(%rbp),%rax
movslq -0xfcc(%rbp),%rcx
addss  (%rax,%rcx,4),%xmm0
mov    -0xfc8(%rbp),%rax
movslq -0xfcc(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0xfcc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xfcc(%rbp)
jmp    116a <heavy_calcs+0x5a>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xfd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<heavy_calcs>:
xor    %eax,%eax
cmp    $0x3e9,%edi
setge  %al
ret

LLVM IR (-O0):
define i32 @heavy_calcs(i32 %0, float* noalias %1, float* noalias %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca float*
%7 = alloca float*
%8 = alloca [1000 x float]
%9 = alloca float*
%10 = alloca i32
store i32 %0, i32* %5
store float* %1, float** %6
store float* %2, float** %7
%11 = load i32, i32* %5
%12 = icmp sgt i32 %11, 1000
br i1 %12, label %13, label %14
13: ; preds = %3
store i32 1, i32* %4
br label %41
14: ; preds = %3
%15 = bitcast [1000 x float]* %8 to i8*
%16 = getelementptr inbounds [1000 x float], [1000 x float]* %8, i64 0, i64 0
store float* %16, float** %9
store i32 0, i32* %10
br label %17
17: ; preds = %37, %14
%18 = load i32, i32* %10
%19 = load i32, i32* %5
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %40
21: ; preds = %17
%22 = load float*, float** %6
%23 = load i32, i32* %10
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds float, float* %22, i64 %24
%26 = load float, float* %25
%27 = load float*, float** %7
%28 = load i32, i32* %10
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds float, float* %27, i64 %29
%31 = load float, float* %30
%32 = fadd float %26, %31
%33 = load float*, float** %9
%34 = load i32, i32* %10
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds float, float* %33, i64 %35
store float %32, float* %36
br label %37
37: ; preds = %21
%38 = load i32, i32* %10
%39 = add nsw i32 %38, 1
store i32 %39, i32* %10
br label %17
40: ; preds = %17
store i32 0, i32* %4
br label %41
41: ; preds = %40, %13
%42 = load i32, i32* %4
ret i32 %42
}

LLVM IR (-O2):
define i32 @heavy_calcs(i32 %0, float* noalias nocapture readnone %1, float* noalias nocapture readnone %2) {
%4 = icmp sgt i32 %0, 1000
%5 = zext i1 %4 to i32
ret i32 %5
}
void set_cr0(unsigned long value) {
  __asm__ volatile("mov %0, %%cr0" : : "r"(value));
}


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

x86 assembly (clang, -O2):
<set_cr0>:
mov    %rdi,%cr0
ret

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

LLVM IR (-O2):
define void @set_cr0(i64 %0) {
tail call void asm sideeffect "mov $0, %cr0", "r,~{dirflag},~{fpsr},~{flags}"(i64 %0)
ret void
}
/* Variables and functions */
scalar_t__ strlen(char *);
unsigned char con_type_to_int(char *con_type) {
  if (strlen(con_type) > 0 && (con_type[0] == 'm'))
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<con_type_to_int>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x0,%rax
jle    1148 <con_type_to_int+0x38>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x6d,%eax
jne    1148 <con_type_to_int+0x38>
movb   $0x1,-0x1(%rbp)
jmp    114c <con_type_to_int+0x3c>
movb   $0x0,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<con_type_to_int>:
push   %rbx
mov    %rdi,%rbx
call   1030 <strlen@plt>
test   %rax,%rax
jle    1125 <con_type_to_int+0x15>
mov    $0x1,%al
cmpb   $0x6d,(%rbx)
je     1127 <con_type_to_int+0x17>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define zeroext i8 @con_type_to_int(i8* %0) {
%2 = alloca i8
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i64 @strlen(i8* %4)
%6 = icmp sgt i64 %5, 0
br i1 %6, label %7, label %14
7: ; preds = %1
%8 = load i8*, i8** %3
%9 = getelementptr inbounds i8, i8* %8, i64 0
%10 = load i8, i8* %9
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 109
br i1 %12, label %13, label %14
13: ; preds = %7
store i8 1, i8* %2
br label %15
14: ; preds = %7, %1
store i8 0, i8* %2
br label %15
15: ; preds = %14, %13
%16 = load i8, i8* %2
ret i8 %16
}

LLVM IR (-O2):
define zeroext i8 @con_type_to_int(i8* nocapture %0) {
%2 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%3 = icmp sgt i64 %2, 0
br i1 %3, label %4, label %7
4: ; preds = %1
%5 = load i8, i8* %0
%6 = icmp eq i8 %5, 109
br i1 %6, label %8, label %7
7: ; preds = %4, %1
br label %8
8: ; preds = %4, %7
%9 = phi i8 [ 0, %7 ], [ 1, %4 ]
ret i8 %9
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *);
void halt(char *msg) {
  printf("HALT: %s\n", msg);
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<halt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e9d(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<halt>:
push   %rax
mov    %rdi,%rsi
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    0x2ea9(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"HALT: %s\0A\00"
@EXIT_FAILURE = global i32 0
define void @halt(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = load i32, i32* @EXIT_FAILURE
%6 = call i32 @exit(i32 %5)
unreachable
}

LLVM IR (-O2):
@.str = [10 x i8] c"HALT: %s\0A\00"
@EXIT_FAILURE = global i32 0
define void @halt(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = load i32, i32* @EXIT_FAILURE
%4 = tail call i32 @exit(i32 %3)
unreachable
}
void M420ToARGB() {}


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

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

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

LLVM IR (-O2):
define void @M420ToARGB() {
ret void
}
AR0AR1(r0, r1, x0, x1, p0, p1) unsigned short r0, r1;
unsigned short *p0, *p1;
{
  if ((p0[10000000]) <= (p1[1111111 / 4]))
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<AR0AR1>:
push   %rbp
mov    %rsp,%rbp
mov    %esi,%eax
mov    %di,%si
mov    %si,-0x6(%rbp)
mov    %ax,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8,-0x18(%rbp)
mov    %r9,-0x20(%rbp)
mov    -0x18(%rbp),%rax
movzwl 0x1312d00(%rax),%eax
mov    -0x20(%rbp),%rcx
movzwl 0x87a22(%rcx),%ecx
cmp    %ecx,%eax
jg     1149 <AR0AR1+0x49>
movl   $0x1,-0x4(%rbp)
jmp    1150 <AR0AR1+0x50>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<AR0AR1>:
movzwl 0x1312d00(%r8),%ecx
01
xor    %eax,%eax
cmp    0x87a22(%r9),%cx
setbe  %al
ret

LLVM IR (-O0):
define i32 @AR0AR1(i32 %0, i32 %1, i32 %2, i32 %3, i16* %4, i16* %5) {
%7 = alloca i32
%8 = alloca i16
%9 = alloca i16
%10 = alloca i32
%11 = alloca i32
%12 = alloca i16*
%13 = alloca i16*
%14 = trunc i32 %0 to i16
%15 = trunc i32 %1 to i16
store i16 %14, i16* %8
store i16 %15, i16* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store i16* %4, i16** %12
store i16* %5, i16** %13
%16 = load i16*, i16** %12
%17 = getelementptr inbounds i16, i16* %16, i64 10000000
%18 = load i16, i16* %17
%19 = zext i16 %18 to i32
%20 = load i16*, i16** %13
%21 = getelementptr inbounds i16, i16* %20, i64 277777
%22 = load i16, i16* %21
%23 = zext i16 %22 to i32
%24 = icmp sle i32 %19, %23
br i1 %24, label %25, label %26
25: ; preds = %6
store i32 1, i32* %7
br label %27
26: ; preds = %6
store i32 0, i32* %7
br label %27
27: ; preds = %26, %25
%28 = load i32, i32* %7
ret i32 %28
}

LLVM IR (-O2):
define i32 @AR0AR1(i32 %0, i32 %1, i32 %2, i32 %3, i16* nocapture %4, i16* nocapture %5) {
%7 = getelementptr inbounds i16, i16* %4, i64 10000000
%8 = load i16, i16* %7
%9 = getelementptr inbounds i16, i16* %5, i64 277777
%10 = load i16, i16* %9
%11 = icmp ule i16 %8, %10
%12 = zext i1 %11 to i32
ret i32 %12
}
unsigned short wReverse(unsigned short data) {
  return (unsigned short)(((data << 8) & 0xFF00) | ((data >> 8) & 0x00FF));
}


x86 assembly (clang, -O0):
<wReverse>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
movzwl -0x2(%rbp),%eax
shl    $0x8,%eax
and    $0xff00,%eax
movzwl -0x2(%rbp),%ecx
sar    $0x8,%ecx
and    $0xff,%ecx
or     %ecx,%eax
movzwl %ax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<wReverse>:
mov    %edi,%eax
rol    $0x8,%ax
ret

LLVM IR (-O0):
define zeroext i16 @wReverse(i16 zeroext %0) {
%2 = alloca i16
store i16 %0, i16* %2
%3 = load i16, i16* %2
%4 = zext i16 %3 to i32
%5 = shl i32 %4, 8
%6 = and i32 %5, 65280
%7 = load i16, i16* %2
%8 = zext i16 %7 to i32
%9 = ashr i32 %8, 8
%10 = and i32 %9, 255
%11 = or i32 %6, %10
%12 = trunc i32 %11 to i16
ret i16 %12
}

LLVM IR (-O2):
define zeroext i16 @wReverse(i16 zeroext %0) {
%2 = tail call i16 @llvm.bswap.i16(i16 %0)
ret i16 %2
}
/* Variables and functions */
double __gamma_r_finite(double, int *);
double tgamma(double __d) {
  signed int __local_signgam = 0;
  double __res;
  __res = __gamma_r_finite(__d, &__local_signgam);
  return __local_signgam < 0 ? -__res : __res;
}


x86 assembly (clang, -O0):
<tgamma>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movsd  -0x8(%rbp),%xmm0
lea    -0xc(%rbp),%rdi
call   1030 <__gamma_r_finite@plt>
movsd  %xmm0,-0x18(%rbp)
cmpl   $0x0,-0xc(%rbp)
jge    1167 <tgamma+0x57>
movsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x20(%rbp)
jmp    1171 <tgamma+0x61>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tgamma>:
push   %rax
movl   $0x0,0x4(%rsp)
lea    0x4(%rsp),%rdi
call   1030 <__gamma_r_finite@plt>
cmpl   $0x0,0x4(%rsp)
jns    1131 <tgamma+0x21>
xorps  0xecf(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @tgamma(double %0) {
%2 = alloca double
%3 = alloca i32
%4 = alloca double
store double %0, double* %2
store i32 0, i32* %3
%5 = load double, double* %2
%6 = call double @__gamma_r_finite(double %5, i32* %3)
store double %6, double* %4
%7 = load i32, i32* %3
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %1
%10 = load double, double* %4
%11 = fneg double %10
br label %14
12: ; preds = %1
%13 = load double, double* %4
br label %14
14: ; preds = %12, %9
%15 = phi double [ %11, %9 ], [ %13, %12 ]
ret double %15
}

LLVM IR (-O2):
define double @tgamma(double %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%4 = call double @__gamma_r_finite(double %0, i32* %2)
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, 0
%7 = fneg double %4
%8 = select i1 %6, double %7, double %4
ret double %8
}
int tolower(int c) {
  if (c < 91 && c > 64) {
    return c + 32;
  }
  return c;
}


x86 assembly (clang, -O0):
<tolower>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x5b,-0x8(%rbp)
jge    1129 <tolower+0x29>
cmpl   $0x40,-0x8(%rbp)
jle    1129 <tolower+0x29>
mov    -0x8(%rbp),%eax
add    $0x20,%eax
mov    %eax,-0x4(%rbp)
jmp    112f <tolower+0x2f>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @tolower(i32 %0) {
%2 = add i32 %0, -65
%3 = icmp ult i32 %2, 26
%4 = add nsw i32 %0, 32
%5 = select i1 %3, i32 %4, i32 %0
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ clang_analyzer_eval(int);
int /*<<< orphan*/ memset(short *, int /*<<< orphan*/, int);
void memset29_plain_int_zero() {
  short x;
  memset(&x, 0, sizeof(short));
  clang_analyzer_eval(x == 0);
}


x86 assembly (clang, -O0):
<memset29_plain_int_zero>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x2(%rbp),%rdi
xor    %esi,%esi
mov    $0x2,%edx
call   1030 <memset@plt>
movswl -0x2(%rbp),%eax
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <clang_analyzer_eval@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<memset29_plain_int_zero>:
push   %rax
lea    0x6(%rsp),%rdi
xor    %esi,%esi
mov    $0x2,%edx
call   1030 <memset@plt>
xor    %edi,%edi
cmpw   $0x0,0x6(%rsp)
sete   %dil
call   1040 <clang_analyzer_eval@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @memset29_plain_int_zero() {
%1 = alloca i16
%2 = call i32 @memset(i16* %1, i32 0, i32 2)
%3 = load i16, i16* %1
%4 = sext i16 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = zext i1 %5 to i32
%7 = call i32 @clang_analyzer_eval(i32 %6)
ret void
}

LLVM IR (-O2):
define void @memset29_plain_int_zero() {
%1 = alloca i16
%2 = bitcast i16* %1 to i8*
%3 = call i32 @memset(i16* %1, i32 0, i32 2)
%4 = load i16, i16* %1
%5 = icmp eq i16 %4, 0
%6 = zext i1 %5 to i32
%7 = call i32 @clang_analyzer_eval(i32 %6)
ret void
}
/* Variables and functions */
unsigned long xatoull(char const *);
__attribute__((always_)) unsigned long xatoul(const char *str) {
  return xatoull(str);
}


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

x86 assembly (clang, -O2):
<xatoul>:
jmp    1030 <xatoull@plt>

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

LLVM IR (-O2):
define i64 @xatoul(i8* %0) {
%2 = tail call i64 @xatoull(i8* %0)
ret i64 %2
}
int bmk_cpu_sched_bouncer(void) {
  for (;;)
    ;
}


x86 assembly (clang, -O0):
<bmk_cpu_sched_bouncer>:
push   %rbp
mov    %rsp,%rbp
jmp    1109 <bmk_cpu_sched_bouncer+0x9>
jmp    1109 <bmk_cpu_sched_bouncer+0x9>

x86 assembly (clang, -O2):
<bmk_cpu_sched_bouncer>:
jmp    1100 <bmk_cpu_sched_bouncer>

LLVM IR (-O0):
define i32 @bmk_cpu_sched_bouncer() {
br label %1
1: ; preds = %1, %0
br label %1
}

LLVM IR (-O2):
define i32 @bmk_cpu_sched_bouncer() {
br label %1
1: ; preds = %1, %0
br label %1
}
int Abc_Tt4CountOnes(int t) {
  t = (t & (0x5555)) + ((t >> 1) & (0x5555));
  t = (t & (0x3333)) + ((t >> 2) & (0x3333));
  t = (t & (0x0f0f)) + ((t >> 4) & (0x0f0f));
  t = (t & (0x00ff)) + ((t >> 8) & (0x00ff));
  return t;
}


x86 assembly (clang, -O0):
<Abc_Tt4CountOnes>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0x5555,%eax
mov    -0x4(%rbp),%ecx
sar    $0x1,%ecx
and    $0x5555,%ecx
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0x3333,%eax
mov    -0x4(%rbp),%ecx
sar    $0x2,%ecx
and    $0x3333,%ecx
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xf0f,%eax
mov    -0x4(%rbp),%ecx
sar    $0x4,%ecx
and    $0xf0f,%ecx
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xff,%eax
mov    -0x4(%rbp),%ecx
sar    $0x8,%ecx
and    $0xff,%ecx
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<Abc_Tt4CountOnes>:
mov    %edi,%eax
and    $0x5555,%eax
shr    %edi
and    $0x5555,%edi
add    %edi,%eax
mov    %eax,%ecx
and    $0x3333,%ecx
shr    $0x2,%eax
and    $0x3333,%eax
add    %ecx,%eax
mov    %eax,%ecx
and    $0x707,%ecx
shr    $0x4,%eax
and    $0x707,%eax
add    %ecx,%eax
movzbl %al,%ecx
shr    $0x8,%eax
add    %ecx,%eax
ret

LLVM IR (-O0):
define i32 @Abc_Tt4CountOnes(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = and i32 %3, 21845
%5 = load i32, i32* %2
%6 = ashr i32 %5, 1
%7 = and i32 %6, 21845
%8 = add nsw i32 %4, %7
store i32 %8, i32* %2
%9 = load i32, i32* %2
%10 = and i32 %9, 13107
%11 = load i32, i32* %2
%12 = ashr i32 %11, 2
%13 = and i32 %12, 13107
%14 = add nsw i32 %10, %13
store i32 %14, i32* %2
%15 = load i32, i32* %2
%16 = and i32 %15, 3855
%17 = load i32, i32* %2
%18 = ashr i32 %17, 4
%19 = and i32 %18, 3855
%20 = add nsw i32 %16, %19
store i32 %20, i32* %2
%21 = load i32, i32* %2
%22 = and i32 %21, 255
%23 = load i32, i32* %2
%24 = ashr i32 %23, 8
%25 = and i32 %24, 255
%26 = add nsw i32 %22, %25
store i32 %26, i32* %2
%27 = load i32, i32* %2
ret i32 %27
}

LLVM IR (-O2):
define i32 @Abc_Tt4CountOnes(i32 %0) {
%2 = and i32 %0, 21845
%3 = lshr i32 %0, 1
%4 = and i32 %3, 21845
%5 = add nuw nsw i32 %4, %2
%6 = and i32 %5, 13107
%7 = lshr i32 %5, 2
%8 = and i32 %7, 13107
%9 = add nuw nsw i32 %8, %6
%10 = and i32 %9, 1799
%11 = lshr i32 %9, 4
%12 = and i32 %11, 1799
%13 = add nuw nsw i32 %12, %10
%14 = and i32 %13, 15
%15 = lshr i32 %13, 8
%16 = add nuw nsw i32 %14, %15
ret i32 %16
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int a, b = 0, c = 0;
  scanf("%d", &a);
  b = a * a;
  c = b * a;
  printf("\n%d", b);
  printf("\n%d", c);
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xed6(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%ebx
mov    %ebx,%esi
imul   %ebx,%esi
imul   %esi,%ebx
lea    0xeb8(%rip),%r14
mov    %r14,%rdi
call   1030 <printf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"\0A%d\00"
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
store i32 0, i32* %4
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%6 = load i32, i32* %2
%7 = load i32, i32* %2
%8 = mul nsw i32 %6, %7
store i32 %8, i32* %3
%9 = load i32, i32* %3
%10 = load i32, i32* %2
%11 = mul nsw i32 %9, %10
store i32 %11, i32* %4
%12 = load i32, i32* %3
%13 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %12)
%14 = load i32, i32* %4
%15 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %14)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"\0A%d\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = mul nsw i32 %4, %4
%6 = mul nsw i32 %5, %4
%7 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %5)
%8 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %6)
ret i32 0
}
/* Variables and functions */
int _ada_use_c2phc(int, int *, int *, double *);
int mapcon_exponents_of_map(int dim, int ind, int nvr, int *exp) {
  int a[3], fail;
  double *c;
  a[0] = dim;
  a[1] = ind;
  a[2] = nvr;
  fail = _ada_use_c2phc(437, a, exp, c);
  return fail;
}


x86 assembly (clang, -O0):
<mapcon_exponents_of_map>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x1c(%rbp)
lea    -0x24(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x30(%rbp),%rcx
mov    $0x1b5,%edi
call   1030 <_ada_use_c2phc@plt>
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mapcon_exponents_of_map>:
sub    $0x18,%rsp
mov    %edi,0xc(%rsp)
mov    %esi,0x10(%rsp)
mov    %edx,0x14(%rsp)
lea    0xc(%rsp),%rsi
mov    $0x1b5,%edi
mov    %rcx,%rdx
call   1030 <_ada_use_c2phc@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define i32 @mapcon_exponents_of_map(i32 %0, i32 %1, i32 %2, i32* %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32*
%9 = alloca [3 x i32]
%10 = alloca i32
%11 = alloca double*
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32* %3, i32** %8
%12 = load i32, i32* %5
%13 = getelementptr inbounds [3 x i32], [3 x i32]* %9, i64 0, i64 0
store i32 %12, i32* %13
%14 = load i32, i32* %6
%15 = getelementptr inbounds [3 x i32], [3 x i32]* %9, i64 0, i64 1
store i32 %14, i32* %15
%16 = load i32, i32* %7
%17 = getelementptr inbounds [3 x i32], [3 x i32]* %9, i64 0, i64 2
store i32 %16, i32* %17
%18 = getelementptr inbounds [3 x i32], [3 x i32]* %9, i64 0, i64 0
%19 = load i32*, i32** %8
%20 = load double*, double** %11
%21 = call i32 @_ada_use_c2phc(i32 437, i32* %18, i32* %19, double* %20)
store i32 %21, i32* %10
%22 = load i32, i32* %10
ret i32 %22
}

LLVM IR (-O2):
define i32 @mapcon_exponents_of_map(i32 %0, i32 %1, i32 %2, i32* %3) {
%5 = alloca [3 x i32]
%6 = bitcast [3 x i32]* %5 to i8*
%7 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 0
store i32 %0, i32* %7
%8 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 1
store i32 %1, i32* %8
%9 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 2
store i32 %2, i32* %9
%10 = call i32 @_ada_use_c2phc(i32 437, i32* %7, i32* %3, double* undef)
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ g5_set_xmj(int, int, double **, double *);
void(g5_set_xmj_)(int *adr, int *nj, double (*xj)[3], double *mj) {
  g5_set_xmj(*adr, *nj, xj, mj);
}


x86 assembly (clang, -O0):
<g5_set_xmj_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
call   1030 <g5_set_xmj@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<g5_set_xmj_>:
mov    (%rdi),%edi
mov    (%rsi),%esi
jmp    1030 <g5_set_xmj@plt>

LLVM IR (-O0):
define void @g5_set_xmj_(i32* %0, i32* %1, [3 x double]* %2, double* %3) {
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca [3 x double]*
%8 = alloca double*
store i32* %0, i32** %5
store i32* %1, i32** %6
store [3 x double]* %2, [3 x double]** %7
store double* %3, double** %8
%9 = load i32*, i32** %5
%10 = load i32, i32* %9
%11 = load i32*, i32** %6
%12 = load i32, i32* %11
%13 = load [3 x double]*, [3 x double]** %7
%14 = bitcast [3 x double]* %13 to double**
%15 = load double*, double** %8
%16 = call i32 @g5_set_xmj(i32 %10, i32 %12, double** %14, double* %15)
ret void
}

LLVM IR (-O2):
define void @g5_set_xmj_(i32* nocapture %0, i32* nocapture %1, [3 x double]* %2, double* %3) {
%5 = load i32, i32* %0
%6 = load i32, i32* %1
%7 = bitcast [3 x double]* %2 to double**
%8 = tail call i32 @g5_set_xmj(i32 %5, i32 %6, double** %7, double* %3)
ret void
}
int getSecondSmallestNode(int *data, int *keys) {
  int first = 0;
  for (int i = 0; i < 16; i++) {
    if (first) {
      return i;
    }
    if (data[i] != 0) {
      first = 1;
    }
  }
  return -1;
}


x86 assembly (clang, -O0):
<getSecondSmallestNode>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
cmpl   $0x10,-0x20(%rbp)
jge    1165 <getSecondSmallestNode+0x65>
cmpl   $0x0,-0x1c(%rbp)
je     1139 <getSecondSmallestNode+0x39>
mov    -0x20(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    116c <getSecondSmallestNode+0x6c>
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
cmpl   $0x0,(%rax,%rcx,4)
je     1152 <getSecondSmallestNode+0x52>
movl   $0x1,-0x1c(%rbp)
jmp    1157 <getSecondSmallestNode+0x57>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    111a <getSecondSmallestNode+0x1a>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<getSecondSmallestNode>:
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rcx,%rax
add    $0x1,%rcx
cmp    $0xe,%rax
ja     1123 <getSecondSmallestNode+0x23>
cmpl   $0x0,(%rdi,%rax,4)
je     1110 <getSecondSmallestNode+0x10>
cmp    $0xf,%rax
mov    $0xffffffff,%eax
cmovb  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @getSecondSmallestNode(i32* nocapture %0, i32* nocapture readnone %1) {
br label %3
3: ; preds = %2, %3
%4 = phi i64 [ 0, %2 ], [ %8, %3 ]
%5 = getelementptr inbounds i32, i32* %0, i64 %4
%6 = load i32, i32* %5
%7 = icmp eq i32 %6, 0
%8 = add nuw nsw i64 %4, 1
%9 = icmp ult i64 %4, 15
%10 = select i1 %9, i1 %7, i1 false
br i1 %10, label %3, label %11
11: ; preds = %3
%12 = trunc i64 %8 to i32
%13 = select i1 %9, i32 %12, i32 -1
ret i32 %13
}
long _doubleIf() {
  long EV_a;
  long EV_b;
  long EV_c;
  long EV_d;
  EV_a = 1;
  EV_b = 2;
  EV_c = 3;
  if ((EV_a == 1)) {
    EV_b = 20;
    if ((EV_a == 1)) {
      EV_b = 200;
      EV_c = 300;
    } else {
      EV_a = 1;
      EV_b = 2;
      EV_c = 3;
    }
    EV_d = 50;
  }
  return EV_d;
}


x86 assembly (clang, -O0):
<_doubleIf>:
push   %rbp
mov    %rsp,%rbp
movq   $0x1,-0x8(%rbp)
movq   $0x2,-0x10(%rbp)
movq   $0x3,-0x18(%rbp)
cmpq   $0x1,-0x8(%rbp)
jne    116f <_doubleIf+0x6f>
movq   $0x14,-0x10(%rbp)
cmpq   $0x1,-0x8(%rbp)
jne    114f <_doubleIf+0x4f>
movq   $0xc8,-0x10(%rbp)
movq   $0x12c,-0x18(%rbp)
jmp    1167 <_doubleIf+0x67>
movq   $0x1,-0x8(%rbp)
movq   $0x2,-0x10(%rbp)
movq   $0x3,-0x18(%rbp)
movq   $0x32,-0x20(%rbp)
mov    -0x20(%rbp),%rax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i64 @_doubleIf() {
ret i64 50
}
int test_imm_4Duint8_mem(unsigned char *val) {
  return ((*val) & (0x4D << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_4Duint8_mem>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%edx
and    $0x4d,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_4Duint8_mem>:
testb  $0x4d,(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_4Duint8_mem(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = and i8 %2, 77
%4 = icmp eq i8 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ test();
int main(int argc, char **argv) {
  test();
  return 0;
}


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@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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 (...) @test()
ret i32 0
}

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


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

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

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

LLVM IR (-O2):
define void @g_relation_insert() {
ret void
}
/* Variables and functions */
int xsalsa20poly1305_secretbox(unsigned char *, unsigned char const *,
                               unsigned long long, unsigned char const *,
                               unsigned char const *);
int curve25519xsalsa20poly1305_box_afternm(unsigned char *c,
                                           const unsigned char *m,
                                           unsigned long long mlen,
                                           const unsigned char *n,
                                           const unsigned char *k) {
  return xsalsa20poly1305_secretbox(c, m, mlen, n, k);
}


x86 assembly (clang, -O0):
<curve25519xsalsa20poly1305_box_afternm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
call   1030 <xsalsa20poly1305_secretbox@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<curve25519xsalsa20poly1305_box_afternm>:
jmp    1030 <xsalsa20poly1305_secretbox@plt>

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

LLVM IR (-O2):
define i32 @curve25519xsalsa20poly1305_box_afternm(i8* %0, i8* %1, i64 %2, i8* %3, i8* %4) {
%6 = tail call i32 @xsalsa20poly1305_secretbox(i8* %0, i8* %1, i64 %2, i8* %3, i8* %4)
ret i32 %6
}
void cafebabe_constant_info_interface_method_ref_deinit(
    struct cafebabe_constant_info_interface_method_ref *r) {}


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

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

LLVM IR (-O0):
%struct.cafebabe_constant_info_interface_method_ref = type opaque
define void @cafebabe_constant_info_interface_method_ref_deinit(%struct.cafebabe_constant_info_interface_method_ref* %0) {
%2 = alloca %struct.cafebabe_constant_info_interface_method_ref*
store %struct.cafebabe_constant_info_interface_method_ref* %0, %struct.cafebabe_constant_info_interface_method_ref** %2
ret void
}

LLVM IR (-O2):
%struct.cafebabe_constant_info_interface_method_ref = type opaque
define void @cafebabe_constant_info_interface_method_ref_deinit(%struct.cafebabe_constant_info_interface_method_ref* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int XAllocColorCells() {
  printf("XAllocColorCells called\n");
  return 0;
}


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

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

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

LLVM IR (-O2):
@str = [24 x i8] c"XAllocColorCells called\00"
define i32 @XAllocColorCells() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
ret i32 0
}
void zpodd_disable_run_wake(struct ata_device *dev) {}


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

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

LLVM IR (-O0):
%struct.ata_device = type opaque
define void @zpodd_disable_run_wake(%struct.ata_device* %0) {
%2 = alloca %struct.ata_device*
store %struct.ata_device* %0, %struct.ata_device** %2
ret void
}

LLVM IR (-O2):
%struct.ata_device = type opaque
define void @zpodd_disable_run_wake(%struct.ata_device* nocapture %0) {
ret void
}
void main(int argc, char *argv[]) {
  int optind;
  char **files;
  int n_files;
  assume(argc >= 0);
  argv = malloc(argc * sizeof(char *));
  optind = 1;
  n_files = argc - optind;
  files = argv + optind;
  if (n_files <= 0) {
    usage(1);
  }
  char c = files[0];
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x0,-0x4(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1050 <assume@plt>
movslq -0x4(%rbp),%rdi
shl    $0x3,%rdi
call   1030 <malloc@plt>
mov    %rax,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
mov    -0x4(%rbp),%eax
sub    -0x14(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
cmpl   $0x0,-0x24(%rbp)
jg     119c <main+0x6c>
mov    $0x1,%edi
mov    $0x0,%al
call   1040 <usage@plt>
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
mov    %al,-0x25(%rbp)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    %edi,%ebx
not    %edi
shr    $0x1f,%edi
xor    %eax,%eax
call   1040 <assume@plt>
cmp    $0x1,%ebx
jg     1141 <main+0x21>
mov    $0x1,%edi
xor    %eax,%eax
pop    %rbx
jmp    1030 <usage@plt>
pop    %rbx
ret

LLVM IR (-O0):
define void @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i32
%8 = alloca i8
store i32 %0, i32* %3
store i8** %1, i8*** %4
%9 = load i32, i32* %3
%10 = icmp sge i32 %9, 0
%11 = zext i1 %10 to i32
%12 = call i32 (i32, ...) bitcast (i32 (...)* @assume to i32 (i32, ...)*)(i32 %11)
%13 = load i32, i32* %3
%14 = sext i32 %13 to i64
%15 = mul i64 %14, 8
%16 = call i8* @malloc(i64 %15)
%17 = bitcast i8* %16 to i8**
store i8** %17, i8*** %4
store i32 1, i32* %5
%18 = load i32, i32* %3
%19 = load i32, i32* %5
%20 = sub nsw i32 %18, %19
store i32 %20, i32* %7
%21 = load i8**, i8*** %4
%22 = load i32, i32* %5
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8*, i8** %21, i64 %23
store i8** %24, i8*** %6
%25 = load i32, i32* %7
%26 = icmp sle i32 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %2
%28 = call i32 (i32, ...) bitcast (i32 (...)* @usage to i32 (i32, ...)*)(i32 1)
br label %29
29: ; preds = %27, %2
%30 = load i8**, i8*** %6
%31 = getelementptr inbounds i8*, i8** %30, i64 0
%32 = load i8*, i8** %31
%33 = ptrtoint i8* %32 to i8
store i8 %33, i8* %8
ret void
}

LLVM IR (-O2):
define void @main(i32 %0, i8** nocapture readnone %1) {
%3 = xor i32 %0, -1
%4 = lshr i32 %3, 31
%5 = tail call i32 (i32, ...) bitcast (i32 (...)* @assume to i32 (i32, ...)*)(i32 %4)
%6 = icmp slt i32 %0, 2
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 (i32, ...) bitcast (i32 (...)* @usage to i32 (i32, ...)*)(i32 1)
br label %9
9: ; preds = %7, %2
ret void
}