xunge/DecIR huggingface dataset:
/* Variables and functions */
int snprintf(char *, int, char *, unsigned short, int, int);
int MQTTStringFormat_suback(char *strbuf, int strbuflen,
                            unsigned short packetid, int count,
                            int *grantedQoSs) {
  return snprintf(strbuf, strbuflen,
                  "SUBACK packet id %d count %d granted qos %d", packetid,
                  count, grantedQoSs[0]);
}


x86 assembly (clang, -O0):
<MQTTStringFormat_suback>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %dx,%ax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %ax,-0xe(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0xe(%rbp),%ax
mov    -0x14(%rbp),%r8d
mov    -0x20(%rbp),%rcx
mov    (%rcx),%r9d
lea    0xeb6(%rip),%rdx
movzwl %ax,%ecx
call   1030 <snprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MQTTStringFormat_suback>:
mov    %ecx,%eax
mov    %edx,%ecx
mov    (%r8),%r9d
lea    0xee2(%rip),%rdx
mov    %eax,%r8d
jmp    1030 <snprintf@plt>

LLVM IR (-O0):
@.str = [44 x i8] c"SUBACK packet id %d count %d granted qos %d\00"
define i32 @MQTTStringFormat_suback(i8* %0, i32 %1, i16 zeroext %2, i32 %3, i32* %4) {
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i16
%9 = alloca i32
%10 = alloca i32*
store i8* %0, i8** %6
store i32 %1, i32* %7
store i16 %2, i16* %8
store i32 %3, i32* %9
store i32* %4, i32** %10
%11 = load i8*, i8** %6
%12 = load i32, i32* %7
%13 = load i16, i16* %8
%14 = load i32, i32* %9
%15 = load i32*, i32** %10
%16 = getelementptr inbounds i32, i32* %15, i64 0
%17 = load i32, i32* %16
%18 = call i32 @snprintf(i8* %11, i32 %12, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i16 zeroext %13, i32 %14, i32 %17)
ret i32 %18
}

LLVM IR (-O2):
@.str = [44 x i8] c"SUBACK packet id %d count %d granted qos %d\00"
define i32 @MQTTStringFormat_suback(i8* %0, i32 %1, i16 zeroext %2, i32 %3, i32* nocapture %4) {
%6 = load i32, i32* %4
%7 = tail call i32 @snprintf(i8* %0, i32 %1, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i16 zeroext %2, i32 %3, i32 %6)
ret i32 %7
}
/* Type definitions */
struct vmallocator {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ memset(int /*<<< orphan*/, int /*<<< orphan*/, size_t);
size_t vmallocator_alloc_aligned(struct vmallocator *, size_t);
int /*<<< orphan*/ vmallocator_ofs2mem(struct vmallocator *, size_t);
size_t vmallocator_alloczero_aligned(struct vmallocator *v, size_t s) {
  size_t ofs = vmallocator_alloc_aligned(v, s);
  memset(vmallocator_ofs2mem(v, ofs), 0, s);
  return ofs;
}


x86 assembly (clang, -O0):
<vmallocator_alloczero_aligned>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <vmallocator_alloc_aligned@plt>
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1050 <vmallocator_ofs2mem@plt>
mov    %eax,%edi
mov    -0x10(%rbp),%rdx
xor    %esi,%esi
call   1040 <memset@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vmallocator_alloczero_aligned>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%rbx
call   1030 <vmallocator_alloc_aligned@plt>
mov    %rax,%r15
mov    %rbx,%rdi
mov    %rax,%rsi
call   1050 <vmallocator_ofs2mem@plt>
mov    %eax,%edi
xor    %esi,%esi
mov    %r14,%rdx
call   1040 <memset@plt>
mov    %r15,%rax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.vmallocator = type { i32 }
define i64 @vmallocator_alloczero_aligned(%struct.vmallocator* %0, i64 %1) {
%3 = alloca %struct.vmallocator*
%4 = alloca i64
%5 = alloca i64
store %struct.vmallocator* %0, %struct.vmallocator** %3
store i64 %1, i64* %4
%6 = load %struct.vmallocator*, %struct.vmallocator** %3
%7 = load i64, i64* %4
%8 = call i64 @vmallocator_alloc_aligned(%struct.vmallocator* %6, i64 %7)
store i64 %8, i64* %5
%9 = load %struct.vmallocator*, %struct.vmallocator** %3
%10 = load i64, i64* %5
%11 = call i32 @vmallocator_ofs2mem(%struct.vmallocator* %9, i64 %10)
%12 = load i64, i64* %4
%13 = call i32 @memset(i32 %11, i32 0, i64 %12)
%14 = load i64, i64* %5
ret i64 %14
}

LLVM IR (-O2):
%struct.vmallocator = type { i32 }
define i64 @vmallocator_alloczero_aligned(%struct.vmallocator* %0, i64 %1) {
%3 = tail call i64 @vmallocator_alloc_aligned(%struct.vmallocator* %0, i64 %1)
%4 = tail call i32 @vmallocator_ofs2mem(%struct.vmallocator* %0, i64 %3)
%5 = tail call i32 @memset(i32 %4, i32 0, i64 %1)
ret i64 %3
}
/* Variables and functions */
size_t ft_arraylen(const void *array) {
  size_t size;
  size = 0;
  while (((void **)array)[size] != NULL)
    size++;
  return (size);
}


x86 assembly (clang, -O0):
<ft_arraylen>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     1134 <ft_arraylen+0x34>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1110 <ft_arraylen+0x10>
mov    -0x10(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_arraylen>:
mov    $0xffffffffffffffff,%rax
nopw   0x0(%rax,%rax,1)
cmpq   $0x0,0x8(%rdi,%rax,8)
lea    0x1(%rax),%rax
jne    1110 <ft_arraylen+0x10>
ret

LLVM IR (-O0):
define i64 @ft_arraylen(i8* %0) {
%2 = alloca i8*
%3 = alloca i64
store i8* %0, i8** %2
store i64 0, i64* %3
br label %4
4: ; preds = %11, %1
%5 = load i8*, i8** %2
%6 = bitcast i8* %5 to i8**
%7 = load i64, i64* %3
%8 = getelementptr inbounds i8*, i8** %6, i64 %7
%9 = load i8*, i8** %8
%10 = icmp ne i8* %9, null
br i1 %10, label %11, label %14
11: ; preds = %4
%12 = load i64, i64* %3
%13 = add i64 %12, 1
store i64 %13, i64* %3
br label %4
14: ; preds = %4
%15 = load i64, i64* %3
ret i64 %15
}

LLVM IR (-O2):
define i64 @ft_arraylen(i8* nocapture %0) {
%2 = bitcast i8* %0 to i8**
br label %3
3: ; preds = %3, %1
%4 = phi i64 [ 0, %1 ], [ %8, %3 ]
%5 = getelementptr inbounds i8*, i8** %2, i64 %4
%6 = load i8*, i8** %5
%7 = icmp eq i8* %6, null
%8 = add i64 %4, 1
br i1 %7, label %9, label %3
9: ; preds = %3
ret i64 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fileno(int /*<<< orphan*/ *);
int spc_fd_wipe(int /*<<< orphan*/);
int spc_file_wipe(FILE *f) { return spc_fd_wipe(fileno(f)); }


x86 assembly (clang, -O0):
<spc_file_wipe>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <fileno@plt>
mov    %eax,%edi
call   1030 <spc_fd_wipe@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<spc_file_wipe>:
push   %rax
call   1040 <fileno@plt>
mov    %eax,%edi
pop    %rax
jmp    1030 <spc_fd_wipe@plt>

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

LLVM IR (-O2):
define i32 @spc_file_wipe(i32* nocapture %0) {
%2 = tail call i32 @fileno(i32* %0)
%3 = tail call i32 @spc_fd_wipe(i32 %2)
ret i32 %3
}
void BN_GF2m_mod(void) {}


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

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

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

LLVM IR (-O2):
define void @BN_GF2m_mod() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ debug(char *, char *);
int /*<<< orphan*/ printf(char *);
int test_debug(char *msg) {
  printf("   debug( \"log.c:debug(): test message: '%%s'\", msg );");
  debug("log.c:debug(): test message: '%s'", msg);
  printf(" passed\n");
  return (0);
}


x86 assembly (clang, -O0):
<test_debug>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xef4(%rip),%rdi
call   1030 <debug@plt>
lea    0xf0a(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_debug>:
push   %rbx
mov    %rdi,%rbx
lea    0xec5(%rip),%rdi
call   1050 <printf@plt>
lea    0xef0(%rip),%rdi
mov    %rbx,%rsi
call   1040 <debug@plt>
lea    0xf03(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [55 x i8] c" debug( \22log.c:debug(): test message: '%%s'\22, msg );\00"
@.str.1 = [34 x i8] c"log.c:debug(): test message: '%s'\00"
@.str.2 = [9 x i8] c" passed\0A\00"
define i32 @test_debug(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0))
%4 = load i8*, i8** %2
%5 = call i32 @debug(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%6 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [55 x i8] c" debug( \22log.c:debug(): test message: '%%s'\22, msg );\00"
@.str.1 = [34 x i8] c"log.c:debug(): test message: '%s'\00"
@str = [8 x i8] c" passed\00"
define i32 @test_debug(i8* %0) {
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @debug(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ function2();
void function1(void) { function2(); }


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

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

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

LLVM IR (-O2):
define void @function1() {
%1 = tail call i32 (...) @function2()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
int main() {
  char s[] = "Bangladesh";
  printf("Name of our country : %s\n", s);
  printf("Address of s: %p\n", s);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeda(%rip),%rax
mov    %rax,-0xf(%rbp)
mov    0xed7(%rip),%ax
mov    %ax,-0x7(%rbp)
mov    0xecf(%rip),%al
mov    %al,-0x5(%rbp)
lea    -0xf(%rbp),%rsi
lea    0xec2(%rip),%rdi
call   1030 <printf@plt>
lea    -0xf(%rbp),%rsi
lea    0xecc(%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
movabs $0x6564616c676e6142,%rax
61 64 65
mov    %rax,(%rsp)
movl   $0x687365,0x7(%rsp)
lea    0xed9(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.s = [11 x i8] c"Bangladesh\00"
@.str = [26 x i8] c"Name of our country : %s\0A\00"
@.str.1 = [18 x i8] c"Address of s: %p\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [11 x i8]
store i32 0, i32* %1
%3 = bitcast [11 x i8]* %2 to i8*
%4 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%5 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%7 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i8* %6)
ret i32 0
}

LLVM IR (-O2):
@__const.main.s = [11 x i8] c"Bangladesh\00"
@.str = [26 x i8] c"Name of our country : %s\0A\00"
@.str.1 = [18 x i8] c"Address of s: %p\0A\00"
define i32 @main() {
%1 = alloca [11 x i8]
%2 = getelementptr inbounds [11 x i8], [11 x i8]* %1, i64 0, i64 0
%3 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i8* %2)
ret i32 0
}
int main(int argc, char **argv) {
  for (int i = 0; i < 100; i++) {
    int j;
    for (j = 0; j < 100; j++) {
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x64,-0x14(%rbp)
jge    115a <main+0x5a>
movl   $0x0,-0x18(%rbp)
cmpl   $0x64,-0x18(%rbp)
jge    1147 <main+0x47>
jmp    1139 <main+0x39>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    112a <main+0x2a>
jmp    114c <main+0x4c>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1119 <main+0x19>
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
ret i32 0
}
double ml_add(double n1, double n2) { return n1 + n2; }


x86 assembly (clang, -O0):
<ml_add>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
addsd  -0x10(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<ml_add>:
addsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @ml_add(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = load double, double* %3
%6 = load double, double* %4
%7 = fadd double %5, %6
ret double %7
}

LLVM IR (-O2):
define double @ml_add(double %0, double %1) {
%3 = fadd double %0, %1
ret double %3
}
int test_imm_15int16_reg(short val) {
  return ((val) & (-0x15 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_15int16_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
movswl -0x2(%rbp),%edx
and    $0xffffffeb,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_15int16_reg>:
test   $0xffeb,%edi
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_15int16_reg(i16 signext %0) {
%2 = and i16 %0, -21
%3 = icmp eq i16 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ gms_styled_string(int /*<<< orphan*/, char const *);
void gms_normal_string(const char *message) { gms_styled_string((0), message); }


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

x86 assembly (clang, -O2):
<gms_normal_string>:
mov    %rdi,%rsi
xor    %edi,%edi
jmp    1030 <gms_styled_string@plt>

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

LLVM IR (-O2):
define void @gms_normal_string(i8* %0) {
%2 = tail call i32 @gms_styled_string(i32 0, i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
void usage(const char *prog) {
  fprintf(stderr,
          "Usage: %s [options] file\n"
          "Options:\n"
          "  -n name -- generated C identifier source (default is file)\n"
          "  -o file -- output to file (default is standard output)\n"
          "  -v      -- print version information\n"
          "  -h      -- print this message\n",
          prog);
}


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 = [224 x i8] c"Usage: %s [options] file\0AOptions:\0A -n name -- generated C identifier source (default is file)\0A -o file -- output to file (default is standard output)\0A -v -- print version information\0A -h -- print this message\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 ([224 x i8], [224 x i8]* @.str, i64 0, i64 0), i8* %4)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [224 x i8] c"Usage: %s [options] file\0AOptions:\0A -n name -- generated C identifier source (default is file)\0A -o file -- output to file (default is standard output)\0A -v -- print version information\0A -h -- print this message\0A\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([224 x i8], [224 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/
Teapot_LowLevel_SetMvMatrixUniformWithShadowSupport(float const *);
void Teapot_LowLevel_SetMvMatrixUniformWithShadowSupportFloat(
    const float mvMatrix[16]) {
  Teapot_LowLevel_SetMvMatrixUniformWithShadowSupport(mvMatrix);
}


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

x86 assembly (clang, -O2):
<Teapot_LowLevel_SetMvMatrixUniformWithShadowSupportFloat>:
jmp    1030 <Teapot_LowLevel_SetMvMatrixUniformWithShadowSupport@plt>

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

LLVM IR (-O2):
define void @Teapot_LowLevel_SetMvMatrixUniformWithShadowSupportFloat(float* %0) {
%2 = tail call i32 @Teapot_LowLevel_SetMvMatrixUniformWithShadowSupport(float* %0)
ret void
}
int neg(int a) { return -a; }


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

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

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

LLVM IR (-O2):
define i32 @neg(i32 %0) {
%2 = sub nsw i32 0, %0
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ assert(int /*<<< orphan*/);
void superlu_abort_and_exit(char *msg) { assert(0); }


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

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

LLVM IR (-O0):
define void @superlu_abort_and_exit(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @assert(i32 0)
ret void
}

LLVM IR (-O2):
define void @superlu_abort_and_exit(i8* nocapture readnone %0) {
%2 = tail call i32 @assert(i32 0)
ret void
}
int parasail_avx2_dummy() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @parasail_avx2_dummy() {
ret i32 0
}
double getEncodingValue(unsigned long u32, unsigned long l32) {
  union val_type {
    double d;
    unsigned long ul[2];
  } double_union;
  double_union.ul[1] = l32;
  double_union.ul[0] = u32;
  return double_union.d;
}


x86 assembly (clang, -O0):
<getEncodingValue>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<getEncodingValue>:
movq   %rdi,%xmm0
ret

LLVM IR (-O0):
%union.val_type = type { [2 x i64] }
define double @getEncodingValue(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
%5 = alloca %union.val_type
store i64 %0, i64* %3
store i64 %1, i64* %4
%6 = load i64, i64* %4
%7 = bitcast %union.val_type* %5 to [2 x i64]*
%8 = getelementptr inbounds [2 x i64], [2 x i64]* %7, i64 0, i64 1
store i64 %6, i64* %8
%9 = load i64, i64* %3
%10 = bitcast %union.val_type* %5 to [2 x i64]*
%11 = getelementptr inbounds [2 x i64], [2 x i64]* %10, i64 0, i64 0
store i64 %9, i64* %11
%12 = bitcast %union.val_type* %5 to double*
%13 = load double, double* %12
ret double %13
}

LLVM IR (-O2):
define double @getEncodingValue(i64 %0, i64 %1) {
%3 = bitcast i64 %0 to double
ret double %3
}
/* Type definitions */
struct sd {
  int dummy;
};

/* Variables and functions */
scalar_t__ w9968cf_write_sb(struct sd *, int);
int w9968cf_smbus_stop(struct sd *sd) {
  int ret = 0;
  ret += w9968cf_write_sb(sd, 0x0010);
  ret += w9968cf_write_sb(sd, 0x0011);
  ret += w9968cf_write_sb(sd, 0x0013);
  return ret;
}


x86 assembly (clang, -O0):
<w9968cf_smbus_stop>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x10,%esi
call   1030 <w9968cf_write_sb@plt>
mov    %rax,%rcx
movslq -0xc(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x11,%esi
call   1030 <w9968cf_write_sb@plt>
mov    %rax,%rcx
movslq -0xc(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x13,%esi
call   1030 <w9968cf_write_sb@plt>
mov    %rax,%rcx
movslq -0xc(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<w9968cf_smbus_stop>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r15
mov    $0x10,%esi
call   1030 <w9968cf_write_sb@plt>
mov    %rax,%r14
mov    %r15,%rdi
mov    $0x11,%esi
call   1030 <w9968cf_write_sb@plt>
mov    %rax,%rbx
add    %r14d,%ebx
mov    %r15,%rdi
mov    $0x13,%esi
call   1030 <w9968cf_write_sb@plt>
add    %ebx,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.sd = type { i32 }
define i32 @w9968cf_smbus_stop(%struct.sd* %0) {
%2 = alloca %struct.sd*
%3 = alloca i32
store %struct.sd* %0, %struct.sd** %2
store i32 0, i32* %3
%4 = load %struct.sd*, %struct.sd** %2
%5 = call i64 @w9968cf_write_sb(%struct.sd* %4, i32 16)
%6 = load i32, i32* %3
%7 = sext i32 %6 to i64
%8 = add nsw i64 %7, %5
%9 = trunc i64 %8 to i32
store i32 %9, i32* %3
%10 = load %struct.sd*, %struct.sd** %2
%11 = call i64 @w9968cf_write_sb(%struct.sd* %10, i32 17)
%12 = load i32, i32* %3
%13 = sext i32 %12 to i64
%14 = add nsw i64 %13, %11
%15 = trunc i64 %14 to i32
store i32 %15, i32* %3
%16 = load %struct.sd*, %struct.sd** %2
%17 = call i64 @w9968cf_write_sb(%struct.sd* %16, i32 19)
%18 = load i32, i32* %3
%19 = sext i32 %18 to i64
%20 = add nsw i64 %19, %17
%21 = trunc i64 %20 to i32
store i32 %21, i32* %3
%22 = load i32, i32* %3
ret i32 %22
}

LLVM IR (-O2):
%struct.sd = type { i32 }
define i32 @w9968cf_smbus_stop(%struct.sd* %0) {
%2 = tail call i64 @w9968cf_write_sb(%struct.sd* %0, i32 16)
%3 = tail call i64 @w9968cf_write_sb(%struct.sd* %0, i32 17)
%4 = add i64 %3, %2
%5 = tail call i64 @w9968cf_write_sb(%struct.sd* %0, i32 19)
%6 = add i64 %4, %5
%7 = trunc i64 %6 to i32
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int _usage(void) {
  fputs("Usage: "
        "cmp"
        " [-l|-s] file1 file2\n  -l	Write the byte number and the "
        "differing byte for each difference\n  -s	Write nothing for "
        "differing bytes\n",
        stderr);
  return 2;
}


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

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

LLVM IR (-O0):
@.str = [141 x i8] c"Usage: cmp [-l|-s] file1 file2\0A -l\09Write the byte number and the differing byte for each difference\0A -s\09Write nothing for differing bytes\0A\00"
@stderr = global i32 0
define i32 @_usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fputs(i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 2
}

LLVM IR (-O2):
@.str = [141 x i8] c"Usage: cmp [-l|-s] file1 file2\0A -l\09Write the byte number and the differing byte for each difference\0A -s\09Write nothing for differing bytes\0A\00"
@stderr = global i32 0
define i32 @_usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fputs(i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 2
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int);
int /*<<< orphan*/ stderr;
void usage(void) {
  fprintf(stderr,
          "Usage: \r\n"
          "-p <port> <must exist>\r\n"
          "-i <ip>   \r\n"
          "-n <number of threads:default %d>\r\n"
          "-h help \r\n",
          128);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
mov    $0x80,%edx
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    0xee0(%rip),%rsi
mov    $0x80,%edx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [91 x i8] c"Usage: \0D\0A-p <port> <must exist>\0D\0A-i <ip> \0D\0A-n <number of threads:default %d>\0D\0A-h help \0D\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str, i64 0, i64 0), i32 128)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [91 x i8] c"Usage: \0D\0A-p <port> <must exist>\0D\0A-i <ip> \0D\0A-n <number of threads:default %d>\0D\0A-h help \0D\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str, i64 0, i64 0), i32 128)
ret void
}
/* Variables and functions */
int atoi(char *);
char *get_option_value(int, char **, char *);
char *set_int_option_value(int argc, char **argv, char *option_id,
                           int *optvariable) {
  char *chval = get_option_value(argc, argv, option_id);
  if (chval != NULL)
    *optvariable = atoi(chval);
  return chval;
}


x86 assembly (clang, -O0):
<set_int_option_value>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1040 <get_option_value@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     1167 <set_int_option_value+0x47>
mov    -0x28(%rbp),%rdi
call   1030 <atoi@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x28(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_int_option_value>:
push   %r14
push   %rbx
push   %rax
mov    %rcx,%r14
call   1040 <get_option_value@plt>
mov    %rax,%rbx
test   %rax,%rax
je     113f <set_int_option_value+0x1f>
mov    %rbx,%rdi
call   1030 <atoi@plt>
mov    %eax,(%r14)
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i8* @set_int_option_value(i32 %0, i8** %1, i8* %2, i32* %3) {
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i8*
%8 = alloca i32*
%9 = alloca i8*
store i32 %0, i32* %5
store i8** %1, i8*** %6
store i8* %2, i8** %7
store i32* %3, i32** %8
%10 = load i32, i32* %5
%11 = load i8**, i8*** %6
%12 = load i8*, i8** %7
%13 = call i8* @get_option_value(i32 %10, i8** %11, i8* %12)
store i8* %13, i8** %9
%14 = load i8*, i8** %9
%15 = icmp ne i8* %14, null
br i1 %15, label %16, label %20
16: ; preds = %4
%17 = load i8*, i8** %9
%18 = call i32 @atoi(i8* %17)
%19 = load i32*, i32** %8
store i32 %18, i32* %19
br label %20
20: ; preds = %16, %4
%21 = load i8*, i8** %9
ret i8* %21
}

LLVM IR (-O2):
define i8* @set_int_option_value(i32 %0, i8** %1, i8* %2, i32* nocapture writeonly %3) {
%5 = tail call i8* @get_option_value(i32 %0, i8** %1, i8* %2)
%6 = icmp eq i8* %5, null
br i1 %6, label %9, label %7
7: ; preds = %4
%8 = tail call i32 @atoi(i8* %5)
store i32 %8, i32* %3
br label %9
9: ; preds = %7, %4
ret i8* %5
}
int is_prime(int n) {
  int is_prime = 1;
  int i;
  for (i = 2; i <= n / 2; i++) {
    if (n % i == 0) {
      is_prime = 0;
      break;
    }
  }
  return is_prime;
}


x86 assembly (clang, -O0):
<is_prime>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
movl   $0x2,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x10(%rbp),%eax
cmp    %ecx,%eax
jg     1162 <is_prime+0x62>
mov    -0x4(%rbp),%eax
cltd
idivl  -0xc(%rbp)
cmp    $0x0,%edx
jne    114f <is_prime+0x4f>
movl   $0x0,-0x8(%rbp)
jmp    1162 <is_prime+0x62>
jmp    1154 <is_prime+0x54>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1115 <is_prime+0x15>
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_prime>:
mov    $0x1,%r8d
cmp    $0x4,%edi
jl     1137 <is_prime+0x37>
mov    %edi,%esi
shr    %esi
neg    %esi
mov    $0x2,%ecx
cs nopw 0x0(%rax,%rax,1)
mov    %edi,%eax
cltd
idiv   %ecx
test   %edx,%edx
je     113b <is_prime+0x3b>
lea    (%rsi,%rcx,1),%eax
add    $0x1,%eax
add    $0x1,%ecx
cmp    $0x1,%eax
jne    1120 <is_prime+0x20>
mov    %r8d,%eax
ret
xor    %r8d,%r8d
mov    %r8d,%eax
ret

LLVM IR (-O0):
define i32 @is_prime(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %2
store i32 1, i32* %3
store i32 2, i32* %4
br label %5
5: ; preds = %17, %1
%6 = load i32, i32* %4
%7 = load i32, i32* %2
%8 = sdiv i32 %7, 2
%9 = icmp sle i32 %6, %8
br i1 %9, label %10, label %20
10: ; preds = %5
%11 = load i32, i32* %2
%12 = load i32, i32* %4
%13 = srem i32 %11, %12
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %10
store i32 0, i32* %3
br label %20
16: ; preds = %10
br label %17
17: ; preds = %16
%18 = load i32, i32* %4
%19 = add nsw i32 %18, 1
store i32 %19, i32* %4
br label %5
20: ; preds = %15, %5
%21 = load i32, i32* %3
ret i32 %21
}

LLVM IR (-O2):
define i32 @is_prime(i32 %0) {
%2 = icmp slt i32 %0, 4
br i1 %2, label %12, label %3
3: ; preds = %1
%4 = lshr i32 %0, 1
br label %8
5: ; preds = %8
%6 = add nuw nsw i32 %9, 1
%7 = icmp eq i32 %9, %4
br i1 %7, label %12, label %8
8: ; preds = %3, %5
%9 = phi i32 [ %6, %5 ], [ 2, %3 ]
%10 = srem i32 %0, %9
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %5
12: ; preds = %5, %8, %1
%13 = phi i32 [ 1, %1 ], [ 0, %8 ], [ 1, %5 ]
ret i32 %13
}
XRestackWindows() {}


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

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

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

LLVM IR (-O2):
define i32 @XRestackWindows() {
ret i32 undef
}
/* Type definitions */
struct timex {
  int freq;
  int /*<<< orphan*/ modes;
};

/* Variables and functions */
int /*<<< orphan*/ ADJ_FREQUENCY;
scalar_t__ adjtimex(struct timex *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ perror(char *);
int set_freq(int new_freq) {
  struct timex txc;
  txc.modes = ADJ_FREQUENCY;
  txc.freq = new_freq;
  if (adjtimex(&txc) < 0) {
    perror("adjtimex");
    exit(1);
  }
  return txc.freq;
}


x86 assembly (clang, -O0):
<set_freq>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2e9e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x10(%rbp)
lea    -0x10(%rbp),%rdi
call   1050 <adjtimex@plt>
cmp    $0x0,%rax
jge    1176 <set_freq+0x46>
lea    0xe99(%rip),%rdi
call   1030 <perror@plt>
mov    $0x1,%edi
call   1040 <exit@plt>
mov    -0x10(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_freq>:
push   %rax
mov    0x2ea8(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x4(%rsp)
mov    %edi,(%rsp)
mov    %rsp,%rdi
call   1050 <adjtimex@plt>
test   %rax,%rax
js     1153 <set_freq+0x23>
mov    (%rsp),%eax
pop    %rcx
ret
lea    0xea6(%rip),%rdi
call   1030 <perror@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
%struct.timex = type { i32, i32 }
@ADJ_FREQUENCY = global i32 0
@.str = [9 x i8] c"adjtimex\00"
define i32 @set_freq(i32 %0) {
%2 = alloca i32
%3 = alloca %struct.timex
store i32 %0, i32* %2
%4 = load i32, i32* @ADJ_FREQUENCY
%5 = getelementptr inbounds %struct.timex, %struct.timex* %3, i32 0, i32 1
store i32 %4, i32* %5
%6 = load i32, i32* %2
%7 = getelementptr inbounds %struct.timex, %struct.timex* %3, i32 0, i32 0
store i32 %6, i32* %7
%8 = call i64 @adjtimex(%struct.timex* %3)
%9 = icmp slt i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%12 = call i32 @exit(i32 1)
unreachable
13: ; preds = %1
%14 = getelementptr inbounds %struct.timex, %struct.timex* %3, i32 0, i32 0
%15 = load i32, i32* %14
ret i32 %15
}

LLVM IR (-O2):
%struct.timex = type { i32, i32 }
@ADJ_FREQUENCY = global i32 0
@.str = [9 x i8] c"adjtimex\00"
define i32 @set_freq(i32 %0) {
%2 = alloca %struct.timex
%3 = bitcast %struct.timex* %2 to i8*
%4 = load i32, i32* @ADJ_FREQUENCY
%5 = getelementptr inbounds %struct.timex, %struct.timex* %2, i64 0, i32 1
store i32 %4, i32* %5
%6 = getelementptr inbounds %struct.timex, %struct.timex* %2, i64 0, i32 0
store i32 %0, i32* %6
%7 = call i64 @adjtimex(%struct.timex* %2)
%8 = icmp slt i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %1
%10 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%11 = call i32 @exit(i32 1)
unreachable
12: ; preds = %1
%13 = load i32, i32* %6
ret i32 %13
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *);
void exitHandle() {
  printf("\nExiting.\n");
  exit(1);
}


x86 assembly (clang, -O0):
<exitHandle>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<exitHandle>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"\0AExiting.\0A\00"
define void @exitHandle() {
%1 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@str = [10 x i8] c"\0AExiting.\00"
define void @exitHandle() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @exit(i32 1)
unreachable
}
void vectorSubtract(float *vxptr, float *vyptr, float vx, float vy) {
  *vxptr -= vx;
  *vyptr -= vy;
}


x86 assembly (clang, -O0):
<vectorSubtract>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movss  %xmm0,-0x14(%rbp)
movss  %xmm1,-0x18(%rbp)
movss  -0x14(%rbp),%xmm1
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
subss  %xmm1,%xmm0
movss  %xmm0,(%rax)
movss  -0x18(%rbp),%xmm1
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
subss  %xmm1,%xmm0
movss  %xmm0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<vectorSubtract>:
movss  (%rdi),%xmm2
subss  %xmm0,%xmm2
movss  %xmm2,(%rdi)
movss  (%rsi),%xmm0
subss  %xmm1,%xmm0
movss  %xmm0,(%rsi)
ret

LLVM IR (-O0):
define void @vectorSubtract(float* %0, float* %1, float %2, float %3) {
%5 = alloca float*
%6 = alloca float*
%7 = alloca float
%8 = alloca float
store float* %0, float** %5
store float* %1, float** %6
store float %2, float* %7
store float %3, float* %8
%9 = load float, float* %7
%10 = load float*, float** %5
%11 = load float, float* %10
%12 = fsub float %11, %9
store float %12, float* %10
%13 = load float, float* %8
%14 = load float*, float** %6
%15 = load float, float* %14
%16 = fsub float %15, %13
store float %16, float* %14
ret void
}

LLVM IR (-O2):
define void @vectorSubtract(float* nocapture %0, float* nocapture %1, float %2, float %3) {
%5 = load float, float* %0
%6 = fsub float %5, %2
store float %6, float* %0
%7 = load float, float* %1
%8 = fsub float %7, %3
store float %8, float* %1
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ int16_t;

/* Variables and functions */
int /*<<< orphan*/ be16toh(int /*<<< orphan*/);
int16_t ld_i16_be(const void *x) { return be16toh(((int16_t *)x)[0]); }


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

x86 assembly (clang, -O2):
<ld_i16_be>:
mov    (%rdi),%edi
jmp    1030 <be16toh@plt>

LLVM IR (-O0):
define i32 @ld_i16_be(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = bitcast i8* %3 to i32*
%5 = getelementptr inbounds i32, i32* %4, i64 0
%6 = load i32, i32* %5
%7 = call i32 @be16toh(i32 %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @ld_i16_be(i8* nocapture %0) {
%2 = bitcast i8* %0 to i32*
%3 = load i32, i32* %2
%4 = tail call i32 @be16toh(i32 %3)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ EnvPrintRouter(void *, char *, char const *);
int /*<<< orphan*/ ExpectedTypeError0(void *, char const *, int);
void ExpectedTypeError1(void *theEnv, const char *functionName, int whichArg,
                        const char *expectedType) {
  ExpectedTypeError0(theEnv, functionName, whichArg);
  EnvPrintRouter(theEnv, "werror", expectedType);
  EnvPrintRouter(theEnv, "werror", "\n");
}


x86 assembly (clang, -O0):
<ExpectedTypeError1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <ExpectedTypeError0@plt>
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%rdx
lea    0xeaa(%rip),%rsi
call   1040 <EnvPrintRouter@plt>
mov    -0x8(%rbp),%rdi
lea    0xe9a(%rip),%rsi
lea    0xe9a(%rip),%rdx
call   1040 <EnvPrintRouter@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ExpectedTypeError1>:
push   %r15
push   %r14
push   %rbx
mov    %rcx,%r14
mov    %rdi,%rbx
call   1030 <ExpectedTypeError0@plt>
lea    0xec9(%rip),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   1040 <EnvPrintRouter@plt>
lea    0xebb(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <EnvPrintRouter@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"werror\00"
@.str.1 = [2 x i8] c"\0A\00"
define void @ExpectedTypeError1(i8* %0, i8* %1, i32 %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8*
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i8* %3, i8** %8
%9 = load i8*, i8** %5
%10 = load i8*, i8** %6
%11 = load i32, i32* %7
%12 = call i32 @ExpectedTypeError0(i8* %9, i8* %10, i32 %11)
%13 = load i8*, i8** %5
%14 = load i8*, i8** %8
%15 = call i32 @EnvPrintRouter(i8* %13, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %14)
%16 = load i8*, i8** %5
%17 = call i32 @EnvPrintRouter(i8* %16, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"werror\00"
@.str.1 = [2 x i8] c"\0A\00"
define void @ExpectedTypeError1(i8* %0, i8* %1, i32 %2, i8* %3) {
%5 = tail call i32 @ExpectedTypeError0(i8* %0, i8* %1, i32 %2)
%6 = tail call i32 @EnvPrintRouter(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %3)
%7 = tail call i32 @EnvPrintRouter(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}
void etk_platform_deinit(void) {}


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

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

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

LLVM IR (-O2):
define void @etk_platform_deinit() {
ret void
}
double MBtoMMHG(double MB) {
  double MMHG = 0.750062 * MB;
  return MMHG;
}


x86 assembly (clang, -O0):
<MBtoMMHG>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  0xeef(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
pop    %rbp
ret

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

LLVM IR (-O0):
define double @MBtoMMHG(double %0) {
%2 = alloca double
%3 = alloca double
store double %0, double* %2
%4 = load double, double* %2
%5 = fmul double 7.500620e-01, %4
store double %5, double* %3
%6 = load double, double* %3
ret double %6
}

LLVM IR (-O2):
define double @MBtoMMHG(double %0) {
%2 = fmul double %0, 7.500620e-01
ret double %2
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ intro();
scalar_t__ playagain();
int /*<<< orphan*/ playgame();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main() {
  srand(time(NULL));
  intro();
  do
    playgame();
  while (playagain());
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1050 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
mov    $0x0,%al
call   1030 <intro@plt>
mov    $0x0,%al
call   1070 <playgame@plt>
mov    $0x0,%al
call   1060 <playagain@plt>
cmp    $0x0,%rax
jne    1186 <main+0x26>
xor    %edi,%edi
call   1080 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1050 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
xor    %eax,%eax
call   1030 <intro@plt>
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   1070 <playgame@plt>
xor    %eax,%eax
call   1060 <playagain@plt>
test   %rax,%rax
jne    1180 <main+0x20>
xor    %edi,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @time(i32* null)
%3 = call i32 @srand(i32 %2)
%4 = call i32 (...) @intro()
br label %5
5: ; preds = %7, %0
%6 = call i32 (...) @playgame()
br label %7
7: ; preds = %5
%8 = call i64 (...) @playagain()
%9 = icmp ne i64 %8, 0
br i1 %9, label %5, label %10
10: ; preds = %7
%11 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @time(i32* null)
%2 = tail call i32 @srand(i32 %1)
%3 = tail call i32 (...) @intro()
br label %4
4: ; preds = %4, %0
%5 = tail call i32 (...) @playgame()
%6 = tail call i64 (...) @playagain()
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %4
8: ; preds = %4
%9 = tail call i32 @exit(i32 0)
unreachable
}
void SPI_SD_DisableRxInt(void) {}


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

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

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

LLVM IR (-O2):
define void @SPI_SD_DisableRxInt() {
ret void
}
float df2y(float x, float y) { return (8 * y); }


x86 assembly (clang, -O0):
<df2y>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  0xeea(%rip),%xmm0
mulss  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<df2y>:
movaps %xmm1,%xmm0
mulss  0xef5(%rip),%xmm0
ret

LLVM IR (-O0):
define float @df2y(float %0, float %1) {
%3 = alloca float
%4 = alloca float
store float %0, float* %3
store float %1, float* %4
%5 = load float, float* %4
%6 = fmul float 8.000000e+00, %5
ret float %6
}

LLVM IR (-O2):
define float @df2y(float %0, float %1) {
%3 = fmul float %1, 8.000000e+00
ret float %3
}
/* Type definitions */
struct rtattr {
  int dummy;
};
struct qdisc_util {
  int dummy;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *);
int ingress_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) {
  fprintf(f, "---------------- ");
  return 0;
}


x86 assembly (clang, -O0):
<ingress_print_opt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xed1(%rip),%rsi
call   1030 <fprintf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ingress_print_opt>:
push   %rax
mov    %rsi,%rcx
lea    0xee5(%rip),%rdi
mov    $0x11,%esi
mov    $0x1,%edx
call   1030 <fwrite@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.qdisc_util = type { i32 }
%struct.rtattr = type { i32 }
@.str = [18 x i8] c"---------------- \00"
define i32 @ingress_print_opt(%struct.qdisc_util* %0, i32* %1, %struct.rtattr* %2) {
%4 = alloca %struct.qdisc_util*
%5 = alloca i32*
%6 = alloca %struct.rtattr*
store %struct.qdisc_util* %0, %struct.qdisc_util** %4
store i32* %1, i32** %5
store %struct.rtattr* %2, %struct.rtattr** %6
%7 = load i32*, i32** %5
%8 = call i32 @fprintf(i32* %7, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
%struct.qdisc_util = type { i32 }
%struct.rtattr = type { i32 }
@.str = [18 x i8] c"---------------- \00"
define i32 @ingress_print_opt(%struct.qdisc_util* nocapture readnone %0, i32* nocapture %1, %struct.rtattr* nocapture readnone %2) {
%4 = tail call i64 @fwrite(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i64 17, i64 1, i32* %1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ free_configurations();
void cleanup() { free_configurations(); }


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

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

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

LLVM IR (-O2):
define void @cleanup() {
%1 = tail call i32 (...) @free_configurations()
ret void
}