xunge/DecIR huggingface dataset:
void __DELETE_java_util_Collections_EmptySet(void *me, void *client_data) {}


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

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

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

LLVM IR (-O2):
define void @__DELETE_java_util_Collections_EmptySet(i8* nocapture %0, i8* nocapture %1) {
ret void
}
/* Type definitions */
typedef int int64_t;

/* Variables and functions */
int64_t ne_int64_t(int64_t a, int64_t b) { return a != b; }


x86 assembly (clang, -O0):
<ne_int64_t>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
setne  %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ne_int64_t>:
xor    %eax,%eax
cmp    %esi,%edi
setne  %al
ret

LLVM IR (-O0):
define i32 @ne_int64_t(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 = icmp ne i32 %5, %6
%8 = zext i1 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @ne_int64_t(i32 %0, i32 %1) {
%3 = icmp ne i32 %0, %1
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int yylex();
void main() {
  int num = yylex();
  printf("\n Number is %d \n", num);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1040 <yylex@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xec4(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <yylex@plt>
lea    0xed1(%rip),%rdi
mov    %eax,%esi
pop    %rax
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [17 x i8] c"\0A Number is %d \0A\00"
define void @main() {
%1 = tail call i32 (...) @yylex()
%2 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %1)
ret void
}
/* Variables and functions */
double hf(double, int /*<<< orphan*/);
double chr(double v) { return hf(v, 0); }


x86 assembly (clang, -O0):
<chr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
xor    %edi,%edi
call   1030 <hf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<chr>:
xor    %edi,%edi
jmp    1030 <hf@plt>

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

LLVM IR (-O2):
define double @chr(double %0) {
%2 = tail call double @hf(double %0, i32 0)
ret double %2
}
long SwapBytes(long lv) {
  long t;
  t = (lv & 0x000000FF) << 24;
  t |= (lv & 0x0000FF00) << 8;
  t |= (lv & 0x00FF0000) >> 8;
  t |= (lv & 0xFF000000) >> 24;
  return (t);
}


x86 assembly (clang, -O0):
<SwapBytes>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
and    $0xff,%rax
shl    $0x18,%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
and    $0xff00,%rax
shl    $0x8,%rax
or     -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
and    $0xff0000,%rax
sar    $0x8,%rax
or     -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
movabs $0xff000000,%rax
and    -0x8(%rbp),%rax
sar    $0x18,%rax
or     -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
pop    %rbp
ret

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

LLVM IR (-O0):
define i64 @SwapBytes(i64 %0) {
%2 = alloca i64
%3 = alloca i64
store i64 %0, i64* %2
%4 = load i64, i64* %2
%5 = and i64 %4, 255
%6 = shl i64 %5, 24
store i64 %6, i64* %3
%7 = load i64, i64* %2
%8 = and i64 %7, 65280
%9 = shl i64 %8, 8
%10 = load i64, i64* %3
%11 = or i64 %10, %9
store i64 %11, i64* %3
%12 = load i64, i64* %2
%13 = and i64 %12, 16711680
%14 = ashr i64 %13, 8
%15 = load i64, i64* %3
%16 = or i64 %15, %14
store i64 %16, i64* %3
%17 = load i64, i64* %2
%18 = and i64 %17, 4278190080
%19 = ashr i64 %18, 24
%20 = load i64, i64* %3
%21 = or i64 %20, %19
store i64 %21, i64* %3
%22 = load i64, i64* %3
ret i64 %22
}

LLVM IR (-O2):
define i64 @SwapBytes(i64 %0) {
%2 = trunc i64 %0 to i32
%3 = tail call i32 @llvm.bswap.i32(i32 %2)
%4 = zext i32 %3 to i64
ret i64 %4
}
/* Type definitions */
typedef int uint64_t;

/* Variables and functions */
int UINT64_C(int);
__attribute__((always_)) uint64_t fmix64(uint64_t k) {
  k ^= k >> 33;
  k *= UINT64_C(0xff51afd7ed558ccd);
  k ^= k >> 33;
  k *= UINT64_C(0xc4ceb9fe1a85ec53);
  k ^= k >> 33;
  return k;
}


x86 assembly (clang, -O0):
<fmix64>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x21,%ecx
sar    %cl,%eax
xor    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0xed558ccd,%edi
call   1030 <UINT64_C@plt>
imul   -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x21,%ecx
sar    %cl,%eax
xor    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x1a85ec53,%edi
call   1030 <UINT64_C@plt>
imul   -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x21,%ecx
sar    %cl,%eax
xor    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fmix64>:
push   %rax
mov    $0xed558ccd,%edi
call   1030 <UINT64_C@plt>
mov    $0x1a85ec53,%edi
pop    %rax
jmp    1030 <UINT64_C@plt>

LLVM IR (-O0):
define i32 @fmix64(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = ashr i32 %3, 33
%5 = load i32, i32* %2
%6 = xor i32 %5, %4
store i32 %6, i32* %2
%7 = call i32 @UINT64_C(i32 -313160499)
%8 = load i32, i32* %2
%9 = mul nsw i32 %8, %7
store i32 %9, i32* %2
%10 = load i32, i32* %2
%11 = ashr i32 %10, 33
%12 = load i32, i32* %2
%13 = xor i32 %12, %11
store i32 %13, i32* %2
%14 = call i32 @UINT64_C(i32 444984403)
%15 = load i32, i32* %2
%16 = mul nsw i32 %15, %14
store i32 %16, i32* %2
%17 = load i32, i32* %2
%18 = ashr i32 %17, 33
%19 = load i32, i32* %2
%20 = xor i32 %19, %18
store i32 %20, i32* %2
%21 = load i32, i32* %2
ret i32 %21
}

LLVM IR (-O2):
define i32 @fmix64(i32 %0) {
%2 = tail call i32 @UINT64_C(i32 -313160499)
%3 = tail call i32 @UINT64_C(i32 444984403)
ret i32 poison
}
/* Type definitions */
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ ssize_t;
typedef int /*<<< orphan*/ socklen_t;

/* Variables and functions */
int /*<<< orphan*/ sendto_schedule(int, void const *, size_t, int,
                                   struct sockaddr const *, int /*<<< orphan*/,
                                   int /*<<< orphan*/);
ssize_t sendto_or_schedule(int sockfd, const void *buf, size_t len, int flags,
                           const struct sockaddr *dest_addr,
                           socklen_t addrlen) {
  return sendto_schedule(sockfd, buf, len, flags, dest_addr, addrlen, 0);
}


x86 assembly (clang, -O0):
<sendto_or_schedule>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x28(%rbp),%r8
mov    -0x2c(%rbp),%r9d
xor    %eax,%eax
movl   $0x0,(%rsp)
call   1030 <sendto_schedule@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sendto_or_schedule>:
push   %rax
movl   $0x0,(%rsp)
call   1030 <sendto_schedule@plt>
pop    %rcx
ret

LLVM IR (-O0):
%struct.sockaddr = type { i32 }
define i32 @sendto_or_schedule(i32 %0, i8* %1, i64 %2, i32 %3, %struct.sockaddr* %4, i32 %5) {
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i64
%10 = alloca i32
%11 = alloca %struct.sockaddr*
%12 = alloca i32
store i32 %0, i32* %7
store i8* %1, i8** %8
store i64 %2, i64* %9
store i32 %3, i32* %10
store %struct.sockaddr* %4, %struct.sockaddr** %11
store i32 %5, i32* %12
%13 = load i32, i32* %7
%14 = load i8*, i8** %8
%15 = load i64, i64* %9
%16 = load i32, i32* %10
%17 = load %struct.sockaddr*, %struct.sockaddr** %11
%18 = load i32, i32* %12
%19 = call i32 @sendto_schedule(i32 %13, i8* %14, i64 %15, i32 %16, %struct.sockaddr* %17, i32 %18, i32 0)
ret i32 %19
}

LLVM IR (-O2):
%struct.sockaddr = type { i32 }
define i32 @sendto_or_schedule(i32 %0, i8* %1, i64 %2, i32 %3, %struct.sockaddr* %4, i32 %5) {
%7 = tail call i32 @sendto_schedule(i32 %0, i8* %1, i64 %2, i32 %3, %struct.sockaddr* %4, i32 %5, i32 0)
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, unsigned int);
unsigned int rightrot(unsigned int, int);
int main(int argc, char *argv[]) {
  unsigned int x = 0xFFFFFFFB;
  x = rightrot(x, 4);
  printf("x = %x\n", x);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0xfffffffb,-0x14(%rbp)
mov    -0x14(%rbp),%edi
mov    $0x4,%esi
call   1040 <rightrot@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xea9(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xfffffffb,%edi
mov    $0x4,%esi
call   1040 <rightrot@plt>
lea    0xec9(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [8 x i8] c"x = %x\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @rightrot(i32 -5, i32 4)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %3)
ret i32 0
}
/* Variables and functions */
float __builtin_wasm_min_f32(float, float);
float min_f32(float x, float y) { return __builtin_wasm_min_f32(x, y); }


x86 assembly (clang, -O0):
<min_f32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
call   1030 <__builtin_wasm_min_f32@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<min_f32>:
jmp    1030 <__builtin_wasm_min_f32@plt>

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

LLVM IR (-O2):
define float @min_f32(float %0, float %1) {
%3 = tail call float @__builtin_wasm_min_f32(float %0, float %1)
ret float %3
}
/* Variables and functions */
int *__errno();
int *__errno_location() { return __errno(); }


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

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

LLVM IR (-O0):
define i32* @__errno_location() {
%1 = call i32* (...) @__errno()
ret i32* %1
}

LLVM IR (-O2):
define i32* @__errno_location() {
%1 = tail call i32* (...) @__errno()
ret i32* %1
}
/* Variables and functions */
int /*<<< orphan*/ deviceReset();
void machineReset() { deviceReset(); }


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

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

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

LLVM IR (-O2):
define void @machineReset() {
%1 = tail call i32 (...) @deviceReset()
ret void
}
/* Variables and functions */
int word_count(char *input, char delimiter) {
  size_t count = 1;
  while (*input != '\0') {
    if (*input == delimiter) {
      count++;
    }
    *input++;
  }
  return count;
}


x86 assembly (clang, -O0):
<word_count>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
movq   $0x1,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1156 <word_count+0x56>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
movsbl -0x9(%rbp),%ecx
cmp    %ecx,%eax
jne    1145 <word_count+0x45>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1116 <word_count+0x16>
mov    -0x18(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<word_count>:
mov    (%rdi),%cl
test   %cl,%cl
je     1127 <word_count+0x27>
add    $0x1,%rdi
mov    $0x1,%eax
nop
xor    %edx,%edx
cmp    %sil,%cl
sete   %dl
add    %rdx,%rax
movzbl (%rdi),%ecx
add    $0x1,%rdi
test   %cl,%cl
jne    1110 <word_count+0x10>
ret
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @word_count(i8* nocapture %0, i8 signext %1) {
%3 = load i8, i8* %0
%4 = icmp eq i8 %3, 0
br i1 %4, label %17, label %5
5: ; preds = %2, %5
%6 = phi i8 [ %13, %5 ], [ %3, %2 ]
%7 = phi i64 [ %11, %5 ], [ 1, %2 ]
%8 = phi i8* [ %12, %5 ], [ %0, %2 ]
%9 = icmp eq i8 %6, %1
%10 = zext i1 %9 to i64
%11 = add i64 %7, %10
%12 = getelementptr inbounds i8, i8* %8, i64 1
%13 = load i8, i8* %12
%14 = icmp eq i8 %13, 0
br i1 %14, label %15, label %5
15: ; preds = %5
%16 = trunc i64 %11 to i32
br label %17
17: ; preds = %15, %2
%18 = phi i32 [ 1, %2 ], [ %16, %15 ]
ret i32 %18
}
/* Variables and functions */
int /*<<< orphan*/ chdir(char *);
int /*<<< orphan*/ perror(char *);
void change_dir(char *dir) {
  if ((!chdir(dir)) == 0) {
    perror("cd");
  }
}


x86 assembly (clang, -O0):
<change_dir>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <chdir@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
cmp    $0x0,%eax
jne    1157 <change_dir+0x37>
lea    0xeae(%rip),%rdi
call   1040 <perror@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<change_dir>:
push   %rax
call   1030 <chdir@plt>
test   %eax,%eax
jne    112c <change_dir+0xc>
pop    %rax
ret
lea    0xecd(%rip),%rdi
pop    %rax
jmp    1040 <perror@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"cd\00"
define void @change_dir(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @chdir(i8* %3)
%5 = icmp ne i32 %4, 0
%6 = xor i1 %5, true
%7 = zext i1 %6 to i32
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %1
%10 = call i32 @perror(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
br label %11
11: ; preds = %9, %1
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"cd\00"
define void @change_dir(i8* %0) {
%2 = tail call i32 @chdir(i8* %0)
%3 = icmp eq i32 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @perror(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
br label %6
6: ; preds = %4, %1
ret void
}
/* Variables and functions */
int tolower(char const);
int parseFileChar(const char c) {
  switch (tolower(c)) {
  case 'a':
    return 0;
  case 'b':
    return 1;
  case 'c':
    return 2;
  case 'd':
    return 3;
  case 'e':
    return 4;
  case 'f':
    return 5;
  case 'g':
    return 6;
  case 'h':
    return 7;
  default:
    return 8;
  }
}


x86 assembly (clang, -O0):
<parseFileChar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%edi
call   1030 <tolower@plt>
add    $0xffffff9f,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x7,%eax
ja     11ad <parseFileChar+0x9d>
mov    -0x10(%rbp),%rax
lea    0xebc(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x0,-0x4(%rbp)
jmp    11b4 <parseFileChar+0xa4>
movl   $0x1,-0x4(%rbp)
jmp    11b4 <parseFileChar+0xa4>
movl   $0x2,-0x4(%rbp)
jmp    11b4 <parseFileChar+0xa4>
movl   $0x3,-0x4(%rbp)
jmp    11b4 <parseFileChar+0xa4>
movl   $0x4,-0x4(%rbp)
jmp    11b4 <parseFileChar+0xa4>
movl   $0x5,-0x4(%rbp)
jmp    11b4 <parseFileChar+0xa4>
movl   $0x6,-0x4(%rbp)
jmp    11b4 <parseFileChar+0xa4>
movl   $0x7,-0x4(%rbp)
jmp    11b4 <parseFileChar+0xa4>
movl   $0x8,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parseFileChar>:
push   %rax
call   1030 <tolower@plt>
add    $0xffffff9f,%eax
cmp    $0x8,%eax
mov    $0x8,%ecx
cmovae %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @parseFileChar(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = call i32 @tolower(i8 signext %4)
switch i32 %5, label %14 [
i32 97, label %6
i32 98, label %7
i32 99, label %8
i32 100, label %9
i32 101, label %10
i32 102, label %11
i32 103, label %12
i32 104, label %13
]
6: ; preds = %1
store i32 0, i32* %2
br label %15
7: ; preds = %1
store i32 1, i32* %2
br label %15
8: ; preds = %1
store i32 2, i32* %2
br label %15
9: ; preds = %1
store i32 3, i32* %2
br label %15
10: ; preds = %1
store i32 4, i32* %2
br label %15
11: ; preds = %1
store i32 5, i32* %2
br label %15
12: ; preds = %1
store i32 6, i32* %2
br label %15
13: ; preds = %1
store i32 7, i32* %2
br label %15
14: ; preds = %1
store i32 8, i32* %2
br label %15
15: ; preds = %14, %13, %12, %11, %10, %9, %8, %7, %6
%16 = load i32, i32* %2
ret i32 %16
}

LLVM IR (-O2):
define i32 @parseFileChar(i8 signext %0) {
%2 = tail call i32 @tolower(i8 signext %0)
%3 = add i32 %2, -97
%4 = icmp ult i32 %3, 8
%5 = select i1 %4, i32 %3, i32 8
ret i32 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ CPUbasepriSet(int /*<<< orphan*/);
void IntPriorityMaskSet(uint32_t ui32PriorityMask) {
  CPUbasepriSet(ui32PriorityMask);
}


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

x86 assembly (clang, -O2):
<IntPriorityMaskSet>:
jmp    1030 <CPUbasepriSet@plt>

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

LLVM IR (-O2):
define void @IntPriorityMaskSet(i32 %0) {
%2 = tail call i32 @CPUbasepriSet(i32 %0)
ret void
}
int getpid(int n) { return 1; }


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

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

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

LLVM IR (-O2):
define i32 @getpid(i32 %0) {
ret i32 1
}
void bottom_func(void) { return; }


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

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

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

LLVM IR (-O2):
define void @bottom_func() {
ret void
}
int SynthOS_nullLock() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @SynthOS_nullLock() {
ret i32 0
}
int **set_line_to_0(int lin, int p, int **tab) {
  int j;
  for (j = 0; j < p; j++) {
    tab[lin][j] = 0;
  }
  return tab;
}


x86 assembly (clang, -O0):
<set_line_to_0>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1146 <set_line_to_0+0x46>
mov    -0x10(%rbp),%rax
movslq -0x4(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x14(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1115 <set_line_to_0+0x15>
mov    -0x10(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_line_to_0>:
push   %rbx
mov    %rdx,%rbx
test   %esi,%esi
jle    112c <set_line_to_0+0x1c>
movslq %edi,%rax
mov    (%rbx,%rax,8),%rdi
mov    %esi,%edx
shl    $0x2,%rdx
xor    %esi,%esi
call   1030 <memset@plt>
mov    %rbx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32** @set_line_to_0(i32 %0, i32 %1, i32** returned %2) {
%4 = icmp sgt i32 %1, 0
br i1 %4, label %5, label %12
5: ; preds = %3
%6 = sext i32 %0 to i64
%7 = getelementptr inbounds i32*, i32** %2, i64 %6
%8 = bitcast i32** %7 to i8**
%9 = load i8*, i8** %8
%10 = zext i32 %1 to i64
%11 = shl nuw nsw i64 %10, 2
br label %12
12: ; preds = %5, %3
ret i32** %2
}
void print_float_hex(float f) {
  union {
    float f;
    int i
  } test;
  test.f = f;
  printf("%#010x\n", test.i);
}


x86 assembly (clang, -O0):
<print_float_hex>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xecf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_float_hex>:
movd   %xmm0,%esi
lea    0xee5(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>

LLVM IR (-O0):
%union.anon = type { float }
@.str = [8 x i8] c"%x\0A\00"
define void @print_float_hex(float %0) {
%2 = alloca float
%3 = alloca %union.anon
store float %0, float* %2
%4 = load float, float* %2
%5 = bitcast %union.anon* %3 to float*
store float %4, float* %5
%6 = bitcast %union.anon* %3 to i32*
%7 = load i32, i32* %6
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %7)
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"%x\0A\00"
define void @print_float_hex(float %0) {
%2 = bitcast float %0 to i32
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %2)
ret void
}
void glFrustumf(void) { return; }


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

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

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

LLVM IR (-O2):
define void @glFrustumf() {
ret void
}
/* Variables and functions */
float _asinhf(float);
float asinhf(float x) { return _asinhf(x); }


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

x86 assembly (clang, -O2):
<asinhf>:
jmp    1030 <_asinhf@plt>

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

LLVM IR (-O2):
define float @asinhf(float %0) {
%2 = tail call float @_asinhf(float %0)
ret float %2
}
double deq(x, y)
double x, y;
{ return ((double)(x == y)); }


x86 assembly (clang, -O0):
<deq>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
ucomisd -0x10(%rbp),%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%eax
cvtsi2sd %eax,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<deq>:
cmpeqsd %xmm1,%xmm0
movsd  0xef3(%rip),%xmm1
andpd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @deq(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 = fcmp oeq double %5, %6
%8 = zext i1 %7 to i32
%9 = sitofp i32 %8 to double
ret double %9
}

LLVM IR (-O2):
define double @deq(double %0, double %1) {
%3 = fcmp oeq double %0, %1
%4 = uitofp i1 %3 to double
ret double %4
}
void av_ripemd_update() {}


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

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

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

LLVM IR (-O2):
define void @av_ripemd_update() {
ret void
}
void swp(int *a, int i, int j) {
  int tmp = a[i];
  a[i] = a[j];
  a[j] = tmp;
}


x86 assembly (clang, -O0):
<swp>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x14(%rbp),%edx
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
pop    %rbp
ret

x86 assembly (clang, -O2):
<swp>:
movslq %esi,%rax
mov    (%rdi,%rax,4),%ecx
movslq %edx,%rdx
mov    (%rdi,%rdx,4),%esi
mov    %esi,(%rdi,%rax,4)
mov    %ecx,(%rdi,%rdx,4)
ret

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

LLVM IR (-O2):
define void @swp(i32* nocapture %0, i32 %1, i32 %2) {
%4 = sext i32 %1 to i64
%5 = getelementptr inbounds i32, i32* %0, i64 %4
%6 = load i32, i32* %5
%7 = sext i32 %2 to i64
%8 = getelementptr inbounds i32, i32* %0, i64 %7
%9 = load i32, i32* %8
store i32 %9, i32* %5
store i32 %6, i32* %8
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  int a = 1;
  if (a) {
    extern int a;
    printf("%d\n", a);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     1145 <main+0x35>
mov    0x2eb1(%rip),%rax
mov    (%rax),%esi
lea    0xec0(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
@a = external global i32
define i32 @main() {
%1 = load i32, i32* @a
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, short);
int fun_call_align_5(short a) {
  printf("a = %d\n", a);
  return a;
}


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

x86 assembly (clang, -O2):
<fun_call_align_5>:
push   %rbx
mov    %edi,%ebx
lea    0xee6(%rip),%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"a = %d\0A\00"
define i32 @fun_call_align_5(i16 signext %0) {
%2 = alloca i16
store i16 %0, i16* %2
%3 = load i16, i16* %2
%4 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i16 signext %3)
%5 = load i16, i16* %2
%6 = sext i16 %5 to i32
ret i32 %6
}

LLVM IR (-O2):
@.str = [8 x i8] c"a = %d\0A\00"
define i32 @fun_call_align_5(i16 signext %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i16 signext %0)
%3 = sext i16 %0 to i32
ret i32 %3
}
BOOST_AUTO_TEST_CASE(neq) {
  TESTCASE2(neq, 0, 0, 0);
  TESTCASE2(neq, 0, 1, 1);
  TESTCASE2(neq, 1, 0, 1);
  TESTCASE2(neq, 1, 1, 0);
}


x86 assembly (clang, -O0):
<BOOST_AUTO_TEST_CASE>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
xor    %ecx,%ecx
mov    %ecx,%esi
mov    %ecx,%edx
mov    $0x0,%al
call   1030 <TESTCASE2@plt>
mov    -0x8(%rbp),%edi
xor    %esi,%esi
mov    $0x1,%ecx
mov    %ecx,%edx
mov    $0x0,%al
call   1030 <TESTCASE2@plt>
mov    -0x8(%rbp),%edi
mov    $0x1,%ecx
xor    %edx,%edx
mov    %ecx,%esi
mov    $0x0,%al
call   1030 <TESTCASE2@plt>
mov    -0x8(%rbp),%edi
mov    $0x1,%edx
xor    %ecx,%ecx
mov    %edx,%esi
mov    $0x0,%al
call   1030 <TESTCASE2@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<BOOST_AUTO_TEST_CASE>:
push   %rbx
mov    %edi,%ebx
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1030 <TESTCASE2@plt>
mov    %ebx,%edi
xor    %esi,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
xor    %eax,%eax
call   1030 <TESTCASE2@plt>
mov    %ebx,%edi
mov    $0x1,%esi
xor    %edx,%edx
mov    $0x1,%ecx
xor    %eax,%eax
call   1030 <TESTCASE2@plt>
mov    %ebx,%edi
mov    $0x1,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
xor    %eax,%eax
pop    %rbx
jmp    1030 <TESTCASE2@plt>

LLVM IR (-O0):
define i32 @BOOST_AUTO_TEST_CASE(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @TESTCASE2 to i32 (i32, i32, i32, i32, ...)*)(i32 %4, i32 0, i32 0, i32 0)
%6 = load i32, i32* %3
%7 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @TESTCASE2 to i32 (i32, i32, i32, i32, ...)*)(i32 %6, i32 0, i32 1, i32 1)
%8 = load i32, i32* %3
%9 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @TESTCASE2 to i32 (i32, i32, i32, i32, ...)*)(i32 %8, i32 1, i32 0, i32 1)
%10 = load i32, i32* %3
%11 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @TESTCASE2 to i32 (i32, i32, i32, i32, ...)*)(i32 %10, i32 1, i32 1, i32 0)
%12 = load i32, i32* %2
ret i32 %12
}

LLVM IR (-O2):
define i32 @BOOST_AUTO_TEST_CASE(i32 %0) {
%2 = tail call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @TESTCASE2 to i32 (i32, i32, i32, i32, ...)*)(i32 %0, i32 0, i32 0, i32 0)
%3 = tail call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @TESTCASE2 to i32 (i32, i32, i32, i32, ...)*)(i32 %0, i32 0, i32 1, i32 1)
%4 = tail call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @TESTCASE2 to i32 (i32, i32, i32, i32, ...)*)(i32 %0, i32 1, i32 0, i32 1)
%5 = tail call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @TESTCASE2 to i32 (i32, i32, i32, i32, ...)*)(i32 %0, i32 1, i32 1, i32 0)
ret i32 undef
}
/* Type definitions */
typedef int /*<<< orphan*/ GLenum;
typedef int /*<<< orphan*/ GLdouble;

/* Variables and functions */
int /*<<< orphan*/ glTexGendv(int /*<<< orphan*/, int /*<<< orphan*/,
                              int /*<<< orphan*/ *);
void TexGendv(GLenum coord, GLenum pname, GLdouble *params) {
  glTexGendv(coord, pname, params);
}


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

x86 assembly (clang, -O2):
<TexGendv>:
jmp    1030 <glTexGendv@plt>

LLVM IR (-O0):
define void @TexGendv(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 = load i32, i32* %4
%8 = load i32, i32* %5
%9 = load i32*, i32** %6
%10 = call i32 @glTexGendv(i32 %7, i32 %8, i32* %9)
ret void
}

LLVM IR (-O2):
define void @TexGendv(i32 %0, i32 %1, i32* %2) {
%4 = tail call i32 @glTexGendv(i32 %0, i32 %1, i32* %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ __VERIFIER_assert(int);
int main(void) {
  int a = 2;
  int b = 2;
  __VERIFIER_assert(a > b);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x2,-0x8(%rbp)
movl   $0x2,-0xc(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
setg   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__VERIFIER_assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 2, i32* %2
store i32 2, i32* %3
%4 = load i32, i32* %2
%5 = load i32, i32* %3
%6 = icmp sgt i32 %4, %5
%7 = zext i1 %6 to i32
%8 = call i32 @__VERIFIER_assert(i32 %7)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @__VERIFIER_assert(i32 0)
ret i32 0
}
void increment_of_ten(int *item, void *data) {
  (void)(data);
  *item += 10;
}


x86 assembly (clang, -O0):
<increment_of_ten>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
add    $0xa,%ecx
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<increment_of_ten>:
addl   $0xa,(%rdi)
ret

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

LLVM IR (-O2):
define void @increment_of_ten(i32* nocapture %0, i8* nocapture readnone %1) {
%3 = load i32, i32* %0
%4 = add nsw i32 %3, 10
store i32 %4, i32* %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ CLOCK_PROCESS_CPUTIME_ID;
int /*<<< orphan*/ start_timer(unsigned long, int /*<<< orphan*/);
void start_cpu_timer(unsigned long int maxtimer) {
  start_timer(maxtimer, CLOCK_PROCESS_CPUTIME_ID);
}


x86 assembly (clang, -O0):
<start_cpu_timer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2ec1(%rip),%rax
mov    (%rax),%esi
call   1030 <start_timer@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<start_cpu_timer>:
mov    0x2ed1(%rip),%rax
mov    (%rax),%esi
jmp    1030 <start_timer@plt>

LLVM IR (-O0):
@CLOCK_PROCESS_CPUTIME_ID = global i32 0
define void @start_cpu_timer(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = load i32, i32* @CLOCK_PROCESS_CPUTIME_ID
%5 = call i32 @start_timer(i64 %3, i32 %4)
ret void
}

LLVM IR (-O2):
@CLOCK_PROCESS_CPUTIME_ID = global i32 0
define void @start_cpu_timer(i64 %0) {
%2 = load i32, i32* @CLOCK_PROCESS_CPUTIME_ID
%3 = tail call i32 @start_timer(i64 %0, i32 %2)
ret void
}
int f(unsigned t) { return (t / 2) * 2; }


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

x86 assembly (clang, -O2):
<f>:
mov    %edi,%eax
and    $0xfffffffe,%eax
ret

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

LLVM IR (-O2):
define i32 @f(i32 %0) {
%2 = and i32 %0, -2
ret i32 %2
}
void para_output(struct cnode *cnode, unsigned int indent) {
  printf("%*s<p>\n", indent, "");
  outputchildren(cnode, indent, 1);
  printf("%*s</p>\n", indent, "");
}


x86 assembly (clang, -O0):
<para_output>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xec7(%rip),%rdi
lea    0xed0(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    $0x1,%edx
mov    $0x0,%al
call   1040 <outputchildren@plt>
mov    -0xc(%rbp),%esi
lea    0xea4(%rip),%rdi
lea    0xea5(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<para_output>:
push   %r15
push   %r14
push   %rbx
mov    %esi,%ebx
mov    %rdi,%r14
lea    0xecf(%rip),%rdi
lea    0xed8(%rip),%r15
mov    %r15,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <outputchildren@plt>
lea    0xeae(%rip),%rdi
mov    %ebx,%esi
mov    %r15,%rdx
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <printf@plt>

LLVM IR (-O0):
%struct.cnode = type opaque
@.str = [8 x i8] c"%*s<p>\0A\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [9 x i8] c"%*s</p>\0A\00"
define void @para_output(%struct.cnode* %0, i32 %1) {
%3 = alloca %struct.cnode*
%4 = alloca i32
store %struct.cnode* %0, %struct.cnode** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %5, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%7 = load %struct.cnode*, %struct.cnode** %3
%8 = load i32, i32* %4
%9 = call i32 (%struct.cnode*, i32, i32, ...) bitcast (i32 (...)* @outputchildren to i32 (%struct.cnode*, i32, i32, ...)*)(%struct.cnode* %7, i32 %8, i32 1)
%10 = load i32, i32* %4
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 %10, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
%struct.cnode = type opaque
@.str = [8 x i8] c"%*s<p>\0A\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [9 x i8] c"%*s</p>\0A\00"
define void @para_output(%struct.cnode* %0, i32 %1) {
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (%struct.cnode*, i32, i32, ...) bitcast (i32 (...)* @outputchildren to i32 (%struct.cnode*, i32, i32, ...)*)(%struct.cnode* %0, i32 %1, i32 1)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 %1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ ftell(int /*<<< orphan*/ *);
void uninitvar_ftell(void) {
  FILE *fp;
  (void)ftell(fp);
}


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

x86 assembly (clang, -O2):
<uninitvar_ftell>:
jmp    1030 <ftell@plt>

LLVM IR (-O0):
define void @uninitvar_ftell() {
%1 = alloca i32*
%2 = load i32*, i32** %1
%3 = call i32 @ftell(i32* %2)
ret void
}

LLVM IR (-O2):
define void @uninitvar_ftell() {
%1 = tail call i32 @ftell(i32* undef)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ streams_latin1_output(char *);
void opcode_new_line(void) {
  ;
  ;
  (void)streams_latin1_output("\n");
}


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

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

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

LLVM IR (-O2):
@.str = [2 x i8] c"\0A\00"
define void @opcode_new_line() {
%1 = tail call i32 @streams_latin1_output(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret void
}
int test_imm_EDuint32_mem(unsigned int *val) {
  return ((*val) & (0xED << 0)) ? -20 : -40;
}


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

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

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

LLVM IR (-O2):
define i32 @test_imm_EDuint32_mem(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = and i32 %2, 237
%4 = icmp eq i32 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Type definitions */
struct timeval {
  double volatile tv_sec;
  double tv_usec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/);
volatile double __XALT_epoch_xalt_1_5() {
  struct timeval tm;
  gettimeofday(&tm, 0);
  return tm.tv_sec + 1.0e-6 * tm.tv_usec;
}


x86 assembly (clang, -O0):
<__XALT_epoch_xalt_1_5>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x10(%rbp),%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
movsd  -0x10(%rbp),%xmm1
movsd  -0x8(%rbp),%xmm0
movsd  0xecb(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__XALT_epoch_xalt_1_5>:
sub    $0x18,%rsp
lea    0x8(%rsp),%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
movsd  0x10(%rsp),%xmm0
mulsd  0xed2(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.timeval = type { double, double }
define double @__XALT_epoch_xalt_1_5() {
%1 = alloca %struct.timeval
%2 = call i32 @gettimeofday(%struct.timeval* %1, i32 0)
%3 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 0
%4 = load volatile double, double* %3
%5 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 1
%6 = load double, double* %5
%7 = call double @llvm.fmuladd.f64(double 0x3EB0C6F7A0B5ED8D, double %6, double %4)
ret double %7
}

LLVM IR (-O2):
%struct.timeval = type { double, double }
define double @__XALT_epoch_xalt_1_5() {
%1 = alloca %struct.timeval
%2 = bitcast %struct.timeval* %1 to i8*
%3 = call i32 @gettimeofday(%struct.timeval* %1, i32 0)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 0
%5 = load volatile double, double* %4
%6 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 1
%7 = load double, double* %6
%8 = call double @llvm.fmuladd.f64(double %7, double 0x3EB0C6F7A0B5ED8D, double %5)
ret double %8
}
/* Variables and functions */
int /*<<< orphan*/ KpOutPortB(int, char);
void KdBochsE9PutChar(char c) { KpOutPortB(0xE9, c); }


x86 assembly (clang, -O0):
<KdBochsE9PutChar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    $0xe9,%edi
movsbl -0x1(%rbp),%esi
call   1030 <KpOutPortB@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<KdBochsE9PutChar>:
mov    %edi,%esi
mov    $0xe9,%edi
jmp    1030 <KpOutPortB@plt>

LLVM IR (-O0):
define void @KdBochsE9PutChar(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = call i32 @KpOutPortB(i32 233, i8 signext %3)
ret void
}

LLVM IR (-O2):
define void @KdBochsE9PutChar(i8 signext %0) {
%2 = tail call i32 @KpOutPortB(i32 233, i8 signext %0)
ret void
}
decode_i_cl_plus(int a, int b) {
  b = (b >> 7) & 31;
  return 1 << (b + 4);
}


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

x86 assembly (clang, -O2):
<decode_i_cl_plus>:
mov    %esi,%ecx
shr    $0x7,%ecx
mov    $0x10,%eax
shl    %cl,%eax
ret

LLVM IR (-O0):
define i32 @decode_i_cl_plus(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 = ashr i32 %5, 7
%7 = and i32 %6, 31
store i32 %7, i32* %4
%8 = load i32, i32* %4
%9 = add nsw i32 %8, 4
%10 = shl i32 1, %9
ret i32 %10
}

LLVM IR (-O2):
define i32 @decode_i_cl_plus(i32 %0, i32 %1) {
%3 = lshr i32 %1, 7
%4 = and i32 %3, 31
%5 = shl i32 16, %4
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ write_data16(unsigned int);
int /*<<< orphan*/ write_data16_to_reg(int, unsigned int);
void write_data32_to_reg(int reg, unsigned int value) {
  write_data16_to_reg(reg, value);
  write_data16(value >> 16);
}


x86 assembly (clang, -O0):
<write_data32_to_reg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <write_data16_to_reg@plt>
mov    -0x8(%rbp),%edi
shr    $0x10,%edi
call   1040 <write_data16@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_data32_to_reg>:
push   %rbx
mov    %esi,%ebx
call   1030 <write_data16_to_reg@plt>
shr    $0x10,%ebx
mov    %ebx,%edi
pop    %rbx
jmp    1040 <write_data16@plt>

LLVM IR (-O0):
define void @write_data32_to_reg(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 @write_data16_to_reg(i32 %5, i32 %6)
%8 = load i32, i32* %4
%9 = lshr i32 %8, 16
%10 = call i32 @write_data16(i32 %9)
ret void
}

LLVM IR (-O2):
define void @write_data32_to_reg(i32 %0, i32 %1) {
%3 = tail call i32 @write_data16_to_reg(i32 %0, i32 %1)
%4 = lshr i32 %1, 16
%5 = tail call i32 @write_data16(i32 %4)
ret void
}