xunge/DecIR huggingface dataset:
/* Variables and functions */
int benoetigten_kaeufe(int);
void simulier_einkaeufe(int anzahl_kaeufer, int anzahl_kaeufe_pro_kunde[],
                        int anzahl_unterschiedlicher_bilder) {
  for (int kunde = 0; kunde < anzahl_kaeufer; kunde++) {
    anzahl_kaeufe_pro_kunde[kunde] =
        benoetigten_kaeufe(anzahl_unterschiedlicher_bilder);
  }
}


x86 assembly (clang, -O0):
<simulier_einkaeufe>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1158 <simulier_einkaeufe+0x48>
mov    -0x14(%rbp),%edi
call   1030 <benoetigten_kaeufe@plt>
mov    %eax,%edx
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1129 <simulier_einkaeufe+0x19>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<simulier_einkaeufe>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
test   %edi,%edi
jle    1145 <simulier_einkaeufe+0x35>
mov    %edx,%r14d
mov    %rsi,%r15
mov    %edi,%ebp
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r14d,%edi
call   1030 <benoetigten_kaeufe@plt>
mov    %eax,(%r15,%rbx,4)
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    1130 <simulier_einkaeufe+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @simulier_einkaeufe(i32 %0, i32* nocapture writeonly %1, i32 %2) {
%4 = icmp sgt i32 %0, 0
br i1 %4, label %5, label %7
5: ; preds = %3
%6 = zext i32 %0 to i64
br label %8
7: ; preds = %8, %3
ret void
8: ; preds = %5, %8
%9 = phi i64 [ 0, %5 ], [ %12, %8 ]
%10 = tail call i32 @benoetigten_kaeufe(i32 %2)
%11 = getelementptr inbounds i32, i32* %1, i64 %9
store i32 %10, i32* %11
%12 = add nuw nsw i64 %9, 1
%13 = icmp eq i64 %12, %6
br i1 %13, label %7, label %8
}
/* Variables and functions */
int /*<<< orphan*/ test(unsigned int);
int main(int argc, char *argv[]) {
  for (unsigned variant = 0; variant < 4; ++variant)
    test(variant);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x4,-0x14(%rbp)
jae    114d <main+0x3d>
mov    -0x14(%rbp),%edi
call   1030 <test@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    112d <main+0x1d>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1030 <test@plt>
mov    $0x1,%edi
call   1030 <test@plt>
mov    $0x2,%edi
call   1030 <test@plt>
mov    $0x3,%edi
call   1030 <test@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
br label %7
7: ; preds = %13, %2
%8 = load i32, i32* %6
%9 = icmp ult i32 %8, 4
br i1 %9, label %10, label %16
10: ; preds = %7
%11 = load i32, i32* %6
%12 = call i32 @test(i32 %11)
br label %13
13: ; preds = %10
%14 = load i32, i32* %6
%15 = add i32 %14, 1
store i32 %15, i32* %6
br label %7
16: ; preds = %7
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @test(i32 0)
%4 = tail call i32 @test(i32 1)
%5 = tail call i32 @test(i32 2)
%6 = tail call i32 @test(i32 3)
ret i32 0
}
/* Variables and functions */
int strcmp(char *, char *);
int compar(const void *a, const void *b) {
  return strcmp(*((char **)a), *((char **)b));
}


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

x86 assembly (clang, -O2):
<compar>:
mov    (%rdi),%rdi
mov    (%rsi),%rsi
jmp    1030 <strcmp@plt>

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

LLVM IR (-O2):
define i32 @compar(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i8**
%4 = load i8*, i8** %3
%5 = bitcast i8* %1 to i8**
%6 = load i8*, i8** %5
%7 = tail call i32 @strcmp(i8* dereferenceable(1) %4, i8* dereferenceable(1) %6)
ret i32 %7
}
void g_signal_query() {}


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

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

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

LLVM IR (-O2):
define void @g_signal_query() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ va_list;
struct s_pet {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct s_pet *);
int pet_db_final(void *key, void *data, va_list ap) {
  struct s_pet *p = data;
  free(p);
  return 0;
}


x86 assembly (clang, -O0):
<pet_db_final>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pet_db_final>:
push   %rax
mov    %rsi,%rdi
call   1030 <free@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.s_pet = type { i32 }
define i32 @pet_db_final(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca %struct.s_pet*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%8 = load i8*, i8** %5
%9 = bitcast i8* %8 to %struct.s_pet*
store %struct.s_pet* %9, %struct.s_pet** %7
%10 = load %struct.s_pet*, %struct.s_pet** %7
%11 = call i32 @free(%struct.s_pet* %10)
ret i32 0
}

LLVM IR (-O2):
%struct.s_pet = type { i32 }
define i32 @pet_db_final(i8* nocapture readnone %0, i8* nocapture %1, i32 %2) {
%4 = bitcast i8* %1 to %struct.s_pet*
%5 = tail call i32 @free(%struct.s_pet* %4)
ret i32 0
}
unsigned int Get32BitVal(unsigned int *last) {
  unsigned int r = *last;
  r = (1664525U * r) + 1013904223U;
  *last = r;
  return r;
}


x86 assembly (clang, -O0):
<Get32BitVal>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0xc(%rbp)
imul   $0x19660d,-0xc(%rbp),%eax
add    $0x3c6ef35f,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<Get32BitVal>:
imul   $0x19660d,(%rdi),%eax
add    $0x3c6ef35f,%eax
mov    %eax,(%rdi)
ret

LLVM IR (-O0):
define i32 @Get32BitVal(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
store i32* %0, i32** %2
%4 = load i32*, i32** %2
%5 = load i32, i32* %4
store i32 %5, i32* %3
%6 = load i32, i32* %3
%7 = mul i32 1664525, %6
%8 = add i32 %7, 1013904223
store i32 %8, i32* %3
%9 = load i32, i32* %3
%10 = load i32*, i32** %2
store i32 %9, i32* %10
%11 = load i32, i32* %3
ret i32 %11
}

LLVM IR (-O2):
define i32 @Get32BitVal(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = mul i32 %2, 1664525
%4 = add i32 %3, 1013904223
store i32 %4, i32* %0
ret i32 %4
}
__attribute__((always_)) int register_trace_kmem_cache_free(
    void (*probe)(void *__data, unsigned long call_site, const void *ptr),
    void *data) {
  return -38;
}


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

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

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

LLVM IR (-O2):
define i32 @register_trace_kmem_cache_free(void (i8*, i64, i8*)* nocapture readnone %0, i8* nocapture readnone %1) {
ret i32 -38
}
/* Type definitions */
struct geometry_struct {
  int dummy;
};

/* Variables and functions */
int A_within_B(struct geometry_struct *, struct geometry_struct *, int);
int box_within_cone(struct geometry_struct *geometry_child,
                    struct geometry_struct *geometry_parent) {
  return A_within_B(geometry_child, geometry_parent, (int)300);
}


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

x86 assembly (clang, -O2):
<box_within_cone>:
mov    $0x12c,%edx
jmp    1030 <A_within_B@plt>

LLVM IR (-O0):
%struct.geometry_struct = type { i32 }
define i32 @box_within_cone(%struct.geometry_struct* %0, %struct.geometry_struct* %1) {
%3 = alloca %struct.geometry_struct*
%4 = alloca %struct.geometry_struct*
store %struct.geometry_struct* %0, %struct.geometry_struct** %3
store %struct.geometry_struct* %1, %struct.geometry_struct** %4
%5 = load %struct.geometry_struct*, %struct.geometry_struct** %3
%6 = load %struct.geometry_struct*, %struct.geometry_struct** %4
%7 = call i32 @A_within_B(%struct.geometry_struct* %5, %struct.geometry_struct* %6, i32 300)
ret i32 %7
}

LLVM IR (-O2):
%struct.geometry_struct = type { i32 }
define i32 @box_within_cone(%struct.geometry_struct* %0, %struct.geometry_struct* %1) {
%3 = tail call i32 @A_within_B(%struct.geometry_struct* %0, %struct.geometry_struct* %1, i32 300)
ret i32 %3
}
/* Type definitions */
typedef int /*<<< orphan*/ wchar_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int wctomb(char *s, wchar_t wc) {
  printf("wctomb STUB!\n");
  return -1;
}


x86 assembly (clang, -O0):
<wctomb>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
lea    0xeda(%rip),%rdi
call   1030 <printf@plt>
mov    $0xffffffff,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [14 x i8] c"wctomb STUB!\0A\00"
define i32 @wctomb(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
ret i32 -1
}

LLVM IR (-O2):
@str = [13 x i8] c"wctomb STUB!\00"
define i32 @wctomb(i8* nocapture readnone %0, i32 %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
ret i32 -1
}
int isgraph(int c) { return (c > 0x20 && c <= 0x7E); }


x86 assembly (clang, -O0):
<isgraph>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
xor    %eax,%eax
cmpl   $0x20,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jle    1120 <isgraph+0x20>
cmpl   $0x7e,-0x4(%rbp)
setle  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isgraph>:
add    $0xffffffdf,%edi
xor    %eax,%eax
cmp    $0x5e,%edi
setb   %al
ret

LLVM IR (-O0):
define i32 @isgraph(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sgt i32 %3, 32
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 126
br label %8
8: ; preds = %5, %1
%9 = phi i1 [ false, %1 ], [ %7, %5 ]
%10 = zext i1 %9 to i32
ret i32 %10
}

LLVM IR (-O2):
define i32 @isgraph(i32 %0) {
%2 = add i32 %0, -33
%3 = icmp ult i32 %2, 94
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ outb_local(unsigned char, int);
int /*<<< orphan*/ slow_down_io();
__attribute__((always_)) void outb_local_p(unsigned char value, int port) {
  outb_local(value, port);
  slow_down_io();
}


x86 assembly (clang, -O0):
<outb_local_p>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x1(%rbp),%al
mov    -0x8(%rbp),%esi
movzbl %al,%edi
call   1030 <outb_local@plt>
mov    $0x0,%al
call   1040 <slow_down_io@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @outb_local_p(i8 zeroext %0, i32 %1) {
%3 = alloca i8
%4 = alloca i32
store i8 %0, i8* %3
store i32 %1, i32* %4
%5 = load i8, i8* %3
%6 = load i32, i32* %4
%7 = call i32 @outb_local(i8 zeroext %5, i32 %6)
%8 = call i32 (...) @slow_down_io()
ret void
}

LLVM IR (-O2):
define void @outb_local_p(i8 zeroext %0, i32 %1) {
%3 = tail call i32 @outb_local(i8 zeroext %0, i32 %1)
%4 = tail call i32 (...) @slow_down_io()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ functionStrCmp();
int /*<<< orphan*/ functionStrCpy();
int /*<<< orphan*/ functionStrchr();
int /*<<< orphan*/ functionStrstr();
void test3() {
  functionStrCpy();
  functionStrCmp();
  functionStrchr();
  functionStrstr();
}


x86 assembly (clang, -O0):
<test3>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <functionStrCpy@plt>
mov    $0x0,%al
call   1060 <functionStrCmp@plt>
mov    $0x0,%al
call   1050 <functionStrchr@plt>
mov    $0x0,%al
call   1040 <functionStrstr@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test3>:
push   %rax
xor    %eax,%eax
call   1030 <functionStrCpy@plt>
xor    %eax,%eax
call   1060 <functionStrCmp@plt>
xor    %eax,%eax
call   1050 <functionStrchr@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <functionStrstr@plt>

LLVM IR (-O0):
define void @test3() {
%1 = call i32 (...) @functionStrCpy()
%2 = call i32 (...) @functionStrCmp()
%3 = call i32 (...) @functionStrchr()
%4 = call i32 (...) @functionStrstr()
ret void
}

LLVM IR (-O2):
define void @test3() {
%1 = tail call i32 (...) @functionStrCpy()
%2 = tail call i32 (...) @functionStrCmp()
%3 = tail call i32 (...) @functionStrchr()
%4 = tail call i32 (...) @functionStrstr()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ sort9d(double *, double *, double *, double *, double *,
                          double *, double *, double *, int /*<<< orphan*/ *,
                          int);
void sort8d(double *x, double *y, double *z, double *a, double *b, double *c,
            double *e, double *f, int n) {
  sort9d(x, y, z, a, b, c, e, f, NULL, n);
}


x86 assembly (clang, -O0):
<sort8d>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x58,%rsp
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    -0x30(%rbp),%r8
mov    -0x38(%rbp),%r9
mov    0x10(%rbp),%r11
mov    0x18(%rbp),%r10
mov    0x20(%rbp),%eax
xor    %ebx,%ebx
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
movq   $0x0,0x10(%rsp)
mov    %eax,0x18(%rsp)
call   1030 <sort9d@plt>
add    $0x58,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<sort8d>:
sub    $0x28,%rsp
movaps 0x30(%rsp),%xmm0
mov    0x40(%rsp),%eax
mov    %eax,0x18(%rsp)
movups %xmm0,(%rsp)
movq   $0x0,0x10(%rsp)
call   1030 <sort9d@plt>
add    $0x28,%rsp
ret

LLVM IR (-O0):
define void @sort8d(double* %0, double* %1, double* %2, double* %3, double* %4, double* %5, double* %6, double* %7, i32 %8) {
%10 = alloca double*
%11 = alloca double*
%12 = alloca double*
%13 = alloca double*
%14 = alloca double*
%15 = alloca double*
%16 = alloca double*
%17 = alloca double*
%18 = alloca i32
store double* %0, double** %10
store double* %1, double** %11
store double* %2, double** %12
store double* %3, double** %13
store double* %4, double** %14
store double* %5, double** %15
store double* %6, double** %16
store double* %7, double** %17
store i32 %8, i32* %18
%19 = load double*, double** %10
%20 = load double*, double** %11
%21 = load double*, double** %12
%22 = load double*, double** %13
%23 = load double*, double** %14
%24 = load double*, double** %15
%25 = load double*, double** %16
%26 = load double*, double** %17
%27 = load i32, i32* %18
%28 = call i32 @sort9d(double* %19, double* %20, double* %21, double* %22, double* %23, double* %24, double* %25, double* %26, i32* null, i32 %27)
ret void
}

LLVM IR (-O2):
define void @sort8d(double* %0, double* %1, double* %2, double* %3, double* %4, double* %5, double* %6, double* %7, i32 %8) {
%10 = tail call i32 @sort9d(double* %0, double* %1, double* %2, double* %3, double* %4, double* %5, double* %6, double* %7, i32* null, i32 %8)
ret void
}
/* Type definitions */
typedef int uint64_t;
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
scalar_t__ ntohl(int /*<<< orphan*/);
uint64_t ntohll(uint64_t x) {
  return (uint64_t)ntohl((uint32_t)(x >> 32)) |
         (uint64_t)ntohl((uint32_t)(x & 0xffffffff)) << 32;
}


x86 assembly (clang, -O0):
<ntohll>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x20,%ecx
sar    %cl,%edi
call   1030 <ntohl@plt>
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
and    $0xffffffff,%edi
call   1030 <ntohl@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%eax
mov    %ecx,%edx
mov    $0x20,%ecx
shl    %cl,%edx
mov    %edx,%ecx
or     %ecx,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ntohll>:
push   %rbx
mov    %edi,%ebx
call   1030 <ntohl@plt>
mov    %ebx,%edi
pop    %rbx
jmp    1030 <ntohl@plt>

LLVM IR (-O0):
define i32 @ntohll(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = ashr i32 %3, 32
%5 = call i64 @ntohl(i32 %4)
%6 = trunc i64 %5 to i32
%7 = load i32, i32* %2
%8 = and i32 %7, -1
%9 = call i64 @ntohl(i32 %8)
%10 = trunc i64 %9 to i32
%11 = shl i32 %10, 32
%12 = or i32 %6, %11
ret i32 %12
}

LLVM IR (-O2):
define i32 @ntohll(i32 %0) {
%2 = tail call i64 @ntohl(i32 poison)
%3 = tail call i64 @ntohl(i32 %0)
ret i32 poison
}
/* Variables and functions */
int /*<<< orphan*/ twlist_test();
int main(void) {
  twlist_test();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @twlist_test()
ret i32 0
}
char **get_echo_1_svc(char **argp, struct svc_req *rqstp) {
  static char *result;
  result = *argp;
  return &result;
}


x86 assembly (clang, -O0):
<get_echo_1_svc>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %rax,0x2f0e(%rip)
lea    0x2f07(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_echo_1_svc>:
mov    (%rdi),%rax
mov    %rax,0x2f1e(%rip)
lea    0x2f17(%rip),%rax
ret

LLVM IR (-O0):
%struct.svc_req = type opaque
@get_echo_1_svc.result = internal global i8* null
define i8** @get_echo_1_svc(i8** %0, %struct.svc_req* %1) {
%3 = alloca i8**
%4 = alloca %struct.svc_req*
store i8** %0, i8*** %3
store %struct.svc_req* %1, %struct.svc_req** %4
%5 = load i8**, i8*** %3
%6 = load i8*, i8** %5
store i8* %6, i8** @get_echo_1_svc.result
ret i8** @get_echo_1_svc.result
}

LLVM IR (-O2):
%struct.svc_req = type opaque
@get_echo_1_svc.result = internal global i8* null
define i8** @get_echo_1_svc(i8** nocapture %0, %struct.svc_req* nocapture readnone %1) {
%3 = load i8*, i8** %0
store i8* %3, i8** @get_echo_1_svc.result
ret i8** @get_echo_1_svc.result
}
void f2(int a) { return; }


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

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

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

LLVM IR (-O2):
define void @f2(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ puts(char *);
void f2(void) { puts("calling f2()"); }


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

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

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

LLVM IR (-O2):
@.str = [13 x i8] c"calling f2()\00"
define void @f2() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret void
}
void IN_ActivateMouse(void) {}


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

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

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

LLVM IR (-O2):
define void @IN_ActivateMouse() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ *popen(char *, char *);
int main() {
  FILE *fp;
  fp = popen("/tmp/xyz", "r");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
lea    0xedc(%rip),%rsi
call   1030 <popen@plt>
mov    %rax,-0x10(%rbp)
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [9 x i8] c"/tmp/xyz\00"
@.str.1 = [2 x i8] c"r\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
store i32 0, i32* %1
%3 = call i32* @popen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %3, i32** %2
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"/tmp/xyz\00"
@.str.1 = [2 x i8] c"r\00"
define i32 @main() {
%1 = tail call i32* @popen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}
double test(const double le, const double ri) {
  double val = (ri - le) / (ri * (le + 1.0));
  return val;
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
subsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  0xedb(%rip),%xmm2
addsd  -0x8(%rbp),%xmm2
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
movapd %xmm1,%xmm2
subsd  %xmm0,%xmm2
addsd  0xef0(%rip),%xmm0
mulsd  %xmm1,%xmm0
divsd  %xmm0,%xmm2
movapd %xmm2,%xmm0
ret

LLVM IR (-O0):
define double @test(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
store double %0, double* %3
store double %1, double* %4
%6 = load double, double* %4
%7 = load double, double* %3
%8 = fsub double %6, %7
%9 = load double, double* %4
%10 = load double, double* %3
%11 = fadd double %10, 1.000000e+00
%12 = fmul double %9, %11
%13 = fdiv double %8, %12
store double %13, double* %5
%14 = load double, double* %5
ret double %14
}

LLVM IR (-O2):
define double @test(double %0, double %1) {
%3 = fsub double %1, %0
%4 = fadd double %0, 1.000000e+00
%5 = fmul double %4, %1
%6 = fdiv double %3, %5
ret double %6
}
/* Variables and functions */
int /*<<< orphan*/ grtestmod_write(int /*<<< orphan*/, int);
report_device(int dev) {
  grtestmod_write(0, dev);
  return (0);
}


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

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

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

LLVM IR (-O2):
define i32 @report_device(i32 %0) {
%2 = tail call i32 @grtestmod_write(i32 0, i32 %0)
ret i32 0
}
/* Variables and functions */
void *malloc(size_t);
int /*<<< orphan*/ print_err(char *, size_t);
void *use_malloc(size_t size) {
  void *ptr;
  if ((ptr = malloc(size)) == NULL)
    print_err("Error: Could not malloc() %zd bytes.\n", size);
  else
    return ptr;
  return NULL;
}


x86 assembly (clang, -O0):
<use_malloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    1158 <use_malloc+0x38>
mov    -0x10(%rbp),%rsi
lea    0xeb2(%rip),%rdi
call   1030 <print_err@plt>
jmp    1165 <use_malloc+0x45>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    116d <use_malloc+0x4d>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<use_malloc>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
call   1040 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1143 <use_malloc+0x23>
lea    0xec5(%rip),%rdi
mov    %r14,%rsi
call   1030 <print_err@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [38 x i8] c"Error: Could not malloc() %zd bytes.\0A\00"
define i8* @use_malloc(i64 %0) {
%2 = alloca i8*
%3 = alloca i64
%4 = alloca i8*
store i64 %0, i64* %3
%5 = load i64, i64* %3
%6 = call i8* @malloc(i64 %5)
store i8* %6, i8** %4
%7 = icmp eq i8* %6, null
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = load i64, i64* %3
%10 = call i32 @print_err(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i64 %9)
br label %13
11: ; preds = %1
%12 = load i8*, i8** %4
store i8* %12, i8** %2
br label %14
13: ; preds = %8
store i8* null, i8** %2
br label %14
14: ; preds = %13, %11
%15 = load i8*, i8** %2
ret i8* %15
}

LLVM IR (-O2):
@.str = [38 x i8] c"Error: Could not malloc() %zd bytes.\0A\00"
define noalias i8* @use_malloc(i64 %0) {
%2 = tail call i8* @malloc(i64 %0)
%3 = icmp eq i8* %2, null
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 @print_err(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i64 %0)
br label %6
6: ; preds = %1, %4
ret i8* %2
}
/* Variables and functions */
int /*<<< orphan*/ glEndList();
void qglEndList(void) { glEndList(); }


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

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

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

LLVM IR (-O2):
define void @qglEndList() {
%1 = tail call i32 (...) @glEndList()
ret void
}
/* Type definitions */
typedef int uint64_t;
struct timeval {
  int tv_usec;
  scalar_t__ tv_sec;
};

/* Variables and functions */
uint64_t timeval_to_us(struct timeval *tv) {
  return ((uint64_t)tv->tv_sec * 1000000) + tv->tv_usec;
}


x86 assembly (clang, -O0):
<timeval_to_us>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rax
imul   $0xf4240,%eax,%eax
mov    -0x8(%rbp),%rcx
add    (%rcx),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<timeval_to_us>:
imul   $0xf4240,0x8(%rdi),%eax
add    (%rdi),%eax
ret

LLVM IR (-O0):
%struct.timeval = type { i32, i64 }
define i32 @timeval_to_us(%struct.timeval* %0) {
%2 = alloca %struct.timeval*
store %struct.timeval* %0, %struct.timeval** %2
%3 = load %struct.timeval*, %struct.timeval** %2
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i32 0, i32 1
%5 = load i64, i64* %4
%6 = trunc i64 %5 to i32
%7 = mul nsw i32 %6, 1000000
%8 = load %struct.timeval*, %struct.timeval** %2
%9 = getelementptr inbounds %struct.timeval, %struct.timeval* %8, i32 0, i32 0
%10 = load i32, i32* %9
%11 = add nsw i32 %7, %10
ret i32 %11
}

LLVM IR (-O2):
%struct.timeval = type { i32, i64 }
define i32 @timeval_to_us(%struct.timeval* nocapture %0) {
%2 = getelementptr inbounds %struct.timeval, %struct.timeval* %0, i64 0, i32 1
%3 = load i64, i64* %2
%4 = trunc i64 %3 to i32
%5 = mul nsw i32 %4, 1000000
%6 = getelementptr inbounds %struct.timeval, %struct.timeval* %0, i64 0, i32 0
%7 = load i32, i32* %6
%8 = add nsw i32 %5, %7
ret i32 %8
}
/* Type definitions */
struct work_group {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ mm_free(struct work_group *);
void work_group_release(struct work_group *grp) { mm_free(grp); }


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

x86 assembly (clang, -O2):
<work_group_release>:
jmp    1030 <mm_free@plt>

LLVM IR (-O0):
%struct.work_group = type { i32 }
define void @work_group_release(%struct.work_group* %0) {
%2 = alloca %struct.work_group*
store %struct.work_group* %0, %struct.work_group** %2
%3 = load %struct.work_group*, %struct.work_group** %2
%4 = call i32 @mm_free(%struct.work_group* %3)
ret void
}

LLVM IR (-O2):
%struct.work_group = type { i32 }
define void @work_group_release(%struct.work_group* %0) {
%2 = tail call i32 @mm_free(%struct.work_group* %0)
ret void
}
void *fn_identity(void *d) { return d; }


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

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

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

LLVM IR (-O2):
define i8* @fn_identity(i8* readnone returned %0) {
ret i8* %0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void printHelp(void) {
  printf("\n\tWordListGen by: Patrick "
         "Cossette\n\twww.DigtialDiscrepancy.com\n\n	Generates phone number "
         "wordlists\n\n	\t-h\tShow this usage screen\n	\t-v\tVerbose "
         "output\n	\t-o\tSpecify output file (defaults to "
         "wordlist.txt)\n	\t-c\tSpecify config file (defaults to "
         "default.conf)\n	\n	Edit numbers.conf to specify certain "
         "area codes and/or prefixes.\n\nFormat:<areacode> + <space separated "
         "prefixes or 'all'> <end>\n(each line contains 1 area code)\n\n");
}


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

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

LLVM IR (-O0):
@.str = [417 x i8] c"\0A\09WordListGen by: Patrick Cossette\0A\09www.DigtialDiscrepancy.com\0A\0A\09Generates phone number wordlists\0A\0A\09\09-h\09Show this usage screen\0A\09\09-v\09Verbose output\0A\09\09-o\09Specify output file (defaults to wordlist.txt)\0A\09\09-c\09Specify config file (defaults to default.conf)\0A\09\0A\09Edit numbers.conf to specify certain area codes and/or prefixes.\0A\0AFormat:<areacode> + <space separated prefixes or 'all'> <end>\0A(each line contains 1 area code)\0A\0A\00"
define void @printHelp() {
%1 = call i32 @printf(i8* getelementptr inbounds ([417 x i8], [417 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [416 x i8] c"\0A\09WordListGen by: Patrick Cossette\0A\09www.DigtialDiscrepancy.com\0A\0A\09Generates phone number wordlists\0A\0A\09\09-h\09Show this usage screen\0A\09\09-v\09Verbose output\0A\09\09-o\09Specify output file (defaults to wordlist.txt)\0A\09\09-c\09Specify config file (defaults to default.conf)\0A\09\0A\09Edit numbers.conf to specify certain area codes and/or prefixes.\0A\0AFormat:<areacode> + <space separated prefixes or 'all'> <end>\0A(each line contains 1 area code)\0A\00"
define void @printHelp() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([416 x i8], [416 x i8]* @str, i64 0, i64 0))
ret void
}
void plat_trigger_vibrate(int pad, int low, int high) {}


x86 assembly (clang, -O0):
<plat_trigger_vibrate>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @plat_trigger_vibrate(i32 %0, i32 %1, i32 %2) {
ret void
}
/* Variables and functions */
char *_strcasestr(char const *, char const *, void *);
char *hfuzz_strcasestr(const char *haystack, const char *needle, void *addr) {
  return _strcasestr(haystack, needle, addr);
}


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

x86 assembly (clang, -O2):
<hfuzz_strcasestr>:
jmp    1030 <_strcasestr@plt>

LLVM IR (-O0):
define i8* @hfuzz_strcasestr(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load i8*, i8** %4
%8 = load i8*, i8** %5
%9 = load i8*, i8** %6
%10 = call i8* @_strcasestr(i8* %7, i8* %8, i8* %9)
ret i8* %10
}

LLVM IR (-O2):
define i8* @hfuzz_strcasestr(i8* %0, i8* %1, i8* %2) {
%4 = tail call i8* @_strcasestr(i8* %0, i8* %1, i8* %2)
ret i8* %4
}
/* Variables and functions */
double astro_julday_d(int, int, double);
double astro_julday(int year, int month, int day, int h, int m, int s) {
  double D = (double)((h * 3600) + (m * 60) + s);
  D = (double)day + (D / 86400.0);
  return astro_julday_d(year, month, D);
}


x86 assembly (clang, -O0):
<astro_julday>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
imul   $0xe10,-0x10(%rbp),%eax
imul   $0x3c,-0x14(%rbp),%ecx
add    %ecx,%eax
add    -0x18(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x20(%rbp)
cvtsi2sdl -0xc(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  0xea9(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
movsd  -0x20(%rbp),%xmm0
call   1030 <astro_julday_d@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<astro_julday>:
imul   $0xe10,%ecx,%eax
imul   $0x3c,%r8d,%ecx
add    %eax,%ecx
add    %r9d,%ecx
cvtsi2sd %ecx,%xmm0
cvtsi2sd %edx,%xmm1
divsd  0xed1(%rip),%xmm0
addsd  %xmm1,%xmm0
jmp    1030 <astro_julday_d@plt>

LLVM IR (-O0):
define double @astro_julday(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca double
store i32 %0, i32* %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%14 = load i32, i32* %10
%15 = mul nsw i32 %14, 3600
%16 = load i32, i32* %11
%17 = mul nsw i32 %16, 60
%18 = add nsw i32 %15, %17
%19 = load i32, i32* %12
%20 = add nsw i32 %18, %19
%21 = sitofp i32 %20 to double
store double %21, double* %13
%22 = load i32, i32* %9
%23 = sitofp i32 %22 to double
%24 = load double, double* %13
%25 = fdiv double %24, 8.640000e+04
%26 = fadd double %23, %25
store double %26, double* %13
%27 = load i32, i32* %7
%28 = load i32, i32* %8
%29 = load double, double* %13
%30 = call double @astro_julday_d(i32 %27, i32 %28, double %29)
ret double %30
}

LLVM IR (-O2):
define double @astro_julday(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = mul nsw i32 %3, 3600
%8 = mul nsw i32 %4, 60
%9 = add nsw i32 %8, %7
%10 = add nsw i32 %9, %5
%11 = sitofp i32 %10 to double
%12 = sitofp i32 %2 to double
%13 = fdiv double %11, 8.640000e+04
%14 = fadd double %13, %12
%15 = tail call double @astro_julday_d(i32 %0, i32 %1, double %14)
ret double %15
}
unsigned long getRevisionNumber(void) {
  unsigned long rev;
  rev = 449;
  return rev;
}


x86 assembly (clang, -O0):
<getRevisionNumber>:
push   %rbp
mov    %rsp,%rbp
movq   $0x1c1,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

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

LLVM IR (-O0):
define i64 @getRevisionNumber() {
%1 = alloca i64
store i64 449, i64* %1
%2 = load i64, i64* %1
ret i64 %2
}

LLVM IR (-O2):
define i64 @getRevisionNumber() {
ret i64 449
}
/* Variables and functions */
int /*<<< orphan*/ srand(unsigned int);
unsigned int time(int /*<<< orphan*/);
void slach_rand_seed(unsigned int seed) {
  if (seed != 0)
    srand(seed);
  else
    srand(time(0));
}


x86 assembly (clang, -O0):
<slach_rand_seed>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1142 <slach_rand_seed+0x22>
mov    -0x4(%rbp),%edi
call   1030 <srand@plt>
jmp    1150 <slach_rand_seed+0x30>
xor    %edi,%edi
call   1040 <time@plt>
mov    %eax,%edi
call   1030 <srand@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<slach_rand_seed>:
test   %edi,%edi
je     1129 <slach_rand_seed+0x9>
jmp    1030 <srand@plt>
push   %rax
xor    %edi,%edi
call   1040 <time@plt>
mov    %eax,%edi
add    $0x8,%rsp
jmp    1030 <srand@plt>

LLVM IR (-O0):
define void @slach_rand_seed(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ne i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = call i32 @srand(i32 %6)
br label %11
8: ; preds = %1
%9 = call i32 @time(i32 0)
%10 = call i32 @srand(i32 %9)
br label %11
11: ; preds = %8, %5
ret void
}

LLVM IR (-O2):
define void @slach_rand_seed(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = tail call i32 @time(i32 0)
br label %5
5: ; preds = %1, %3
%6 = phi i32 [ %4, %3 ], [ %0, %1 ]
%7 = tail call i32 @srand(i32 %6)
ret void
}
/* Type definitions */
struct rosprite_mem_context {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct rosprite_mem_context *);
void rosprite_destroy_mem_context(struct rosprite_mem_context *ctx) {
  free(ctx);
}


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

x86 assembly (clang, -O2):
<rosprite_destroy_mem_context>:
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.rosprite_mem_context = type { i32 }
define void @rosprite_destroy_mem_context(%struct.rosprite_mem_context* %0) {
%2 = alloca %struct.rosprite_mem_context*
store %struct.rosprite_mem_context* %0, %struct.rosprite_mem_context** %2
%3 = load %struct.rosprite_mem_context*, %struct.rosprite_mem_context** %2
%4 = call i32 @free(%struct.rosprite_mem_context* %3)
ret void
}

LLVM IR (-O2):
%struct.rosprite_mem_context = type { i32 }
define void @rosprite_destroy_mem_context(%struct.rosprite_mem_context* nocapture %0) {
%2 = tail call i32 @free(%struct.rosprite_mem_context* %0)
ret void
}
int mdc(int x, int y) {
  if (y == 0) {
    return x;
  }
  return mdc(y, x % y);
}


x86 assembly (clang, -O0):
<mdc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    1133 <mdc+0x23>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1147 <mdc+0x37>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
mov    %edx,%esi
call   1030 <mdc@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mdc>:
mov    %edi,%eax
test   %esi,%esi
je     111d <mdc+0x1d>
mov    %esi,%edx
nopl   0x0(%rax,%rax,1)
mov    %edx,%ecx
cltd
idiv   %ecx
mov    %ecx,%eax
test   %edx,%edx
jne    1110 <mdc+0x10>
mov    %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @mdc(i32 %0, i32 %1) {
%3 = icmp eq i32 %1, 0
br i1 %3, label %9, label %4
4: ; preds = %2, %4
%5 = phi i32 [ %7, %4 ], [ %1, %2 ]
%6 = phi i32 [ %5, %4 ], [ %0, %2 ]
%7 = srem i32 %6, %5
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %4
9: ; preds = %4, %2
%10 = phi i32 [ %0, %2 ], [ %5, %4 ]
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ move_pos(int);
int /*<<< orphan*/ update();
void goto_pos_force_update(int pos) {
  (void)move_pos(pos);
  update();
}


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

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

LLVM IR (-O0):
define void @goto_pos_force_update(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @move_pos(i32 %3)
%5 = call i32 (...) @update()
ret void
}

LLVM IR (-O2):
define void @goto_pos_force_update(i32 %0) {
%2 = tail call i32 @move_pos(i32 %0)
%3 = tail call i32 (...) @update()
ret void
}
void doY(int a) { a += 3; }


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

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

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

LLVM IR (-O2):
define void @doY(i32 %0) {
ret void
}
int ILibBase64DecodeLength(const int inputLen) {
  return ((inputLen * 3) / 4) + 4;
}


x86 assembly (clang, -O0):
<ILibBase64DecodeLength>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
imul   $0x3,-0x4(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
add    $0x4,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ILibBase64DecodeLength>:
lea    (%rdi,%rdi,2),%ecx
lea    (%rdi,%rdi,2),%eax
add    $0x3,%eax
test   %ecx,%ecx
cmovns %ecx,%eax
sar    $0x2,%eax
add    $0x4,%eax
ret

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

LLVM IR (-O2):
define i32 @ILibBase64DecodeLength(i32 %0) {
%2 = mul nsw i32 %0, 3
%3 = sdiv i32 %2, 4
%4 = add nsw i32 %3, 4
ret i32 %4
}
void secure_api_call_init(void) {}


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

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

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

LLVM IR (-O2):
define void @secure_api_call_init() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ xsi_driver_first_trans_fast_port(char *);
void simprim_a_1509725169_3980060181_p_0(char *t0) {
  char *t1;
  char *t2;
  char *t3;
  char *t4;
  char *t5;
LAB0:
LAB3:
  t1 = (t0 + 2704);
  t2 = (t1 + 56U);
  t3 = *((char **)t2);
  t4 = (t3 + 56U);
  t5 = *((char **)t4);
  *((unsigned char *)t5) = (unsigned char)3;
  xsi_driver_first_trans_fast_port(t1);
LAB2:
LAB1:
  return;
LAB4:
  goto LAB2;
}


x86 assembly (clang, -O0):
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
jmp    1121 <simprim_a_1509725169_3980060181_p_0+0x11>
mov    -0x8(%rbp),%rax
add    $0xa90,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x38,%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
add    $0x38,%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
movb   $0x3,(%rax)
mov    -0x10(%rbp),%rdi
call   1030 <xsi_driver_first_trans_fast_port@plt>
jmp    1172 <simprim_a_1509725169_3980060181_p_0+0x62>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
mov    0xac8(%rdi),%rax
add    $0xa90,%rdi
mov    0x38(%rax),%rax
movb   $0x3,(%rax)
jmp    1030 <xsi_driver_first_trans_fast_port@plt>

LLVM IR (-O0):
define void @simprim_a_1509725169_3980060181_p_0(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
store i8* %0, i8** %2
br label %8
8: ; preds = %1
br label %9
9: ; preds = %8
%10 = load i8*, i8** %2
%11 = getelementptr inbounds i8, i8* %10, i64 2704
store i8* %11, i8** %3
%12 = load i8*, i8** %3
%13 = getelementptr inbounds i8, i8* %12, i64 56
store i8* %13, i8** %4
%14 = load i8*, i8** %4
%15 = bitcast i8* %14 to i8**
%16 = load i8*, i8** %15
store i8* %16, i8** %5
%17 = load i8*, i8** %5
%18 = getelementptr inbounds i8, i8* %17, i64 56
store i8* %18, i8** %6
%19 = load i8*, i8** %6
%20 = bitcast i8* %19 to i8**
%21 = load i8*, i8** %20
store i8* %21, i8** %7
%22 = load i8*, i8** %7
store i8 3, i8* %22
%23 = load i8*, i8** %3
%24 = call i32 @xsi_driver_first_trans_fast_port(i8* %23)
br label %25
25: ; preds = %27, %9
br label %26
26: ; preds = %25
ret void
27: ; No predecessors!
br label %25
}

LLVM IR (-O2):
define void @simprim_a_1509725169_3980060181_p_0(i8* %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 2704
%3 = getelementptr inbounds i8, i8* %0, i64 2760
%4 = bitcast i8* %3 to i8**
%5 = load i8*, i8** %4
%6 = getelementptr inbounds i8, i8* %5, i64 56
%7 = bitcast i8* %6 to i8**
%8 = load i8*, i8** %7
store i8 3, i8* %8
%9 = tail call i32 @xsi_driver_first_trans_fast_port(i8* %2)
ret void
}