xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
int /*<<< orphan*/ swap(int *, int *);
int main(void) {
  int x = 1;
  int y = 2;
  printf("x = %i, y = %i\n", x, y);
  swap(&x, &y);
  printf("x = %i, y = %i\n", x, y);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x1,-0x4(%rbp)
movl   $0x2,-0x8(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xebd(%rip),%rdi
call   1030 <printf@plt>
lea    -0x4(%rbp),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <swap@plt>
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
movl   $0x1,0xc(%rsp)
movl   $0x2,0x8(%rsp)
lea    0xec4(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x2,%edx
call   1030 <printf@plt>
lea    0xc(%rsp),%rdi
lea    0x8(%rsp),%rsi
call   1040 <swap@plt>
mov    0xc(%rsp),%esi
mov    0x8(%rsp),%edx
mov    %rbx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [16 x i8] c"x = %i, y = %i\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
store i32 1, i32* %1
%4 = bitcast i32* %2 to i8*
store i32 2, i32* %2
%5 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 1, i32 2)
%6 = call i32 @swap(i32* %1, i32* %2)
%7 = load i32, i32* %1
%8 = load i32, i32* %2
%9 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %7, i32 %8)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int /*<<< orphan*/);
int /*<<< orphan*/ q_pow(long long, long long, long long);
int /*<<< orphan*/ scanf(char *, long long *, long long *, long long *);
int main() {
  long long a, b, c;
  scanf("%lld %lld %lld", &a, &b, &c);
  printf("%lld\n", q_pow(a, b, c));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x20(%rbp),%rcx
call   1040 <scanf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1050 <q_pow@plt>
mov    %eax,%esi
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xec5(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rdx
mov    %rsp,%rcx
call   1040 <scanf@plt>
mov    0x10(%rsp),%rdi
mov    0x8(%rsp),%rsi
mov    (%rsp),%rdx
call   1050 <q_pow@plt>
lea    0xea8(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

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

LLVM IR (-O2):
@.str = [15 x i8] c"%lld %lld %lld\00"
@.str.1 = [6 x i8] c"%lld\0A\00"
define i32 @main() {
%1 = alloca i64
%2 = alloca i64
%3 = alloca i64
%4 = bitcast i64* %1 to i8*
%5 = bitcast i64* %2 to i8*
%6 = bitcast i64* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i64* %1, i64* %2, i64* %3)
%8 = load i64, i64* %1
%9 = load i64, i64* %2
%10 = load i64, i64* %3
%11 = call i32 @q_pow(i64 %8, i64 %9, i64 %10)
%12 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %11)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char);
int /*<<< orphan*/ scanf(char *, char *);
int main() {
  char a, b;
  scanf("%c", &a);
  b = ('z' - (a - 'a'));
  printf("%c", b);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x5(%rbp),%rsi
call   1040 <scanf@plt>
movsbl -0x5(%rbp),%ecx
sub    $0x61,%ecx
mov    $0x7a,%eax
sub    %ecx,%eax
mov    %al,-0x6(%rbp)
lea    0xea9(%rip),%rdi
movsbl -0x6(%rbp),%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed4(%rip),%rbx
lea    0xf(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    $0xdb,%al
sub    0xf(%rsp),%al
movsbl %al,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%c\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
store i32 0, i32* %1
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %2)
%5 = load i8, i8* %2
%6 = sext i8 %5 to i32
%7 = sub nsw i32 %6, 97
%8 = sub nsw i32 122, %7
%9 = trunc i32 %8 to i8
store i8 %9, i8* %3
%10 = load i8, i8* %3
%11 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %10)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%c\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 = sub i8 -37, %3
%5 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %4)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
void usage(const char *progname) {
  fprintf(stderr, "usage: %s <input file> <output file>\n", progname);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xed0(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
mov    %rdi,%rdx
mov    0x2ec6(%rip),%rax
mov    (%rax),%edi
lea    0xedd(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [38 x i8] c"usage: %s <input file> <output file>\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i8* %4)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [38 x i8] c"usage: %s <input file> <output file>\0A\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ GenPrintInstr(int, long);
int /*<<< orphan*/ GenPrintNewLine();
int /*<<< orphan*/ GenPrintOperandEnder();
int /*<<< orphan*/ GenPrintOperandStarter();
void GenPrintInstrNoOperand(int instr, long instrval) {
  GenPrintInstr(instr, instrval);
  GenPrintOperandStarter();
  GenPrintOperandEnder();
  GenPrintNewLine();
}


x86 assembly (clang, -O0):
<GenPrintInstrNoOperand>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1050 <GenPrintInstr@plt>
mov    $0x0,%al
call   1040 <GenPrintOperandStarter@plt>
mov    $0x0,%al
call   1030 <GenPrintOperandEnder@plt>
mov    $0x0,%al
call   1060 <GenPrintNewLine@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GenPrintInstrNoOperand>:
push   %rax
call   1050 <GenPrintInstr@plt>
xor    %eax,%eax
call   1040 <GenPrintOperandStarter@plt>
xor    %eax,%eax
call   1030 <GenPrintOperandEnder@plt>
xor    %eax,%eax
pop    %rcx
jmp    1060 <GenPrintNewLine@plt>

LLVM IR (-O0):
define void @GenPrintInstrNoOperand(i32 %0, i64 %1) {
%3 = alloca i32
%4 = alloca i64
store i32 %0, i32* %3
store i64 %1, i64* %4
%5 = load i32, i32* %3
%6 = load i64, i64* %4
%7 = call i32 @GenPrintInstr(i32 %5, i64 %6)
%8 = call i32 (...) @GenPrintOperandStarter()
%9 = call i32 (...) @GenPrintOperandEnder()
%10 = call i32 (...) @GenPrintNewLine()
ret void
}

LLVM IR (-O2):
define void @GenPrintInstrNoOperand(i32 %0, i64 %1) {
%3 = tail call i32 @GenPrintInstr(i32 %0, i64 %1)
%4 = tail call i32 (...) @GenPrintOperandStarter()
%5 = tail call i32 (...) @GenPrintOperandEnder()
%6 = tail call i32 (...) @GenPrintNewLine()
ret void
}
/* Type definitions */
typedef int int64_t;

/* Variables and functions */
int64_t ipow(int64_t x, int64_t y) {
  int64_t r = 1;
  while (y) {
    if (y & 1)
      r *= x;
    y >>= 1;
    x *= x;
  }
  return r;
}


x86 assembly (clang, -O0):
<ipow>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     114c <ipow+0x4c>
mov    -0x8(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1134 <ipow+0x34>
mov    -0x4(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%eax
imul   -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1111 <ipow+0x11>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ipow>:
test   %esi,%esi
je     113a <ipow+0x3a>
mov    $0x1,%r8d
mov    $0x1,%eax
mov    %esi,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
test   $0x1,%sil
mov    %edi,%ecx
cmove  %r8d,%ecx
imul   %ecx,%eax
sar    %edx
imul   %edi,%edi
cmp    $0x1,%esi
mov    %edx,%esi
ja     1120 <ipow+0x20>
ret
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @ipow(i32 %0, i32 %1) {
%3 = icmp eq i32 %1, 0
br i1 %3, label %15, label %4
4: ; preds = %2, %4
%5 = phi i32 [ %11, %4 ], [ 1, %2 ]
%6 = phi i32 [ %12, %4 ], [ %1, %2 ]
%7 = phi i32 [ %13, %4 ], [ %0, %2 ]
%8 = and i32 %6, 1
%9 = icmp eq i32 %8, 0
%10 = select i1 %9, i32 1, i32 %7
%11 = mul nsw i32 %10, %5
%12 = ashr i32 %6, 1
%13 = mul nsw i32 %7, %7
%14 = icmp ult i32 %6, 2
br i1 %14, label %15, label %4
15: ; preds = %4, %2
%16 = phi i32 [ 1, %2 ], [ %11, %4 ]
ret i32 %16
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ SEEK_END;
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, long, int /*<<< orphan*/);
long ftell(int /*<<< orphan*/ *);
int /*<<< orphan*/ rewind(int /*<<< orphan*/ *);
long unsigned int get_cipher_size(FILE *file) {
  fseek(file, 0L, SEEK_END);
  long int file_size = ftell(file);
  long unsigned int number_of_elements =
      (long unsigned int)file_size / sizeof(int);
  rewind(file);
  return number_of_elements;
}


x86 assembly (clang, -O0):
<get_cipher_size>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2ea1(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
call   1050 <fseek@plt>
mov    -0x8(%rbp),%rdi
call   1040 <ftell@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
shr    $0x2,%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <rewind@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_cipher_size>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
mov    0x2eaa(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1050 <fseek@plt>
mov    %r14,%rdi
call   1040 <ftell@plt>
mov    %rax,%rbx
shr    $0x2,%rbx
mov    %r14,%rdi
call   1030 <rewind@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@SEEK_END = global i32 0
define i64 @get_cipher_size(i32* %0) {
%2 = alloca i32*
%3 = alloca i64
%4 = alloca i64
store i32* %0, i32** %2
%5 = load i32*, i32** %2
%6 = load i32, i32* @SEEK_END
%7 = call i32 @fseek(i32* %5, i64 0, i32 %6)
%8 = load i32*, i32** %2
%9 = call i64 @ftell(i32* %8)
store i64 %9, i64* %3
%10 = load i64, i64* %3
%11 = udiv i64 %10, 4
store i64 %11, i64* %4
%12 = load i32*, i32** %2
%13 = call i32 @rewind(i32* %12)
%14 = load i64, i64* %4
ret i64 %14
}

LLVM IR (-O2):
@SEEK_END = global i32 0
define i64 @get_cipher_size(i32* nocapture %0) {
%2 = load i32, i32* @SEEK_END
%3 = tail call i32 @fseek(i32* %0, i64 0, i32 %2)
%4 = tail call i64 @ftell(i32* %0)
%5 = lshr i64 %4, 2
%6 = tail call i32 @rewind(i32* %0)
ret i64 %5
}
void *hash_alloc_intern(void *arg) { return arg; }


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

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

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

LLVM IR (-O2):
define i8* @hash_alloc_intern(i8* readnone returned %0) {
ret i8* %0
}
/* Variables and functions */
int /*<<< orphan*/ assert(int /*<<< orphan*/);
void g_error(void) { assert(0); }


x86 assembly (clang, -O0):
<g_error>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <assert@plt>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @g_error() {
%1 = call i32 @assert(i32 0)
ret void
}

LLVM IR (-O2):
define void @g_error() {
%1 = tail call i32 @assert(i32 0)
ret void
}
/* Variables and functions */
float __ocml_scalbn_f32(float, int);
float scalbnf(float x, int n) { return __ocml_scalbn_f32(x, n); }


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

x86 assembly (clang, -O2):
<scalbnf>:
jmp    1030 <__ocml_scalbn_f32@plt>

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

LLVM IR (-O2):
define float @scalbnf(float %0, i32 %1) {
%3 = tail call float @__ocml_scalbn_f32(float %0, i32 %1)
ret float %3
}
void drawattrib(unsigned char yofs, unsigned char attrib) {
  unsigned char *dst = (unsigned char *)(0x5800 + yofs * 4);
  unsigned char i;
  for (i = 0; i < 32; i++) {
    *dst = attrib;
    dst++;
  }
}


x86 assembly (clang, -O0):
<drawattrib>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movzbl -0x1(%rbp),%eax
shl    $0x2,%eax
add    $0x5800,%eax
cltq
mov    %rax,-0x10(%rbp)
movb   $0x0,-0x11(%rbp)
movzbl -0x11(%rbp),%eax
cmp    $0x20,%eax
jge    1155 <drawattrib+0x55>
mov    -0x2(%rbp),%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x11(%rbp),%al
add    $0x1,%al
mov    %al,-0x11(%rbp)
jmp    1126 <drawattrib+0x26>
pop    %rbp
ret

x86 assembly (clang, -O2):
<drawattrib>:
mov    %edi,%eax
movd   %esi,%xmm0
punpcklbw %xmm0,%xmm0
pshuflw $0x0,%xmm0,%xmm0
pshufd $0x0,%xmm0,%xmm0
movdqu %xmm0,0x5810(,%rax,4)
movdqu %xmm0,0x5800(,%rax,4)
ret

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

LLVM IR (-O2):
define void @drawattrib(i8 zeroext %0, i8 zeroext %1) {
%3 = zext i8 %0 to i64
%4 = shl nuw nsw i64 %3, 2
%5 = or i64 %4, 22528
%6 = inttoptr i64 %5 to i8*
ret void
}
double dr1_dx2(double *x) { return -1; }


x86 assembly (clang, -O0):
<dr1_dx2>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movsd  0xef0(%rip),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<dr1_dx2>:
movsd  0xef8(%rip),%xmm0
ret

LLVM IR (-O0):
define double @dr1_dx2(double* %0) {
%2 = alloca double*
store double* %0, double** %2
ret double -1.000000e+00
}

LLVM IR (-O2):
define double @dr1_dx2(double* nocapture readnone %0) {
ret double -1.000000e+00
}
/* Type definitions */
struct node {
  int dummy;
};
struct list {
  int dummy;
};

/* Variables and functions */
struct node *list_last(struct list *);
int /*<<< orphan*/ node_remove(struct node *);
struct node *list_remove_tail(struct list *list) {
  struct node *node = list_last(list);
  if (node)
    node_remove(node);
  return node;
}


x86 assembly (clang, -O0):
<list_remove_tail>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <list_last@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     114d <list_remove_tail+0x2d>
mov    -0x10(%rbp),%rdi
call   1040 <node_remove@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<list_remove_tail>:
push   %rbx
call   1030 <list_last@plt>
mov    %rax,%rbx
test   %rax,%rax
je     1136 <list_remove_tail+0x16>
mov    %rbx,%rdi
call   1040 <node_remove@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
%struct.node = type { i32 }
%struct.list = type { i32 }
define %struct.node* @list_remove_tail(%struct.list* %0) {
%2 = alloca %struct.list*
%3 = alloca %struct.node*
store %struct.list* %0, %struct.list** %2
%4 = load %struct.list*, %struct.list** %2
%5 = call %struct.node* @list_last(%struct.list* %4)
store %struct.node* %5, %struct.node** %3
%6 = load %struct.node*, %struct.node** %3
%7 = icmp ne %struct.node* %6, null
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = load %struct.node*, %struct.node** %3
%10 = call i32 @node_remove(%struct.node* %9)
br label %11
11: ; preds = %8, %1
%12 = load %struct.node*, %struct.node** %3
ret %struct.node* %12
}

LLVM IR (-O2):
%struct.node = type { i32 }
%struct.list = type { i32 }
define %struct.node* @list_remove_tail(%struct.list* %0) {
%2 = tail call %struct.node* @list_last(%struct.list* %0)
%3 = icmp eq %struct.node* %2, null
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @node_remove(%struct.node* %2)
br label %6
6: ; preds = %4, %1
ret %struct.node* %2
}
/* Variables and functions */
scalar_t__ calloc(int, int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *);
char *ShareMallocM1c(int size) {
  char *s = NULL;
  if ((s = (char *)calloc(size, sizeof(char))) == NULL) {
    printf("char * malloc error!\n");
    exit(1);
  }
  return s;
}


x86 assembly (clang, -O0):
<ShareMallocM1c>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x1,%esi
call   1040 <calloc@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
jne    1174 <ShareMallocM1c+0x44>
lea    0xe9b(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ShareMallocM1c>:
push   %rax
mov    $0x1,%esi
call   1040 <calloc@plt>
test   %rax,%rax
je     1142 <ShareMallocM1c+0x12>
pop    %rcx
ret
lea    0xeb7(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [22 x i8] c"char * malloc error!\0A\00"
define i8* @ShareMallocM1c(i32 %0) {
%2 = alloca i32
%3 = alloca i8*
store i32 %0, i32* %2
store i8* null, i8** %3
%4 = load i32, i32* %2
%5 = call i64 @calloc(i32 %4, i32 1)
%6 = inttoptr i64 %5 to i8*
store i8* %6, i8** %3
%7 = icmp eq i8* %6, null
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @exit(i32 1)
unreachable
11: ; preds = %1
%12 = load i8*, i8** %3
ret i8* %12
}

LLVM IR (-O2):
@str = [21 x i8] c"char * malloc error!\00"
define i8* @ShareMallocM1c(i32 %0) {
%2 = tail call i64 @calloc(i32 %0, i32 1)
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %7
4: ; preds = %1
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 @exit(i32 1)
unreachable
7: ; preds = %1
%8 = inttoptr i64 %2 to i8*
ret i8* %8
}
/* Variables and functions */
int /*<<< orphan*/ MSP(unsigned int, char const *const, unsigned int *);
int /*<<< orphan*/ cycle_shift(char *, char const *const, unsigned int,
                               int /*<<< orphan*/);
void minrep(char *dest, const char *const src, unsigned int n) {
  unsigned int d;
  cycle_shift(dest, src, n, MSP(n, src, &d));
}


x86 assembly (clang, -O0):
<minrep>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1040 <MSP@plt>
mov    -0x30(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    %eax,%ecx
call   1030 <cycle_shift@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<minrep>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %edx,%ebp
mov    %rsi,%rbx
mov    %rdi,%r14
lea    0xc(%rsp),%rdx
mov    %ebp,%edi
call   1040 <MSP@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %ebp,%edx
mov    %eax,%ecx
call   1030 <cycle_shift@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define void @minrep(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%8 = load i8*, i8** %4
%9 = load i8*, i8** %5
%10 = load i32, i32* %6
%11 = load i32, i32* %6
%12 = load i8*, i8** %5
%13 = call i32 @MSP(i32 %11, i8* %12, i32* %7)
%14 = call i32 @cycle_shift(i8* %8, i8* %9, i32 %10, i32 %13)
ret void
}

LLVM IR (-O2):
define void @minrep(i8* %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = bitcast i32* %4 to i8*
%6 = call i32 @MSP(i32 %2, i8* %1, i32* %4)
%7 = call i32 @cycle_shift(i8* %0, i8* %1, i32 %2, i32 %6)
ret void
}
void destroy_context(struct mm_struct *mm) {}


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

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

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

LLVM IR (-O2):
%struct.mm_struct = type opaque
define void @destroy_context(%struct.mm_struct* nocapture %0) {
ret void
}
int hash(str, len)
register char *str;
register unsigned int len;
{
  static unsigned char hash_table[] = {
      42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
      42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
      42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
      42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
      42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
      42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
      42, 42, 6,  9,  10, 0,  16, 5,  4,  24, 42, 0,  20, 4,  20, 0,
      42, 42, 6,  0,  0,  10, 10, 2,  42, 42, 42, 42, 42, 42, 42, 42,
  };
  return len + hash_table[str[len - 1]] + hash_table[str[0]];
}


x86 assembly (clang, -O0):
<hash>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    -0x8(%rbp),%rcx
mov    -0xc(%rbp),%edx
sub    $0x1,%edx
mov    %edx,%edx
movsbq (%rcx,%rdx,1),%rdx
lea    0x2f0a(%rip),%rcx
movzbl (%rcx,%rdx,1),%ecx
add    %ecx,%eax
mov    -0x8(%rbp),%rcx
movsbq (%rcx),%rdx
lea    0x2ef5(%rip),%rcx
movzbl (%rcx,%rdx,1),%ecx
add    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<hash>:
lea    -0x1(%rsi),%eax
movsbq (%rdi,%rax,1),%rax
lea    0xef1(%rip),%rcx
movzbl (%rax,%rcx,1),%edx
add    %esi,%edx
movsbq (%rdi),%rax
movzbl (%rax,%rcx,1),%eax
add    %edx,%eax
ret

LLVM IR (-O0):
@hash.hash_table = internal global [128 x i8] c"**************************************************************************************************\06\09\0A\00\10\05\04\18*\00\14\04\14\00**\06\00\00\0A\0A\02********"
define i32 @hash(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = load i8*, i8** %3
%7 = load i32, i32* %4
%8 = sub i32 %7, 1
%9 = zext i32 %8 to i64
%10 = getelementptr inbounds i8, i8* %6, i64 %9
%11 = load i8, i8* %10
%12 = sext i8 %11 to i64
%13 = getelementptr inbounds [128 x i8], [128 x i8]* @hash.hash_table, i64 0, i64 %12
%14 = load i8, i8* %13
%15 = zext i8 %14 to i32
%16 = add i32 %5, %15
%17 = load i8*, i8** %3
%18 = getelementptr inbounds i8, i8* %17, i64 0
%19 = load i8, i8* %18
%20 = sext i8 %19 to i64
%21 = getelementptr inbounds [128 x i8], [128 x i8]* @hash.hash_table, i64 0, i64 %20
%22 = load i8, i8* %21
%23 = zext i8 %22 to i32
%24 = add i32 %16, %23
ret i32 %24
}

LLVM IR (-O2):
@hash.hash_table = internal unnamed_addr constant [128 x i8] c"**************************************************************************************************\06\09\0A\00\10\05\04\18*\00\14\04\14\00**\06\00\00\0A\0A\02********"
define i32 @hash(i8* nocapture %0, i32 %1) {
%3 = add i32 %1, -1
%4 = zext i32 %3 to i64
%5 = getelementptr inbounds i8, i8* %0, i64 %4
%6 = load i8, i8* %5
%7 = sext i8 %6 to i64
%8 = getelementptr inbounds [128 x i8], [128 x i8]* @hash.hash_table, i64 0, i64 %7
%9 = load i8, i8* %8
%10 = zext i8 %9 to i32
%11 = add i32 %10, %1
%12 = load i8, i8* %0
%13 = sext i8 %12 to i64
%14 = getelementptr inbounds [128 x i8], [128 x i8]* @hash.hash_table, i64 0, i64 %13
%15 = load i8, i8* %14
%16 = zext i8 %15 to i32
%17 = add i32 %11, %16
ret i32 %17
}
/* Type definitions */
typedef int pid_t;

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ err_msg(char *, int /*<<< orphan*/);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int fork();
int /*<<< orphan*/ strerror(int /*<<< orphan*/);
pid_t Fork(void) {
  pid_t ret;
  if ((ret = fork()) == -1) {
    err_msg("error fork: %s", strerror(errno));
    exit(EXIT_FAILURE);
  }
  return ret;
}


x86 assembly (clang, -O0):
<Fork>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1060 <fork@plt>
mov    %eax,-0x4(%rbp)
cmp    $0xffffffff,%eax
jne    1185 <Fork+0x45>
mov    0x2e7e(%rip),%rax
mov    (%rax),%edi
call   1050 <strerror@plt>
mov    %eax,%esi
lea    0xe8e(%rip),%rdi
call   1030 <err_msg@plt>
mov    0x2e5a(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Fork>:
push   %rax
xor    %eax,%eax
call   1060 <fork@plt>
cmp    $0xffffffff,%eax
je     114f <Fork+0xf>
pop    %rcx
ret
mov    0x2e8a(%rip),%rax
mov    (%rax),%edi
call   1050 <strerror@plt>
lea    0xe9c(%rip),%rdi
mov    %eax,%esi
call   1030 <err_msg@plt>
mov    0x2e66(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"error fork: %s\00"
@errno = global i32 0
@EXIT_FAILURE = global i32 0
define i32 @Fork() {
%1 = alloca i32
%2 = call i32 (...) @fork()
store i32 %2, i32* %1
%3 = icmp eq i32 %2, -1
br i1 %3, label %4, label %10
4: ; preds = %0
%5 = load i32, i32* @errno
%6 = call i32 @strerror(i32 %5)
%7 = call i32 @err_msg(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 %6)
%8 = load i32, i32* @EXIT_FAILURE
%9 = call i32 @exit(i32 %8)
unreachable
10: ; preds = %0
%11 = load i32, i32* %1
ret i32 %11
}

LLVM IR (-O2):
@.str = [15 x i8] c"error fork: %s\00"
@errno = global i32 0
@EXIT_FAILURE = global i32 0
define i32 @Fork() {
%1 = tail call i32 (...) @fork()
%2 = icmp eq i32 %1, -1
br i1 %2, label %3, label %9
3: ; preds = %0
%4 = load i32, i32* @errno
%5 = tail call i32 @strerror(i32 %4)
%6 = tail call i32 @err_msg(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @EXIT_FAILURE
%8 = tail call i32 @exit(i32 %7)
unreachable
9: ; preds = %0
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ check_vect();
int /*<<< orphan*/ main1(int);
int main(void) {
  check_vect();
  main1(33);
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <check_vect@plt>
mov    $0x21,%edi
call   1040 <main1@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @check_vect()
%3 = call i32 @main1(i32 33)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @check_vect()
%2 = tail call i32 @main1(i32 33)
ret i32 0
}
/* Variables and functions */
int identity(char);
void void_tand1(char x) { char y = (identity(x) & 1) ? 42 : 43; }


x86 assembly (clang, -O0):
<void_tand1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%edi
call   1030 <identity@plt>
mov    %eax,%edx
and    $0x1,%edx
mov    $0x2b,%eax
mov    $0x2a,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %al,-0x2(%rbp)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<void_tand1>:
jmp    1030 <identity@plt>

LLVM IR (-O0):
define void @void_tand1(i8 signext %0) {
%2 = alloca i8
%3 = alloca i8
store i8 %0, i8* %2
%4 = load i8, i8* %2
%5 = call i32 @identity(i8 signext %4)
%6 = and i32 %5, 1
%7 = icmp ne i32 %6, 0
%8 = zext i1 %7 to i64
%9 = select i1 %7, i32 42, i32 43
%10 = trunc i32 %9 to i8
store i8 %10, i8* %3
ret void
}

LLVM IR (-O2):
define void @void_tand1(i8 signext %0) {
%2 = tail call i32 @identity(i8 signext %0)
ret void
}
int test_imm_62uint16_mem(unsigned short *val) {
  return ((*val) & (0x62 << 0)) ? -20 : -40;
}


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

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

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

LLVM IR (-O2):
define i32 @test_imm_62uint16_mem(i16* nocapture %0) {
%2 = load i16, i16* %0
%3 = and i16 %2, 98
%4 = icmp eq i16 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Type definitions */
struct list_node {
  int dummy;
};
struct list {
  int dummy;
};

/* Variables and functions */
struct list_node *xlocate_node(struct list *, void *, int /*<<< orphan*/,
                               int /*<<< orphan*/);
struct list_node *locate_node(struct list *l, void *elem) {
  return (xlocate_node(l, elem, 0, 0));
}


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

x86 assembly (clang, -O2):
<locate_node>:
xor    %edx,%edx
xor    %ecx,%ecx
jmp    1030 <xlocate_node@plt>

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

LLVM IR (-O2):
%struct.list_node = type { i32 }
%struct.list = type { i32 }
define %struct.list_node* @locate_node(%struct.list* %0, i8* %1) {
%3 = tail call %struct.list_node* @xlocate_node(%struct.list* %0, i8* %1, i32 0, i32 0)
ret %struct.list_node* %3
}
/* Variables and functions */
int /*<<< orphan*/ reset_comtree();
void Reset_Level_Tree() { reset_comtree(); }


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

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

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

LLVM IR (-O2):
define void @Reset_Level_Tree() {
%1 = tail call i32 (...) @reset_comtree()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ audio_init();
int /*<<< orphan*/ graphics_init(int, char **);
int /*<<< orphan*/ graphics_loop();
int main(int argc, char **argv) {
  audio_init();
  graphics_init(argc, argv);
  graphics_loop();
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
xor    %eax,%eax
call   1040 <audio_init@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
call   1030 <graphics_init@plt>
xor    %eax,%eax
call   1050 <graphics_loop@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (...) @audio_init()
%7 = load i32, i32* %4
%8 = load i8**, i8*** %5
%9 = call i32 @graphics_init(i32 %7, i8** %8)
%10 = call i32 (...) @graphics_loop()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 (...) @audio_init()
%4 = tail call i32 @graphics_init(i32 %0, i8** %1)
%5 = tail call i32 (...) @graphics_loop()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
char *strToLower(char *);
scalar_t__ strcmp(char *, char *);
int filename_match_filter_nocase(char *filename, char *textcontent) {
  char *filenamei;
  filenamei = strToLower(filename);
  char *textcontenti = strToLower(textcontent);
  int retval;
  if (strcmp(filenamei, textcontenti) == 0)
    retval = 1;
  else
    retval = 0;
  free(filenamei);
  free(textcontenti);
  return retval;
}


x86 assembly (clang, -O0):
<filename_match_filter_nocase>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strToLower@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strToLower@plt>
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    117d <filename_match_filter_nocase+0x4d>
movl   $0x1,-0x24(%rbp)
jmp    1184 <filename_match_filter_nocase+0x54>
movl   $0x0,-0x24(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x24(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<filename_match_filter_nocase>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
call   1040 <strToLower@plt>
mov    %rax,%r15
mov    %r14,%rdi
call   1040 <strToLower@plt>
mov    %rax,%rbx
mov    %r15,%rdi
mov    %rax,%rsi
call   1050 <strcmp@plt>
xor    %ebp,%ebp
test   %rax,%rax
sete   %bpl
mov    %r15,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @filename_match_filter_nocase(i8* %0, i8* %1) {
%3 = tail call i8* @strToLower(i8* %0)
%4 = tail call i8* @strToLower(i8* %1)
%5 = tail call i64 @strcmp(i8* %3, i8* %4)
%6 = icmp eq i64 %5, 0
%7 = zext i1 %6 to i32
%8 = tail call i32 @free(i8* %3)
%9 = tail call i32 @free(i8* %4)
ret i32 %7
}
/* Variables and functions */
char *ftab(char *ss) {
  char *x;
  int n;
  for (x = ss; *x != '\0'; ++x) {
    if (*x == '\t')
      return x;
  }
  return NULL;
}


x86 assembly (clang, -O0):
<ftab>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1153 <ftab+0x53>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
jne    113d <ftab+0x3d>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    115b <ftab+0x5b>
jmp    1142 <ftab+0x42>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1110 <ftab+0x10>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ftab>:
mov    %rdi,%rax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movzbl (%rax),%ecx
test   %cl,%cl
je     1122 <ftab+0x22>
cmp    $0x9,%cl
je     1124 <ftab+0x24>
add    $0x1,%rax
jmp    1110 <ftab+0x10>
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i8* @ftab(i8* %0) {
br label %2
2: ; preds = %5, %1
%3 = phi i8* [ %0, %1 ], [ %6, %5 ]
%4 = load i8, i8* %3
switch i8 %4, label %5 [
i8 0, label %8
i8 9, label %7
]
5: ; preds = %2
%6 = getelementptr inbounds i8, i8* %3, i64 1
br label %2
7: ; preds = %2
br label %8
8: ; preds = %2, %7
%9 = phi i8* [ %3, %7 ], [ null, %2 ]
ret i8* %9
}
void CONF_free(void) {}


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

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

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

LLVM IR (-O2):
define void @CONF_free() {
ret void
}
void AOUT_Relocate(unsigned long *destl, unsigned long val, int pcrel) {
  if (pcrel) {
    *destl = val - ((unsigned long)destl + sizeof(long));
  } else {
    *destl += val;
  }
}


x86 assembly (clang, -O0):
<AOUT_Relocate>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     1134 <AOUT_Relocate+0x34>
mov    -0x10(%rbp),%rcx
mov    -0x8(%rbp),%rax
add    $0x8,%rax
sub    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
jmp    1142 <AOUT_Relocate+0x42>
mov    -0x10(%rbp),%rcx
mov    -0x8(%rbp),%rax
add    (%rax),%rcx
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<AOUT_Relocate>:
test   %edx,%edx
je     1110 <AOUT_Relocate+0x10>
mov    $0xfffffffffffffff8,%rax
sub    %rdi,%rax
jmp    1113 <AOUT_Relocate+0x13>
mov    (%rdi),%rax
add    %rsi,%rax
mov    %rax,(%rdi)
ret

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

LLVM IR (-O2):
define void @AOUT_Relocate(i64* %0, i64 %1, i32 %2) {
%4 = icmp eq i32 %2, 0
br i1 %4, label %8, label %5
5: ; preds = %3
%6 = ptrtoint i64* %0 to i64
%7 = sub i64 -8, %6
br label %10
8: ; preds = %3
%9 = load i64, i64* %0
br label %10
10: ; preds = %8, %5
%11 = phi i64 [ %9, %8 ], [ %7, %5 ]
%12 = add i64 %11, %1
store i64 %12, i64* %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fputs(char const *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
void fail(const char *msg) {
  fputs(msg, stderr);
  exit(1);
}


x86 assembly (clang, -O0):
<fail>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2ea9(%rip),%rax
mov    (%rax),%esi
call   1030 <fputs@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<fail>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%esi
call   1030 <fputs@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
define void @fail(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i32, i32* @stderr
%5 = call i32 @fputs(i8* %3, i32 %4)
%6 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
define void @fail(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fputs(i8* %0, i32 %2)
%4 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ CAN1_DriverIRQHandler();
__attribute__((weak)) void CAN1_IRQHandler(void) { CAN1_DriverIRQHandler(); }


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

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

LLVM IR (-O0):
define weak void @CAN1_IRQHandler() {
%1 = call i32 (...) @CAN1_DriverIRQHandler()
ret void
}

LLVM IR (-O2):
define weak void @CAN1_IRQHandler() {
%1 = tail call i32 (...) @CAN1_DriverIRQHandler()
ret void
}
double minimum(double a, double b) {
  if (a < b) {
    return (a);
  }
  return (b);
}


x86 assembly (clang, -O0):
<minimum>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1131 <minimum+0x31>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    113b <minimum+0x3b>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<minimum>:
minsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @minimum(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
store double %0, double* %4
store double %1, double* %5
%6 = load double, double* %4
%7 = load double, double* %5
%8 = fcmp olt double %6, %7
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = load double, double* %4
store double %10, double* %3
br label %13
11: ; preds = %2
%12 = load double, double* %5
store double %12, double* %3
br label %13
13: ; preds = %11, %9
%14 = load double, double* %3
ret double %14
}

LLVM IR (-O2):
define double @minimum(double %0, double %1) {
%3 = fcmp olt double %0, %1
%4 = select i1 %3, double %0, double %1
ret double %4
}
long get_index_file_offset(const int zone, const int ra_start) {
  int rval = (zone - 1) * (1440 * 21 + 6) + ra_start * 21;
  if (ra_start)
    rval += 6;
  return (rval);
}


x86 assembly (clang, -O0):
<get_index_file_offset>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
imul   $0x7626,%eax,%eax
imul   $0x15,-0x8(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     1132 <get_index_file_offset+0x32>
mov    -0xc(%rbp),%eax
add    $0x6,%eax
mov    %eax,-0xc(%rbp)
movslq -0xc(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_index_file_offset>:
imul   $0x7626,%edi,%eax
lea    (%rsi,%rsi,4),%ecx
lea    (%rsi,%rcx,4),%ecx
test   %esi,%esi
lea    -0x7626(%rax,%rcx,1),%edx
lea    -0x7620(%rax,%rcx,1),%eax
cmove  %edx,%eax
cltq
ret

LLVM IR (-O0):
define i64 @get_index_file_offset(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %3
%7 = sub nsw i32 %6, 1
%8 = mul nsw i32 %7, 30246
%9 = load i32, i32* %4
%10 = mul nsw i32 %9, 21
%11 = add nsw i32 %8, %10
store i32 %11, i32* %5
%12 = load i32, i32* %4
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = load i32, i32* %5
%16 = add nsw i32 %15, 6
store i32 %16, i32* %5
br label %17
17: ; preds = %14, %2
%18 = load i32, i32* %5
%19 = sext i32 %18 to i64
ret i64 %19
}

LLVM IR (-O2):
define i64 @get_index_file_offset(i32 %0, i32 %1) {
%3 = mul i32 %0, 30246
%4 = add i32 %3, -30246
%5 = mul nsw i32 %1, 21
%6 = add nsw i32 %4, %5
%7 = icmp eq i32 %1, 0
%8 = add nsw i32 %6, 6
%9 = select i1 %7, i32 %6, i32 %8
%10 = sext i32 %9 to i64
ret i64 %10
}