xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ printf(char *, int);
int system(char *);
int main() {
  printf("%d", system("del wk.txt"));
  getchar();
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xecb(%rip),%rdi
call   1030 <system@plt>
lea    0xebc(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <getchar@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [11 x i8] c"del wk.txt\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @system(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = call i32 (...) @getchar()
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [11 x i8] c"del wk.txt\00"
define i32 @main() {
%1 = tail call i32 @system(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = tail call i32 (...) @getchar()
ret i32 0
}
/* Type definitions */
typedef int uint64_t;

/* Variables and functions */
char *protobuf_write_varint(uint64_t value, char *restrict buf) {
  do {
    *buf++ = (value & 0x7F) | 0x80;
    value >>= 7;
  } while (value != 0);
  *(buf - 1) &= ~(1 << 7);
  return buf;
}


x86 assembly (clang, -O0):
<protobuf_write_varint>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%eax
and    $0x7f,%eax
or     $0x80,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x4(%rbp),%eax
sar    $0x7,%eax
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    110b <protobuf_write_varint+0xb>
mov    -0x10(%rbp),%rax
movsbl -0x1(%rax),%ecx
and    $0xffffff7f,%ecx
mov    %cl,-0x1(%rax)
mov    -0x10(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<protobuf_write_varint>:
mov    %rsi,%rax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %edi,%ecx
mov    %ecx,%edx
or     $0x80,%dl
mov    %dl,(%rax)
add    $0x1,%rax
sar    $0x7,%edi
cmp    $0x7f,%ecx
ja     1110 <protobuf_write_varint+0x10>
and    $0x7f,%cl
mov    %cl,-0x1(%rax)
ret

LLVM IR (-O0):
define i8* @protobuf_write_varint(i32 %0, i8* noalias %1) {
%3 = alloca i32
%4 = alloca i8*
store i32 %0, i32* %3
store i8* %1, i8** %4
br label %5
5: ; preds = %14, %2
%6 = load i32, i32* %3
%7 = and i32 %6, 127
%8 = or i32 %7, 128
%9 = trunc i32 %8 to i8
%10 = load i8*, i8** %4
%11 = getelementptr inbounds i8, i8* %10, i32 1
store i8* %11, i8** %4
store i8 %9, i8* %10
%12 = load i32, i32* %3
%13 = ashr i32 %12, 7
store i32 %13, i32* %3
br label %14
14: ; preds = %5
%15 = load i32, i32* %3
%16 = icmp ne i32 %15, 0
br i1 %16, label %5, label %17
17: ; preds = %14
%18 = load i8*, i8** %4
%19 = getelementptr inbounds i8, i8* %18, i64 -1
%20 = load i8, i8* %19
%21 = sext i8 %20 to i32
%22 = and i32 %21, -129
%23 = trunc i32 %22 to i8
store i8 %23, i8* %19
%24 = load i8*, i8** %4
ret i8* %24
}

LLVM IR (-O2):
define i8* @protobuf_write_varint(i32 %0, i8* noalias %1) {
br label %3
3: ; preds = %3, %2
%4 = phi i32 [ %0, %2 ], [ %9, %3 ]
%5 = phi i8* [ %1, %2 ], [ %8, %3 ]
%6 = trunc i32 %4 to i8
%7 = or i8 %6, -128
%8 = getelementptr inbounds i8, i8* %5, i64 1
store i8 %7, i8* %5
%9 = ashr i32 %4, 7
%10 = icmp ult i32 %4, 128
br i1 %10, label %11, label %3
11: ; preds = %3
%12 = trunc i32 %4 to i8
%13 = and i8 %12, 127
store i8 %13, i8* %5
ret i8* %8
}
int comp_int_desc(const void *p_i1, const void *p_i2) {
  int i1 = *(int *)p_i1;
  int i2 = *(int *)p_i2;
  if (i1 > i2) {
    return -1;
  }
  if (i1 < i2) {
    return +1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<comp_int_desc>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x20(%rbp),%eax
jle    1136 <comp_int_desc+0x36>
movl   $0xffffffff,-0x4(%rbp)
jmp    1155 <comp_int_desc+0x55>
mov    -0x1c(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    114e <comp_int_desc+0x4e>
movl   $0x1,-0x4(%rbp)
jmp    1155 <comp_int_desc+0x55>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<comp_int_desc>:
mov    (%rdi),%eax
xor    %ecx,%ecx
cmp    (%rsi),%eax
setl   %cl
mov    $0xffffffff,%eax
cmovle %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @comp_int_desc(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i32*
%4 = load i32, i32* %3
%5 = bitcast i8* %1 to i32*
%6 = load i32, i32* %5
%7 = icmp sgt i32 %4, %6
%8 = icmp slt i32 %4, %6
%9 = zext i1 %8 to i32
%10 = select i1 %7, i32 -1, i32 %9
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ primes(int, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int main() {
  primes(100, 0, 0);
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x64,%edi
xor    %edx,%edx
mov    %edx,%esi
call   1040 <primes@plt>
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x64,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1040 <primes@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @primes(i32 100, i32 0, i32 0)
%2 = tail call i32 @putchar(i32 10)
ret i32 0
}
int g(int n) { return n * n; }


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

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

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

LLVM IR (-O2):
define i32 @g(i32 %0) {
%2 = mul nsw i32 %0, %0
ret i32 %2
}
void foo278(int p) {}


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

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

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

LLVM IR (-O2):
define void @foo278(i32 %0) {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ string;
typedef int /*<<< orphan*/ pattern;

/* Variables and functions */
int /*<<< orphan*/ KR(char *, int, char *, int);
int main(void) {
  char string[] = {'G', 'C', 'A', 'T', 'C', 'G', 'C', 'A', 'G', 'A', 'G', 'A',
                   'G', 'T', 'A', 'T', 'A', 'C', 'A', 'G', 'T', 'A', 'C', 'G'};
  char pattern[] = {'G', 'C', 'A', 'G', 'A', 'G', 'A', 'G'};
  int m = sizeof(string);
  int n = sizeof(pattern);
  KR(pattern, n, string, m);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeda(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xed7(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xed4(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0xed1(%rip),%rax
mov    %rax,-0x28(%rbp)
movl   $0x18,-0x2c(%rbp)
movl   $0x8,-0x30(%rbp)
lea    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%esi
lea    -0x20(%rbp),%rdx
mov    -0x2c(%rbp),%ecx
call   1030 <KR@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
movaps 0xee5(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movabs $0x4743415447414341,%rax
41 43 47
mov    %rax,0x20(%rsp)
movabs $0x4741474147414347,%rax
47 41 47
mov    %rax,0x8(%rsp)
lea    0x8(%rsp),%rdi
lea    0x10(%rsp),%rdx
mov    $0x8,%esi
mov    $0x18,%ecx
call   1030 <KR@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
@__const.main.string = [24 x i8] c"GCATCGCAGAGAGTATACAGTACG"
@__const.main.pattern = [8 x i8] c"GCAGAGAG"
define i32 @main() {
%1 = alloca i32
%2 = alloca [24 x i8]
%3 = alloca [8 x i8]
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
%6 = bitcast [24 x i8]* %2 to i8*
%7 = bitcast [8 x i8]* %3 to i8*
store i32 24, i32* %4
store i32 8, i32* %5
%8 = getelementptr inbounds [8 x i8], [8 x i8]* %3, i64 0, i64 0
%9 = load i32, i32* %5
%10 = getelementptr inbounds [24 x i8], [24 x i8]* %2, i64 0, i64 0
%11 = load i32, i32* %4
%12 = call i32 @KR(i8* %8, i32 %9, i8* %10, i32 %11)
ret i32 0
}

LLVM IR (-O2):
@__const.main.string = [24 x i8] c"GCATCGCAGAGAGTATACAGTACG"
define i32 @main() {
%1 = alloca [24 x i8]
%2 = alloca i64
%3 = getelementptr inbounds [24 x i8], [24 x i8]* %1, i64 0, i64 0
%4 = bitcast i64* %2 to i8*
store i64 5134463395872981831, i64* %2
%5 = call i32 @KR(i8* %4, i32 8, i8* %3, i32 24)
ret i32 0
}
FNIEMOP_DEF(iemOp_Grp7_vmresume) {
  IEMOP_BITCH_ABOUT_STUB();
  return IEMOP_RAISE_INVALID_OPCODE();
}


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

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

LLVM IR (-O0):
define i32 @FNIEMOP_DEF(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (...) @IEMOP_BITCH_ABOUT_STUB()
%4 = call i32 (...) @IEMOP_RAISE_INVALID_OPCODE()
ret i32 %4
}

LLVM IR (-O2):
define i32 @FNIEMOP_DEF(i32 %0) {
%2 = tail call i32 (...) @IEMOP_BITCH_ABOUT_STUB()
%3 = tail call i32 (...) @IEMOP_RAISE_INVALID_OPCODE()
ret i32 %3
}
/* Variables and functions */
char *malloc(scalar_t__);
int /*<<< orphan*/ strcpy(char *, char const *);
scalar_t__ strlen(char const *);
char *mobi_strdup(const char *s) {
  char *p = malloc(strlen(s) + 1);
  if (p) {
    strcpy(p, s);
  }
  return p;
}


x86 assembly (clang, -O0):
<mobi_strdup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,%rdi
add    $0x1,%rdi
call   1050 <malloc@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     116d <mobi_strdup+0x3d>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mobi_strdup>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
call   1040 <strlen@plt>
lea    0x1(%rax),%rdi
call   1050 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
je     1158 <mobi_strdup+0x28>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define i8* @mobi_strdup(i8* %0) {
%2 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%3 = add nsw i64 %2, 1
%4 = tail call i8* @malloc(i64 %3)
%5 = icmp eq i8* %4, null
br i1 %5, label %8, label %6
6: ; preds = %1
%7 = tail call i32 @strcpy(i8* %4, i8* %0)
br label %8
8: ; preds = %6, %1
ret i8* %4
}
/* Variables and functions */
int opposite_char(char);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, char *);
int main() {
  char c;
  scanf("%c", &c);
  printf("%c\n", opposite_char(c));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x5(%rbp),%rsi
call   1050 <scanf@plt>
movsbl -0x5(%rbp),%edi
call   1030 <opposite_char@plt>
mov    %eax,%esi
lea    0xea2(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0x7(%rsp),%rsi
call   1050 <scanf@plt>
movsbl 0x7(%rsp),%edi
call   1030 <opposite_char@plt>
lea    0xeb0(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%c\00"
@.str.1 = [4 x i8] c"%c\0A\00"
define i32 @main() {
%1 = alloca i8
%2 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %1)
%3 = load i8, i8* %1
%4 = call i32 @opposite_char(i8 signext %3)
%5 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %4)
ret i32 0
}
/* Variables and functions */
float music_duration();
float f_music_duration() { return music_duration(); }


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

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

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

LLVM IR (-O2):
define float @f_music_duration() {
%1 = tail call float (...) @music_duration()
ret float %1
}
int Left(i) { return 2i; }


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

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

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

LLVM IR (-O2):
define i32 @Left(i32 %0) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ c1();
void fn(void) { c1(); }


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

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

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

LLVM IR (-O2):
define void @fn() {
%1 = tail call i32 (...) @c1()
ret void
}
call3a(cp, sp, ip, lp) char *cp;
short *sp;
int *ip;
long *lp;
{
  cp = 0;
  sp = 0;
  ip = 0;
  lp = 0;
}


x86 assembly (clang, -O0):
<call3a>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
movq   $0x0,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @call3a(i8* %0, i16* %1, i32* %2, i64* %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i16*
%8 = alloca i32*
%9 = alloca i64*
store i8* %0, i8** %6
store i16* %1, i16** %7
store i32* %2, i32** %8
store i64* %3, i64** %9
store i8* null, i8** %6
store i16* null, i16** %7
store i32* null, i32** %8
store i64* null, i64** %9
%10 = load i32, i32* %5
ret i32 %10
}

LLVM IR (-O2):
define i32 @call3a(i8* nocapture readnone %0, i16* nocapture readnone %1, i32* nocapture readnone %2, i64* nocapture readnone %3) {
ret i32 undef
}
/* Variables and functions */
int getUShort(char *);
int handleGoto(char *assembled, int currentPoint) {
  return getUShort(&assembled[currentPoint]);
}


x86 assembly (clang, -O0):
<handleGoto>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
call   1030 <getUShort@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<handleGoto>:
movslq %esi,%rax
add    %rax,%rdi
jmp    1030 <getUShort@plt>

LLVM IR (-O0):
define i32 @handleGoto(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i8*, i8** %3
%6 = load i32, i32* %4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, i8* %5, i64 %7
%9 = call i32 @getUShort(i8* %8)
ret i32 %9
}

LLVM IR (-O2):
define i32 @handleGoto(i8* %0, i32 %1) {
%3 = sext i32 %1 to i64
%4 = getelementptr inbounds i8, i8* %0, i64 %3
%5 = tail call i32 @getUShort(i8* %4)
ret i32 %5
}
int strends_with(char *haystack, char *needle) {
  char *end = haystack + strlen(haystack) - strlen(needle);
  if (strcmp(end, needle) == 0) {
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<strends_with>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %rax,%rcx
mov    -0x30(%rbp),%rax
add    %rcx,%rax
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <strlen@plt>
mov    %rax,%rdx
mov    -0x28(%rbp),%rax
xor    %ecx,%ecx
sub    %rdx,%rcx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    118d <strends_with+0x6d>
movl   $0x1,-0x4(%rbp)
jmp    1194 <strends_with+0x74>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strends_with>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1030 <strlen@plt>
add    %rax,%rbx
mov    %r14,%rdi
call   1030 <strlen@plt>
sub    %rax,%rbx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <strcmp@plt>
xor    %ecx,%ecx
test   %eax,%eax
sete   %cl
mov    %ecx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @strends_with(i8* %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
%7 = load i8*, i8** %4
%8 = load i8*, i8** %4
%9 = call i64 @strlen(i8* %8)
%10 = getelementptr inbounds i8, i8* %7, i64 %9
%11 = load i8*, i8** %5
%12 = call i64 @strlen(i8* %11)
%13 = sub i64 0, %12
%14 = getelementptr inbounds i8, i8* %10, i64 %13
store i8* %14, i8** %6
%15 = load i8*, i8** %6
%16 = load i8*, i8** %5
%17 = call i32 @strcmp(i8* %15, i8* %16)
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %2
store i32 1, i32* %3
br label %21
20: ; preds = %2
store i32 0, i32* %3
br label %21
21: ; preds = %20, %19
%22 = load i32, i32* %3
ret i32 %22
}

LLVM IR (-O2):
define i32 @strends_with(i8* nocapture %0, i8* nocapture %1) {
%3 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%4 = getelementptr inbounds i8, i8* %0, i64 %3
%5 = tail call i64 @strlen(i8* dereferenceable(1) %1)
%6 = sub i64 0, %5
%7 = getelementptr inbounds i8, i8* %4, i64 %6
%8 = tail call i32 @strcmp(i8* dereferenceable(1) %7, i8* dereferenceable(1) %1)
%9 = icmp eq i32 %8, 0
%10 = zext i1 %9 to i32
ret i32 %10
}
BOOST_AUTO_TEST_CASE(arccosh) { TESTCASE1(arccosh, 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
mov    $0x1,%esi
xor    %edx,%edx
mov    $0x0,%al
call   1030 <TESTCASE1@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<BOOST_AUTO_TEST_CASE>:
mov    $0x1,%esi
xor    %edx,%edx
xor    %eax,%eax
jmp    1030 <TESTCASE1@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, ...) bitcast (i32 (...)* @TESTCASE1 to i32 (i32, i32, i32, ...)*)(i32 %4, i32 1, i32 0)
%6 = load i32, i32* %2
ret i32 %6
}

LLVM IR (-O2):
define i32 @BOOST_AUTO_TEST_CASE(i32 %0) {
%2 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @TESTCASE1 to i32 (i32, i32, i32, ...)*)(i32 %0, i32 1, i32 0)
ret i32 undef
}
void $signal(int cond) {}


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

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

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

LLVM IR (-O2):
define void @"$signal"(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void grpcsharp_channel_get_target() {
  fprintf(stderr, "Should never reach here");
  abort();
}


x86 assembly (clang, -O0):
<grpcsharp_channel_get_target>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1040 <fprintf@plt>
mov    $0x0,%al
call   1030 <abort@plt>

x86 assembly (clang, -O2):
<grpcsharp_channel_get_target>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1040 <fprintf@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [24 x i8] c"Should never reach here\00"
define void @grpcsharp_channel_get_target() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @abort()
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [24 x i8] c"Should never reach here\00"
define void @grpcsharp_channel_get_target() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (...) @abort()
unreachable
}
float correctBounds(float n) {
  if (n > 1000000)
    n = 1000000;
  if (n < -1000000)
    n = -1000000;
  return n;
}


x86 assembly (clang, -O0):
<correctBounds>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
movss  0xeea(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    112c <correctBounds+0x2c>
movss  0xed9(%rip),%xmm0
movss  %xmm0,-0x4(%rbp)
movss  0xed0(%rip),%xmm0
ucomiss -0x4(%rbp),%xmm0
jbe    114b <correctBounds+0x4b>
movss  0xebe(%rip),%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<correctBounds>:
movss  0xef8(%rip),%xmm1
minss  %xmm0,%xmm1
movss  0xef0(%rip),%xmm0
maxss  %xmm1,%xmm0
ret

LLVM IR (-O0):
define float @correctBounds(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fcmp ogt float %3, 1.000000e+06
br i1 %4, label %5, label %6
5: ; preds = %1
store float 1.000000e+06, float* %2
br label %6
6: ; preds = %5, %1
%7 = load float, float* %2
%8 = fcmp olt float %7, -1.000000e+06
br i1 %8, label %9, label %10
9: ; preds = %6
store float -1.000000e+06, float* %2
br label %10
10: ; preds = %9, %6
%11 = load float, float* %2
ret float %11
}

LLVM IR (-O2):
define float @correctBounds(float %0) {
%2 = fcmp ogt float %0, 1.000000e+06
%3 = select i1 %2, float 1.000000e+06, float %0
%4 = fcmp olt float %3, -1.000000e+06
%5 = select i1 %4, float -1.000000e+06, float %3
ret float %5
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ memcpy(int /*<<< orphan*/ *, int /*<<< orphan*/ const *,
                          int);
const uint32_t *unpack32_32_avx2(const uint32_t *in, uint32_t *out) {
  memcpy(out, in, 32 * sizeof(*out));
  in += 32;
  out += 32;
  return in;
}


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

x86 assembly (clang, -O2):
<unpack32_32_avx2>:
push   %rbx
mov    %rdi,%rbx
mov    %rsi,%rdi
mov    %rbx,%rsi
mov    $0x80,%edx
call   1030 <memcpy@plt>
sub    $0xffffffffffffff80,%rbx
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i32* @unpack32_32_avx2(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 = load i32*, i32** %3
%7 = call i32 @memcpy(i32* %5, i32* %6, i32 128)
%8 = load i32*, i32** %3
%9 = getelementptr inbounds i32, i32* %8, i64 32
store i32* %9, i32** %3
%10 = load i32*, i32** %4
%11 = getelementptr inbounds i32, i32* %10, i64 32
store i32* %11, i32** %4
%12 = load i32*, i32** %3
ret i32* %12
}

LLVM IR (-O2):
define i32* @unpack32_32_avx2(i32* %0, i32* %1) {
%3 = tail call i32 @memcpy(i32* %1, i32* %0, i32 128)
%4 = getelementptr inbounds i32, i32* %0, i64 32
ret i32* %4
}
void _DebugP_assert(int expression, const char *file, int line) {}


x86 assembly (clang, -O0):
<_DebugP_assert>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @_DebugP_assert(i32 %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
store i32 %0, i32* %4
store i8* %1, i8** %5
store i32 %2, i32* %6
ret void
}

LLVM IR (-O2):
define void @_DebugP_assert(i32 %0, i8* nocapture %1, i32 %2) {
ret void
}
void int_are_value_type(int i) { i = i * 2; }


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

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

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

LLVM IR (-O2):
define void @int_are_value_type(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free6(void ******);
void free6float(float ******p) { free6((void ******)p); }


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

x86 assembly (clang, -O2):
<free6float>:
jmp    1030 <free6@plt>

LLVM IR (-O0):
define void @free6float(float****** %0) {
%2 = alloca float******
store float****** %0, float******* %2
%3 = load float******, float******* %2
%4 = bitcast float****** %3 to i8******
%5 = call i32 @free6(i8****** %4)
ret void
}

LLVM IR (-O2):
define void @free6float(float****** %0) {
%2 = bitcast float****** %0 to i8******
%3 = tail call i32 @free6(i8****** %2)
ret void
}
/* Type definitions */
typedef int uint8_t;
typedef int uint32_t;

/* Variables and functions */
void ext4_bmap_bit_set(uint8_t *bmap, uint32_t bit) {
  *(bmap + (bit >> 3)) |= (1 << (bit & 7));
}


x86 assembly (clang, -O0):
<ext4_bmap_bit_set>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%ecx
and    $0x7,%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
sar    $0x3,%ecx
movslq %ecx,%rcx
or     (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
pop    %rbp
ret

x86 assembly (clang, -O2):
<ext4_bmap_bit_set>:
mov    %esi,%ecx
and    $0x7,%cl
mov    $0x1,%eax
shl    %cl,%eax
sar    $0x3,%esi
movslq %esi,%rcx
or     %eax,(%rdi,%rcx,4)
ret

LLVM IR (-O0):
define void @ext4_bmap_bit_set(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 = and i32 %5, 7
%7 = shl i32 1, %6
%8 = load i32*, i32** %3
%9 = load i32, i32* %4
%10 = ashr i32 %9, 3
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i32, i32* %8, i64 %11
%13 = load i32, i32* %12
%14 = or i32 %13, %7
store i32 %14, i32* %12
ret void
}

LLVM IR (-O2):
define void @ext4_bmap_bit_set(i32* nocapture %0, i32 %1) {
%3 = and i32 %1, 7
%4 = shl nuw nsw i32 1, %3
%5 = ashr i32 %1, 3
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i32, i32* %0, i64 %6
%8 = load i32, i32* %7
%9 = or i32 %8, %4
store i32 %9, i32* %7
ret void
}
char xtob(int c) { return (c - (((c >= '0') && (c <= '9')) ? '0' : '7')); }


x86 assembly (clang, -O0):
<xtob>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
xor    %eax,%eax
cmpl   $0x30,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jl     1126 <xtob+0x26>
cmpl   $0x39,-0x4(%rbp)
setle  %al
mov    %al,-0x5(%rbp)
mov    -0xc(%rbp),%eax
mov    -0x5(%rbp),%sil
mov    $0x37,%ecx
mov    $0x30,%edx
test   $0x1,%sil
cmovne %edx,%ecx
sub    %ecx,%eax
movsbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xtob>:
lea    -0x30(%rdi),%ecx
lea    0xc9(%rdi),%edx
lea    0xd0(%rdi),%eax
cmp    $0xa,%ecx
cmovae %edx,%eax
ret

LLVM IR (-O0):
define signext i8 @xtob(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* %2
%5 = icmp sge i32 %4, 48
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, i32* %2
%8 = icmp sle i32 %7, 57
br label %9
9: ; preds = %6, %1
%10 = phi i1 [ false, %1 ], [ %8, %6 ]
%11 = zext i1 %10 to i64
%12 = select i1 %10, i32 48, i32 55
%13 = sub nsw i32 %3, %12
%14 = trunc i32 %13 to i8
ret i8 %14
}

LLVM IR (-O2):
define signext i8 @xtob(i32 %0) {
%2 = add i32 %0, -48
%3 = icmp ult i32 %2, 10
%4 = select i1 %3, i32 208, i32 201
%5 = add i32 %4, %0
%6 = trunc i32 %5 to i8
ret i8 %6
}
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int copy_dobldobl_start_system_to_container(void) {
  int *a, *b, fail;
  double *c;
  fail = _ada_use_c2phc4c(253, a, b, c, 0);
  return fail;
}


x86 assembly (clang, -O0):
<copy_dobldobl_start_system_to_container>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    $0xfd,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<copy_dobldobl_start_system_to_container>:
mov    $0xfd,%edi
xor    %r8d,%r8d
jmp    1030 <_ada_use_c2phc4c@plt>

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

LLVM IR (-O2):
define i32 @copy_dobldobl_start_system_to_container() {
%1 = tail call i32 @_ada_use_c2phc4c(i32 253, i32* undef, i32* undef, double* undef, i32 0)
ret i32 %1
}
int fun1143() { return 1143; }


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

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

LLVM IR (-O0):
define i32 @fun1143() {
ret i32 1143
}

LLVM IR (-O2):
define i32 @fun1143() {
ret i32 1143
}
int get_lqi() { return -1; }


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

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

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

LLVM IR (-O2):
define i32 @get_lqi() {
ret i32 -1
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ swap(int /*<<< orphan*/);
void little_endian(uint32_t *buf, unsigned int words) {
  while (words--)
    buf[words] = swap(buf[words]);
}


x86 assembly (clang, -O0):
<little_endian>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0xc(%rbp)
cmp    $0x0,%eax
je     1153 <little_endian+0x43>
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
mov    (%rax,%rcx,4),%edi
call   1030 <swap@plt>
mov    %eax,%edx
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
mov    %edx,(%rax,%rcx,4)
jmp    111f <little_endian+0xf>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<little_endian>:
push   %r14
push   %rbx
push   %rax
test   %esi,%esi
je     1135 <little_endian+0x25>
mov    %rdi,%r14
mov    %esi,%ebx
nopl   (%rax)
mov    -0x4(%r14,%rbx,4),%edi
call   1030 <swap@plt>
mov    %eax,-0x4(%r14,%rbx,4)
add    $0xffffffffffffffff,%rbx
jne    1120 <little_endian+0x10>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define void @little_endian(i32* nocapture %0, i32 %1) {
%3 = icmp eq i32 %1, 0
br i1 %3, label %13, label %4
4: ; preds = %2
%5 = zext i32 %1 to i64
br label %6
6: ; preds = %4, %6
%7 = phi i64 [ %5, %4 ], [ %8, %6 ]
%8 = add nsw i64 %7, -1
%9 = getelementptr inbounds i32, i32* %0, i64 %8
%10 = load i32, i32* %9
%11 = tail call i32 @swap(i32 %10)
store i32 %11, i32* %9
%12 = icmp eq i64 %8, 0
br i1 %12, label %13, label %6
13: ; preds = %6, %2
ret void
}
/* Type definitions */
struct node {
  int dummy;
};

/* Variables and functions */
struct node *reverseprac(struct node *headnode) {
  return NULL;
}


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

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

LLVM IR (-O0):
%struct.node = type { i32 }
define %struct.node* @reverseprac(%struct.node* %0) {
%2 = alloca %struct.node*
store %struct.node* %0, %struct.node** %2
ret %struct.node* null
}

LLVM IR (-O2):
%struct.node = type { i32 }
define noalias %struct.node* @reverseprac(%struct.node* nocapture readnone %0) {
ret %struct.node* null
}
/* Type definitions */
struct mntent {
  int dummy;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ ENOSYS;
int /*<<< orphan*/ errno;
int addmntent(FILE *fp, const struct mntent *mnt) {
  ;
  errno = ENOSYS;
  return -1;
  ;
}


x86 assembly (clang, -O0):
<addmntent>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2ed5(%rip),%rax
mov    (%rax),%ecx
mov    0x2ebc(%rip),%rax
mov    %ecx,(%rax)
mov    $0xffffffff,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<addmntent>:
mov    0x2ee1(%rip),%rax
mov    (%rax),%eax
mov    0x2ec8(%rip),%rcx
mov    %eax,(%rcx)
mov    $0xffffffff,%eax
ret

LLVM IR (-O0):
%struct.mntent = type { i32 }
@ENOSYS = global i32 0
@errno = global i32 0
define i32 @addmntent(i32* %0, %struct.mntent* %1) {
%3 = alloca i32*
%4 = alloca %struct.mntent*
store i32* %0, i32** %3
store %struct.mntent* %1, %struct.mntent** %4
%5 = load i32, i32* @ENOSYS
store i32 %5, i32* @errno
ret i32 -1
}

LLVM IR (-O2):
%struct.mntent = type { i32 }
@ENOSYS = global i32 0
@errno = global i32 0
define i32 @addmntent(i32* nocapture readnone %0, %struct.mntent* nocapture readnone %1) {
%3 = load i32, i32* @ENOSYS
store i32 %3, i32* @errno
ret i32 -1
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, unsigned int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
void MMout_of_memory(long size) {
  (void)fflush(stdout);
  (void)fprintf(stderr, "\nout of memory allocating %u bytes\n",
                (unsigned)size);
  exit(1);
}


x86 assembly (clang, -O0):
<MMout_of_memory>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2e95(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
mov    0x2e8f(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    %eax,%edx
lea    0xea0(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<MMout_of_memory>:
push   %rbx
mov    %rdi,%rbx
mov    0x2e9d(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
mov    0x2e97(%rip),%rax
mov    (%rax),%edi
lea    0xeae(%rip),%rsi
mov    %ebx,%edx
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stdout = global i32 0
@stderr = global i32 0
@.str = [36 x i8] c"\0Aout of memory allocating %u bytes\0A\00"
define void @MMout_of_memory(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i32, i32* @stdout
%4 = call i32 @fflush(i32 %3)
%5 = load i32, i32* @stderr
%6 = load i64, i64* %2
%7 = trunc i64 %6 to i32
%8 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i32 %7)
%9 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stdout = global i32 0
@stderr = global i32 0
@.str = [36 x i8] c"\0Aout of memory allocating %u bytes\0A\00"
define void @MMout_of_memory(i64 %0) {
%2 = load i32, i32* @stdout
%3 = tail call i32 @fflush(i32 %2)
%4 = load i32, i32* @stderr
%5 = trunc i64 %0 to i32
%6 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ ffStringCreate(char *);
char *ffWord(char);
void ffCreate(void) {
  char *FName;
  FName = ffWord((' '));
  if (*FName > 0) {
    ffStringCreate(FName);
  }
}


x86 assembly (clang, -O0):
<ffCreate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x20,%edi
call   1030 <ffWord@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jle    114f <ffCreate+0x2f>
mov    -0x8(%rbp),%rdi
call   1040 <ffStringCreate@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ffCreate>:
push   %rax
mov    $0x20,%edi
call   1030 <ffWord@plt>
cmpb   $0x0,(%rax)
jle    1139 <ffCreate+0x19>
mov    %rax,%rdi
pop    %rax
jmp    1040 <ffStringCreate@plt>
pop    %rax
ret

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

LLVM IR (-O2):
define void @ffCreate() {
%1 = tail call i8* @ffWord(i8 signext 32)
%2 = load i8, i8* %1
%3 = icmp sgt i8 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = tail call i32 @ffStringCreate(i8* %1)
br label %6
6: ; preds = %4, %0
ret void
}
int get_end_time(void *self, double *time) {
  *time = -1.;
  return (0);
}


x86 assembly (clang, -O0):
<get_end_time>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsd  0xee8(%rip),%xmm0
movsd  %xmm0,(%rax)
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_end_time>:
movabs $0xbff0000000000000,%rax
mov    %rax,(%rsi)
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @get_end_time(i8* %0, double* %1) {
%3 = alloca i8*
%4 = alloca double*
store i8* %0, i8** %3
store double* %1, double** %4
%5 = load double*, double** %4
store double -1.000000e+00, double* %5
ret i32 0
}

LLVM IR (-O2):
define i32 @get_end_time(i8* nocapture readnone %0, double* nocapture writeonly %1) {
store double -1.000000e+00, double* %1
ret i32 0
}
void fn_pragma_0_1(void) {}


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

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

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

LLVM IR (-O2):
define void @fn_pragma_0_1() {
ret void
}
unsigned int hweight32(unsigned int w) {
  w = (w & 0x55555555) + ((w >> 1) & 0x55555555);
  w = (w & 0x33333333) + ((w >> 2) & 0x33333333);
  w = (w & 0x0F0F0F0F) + ((w >> 4) & 0x0F0F0F0F);
  w = (w & 0x00FF00FF) + ((w >> 8) & 0x00FF00FF);
  w = (w & 0x0000FFFF) + ((w >> 16) & 0x0000FFFF);
  return w;
}


x86 assembly (clang, -O0):
<hweight32>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0x55555555,%eax
mov    -0x4(%rbp),%ecx
shr    $0x1,%ecx
and    $0x55555555,%ecx
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0x33333333,%eax
mov    -0x4(%rbp),%ecx
shr    $0x2,%ecx
and    $0x33333333,%ecx
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xf0f0f0f,%eax
mov    -0x4(%rbp),%ecx
shr    $0x4,%ecx
and    $0xf0f0f0f,%ecx
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xff00ff,%eax
mov    -0x4(%rbp),%ecx
shr    $0x8,%ecx
and    $0xff00ff,%ecx
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xffff,%eax
mov    -0x4(%rbp),%ecx
shr    $0x10,%ecx
and    $0xffff,%ecx
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<hweight32>:
mov    %edi,%eax
and    $0x55555555,%eax
shr    %edi
and    $0x55555555,%edi
add    %edi,%eax
mov    %eax,%ecx
and    $0x33333333,%ecx
shr    $0x2,%eax
and    $0x33333333,%eax
add    %ecx,%eax
mov    %eax,%ecx
and    $0x7070707,%ecx
shr    $0x4,%eax
and    $0x7070707,%eax
add    %ecx,%eax
mov    %eax,%ecx
and    $0xf000f,%ecx
shr    $0x8,%eax
and    $0xf000f,%eax
add    %ecx,%eax
movzwl %ax,%ecx
shr    $0x10,%eax
add    %ecx,%eax
ret

LLVM IR (-O0):
define i32 @hweight32(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = and i32 %3, 1431655765
%5 = load i32, i32* %2
%6 = lshr i32 %5, 1
%7 = and i32 %6, 1431655765
%8 = add i32 %4, %7
store i32 %8, i32* %2
%9 = load i32, i32* %2
%10 = and i32 %9, 858993459
%11 = load i32, i32* %2
%12 = lshr i32 %11, 2
%13 = and i32 %12, 858993459
%14 = add i32 %10, %13
store i32 %14, i32* %2
%15 = load i32, i32* %2
%16 = and i32 %15, 252645135
%17 = load i32, i32* %2
%18 = lshr i32 %17, 4
%19 = and i32 %18, 252645135
%20 = add i32 %16, %19
store i32 %20, i32* %2
%21 = load i32, i32* %2
%22 = and i32 %21, 16711935
%23 = load i32, i32* %2
%24 = lshr i32 %23, 8
%25 = and i32 %24, 16711935
%26 = add i32 %22, %25
store i32 %26, i32* %2
%27 = load i32, i32* %2
%28 = and i32 %27, 65535
%29 = load i32, i32* %2
%30 = lshr i32 %29, 16
%31 = and i32 %30, 65535
%32 = add i32 %28, %31
store i32 %32, i32* %2
%33 = load i32, i32* %2
ret i32 %33
}

LLVM IR (-O2):
define i32 @hweight32(i32 %0) {
%2 = and i32 %0, 1431655765
%3 = lshr i32 %0, 1
%4 = and i32 %3, 1431655765
%5 = add nuw i32 %4, %2
%6 = and i32 %5, 858993459
%7 = lshr i32 %5, 2
%8 = and i32 %7, 858993459
%9 = add nuw nsw i32 %8, %6
%10 = and i32 %9, 117901063
%11 = lshr i32 %9, 4
%12 = and i32 %11, 117901063
%13 = add nuw nsw i32 %12, %10
%14 = and i32 %13, 983055
%15 = lshr i32 %13, 8
%16 = and i32 %15, 983055
%17 = add nuw nsw i32 %16, %14
%18 = and i32 %17, 31
%19 = lshr i32 %17, 16
%20 = add nuw nsw i32 %18, %19
ret i32 %20
}
/* Variables and functions */
unsigned int OALReadDeviceId(unsigned int);
unsigned short GOP_MIU_BUS(unsigned short MIU_BUS) {
  unsigned int devId = 0;
  devId = OALReadDeviceId(devId);
  if ((0x47) == devId) {
    ;
    MIU_BUS = 5;
  } else if ((0x50) == devId) {
    ;
    MIU_BUS = 0x4;
  } else {
    ;
    MIU_BUS = 0x4;
  };
  return MIU_BUS;
}


x86 assembly (clang, -O0):
<GOP_MIU_BUS>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <OALReadDeviceId@plt>
mov    %eax,-0x8(%rbp)
mov    $0x47,%eax
cmp    -0x8(%rbp),%eax
jne    114a <GOP_MIU_BUS+0x3a>
movw   $0x5,-0x2(%rbp)
jmp    116e <GOP_MIU_BUS+0x5e>
mov    $0x50,%eax
cmp    -0x8(%rbp),%eax
jne    1163 <GOP_MIU_BUS+0x53>
movw   $0x4,-0x2(%rbp)
jmp    1169 <GOP_MIU_BUS+0x59>
movw   $0x4,-0x2(%rbp)
jmp    116e <GOP_MIU_BUS+0x5e>
movzwl -0x2(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GOP_MIU_BUS>:
push   %rax
xor    %edi,%edi
call   1030 <OALReadDeviceId@plt>
xor    %ecx,%ecx
cmp    $0x47,%eax
sete   %cl
or     $0x4,%ecx
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define zeroext i16 @GOP_MIU_BUS(i16 zeroext %0) {
%2 = alloca i16
%3 = alloca i32
store i16 %0, i16* %2
store i32 0, i32* %3
%4 = load i32, i32* %3
%5 = call i32 @OALReadDeviceId(i32 %4)
store i32 %5, i32* %3
%6 = load i32, i32* %3
%7 = icmp eq i32 71, %6
br i1 %7, label %8, label %9
8: ; preds = %1
store i16 5, i16* %2
br label %15
9: ; preds = %1
%10 = load i32, i32* %3
%11 = icmp eq i32 80, %10
br i1 %11, label %12, label %13
12: ; preds = %9
store i16 4, i16* %2
br label %14
13: ; preds = %9
store i16 4, i16* %2
br label %14
14: ; preds = %13, %12
br label %15
15: ; preds = %14, %8
%16 = load i16, i16* %2
ret i16 %16
}

LLVM IR (-O2):
define zeroext i16 @GOP_MIU_BUS(i16 zeroext %0) {
%2 = tail call i32 @OALReadDeviceId(i32 0)
%3 = icmp eq i32 %2, 71
%4 = select i1 %3, i16 5, i16 4
ret i16 %4
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  unsigned long green_mask;
};
typedef TYPE_1__ Visual;

/* Variables and functions */
void set_Visual_green_mask(void *_p, unsigned long _v) {
  ((Visual *)_p)->green_mask = (unsigned long)_v;
}


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

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

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

LLVM IR (-O2):
define void @set_Visual_green_mask(i8* nocapture writeonly %0, i64 %1) {
%3 = bitcast i8* %0 to i64*
store i64 %1, i64* %3
ret void
}