xunge/DecIR huggingface dataset:
float clip(float p, float lo, float hi) {
  if (p >= hi) {
    return 0.0;
  } else if (p < lo) {
    return 1.0;
  } else {
    return (hi + (-1 * p)) / (hi - lo);
  }
}


x86 assembly (clang, -O0):
<clip>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x8(%rbp)
movss  %xmm1,-0xc(%rbp)
movss  %xmm2,-0x10(%rbp)
movss  -0x8(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jb     112f <clip+0x2f>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1175 <clip+0x75>
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    1154 <clip+0x54>
movss  0xeb6(%rip),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1175 <clip+0x75>
movss  -0x10(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
subss  %xmm1,%xmm0
movss  -0x10(%rbp),%xmm1
subss  -0xc(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<clip>:
movaps %xmm0,%xmm3
xorps  %xmm0,%xmm0
ucomiss %xmm2,%xmm3
jae    1128 <clip+0x28>
ucomiss %xmm3,%xmm1
jbe    1119 <clip+0x19>
movss  0xee8(%rip),%xmm0
ret
movaps %xmm2,%xmm0
subss  %xmm3,%xmm0
subss  %xmm1,%xmm2
divss  %xmm2,%xmm0
ret

LLVM IR (-O0):
define float @clip(float %0, float %1, float %2) {
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
store float %0, float* %5
store float %1, float* %6
store float %2, float* %7
%8 = load float, float* %5
%9 = load float, float* %7
%10 = fcmp oge float %8, %9
br i1 %10, label %11, label %12
11: ; preds = %3
store float 0.000000e+00, float* %4
br label %25
12: ; preds = %3
%13 = load float, float* %5
%14 = load float, float* %6
%15 = fcmp olt float %13, %14
br i1 %15, label %16, label %17
16: ; preds = %12
store float 1.000000e+00, float* %4
br label %25
17: ; preds = %12
%18 = load float, float* %7
%19 = load float, float* %5
%20 = call float @llvm.fmuladd.f32(float -1.000000e+00, float %19, float %18)
%21 = load float, float* %7
%22 = load float, float* %6
%23 = fsub float %21, %22
%24 = fdiv float %20, %23
store float %24, float* %4
br label %25
25: ; preds = %17, %16, %11
%26 = load float, float* %4
ret float %26
}

LLVM IR (-O2):
define float @clip(float %0, float %1, float %2) {
%4 = fcmp ult float %0, %2
br i1 %4, label %5, label %11
5: ; preds = %3
%6 = fcmp olt float %0, %1
br i1 %6, label %11, label %7
7: ; preds = %5
%8 = tail call float @llvm.fmuladd.f32(float %0, float -1.000000e+00, float %2)
%9 = fsub float %2, %1
%10 = fdiv float %8, %9
br label %11
11: ; preds = %5, %3, %7
%12 = phi float [ %10, %7 ], [ 0.000000e+00, %3 ], [ 1.000000e+00, %5 ]
ret float %12
}
char *htmlWarnStartPattern() { return "<!-- HGERROR-START -->\n"; }


x86 assembly (clang, -O0):
<htmlWarnStartPattern>:
push   %rbp
mov    %rsp,%rbp
lea    0xef5(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<htmlWarnStartPattern>:
lea    0xef9(%rip),%rax
ret

LLVM IR (-O0):
@.str = [24 x i8] c"<!-- HGERROR-START -->\0A\00"
define i8* @htmlWarnStartPattern() {
ret i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [24 x i8] c"<!-- HGERROR-START -->\0A\00"
define i8* @htmlWarnStartPattern() {
ret i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0)
}
/* Type definitions */
struct cb_hostreference_list {
  int dummy;
};

/* Variables and functions */
int cb_search_list(char *);
int /*<<< orphan*/ sprintf(char *, char *, int);
char *strdup(char *);
char *cb_host_list_add(struct cb_hostreference_list *list, char *text) {
  int hostno;
  char temps[256];
  hostno = cb_search_list(text);
  sprintf(temps, "$%d", hostno);
  return strdup(temps);
}


x86 assembly (clang, -O0):
<cb_host_list_add>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <cb_search_list@plt>
mov    %eax,-0x14(%rbp)
lea    -0x120(%rbp),%rdi
mov    -0x14(%rbp),%edx
lea    0xea0(%rip),%rsi
call   1040 <sprintf@plt>
lea    -0x120(%rbp),%rdi
call   1050 <strdup@plt>
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cb_host_list_add>:
push   %rbx
sub    $0x100,%rsp
mov    %rsi,%rdi
call   1030 <cb_search_list@plt>
lea    0xeb9(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    %eax,%edx
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1050 <strdup@plt>
add    $0x100,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.cb_hostreference_list = type { i32 }
@.str = [4 x i8] c"$%d\00"
define i8* @cb_host_list_add(%struct.cb_hostreference_list* %0, i8* %1) {
%3 = alloca %struct.cb_hostreference_list*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca [256 x i8]
store %struct.cb_hostreference_list* %0, %struct.cb_hostreference_list** %3
store i8* %1, i8** %4
%7 = load i8*, i8** %4
%8 = call i32 @cb_search_list(i8* %7)
store i32 %8, i32* %5
%9 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%10 = load i32, i32* %5
%11 = call i32 @sprintf(i8* %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %10)
%12 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%13 = call i8* @strdup(i8* %12)
ret i8* %13
}

LLVM IR (-O2):
%struct.cb_hostreference_list = type { i32 }
@.str = [4 x i8] c"$%d\00"
define noalias i8* @cb_host_list_add(%struct.cb_hostreference_list* nocapture readnone %0, i8* %1) {
%3 = alloca [256 x i8]
%4 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%5 = tail call i32 @cb_search_list(i8* %1)
%6 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = call i8* @strdup(i8* %4)
ret i8* %7
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, unsigned long);
void *realloc(void *, size_t);
void *xrealloc(void *ptr, size_t size) {
  void *r = realloc(ptr, size);
  if (r == NULL) {
    printf("[ERR] Not enough memory to realloc %lu\n", (unsigned long)size);
    exit(0);
  }
  return r;
}


x86 assembly (clang, -O0):
<xrealloc>:
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   1040 <realloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1173 <xrealloc+0x43>
mov    -0x10(%rbp),%rsi
lea    0xe99(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1050 <exit@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xrealloc>:
push   %rbx
mov    %rsi,%rbx
call   1040 <realloc@plt>
test   %rax,%rax
je     1140 <xrealloc+0x10>
pop    %rbx
ret
lea    0xeb9(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [40 x i8] c"[ERR] Not enough memory to realloc %lu\0A\00"
define i8* @xrealloc(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i8*
store i8* %0, i8** %3
store i64 %1, i64* %4
%6 = load i8*, i8** %3
%7 = load i64, i64* %4
%8 = call i8* @realloc(i8* %6, i64 %7)
store i8* %8, i8** %5
%9 = load i8*, i8** %5
%10 = icmp eq i8* %9, null
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = load i64, i64* %4
%13 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i64 %12)
%14 = call i32 @exit(i32 0)
unreachable
15: ; preds = %2
%16 = load i8*, i8** %5
ret i8* %16
}

LLVM IR (-O2):
@.str = [40 x i8] c"[ERR] Not enough memory to realloc %lu\0A\00"
define noalias i8* @xrealloc(i8* nocapture %0, i64 %1) {
%3 = tail call i8* @realloc(i8* %0, i64 %1)
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %8
5: ; preds = %2
%6 = tail call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i64 %1)
%7 = tail call i32 @exit(i32 0)
unreachable
8: ; preds = %2
ret i8* %3
}
/* Variables and functions */
int /*<<< orphan*/ PR_SET_PDEATHSIG;
int /*<<< orphan*/ SIGKILL;
int /*<<< orphan*/ _exit(int /*<<< orphan*/);
int getppid();
int prctl(int /*<<< orphan*/, int /*<<< orphan*/);
int pdeath() {
  if (prctl(PR_SET_PDEATHSIG, SIGKILL) == -1)
    return -1;
  if (getppid() <= 1)
    _exit(0);
  return 0;
}


x86 assembly (clang, -O0):
<pdeath>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2ea1(%rip),%rax
mov    (%rax),%edi
mov    0x2e90(%rip),%rax
mov    (%rax),%esi
call   1040 <prctl@plt>
cmp    $0xffffffff,%eax
jne    1164 <pdeath+0x34>
movl   $0xffffffff,-0x4(%rbp)
jmp    1182 <pdeath+0x52>
mov    $0x0,%al
call   1050 <getppid@plt>
cmp    $0x1,%eax
jg     117b <pdeath+0x4b>
xor    %edi,%edi
call   1030 <_exit@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pdeath>:
push   %rbx
mov    0x2ea8(%rip),%rax
mov    (%rax),%edi
mov    0x2e97(%rip),%rax
mov    (%rax),%esi
call   1040 <prctl@plt>
cmp    $0xffffffff,%eax
je     1162 <pdeath+0x32>
xor    %ebx,%ebx
xor    %eax,%eax
call   1050 <getppid@plt>
cmp    $0x1,%eax
jg     1167 <pdeath+0x37>
xor    %edi,%edi
call   1030 <_exit@plt>
mov    $0xffffffff,%ebx
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@PR_SET_PDEATHSIG = global i32 0
@SIGKILL = global i32 0
define i32 @pdeath() {
%1 = alloca i32
%2 = load i32, i32* @PR_SET_PDEATHSIG
%3 = load i32, i32* @SIGKILL
%4 = call i32 @prctl(i32 %2, i32 %3)
%5 = icmp eq i32 %4, -1
br i1 %5, label %6, label %7
6: ; preds = %0
store i32 -1, i32* %1
br label %13
7: ; preds = %0
%8 = call i32 (...) @getppid()
%9 = icmp sle i32 %8, 1
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 @_exit(i32 0)
unreachable
12: ; preds = %7
store i32 0, i32* %1
br label %13
13: ; preds = %12, %6
%14 = load i32, i32* %1
ret i32 %14
}

LLVM IR (-O2):
@PR_SET_PDEATHSIG = global i32 0
@SIGKILL = global i32 0
define i32 @pdeath() {
%1 = load i32, i32* @PR_SET_PDEATHSIG
%2 = load i32, i32* @SIGKILL
%3 = tail call i32 @prctl(i32 %1, i32 %2)
%4 = icmp eq i32 %3, -1
br i1 %4, label %10, label %5
5: ; preds = %0
%6 = tail call i32 (...) @getppid()
%7 = icmp slt i32 %6, 2
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = tail call i32 @_exit(i32 0)
unreachable
10: ; preds = %5, %0
%11 = phi i32 [ -1, %0 ], [ 0, %5 ]
ret i32 %11
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
FILE *AbreFicheiro(char *nome, char *mode) {
  FILE *f;
  f = fopen(nome, mode);
  if (f == NULL) {
    fprintf(stderr, "*** Invalid Filename %s.", nome);
    exit(1);
  }
  return f;
}


x86 assembly (clang, -O0):
<AbreFicheiro>:
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   1040 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    117f <AbreFicheiro+0x4f>
mov    0x2e7d(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xe90(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<AbreFicheiro>:
push   %rbx
mov    %rdi,%rbx
call   1040 <fopen@plt>
test   %rax,%rax
je     1140 <AbreFicheiro+0x10>
pop    %rbx
ret
mov    0x2e99(%rip),%rax
mov    (%rax),%edi
lea    0xeb0(%rip),%rsi
mov    %rbx,%rdx
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [25 x i8] c"*** Invalid Filename %s.\00"
define i32* @AbreFicheiro(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32*
store i8* %0, i8** %3
store i8* %1, i8** %4
%6 = load i8*, i8** %3
%7 = load i8*, i8** %4
%8 = call i32* @fopen(i8* %6, i8* %7)
store i32* %8, i32** %5
%9 = load i32*, i32** %5
%10 = icmp eq i32* %9, null
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load i32, i32* @stderr
%13 = load i8*, i8** %3
%14 = call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %13)
%15 = call i32 @exit(i32 1)
unreachable
16: ; preds = %2
%17 = load i32*, i32** %5
ret i32* %17
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [25 x i8] c"*** Invalid Filename %s.\00"
define noalias i32* @AbreFicheiro(i8* %0, i8* nocapture %1) {
%3 = tail call i32* @fopen(i8* %0, i8* %1)
%4 = icmp eq i32* %3, null
br i1 %4, label %5, label %9
5: ; preds = %2
%6 = load i32, i32* @stderr
%7 = tail call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %0)
%8 = tail call i32 @exit(i32 1)
unreachable
9: ; preds = %2
ret i32* %3
}
/* Variables and functions */
scalar_t__ GC_init();
int /*<<< orphan*/ coalesce();
int /*<<< orphan*/ mark(int *);
int /*<<< orphan*/ sweep(int *);
void mygc() {
  unsigned long stack_bottom;
  int **max = (int **)GC_init();
  int *q;
  int **p = &q;
  while (p < max) {
    mark(*p);
    p++;
  }
  sweep(q);
  coalesce();
}


x86 assembly (clang, -O0):
<mygc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    $0x0,%al
call   1060 <GC_init@plt>
mov    %rax,-0x10(%rbp)
lea    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x10(%rbp),%rax
jae    1186 <mygc+0x46>
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
call   1050 <mark@plt>
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
jmp    115b <mygc+0x1b>
mov    -0x18(%rbp),%rdi
call   1040 <sweep@plt>
mov    $0x0,%al
call   1030 <coalesce@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mygc>:
push   %rax
xor    %eax,%eax
call   1050 <GC_init@plt>
call   1040 <sweep@plt>
xor    %eax,%eax
call   1030 <coalesce@plt>
pop    %rax
ret

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

LLVM IR (-O2):
define void @mygc() {
%1 = alloca i32*
%2 = tail call i64 (...) @GC_init()
%3 = inttoptr i64 %2 to i32**
%4 = bitcast i32** %1 to i8*
%5 = icmp uge i32** %1, %3
%6 = call i32 @sweep(i32* undef)
%7 = call i32 (...) @coalesce()
ret void
}
unsigned str_quickhash(const char *str) {
  unsigned hash = 5381;
  for (; *str; str++)
    hash = ((hash << 5) + hash) + (*str);
  return hash;
}


x86 assembly (clang, -O0):
<str_quickhash>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x1505,-0xc(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     1142 <str_quickhash+0x42>
mov    -0xc(%rbp),%eax
shl    $0x5,%eax
add    -0xc(%rbp),%eax
mov    -0x8(%rbp),%rcx
movsbl (%rcx),%ecx
add    %ecx,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    110f <str_quickhash+0xf>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<str_quickhash>:
mov    (%rdi),%cl
test   %cl,%cl
je     1128 <str_quickhash+0x28>
add    $0x1,%rdi
mov    $0x1505,%eax
nop
mov    %eax,%edx
shl    $0x5,%edx
add    %eax,%edx
movsbl %cl,%eax
add    %edx,%eax
movzbl (%rdi),%ecx
add    $0x1,%rdi
test   %cl,%cl
jne    1110 <str_quickhash+0x10>
ret
mov    $0x1505,%eax
ret

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

LLVM IR (-O2):
define i32 @str_quickhash(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %14, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %12, %4 ], [ %2, %1 ]
%6 = phi i32 [ %10, %4 ], [ 5381, %1 ]
%7 = phi i8* [ %11, %4 ], [ %0, %1 ]
%8 = mul i32 %6, 33
%9 = sext i8 %5 to i32
%10 = add i32 %8, %9
%11 = getelementptr inbounds i8, i8* %7, i64 1
%12 = load i8, i8* %11
%13 = icmp eq i8 %12, 0
br i1 %13, label %14, label %4
14: ; preds = %4, %1
%15 = phi i32 [ 5381, %1 ], [ %10, %4 ]
ret i32 %15
}
int arr_cmpl(const void *a, const void *b) {
  if (*(unsigned long *)a < *(unsigned long *)b) {
    return -1;
  }
  if (*(unsigned long *)a == *(unsigned long *)b) {
    return 0;
  }
  if (*(unsigned long *)a > *(unsigned long *)b) {
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<arr_cmpl>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    -0x18(%rbp),%rcx
cmp    (%rcx),%rax
jae    112c <arr_cmpl+0x2c>
movl   $0xffffffff,-0x4(%rbp)
jmp    1173 <arr_cmpl+0x73>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    -0x18(%rbp),%rcx
cmp    (%rcx),%rax
jne    114c <arr_cmpl+0x4c>
movl   $0x0,-0x4(%rbp)
jmp    1173 <arr_cmpl+0x73>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    -0x18(%rbp),%rcx
cmp    (%rcx),%rax
jbe    116c <arr_cmpl+0x6c>
movl   $0x1,-0x4(%rbp)
jmp    1173 <arr_cmpl+0x73>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<arr_cmpl>:
mov    (%rdi),%rcx
mov    (%rsi),%rdx
mov    $0xffffffff,%eax
cmp    %rdx,%rcx
jb     111d <arr_cmpl+0x1d>
xor    %eax,%eax
cmp    %rdx,%rcx
je     111d <arr_cmpl+0x1d>
seta   %al
movzbl %al,%eax
ret

LLVM IR (-O0):
define i32 @arr_cmpl(i8* %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
%6 = load i8*, i8** %4
%7 = bitcast i8* %6 to i64*
%8 = load i64, i64* %7
%9 = load i8*, i8** %5
%10 = bitcast i8* %9 to i64*
%11 = load i64, i64* %10
%12 = icmp ult i64 %8, %11
br i1 %12, label %13, label %14
13: ; preds = %2
store i32 -1, i32* %3
br label %33
14: ; preds = %2
%15 = load i8*, i8** %4
%16 = bitcast i8* %15 to i64*
%17 = load i64, i64* %16
%18 = load i8*, i8** %5
%19 = bitcast i8* %18 to i64*
%20 = load i64, i64* %19
%21 = icmp eq i64 %17, %20
br i1 %21, label %22, label %23
22: ; preds = %14
store i32 0, i32* %3
br label %33
23: ; preds = %14
%24 = load i8*, i8** %4
%25 = bitcast i8* %24 to i64*
%26 = load i64, i64* %25
%27 = load i8*, i8** %5
%28 = bitcast i8* %27 to i64*
%29 = load i64, i64* %28
%30 = icmp ugt i64 %26, %29
br i1 %30, label %31, label %32
31: ; preds = %23
store i32 1, i32* %3
br label %33
32: ; preds = %23
store i32 0, i32* %3
br label %33
33: ; preds = %32, %31, %22, %13
%34 = load i32, i32* %3
ret i32 %34
}

LLVM IR (-O2):
define i32 @arr_cmpl(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i64*
%4 = load i64, i64* %3
%5 = bitcast i8* %1 to i64*
%6 = load i64, i64* %5
%7 = icmp ult i64 %4, %6
br i1 %7, label %13, label %8
8: ; preds = %2
%9 = icmp eq i64 %4, %6
br i1 %9, label %13, label %10
10: ; preds = %8
%11 = icmp ugt i64 %4, %6
%12 = zext i1 %11 to i32
br label %13
13: ; preds = %10, %8, %2
%14 = phi i32 [ -1, %2 ], [ 0, %8 ], [ %12, %10 ]
ret i32 %14
}
double foo(float a, float b, double c) { return (a * b) + c; }


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movsd  %xmm2,-0x10(%rbp)
movss  -0x4(%rbp),%xmm0
mulss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
addsd  -0x10(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo>:
mulss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
addsd  %xmm2,%xmm0
ret

LLVM IR (-O0):
define double @foo(float %0, float %1, double %2) {
%4 = alloca float
%5 = alloca float
%6 = alloca double
store float %0, float* %4
store float %1, float* %5
store double %2, double* %6
%7 = load float, float* %4
%8 = load float, float* %5
%9 = fmul float %7, %8
%10 = fpext float %9 to double
%11 = load double, double* %6
%12 = fadd double %10, %11
ret double %12
}

LLVM IR (-O2):
define double @foo(float %0, float %1, double %2) {
%4 = fmul float %0, %1
%5 = fpext float %4 to double
%6 = fadd double %5, %2
ret double %6
}
/* Variables and functions */
int /*<<< orphan*/ smsc911x_disable_broadcast_reception();
void disableBroadcastReception(void) { smsc911x_disable_broadcast_reception(); }


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

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

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

LLVM IR (-O2):
define void @disableBroadcastReception() {
%1 = tail call i32 (...) @smsc911x_disable_broadcast_reception()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  (void)fprintf(stderr, "usage: hostname [-fs] [name-of-host]\n");
  exit(1);
}


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

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [38 x i8] c"usage: hostname [-fs] [name-of-host]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [38 x i8] c"usage: hostname [-fs] [name-of-host]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ z80_outp(int, char);
main() {
  z80_outp(0x01, 'A');
  z80_outp(0x01, 'B');
  unsigned char a = 0;
  while (1) {
    a++;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x1,%edi
mov    $0x41,%esi
call   1030 <z80_outp@plt>
mov    $0x1,%edi
mov    $0x42,%esi
call   1030 <z80_outp@plt>
movb   $0x0,-0x5(%rbp)
mov    -0x5(%rbp),%al
add    $0x1,%al
mov    %al,-0x6(%rbp)
mov    %al,-0x5(%rbp)
jmp    1141 <main+0x31>

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
mov    $0x41,%esi
call   1030 <z80_outp@plt>
mov    $0x1,%edi
mov    $0x42,%esi
call   1030 <z80_outp@plt>
nop
jmp    1130 <main+0x20>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
store i32 0, i32* %1
%3 = call i32 @z80_outp(i32 1, i8 signext 65)
%4 = call i32 @z80_outp(i32 1, i8 signext 66)
store i8 0, i8* %2
br label %5
5: ; preds = %0, %5
%6 = load i8, i8* %2
%7 = add i8 %6, 1
store i8 %7, i8* %2
br label %5
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @z80_outp(i32 1, i8 signext 65)
%2 = tail call i32 @z80_outp(i32 1, i8 signext 66)
br label %3
3: ; preds = %3, %0
br label %3
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
void __u32_mul_even(void *cc, void *k, void *v, bool n) {
  if (n) {
    *(uint32_t *)v = 1;
  } else if (!(*(uint32_t *)v % 2)) {
    *(uint32_t *)v *= *(uint32_t *)cc;
  }
}


x86 assembly (clang, -O0):
<__u32_mul_even>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     112c <__u32_mul_even+0x2c>
mov    -0x18(%rbp),%rax
movl   $0x1,(%rax)
jmp    1157 <__u32_mul_even+0x57>
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1152 <__u32_mul_even+0x52>
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
mov    -0x18(%rbp),%rax
imul   (%rax),%ecx
mov    %ecx,(%rax)
jmp    1157 <__u32_mul_even+0x57>
pop    %rbp
ret

x86 assembly (clang, -O2):
<__u32_mul_even>:
mov    $0x1,%eax
test   %ecx,%ecx
jne    1112 <__u32_mul_even+0x12>
mov    (%rdx),%eax
test   $0x1,%al
jne    1114 <__u32_mul_even+0x14>
imul   (%rdi),%eax
mov    %eax,(%rdx)
ret

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

LLVM IR (-O2):
define void @__u32_mul_even(i8* nocapture %0, i8* nocapture readnone %1, i8* nocapture %2, i32 %3) {
%5 = icmp eq i32 %3, 0
%6 = bitcast i8* %2 to i32*
br i1 %5, label %7, label %15
7: ; preds = %4
%8 = load i32, i32* %6
%9 = and i32 %8, 1
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %17
11: ; preds = %7
%12 = bitcast i8* %0 to i32*
%13 = load i32, i32* %12
%14 = mul nsw i32 %13, %8
br label %15
15: ; preds = %4, %11
%16 = phi i32 [ %14, %11 ], [ 1, %4 ]
store i32 %16, i32* %6
br label %17
17: ; preds = %15, %7
ret void
}
/* Variables and functions */
int /*<<< orphan*/ RST(int);
void RST20() { RST(0x20); }


x86 assembly (clang, -O0):
<RST20>:
push   %rbp
mov    %rsp,%rbp
mov    $0x20,%edi
call   1030 <RST@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<RST20>:
mov    $0x20,%edi
jmp    1030 <RST@plt>

LLVM IR (-O0):
define void @RST20() {
%1 = call i32 @RST(i32 32)
ret void
}

LLVM IR (-O2):
define void @RST20() {
%1 = tail call i32 @RST(i32 32)
ret void
}
/* Variables and functions */
double log10f(scalar_t__);
scalar_t__ powf(double, float);
float psub(float a, float b) {
  return 10.0 * log10f(powf(10.0, a / 10.0) - powf(10.0, b / 10.0));
}


x86 assembly (clang, -O0):
<psub>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xebd(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm1
movsd  0xead(%rip),%xmm0
call   1030 <powf@plt>
mov    %rax,-0x10(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe93(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm1
movsd  0xe83(%rip),%xmm0
call   1030 <powf@plt>
mov    -0x10(%rbp),%rdi
sub    %rax,%rdi
call   1040 <log10f@plt>
movaps %xmm0,%xmm1
movsd  0xe67(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<psub>:
push   %rbx
sub    $0x10,%rsp
movss  %xmm1,0xc(%rsp)
movaps %xmm0,%xmm1
divss  0xeca(%rip),%xmm1
movsd  0xeca(%rip),%xmm0
call   1030 <powf@plt>
mov    %rax,%rbx
movss  0xc(%rsp),%xmm1
divss  0xeac(%rip),%xmm1
movsd  0xeac(%rip),%xmm0
call   1030 <powf@plt>
sub    %rax,%rbx
mov    %rbx,%rdi
call   1040 <log10f@plt>
mulsd  0xe94(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define float @psub(float %0, float %1) {
%3 = alloca float
%4 = alloca float
store float %0, float* %3
store float %1, float* %4
%5 = load float, float* %3
%6 = fpext float %5 to double
%7 = fdiv double %6, 1.000000e+01
%8 = fptrunc double %7 to float
%9 = call i64 @powf(double 1.000000e+01, float %8)
%10 = load float, float* %4
%11 = fpext float %10 to double
%12 = fdiv double %11, 1.000000e+01
%13 = fptrunc double %12 to float
%14 = call i64 @powf(double 1.000000e+01, float %13)
%15 = sub nsw i64 %9, %14
%16 = call double @log10f(i64 %15)
%17 = fmul double 1.000000e+01, %16
%18 = fptrunc double %17 to float
ret float %18
}

LLVM IR (-O2):
define float @psub(float %0, float %1) {
%3 = fdiv float %0, 1.000000e+01
%4 = tail call i64 @powf(double 1.000000e+01, float %3)
%5 = fdiv float %1, 1.000000e+01
%6 = tail call i64 @powf(double 1.000000e+01, float %5)
%7 = sub nsw i64 %4, %6
%8 = tail call double @log10f(i64 %7)
%9 = fmul double %8, 1.000000e+01
%10 = fptrunc double %9 to float
ret float %10
}
/* Type definitions */
struct timeval {
  int tv_sec;
  long tv_usec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
long usecs(void) {
  struct timeval t;
  gettimeofday(&t, NULL);
  return t.tv_sec * 1000000 + t.tv_usec;
}


x86 assembly (clang, -O0):
<usecs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x10(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <gettimeofday@plt>
imul   $0xf4240,-0x10(%rbp),%eax
cltq
add    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usecs>:
sub    $0x18,%rsp
lea    0x8(%rsp),%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
movslq 0x8(%rsp),%rax
imul   $0xf4240,%rax,%rax
add    0x10(%rsp),%rax
add    $0x18,%rsp
ret

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

LLVM IR (-O2):
%struct.timeval = type { i32, i64 }
define i64 @usecs() {
%1 = alloca %struct.timeval
%2 = bitcast %struct.timeval* %1 to i8*
%3 = call i32 @gettimeofday(%struct.timeval* %1, i32* null)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 0
%5 = load i32, i32* %4
%6 = mul nsw i32 %5, 1000000
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 1
%9 = load i64, i64* %8
%10 = add nsw i64 %9, %7
ret i64 %10
}
/* Variables and functions */
int get_full_year_with_sed(char *, int);
int get_current_year(int optional_current_year) {
  return get_full_year_with_sed(".*", optional_current_year);
}


x86 assembly (clang, -O0):
<get_current_year>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xedb(%rip),%rdi
call   1030 <get_full_year_with_sed@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_current_year>:
mov    %edi,%esi
lea    0xee7(%rip),%rdi
jmp    1030 <get_full_year_with_sed@plt>

LLVM IR (-O0):
@.str = [3 x i8] c".*\00"
define i32 @get_current_year(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @get_full_year_with_sed(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %3)
ret i32 %4
}

LLVM IR (-O2):
@.str = [3 x i8] c".*\00"
define i32 @get_current_year(i32 %0) {
%2 = tail call i32 @get_full_year_with_sed(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %0)
ret i32 %2
}
void f166(void) {
  ({
    ({ 0; });
    ({ 0; });
    0;
  });
  ({
    ({ 0; });
    ({ 0; });
    goto a;
    0;
  });
a:
  0;
}


x86 assembly (clang, -O0):
<f166>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @f166() {
ret void
}
/* Variables and functions */
float value_noise_3d(int /*<<< orphan*/);
int /*<<< orphan*/ vec3f(float, float, float);
float call_vnoise3(float x, float y, float z) {
  return value_noise_3d(vec3f(x, y, z));
}


x86 assembly (clang, -O0):
<call_vnoise3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
call   1040 <vec3f@plt>
mov    %eax,%edi
call   1030 <value_noise_3d@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define float @call_vnoise3(float %0, float %1, float %2) {
%4 = alloca float
%5 = alloca float
%6 = alloca float
store float %0, float* %4
store float %1, float* %5
store float %2, float* %6
%7 = load float, float* %4
%8 = load float, float* %5
%9 = load float, float* %6
%10 = call i32 @vec3f(float %7, float %8, float %9)
%11 = call float @value_noise_3d(i32 %10)
ret float %11
}

LLVM IR (-O2):
define float @call_vnoise3(float %0, float %1, float %2) {
%4 = tail call i32 @vec3f(float %0, float %1, float %2)
%5 = tail call float @value_noise_3d(i32 %4)
ret float %5
}
int xdddefault_cleanup_downtime_data(char *main_config_file) {}


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

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

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

LLVM IR (-O2):
define i32 @xdddefault_cleanup_downtime_data(i8* nocapture readnone %0) {
ret i32 undef
}
unsigned int uniphier_pin_get_iectrl(unsigned long data) { return data; }


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

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

LLVM IR (-O0):
define i32 @uniphier_pin_get_iectrl(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = trunc i64 %3 to i32
ret i32 %4
}

LLVM IR (-O2):
define i32 @uniphier_pin_get_iectrl(i64 %0) {
%2 = trunc i64 %0 to i32
ret i32 %2
}
/* Type definitions */
typedef int int32_t;

/* Variables and functions */
void bitmap32_set(int32_t *bitmap, int n) { *bitmap |= ((int32_t)1 << n); }


x86 assembly (clang, -O0):
<bitmap32_set>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
or     (%rax),%ecx
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<bitmap32_set>:
mov    %esi,%ecx
mov    $0x1,%eax
shl    %cl,%eax
or     %eax,(%rdi)
ret

LLVM IR (-O0):
define void @bitmap32_set(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = shl i32 1, %5
%7 = load i32*, i32** %3
%8 = load i32, i32* %7
%9 = or i32 %8, %6
store i32 %9, i32* %7
ret void
}

LLVM IR (-O2):
define void @bitmap32_set(i32* nocapture %0, i32 %1) {
%3 = shl nuw i32 1, %1
%4 = load i32, i32* %0
%5 = or i32 %4, %3
store i32 %5, i32* %0
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint64_t;

/* Variables and functions */
int /*<<< orphan*/ cpuid(int, int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                         int /*<<< orphan*/ *, int /*<<< orphan*/ *);
uint64_t cpuid_maxleaf() {
  uint64_t rax, rbx, rcx, rdx;
  int leaf = 0;
  cpuid(leaf, &rax, &rbx, &rcx, &rdx);
  return rax;
}


x86 assembly (clang, -O0):
<cpuid_maxleaf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x4(%rbp),%rsi
lea    -0x8(%rbp),%rdx
lea    -0xc(%rbp),%rcx
lea    -0x10(%rbp),%r8
call   1030 <cpuid@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cpuid_maxleaf>:
sub    $0x18,%rsp
lea    0x8(%rsp),%rsi
lea    0x14(%rsp),%rdx
lea    0x10(%rsp),%rcx
lea    0xc(%rsp),%r8
xor    %edi,%edi
call   1030 <cpuid@plt>
mov    0x8(%rsp),%eax
add    $0x18,%rsp
ret

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

LLVM IR (-O2):
define i32 @cpuid_maxleaf() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %1 to i8*
%6 = bitcast i32* %2 to i8*
%7 = bitcast i32* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = call i32 @cpuid(i32 0, i32* %1, i32* %2, i32* %3, i32* %4)
%10 = load i32, i32* %1
ret i32 %10
}
unsigned bitcount(unsigned x) {
  int count = 0;
  while (x != 0) {
    x &= (x - 1);
    count++;
  }
  return count;
}


x86 assembly (clang, -O0):
<bitcount>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1132 <bitcount+0x32>
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
and    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    110e <bitcount+0xe>
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<bitcount>:
xor    %eax,%eax
test   %edi,%edi
je     111c <bitcount+0x1c>
cs nopw 0x0(%rax,%rax,1)
lea    -0x1(%rdi),%ecx
add    $0x1,%eax
and    %edi,%ecx
mov    %ecx,%edi
jne    1110 <bitcount+0x10>
ret

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

LLVM IR (-O2):
define i32 @bitcount(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %10, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %8, %3 ], [ 0, %1 ]
%5 = phi i32 [ %7, %3 ], [ %0, %1 ]
%6 = add i32 %5, -1
%7 = and i32 %6, %5
%8 = add nuw nsw i32 %4, 1
%9 = icmp eq i32 %7, 0
br i1 %9, label %10, label %3
10: ; preds = %3, %1
%11 = phi i32 [ 0, %1 ], [ %8, %3 ]
ret i32 %11
}
/* Type definitions */
typedef int /*<<< orphan*/ mpz_t;

/* Variables and functions */
int /*<<< orphan*/ mpz_clear(int /*<<< orphan*/);
int /*<<< orphan*/ mpz_init_set_ui(int /*<<< orphan*/, unsigned long);
int /*<<< orphan*/ mpz_submul_ui(int /*<<< orphan*/, int /*<<< orphan*/, int);
int /*<<< orphan*/ mpz_ui_pow_ui(int /*<<< orphan*/, int, unsigned long);
void getPrime(mpz_t prime, unsigned long bits, unsigned long k) {
  mpz_t bk;
  mpz_init_set_ui(bk, k);
  mpz_ui_pow_ui(prime, 2, bits);
  mpz_submul_ui(prime, bk, 1);
  mpz_clear(bk);
}


x86 assembly (clang, -O0):
<getPrime>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1040 <mpz_init_set_ui@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rdx
mov    $0x2,%esi
call   1060 <mpz_ui_pow_ui@plt>
mov    -0x4(%rbp),%edi
mov    -0x1c(%rbp),%esi
mov    $0x1,%edx
call   1030 <mpz_submul_ui@plt>
mov    -0x1c(%rbp),%edi
call   1050 <mpz_clear@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getPrime>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
mov    %rdx,%rsi
call   1040 <mpz_init_set_ui@plt>
mov    %ebp,%edi
mov    $0x2,%esi
mov    %rbx,%rdx
call   1060 <mpz_ui_pow_ui@plt>
mov    %ebp,%edi
mov    $0x1,%edx
call   1030 <mpz_submul_ui@plt>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1050 <mpz_clear@plt>

LLVM IR (-O0):
define void @getPrime(i32 %0, i64 %1, i64 %2) {
%4 = alloca i32
%5 = alloca i64
%6 = alloca i64
%7 = alloca i32
store i32 %0, i32* %4
store i64 %1, i64* %5
store i64 %2, i64* %6
%8 = load i32, i32* %7
%9 = load i64, i64* %6
%10 = call i32 @mpz_init_set_ui(i32 %8, i64 %9)
%11 = load i32, i32* %4
%12 = load i64, i64* %5
%13 = call i32 @mpz_ui_pow_ui(i32 %11, i32 2, i64 %12)
%14 = load i32, i32* %4
%15 = load i32, i32* %7
%16 = call i32 @mpz_submul_ui(i32 %14, i32 %15, i32 1)
%17 = load i32, i32* %7
%18 = call i32 @mpz_clear(i32 %17)
ret void
}

LLVM IR (-O2):
define void @getPrime(i32 %0, i64 %1, i64 %2) {
%4 = tail call i32 @mpz_init_set_ui(i32 undef, i64 %2)
%5 = tail call i32 @mpz_ui_pow_ui(i32 %0, i32 2, i64 %1)
%6 = tail call i32 @mpz_submul_ui(i32 %0, i32 undef, i32 1)
%7 = tail call i32 @mpz_clear(i32 undef)
ret void
}
void cleanup_threads(void) {}


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

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

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

LLVM IR (-O2):
define void @cleanup_threads() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ applyBlePriv12Patch();
void rf_patch_cpe_ble_priv_1_2(void) { applyBlePriv12Patch(); }


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

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

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

LLVM IR (-O2):
define void @rf_patch_cpe_ble_priv_1_2() {
%1 = tail call i32 (...) @applyBlePriv12Patch()
ret void
}
indreg0adrx1_set(r0, r1, x0, x1, p0, p1) float r0, r1;
float *p0, *p1;
{ (*p0) = (((float *)11111111)[x1]); }


x86 assembly (clang, -O0):
<indreg0adrx1_set>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm1,-0x30(%rbp)
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
cvtsd2ss %xmm1,%xmm1
cvtsd2ss %xmm0,%xmm0
movss  %xmm1,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
mov    %edi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
movslq -0x14(%rbp),%rcx
mov    $0xa98ac7,%eax
movss  (%rax,%rcx,4),%xmm0
mov    -0x20(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<indreg0adrx1_set>:
movslq %esi,%rax
movss  0xa98ac7(,%rax,4),%xmm0
movss  %xmm0,(%rdx)
ret

LLVM IR (-O0):
define i32 @indreg0adrx1_set(double %0, double %1, i32 %2, i32 %3, float* %4, float* %5) {
%7 = alloca i32
%8 = alloca float
%9 = alloca float
%10 = alloca i32
%11 = alloca i32
%12 = alloca float*
%13 = alloca float*
%14 = fptrunc double %0 to float
%15 = fptrunc double %1 to float
store float %14, float* %8
store float %15, float* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store float* %4, float** %12
store float* %5, float** %13
%16 = load i32, i32* %11
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds float, float* inttoptr (i64 11111111 to float*), i64 %17
%19 = load float, float* %18
%20 = load float*, float** %12
store float %19, float* %20
%21 = load i32, i32* %7
ret i32 %21
}

LLVM IR (-O2):
define i32 @indreg0adrx1_set(double %0, double %1, i32 %2, i32 %3, float* nocapture writeonly %4, float* nocapture readnone %5) {
%7 = sext i32 %3 to i64
%8 = getelementptr inbounds float, float* inttoptr (i64 11111111 to float*), i64 %7
%9 = load float, float* %8
store float %9, float* %4
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ SendInterrupt(int, int, int, int);
void ScuSendDSPEnd(void) { SendInterrupt(0x45, 0xA, 0x0020, 0x00000020); }


x86 assembly (clang, -O0):
<ScuSendDSPEnd>:
push   %rbp
mov    %rsp,%rbp
mov    $0x45,%edi
mov    $0xa,%esi
mov    $0x20,%ecx
mov    %ecx,%edx
call   1030 <SendInterrupt@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ScuSendDSPEnd>:
mov    $0x45,%edi
mov    $0xa,%esi
mov    $0x20,%edx
mov    $0x20,%ecx
jmp    1030 <SendInterrupt@plt>

LLVM IR (-O0):
define void @ScuSendDSPEnd() {
%1 = call i32 @SendInterrupt(i32 69, i32 10, i32 32, i32 32)
ret void
}

LLVM IR (-O2):
define void @ScuSendDSPEnd() {
%1 = tail call i32 @SendInterrupt(i32 69, i32 10, i32 32, i32 32)
ret void
}
/* Variables and functions */
int mvm_disable_irq(unsigned int);
int xnarch_disable_irq(unsigned irq) { return mvm_disable_irq(irq); }


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

x86 assembly (clang, -O2):
<xnarch_disable_irq>:
jmp    1030 <mvm_disable_irq@plt>

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

LLVM IR (-O2):
define i32 @xnarch_disable_irq(i32 %0) {
%2 = tail call i32 @mvm_disable_irq(i32 %0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ PrintErrorCode();
int dxl_read_byte(int, int);
int getPressentVoltage(int Id) {
  int CurrentVolt;
  CurrentVolt = dxl_read_byte(Id, 42) / 10;
  PrintErrorCode();
  return CurrentVolt;
}


x86 assembly (clang, -O0):
<getPressentVoltage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x2a,%esi
call   1040 <dxl_read_byte@plt>
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <PrintErrorCode@plt>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getPressentVoltage>:
push   %rbx
mov    $0x2a,%esi
call   1040 <dxl_read_byte@plt>
cltq
imul   $0x66666667,%rax,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x22,%rbx
add    %eax,%ebx
xor    %eax,%eax
call   1030 <PrintErrorCode@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @getPressentVoltage(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = call i32 @dxl_read_byte(i32 %4, i32 42)
%6 = sdiv i32 %5, 10
store i32 %6, i32* %3
%7 = call i32 (...) @PrintErrorCode()
%8 = load i32, i32* %3
ret i32 %8
}

LLVM IR (-O2):
define i32 @getPressentVoltage(i32 %0) {
%2 = tail call i32 @dxl_read_byte(i32 %0, i32 42)
%3 = sdiv i32 %2, 10
%4 = tail call i32 (...) @PrintErrorCode()
ret i32 %3
}
/* Type definitions */
struct ipv6hdr {
  int dummy;
};
typedef int __u8;
typedef int /*<<< orphan*/ __be16;

/* Variables and functions */
int ntohs(int /*<<< orphan*/ const);
__u8 ipv6_get_dsfield(const struct ipv6hdr *ipv6h) {
  return ntohs(*(const __be16 *)ipv6h) >> 4;
}


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

x86 assembly (clang, -O2):
<ipv6_get_dsfield>:
push   %rax
mov    (%rdi),%edi
call   1030 <ntohs@plt>
sar    $0x4,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.ipv6hdr = type { i32 }
define i32 @ipv6_get_dsfield(%struct.ipv6hdr* %0) {
%2 = alloca %struct.ipv6hdr*
store %struct.ipv6hdr* %0, %struct.ipv6hdr** %2
%3 = load %struct.ipv6hdr*, %struct.ipv6hdr** %2
%4 = bitcast %struct.ipv6hdr* %3 to i32*
%5 = load i32, i32* %4
%6 = call i32 @ntohs(i32 %5)
%7 = ashr i32 %6, 4
ret i32 %7
}

LLVM IR (-O2):
%struct.ipv6hdr = type { i32 }
define i32 @ipv6_get_dsfield(%struct.ipv6hdr* nocapture %0) {
%2 = getelementptr %struct.ipv6hdr, %struct.ipv6hdr* %0, i64 0, i32 0
%3 = load i32, i32* %2
%4 = tail call i32 @ntohs(i32 %3)
%5 = ashr i32 %4, 4
ret i32 %5
}