xunge/DecIR huggingface dataset:
/* Variables and functions */
double atan2(double, double);
int /*<<< orphan*/ multiply(int, int, int, int, int *, int *);
int polar_discriminant(int ar, int aj, int br, int bj) {
  int cr, cj;
  double angle;
  multiply(ar, aj, br, -bj, &cr, &cj);
  angle = atan2((double)cj, (double)cr);
  return (int)(angle / 3.14159 * (1 << 14));
}


x86 assembly (clang, -O0):
<polar_discriminant>:
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    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
xor    %ecx,%ecx
sub    -0x10(%rbp),%ecx
lea    -0x14(%rbp),%r8
lea    -0x18(%rbp),%r9
call   1030 <multiply@plt>
cvtsi2sdl -0x18(%rbp),%xmm0
cvtsi2sdl -0x14(%rbp),%xmm1
call   1040 <atan2@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  0xe98(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xe84(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<polar_discriminant>:
push   %rax
neg    %ecx
lea    0x4(%rsp),%r8
mov    %rsp,%r9
call   1030 <multiply@plt>
cvtsi2sdl (%rsp),%xmm0
cvtsi2sdl 0x4(%rsp),%xmm1
call   1040 <atan2@plt>
divsd  0xeb8(%rip),%xmm0
mulsd  0xeb8(%rip),%xmm0
cvttsd2si %xmm0,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @polar_discriminant(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca double
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%12 = load i32, i32* %5
%13 = load i32, i32* %6
%14 = load i32, i32* %7
%15 = load i32, i32* %8
%16 = sub nsw i32 0, %15
%17 = call i32 @multiply(i32 %12, i32 %13, i32 %14, i32 %16, i32* %9, i32* %10)
%18 = load i32, i32* %10
%19 = sitofp i32 %18 to double
%20 = load i32, i32* %9
%21 = sitofp i32 %20 to double
%22 = call double @atan2(double %19, double %21)
store double %22, double* %11
%23 = load double, double* %11
%24 = fdiv double %23, 3.141590e+00
%25 = fmul double %24, 1.638400e+04
%26 = fptosi double %25 to i32
ret i32 %26
}

LLVM IR (-O2):
define i32 @polar_discriminant(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = bitcast i32* %5 to i8*
%8 = bitcast i32* %6 to i8*
%9 = sub nsw i32 0, %3
%10 = call i32 @multiply(i32 %0, i32 %1, i32 %2, i32 %9, i32* %5, i32* %6)
%11 = load i32, i32* %6
%12 = sitofp i32 %11 to double
%13 = load i32, i32* %5
%14 = sitofp i32 %13 to double
%15 = call double @atan2(double %12, double %14)
%16 = fdiv double %15, 3.141590e+00
%17 = fmul double %16, 1.638400e+04
%18 = fptosi double %17 to i32
ret i32 %18
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, char *);
int str_length(char *);
int main() {
  char str[80];
  printf("Input a string: ");
  scanf("%s", str);
  printf("Number of characters: %d\n", str_length(str));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x60(%rbp),%rsi
lea    0xeb9(%rip),%rdi
call   1050 <scanf@plt>
lea    -0x60(%rbp),%rdi
call   1040 <str_length@plt>
mov    %eax,%esi
lea    0xea5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x50,%rsp
lea    0xec4(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec7(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1050 <scanf@plt>
mov    %rbx,%rdi
call   1040 <str_length@plt>
lea    0xeb0(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [17 x i8] c"Input a string: \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [26 x i8] c"Number of characters: %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [80 x i8]
store i32 0, i32* %1
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%4 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%6 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%7 = call i32 @str_length(i8* %6)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 %7)
ret i32 0
}

LLVM IR (-O2):
@.str = [17 x i8] c"Input a string: \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [26 x i8] c"Number of characters: %d\0A\00"
define i32 @main() {
%1 = alloca [80 x i8]
%2 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%5 = call i32 @str_length(i8* %2)
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 %5)
ret i32 0
}
/* Type definitions */
typedef int int64_t;
typedef int int32_t;

/* Variables and functions */
int64_t value_from_index(int32_t bucket_index, int32_t sub_bucket_index,
                         int32_t unit_magnitude) {
  return ((int64_t)sub_bucket_index) << (bucket_index + unit_magnitude);
}


x86 assembly (clang, -O0):
<value_from_index>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    -0x4(%rbp),%ecx
add    -0xc(%rbp),%ecx
shl    %cl,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<value_from_index>:
mov    %esi,%eax
lea    (%rdi,%rdx,1),%ecx
shl    %cl,%eax
ret

LLVM IR (-O0):
define i32 @value_from_index(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
%7 = load i32, i32* %5
%8 = load i32, i32* %4
%9 = load i32, i32* %6
%10 = add nsw i32 %8, %9
%11 = shl i32 %7, %10
ret i32 %11
}

LLVM IR (-O2):
define i32 @value_from_index(i32 %0, i32 %1, i32 %2) {
%4 = add nsw i32 %2, %0
%5 = shl i32 %1, %4
ret i32 %5
}
long long max(long long x, long long y) { return x > y ? x : y; }


x86 assembly (clang, -O0):
<max>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
jle    1127 <max+0x27>
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    112f <max+0x2f>
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<max>:
mov    %rsi,%rax
cmp    %rsi,%rdi
cmovg  %rdi,%rax
ret

LLVM IR (-O0):
define i64 @max(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %3
%6 = load i64, i64* %4
%7 = icmp sgt i64 %5, %6
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = load i64, i64* %3
br label %12
10: ; preds = %2
%11 = load i64, i64* %4
br label %12
12: ; preds = %10, %8
%13 = phi i64 [ %9, %8 ], [ %11, %10 ]
ret i64 %13
}

LLVM IR (-O2):
define i64 @max(i64 %0, i64 %1) {
%3 = icmp sgt i64 %0, %1
%4 = select i1 %3, i64 %0, i64 %1
ret i64 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ ssize_t;

/* Variables and functions */
char *iconv_string_full(char const *, int /*<<< orphan*/, char const *,
                        char const *, int /*<<< orphan*/ *,
                        int /*<<< orphan*/ *, char);
char *iconv_string_escaped(const char *string, ssize_t length,
                           const char *src_encoding, const char *dst_encoding) {
  return iconv_string_full(string, length, src_encoding, dst_encoding, NULL,
                           NULL, '?');
}


x86 assembly (clang, -O0):
<iconv_string_escaped>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
xor    %eax,%eax
mov    %eax,%r9d
mov    %r9,%r8
movl   $0x3f,(%rsp)
call   1030 <iconv_string_full@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<iconv_string_escaped>:
push   %rax
movl   $0x3f,(%rsp)
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <iconv_string_full@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i8* @iconv_string_escaped(i8* %0, i32 %1, i8* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
store i8* %0, i8** %5
store i32 %1, i32* %6
store i8* %2, i8** %7
store i8* %3, i8** %8
%9 = load i8*, i8** %5
%10 = load i32, i32* %6
%11 = load i8*, i8** %7
%12 = load i8*, i8** %8
%13 = call i8* @iconv_string_full(i8* %9, i32 %10, i8* %11, i8* %12, i32* null, i32* null, i8 signext 63)
ret i8* %13
}

LLVM IR (-O2):
define i8* @iconv_string_escaped(i8* %0, i32 %1, i8* %2, i8* %3) {
%5 = tail call i8* @iconv_string_full(i8* %0, i32 %1, i8* %2, i8* %3, i32* null, i32* null, i8 signext 63)
ret i8* %5
}
__attribute__((__no__)) void
do_nothing_packed_assigned_dynamic_all(struct test_packed *ptr) {
  if ((unsigned long)ptr > 0x2)
    return;
  else
    return;
}


x86 assembly (clang, -O0):
<do_nothing_packed_assigned_dynamic_all>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmp    $0x2,%rax
jbe    111b <do_nothing_packed_assigned_dynamic_all+0x1b>
jmp    1120 <do_nothing_packed_assigned_dynamic_all+0x20>
jmp    1120 <do_nothing_packed_assigned_dynamic_all+0x20>
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.test_packed = type opaque
define void @do_nothing_packed_assigned_dynamic_all(%struct.test_packed* %0) {
%2 = alloca %struct.test_packed*
store %struct.test_packed* %0, %struct.test_packed** %2
%3 = load %struct.test_packed*, %struct.test_packed** %2
%4 = ptrtoint %struct.test_packed* %3 to i64
%5 = icmp ugt i64 %4, 2
br i1 %5, label %6, label %7
6: ; preds = %1
br label %8
7: ; preds = %1
br label %8
8: ; preds = %7, %6
ret void
}

LLVM IR (-O2):
%struct.test_packed = type opaque
define void @do_nothing_packed_assigned_dynamic_all(%struct.test_packed* nocapture %0) {
ret void
}
int ackr(m, n) {
  if (m == 0)
    return n + 1;
  else if (m > 0 && n == 0)
    ackr(m - 1, 1);
  else
    ackr(m - 1, ackr(m, n - 1));
}


x86 assembly (clang, -O0):
<ackr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    1136 <ackr+0x26>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1185 <ackr+0x75>
cmpl   $0x0,-0x8(%rbp)
jle    115f <ackr+0x4f>
cmpl   $0x0,-0xc(%rbp)
jne    115f <ackr+0x4f>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    $0x1,%esi
call   1030 <ackr@plt>
jmp    1180 <ackr+0x70>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
sub    $0x1,%esi
call   1030 <ackr@plt>
mov    -0x10(%rbp),%edi
mov    %eax,%esi
call   1030 <ackr@plt>
jmp    1185 <ackr+0x75>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ackr>:
push   %rbx
test   %edi,%edi
je     1140 <ackr+0x30>
mov    %edi,%ebx
jmp    1131 <ackr+0x21>
nopl   0x0(%rax)
add    $0xffffffff,%esi
mov    %ebx,%edi
call   1030 <ackr@plt>
mov    %eax,%esi
add    $0xffffffff,%ebx
je     1142 <ackr+0x32>
test   %ebx,%ebx
jle    1120 <ackr+0x10>
mov    $0x1,%eax
test   %esi,%esi
je     112a <ackr+0x1a>
jmp    1120 <ackr+0x10>
mov    %esi,%eax
add    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @ackr(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* %4
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i32, i32* %5
%10 = add nsw i32 %9, 1
store i32 %10, i32* %3
br label %30
11: ; preds = %2
%12 = load i32, i32* %4
%13 = icmp sgt i32 %12, 0
br i1 %13, label %14, label %21
14: ; preds = %11
%15 = load i32, i32* %5
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %21
17: ; preds = %14
%18 = load i32, i32* %4
%19 = sub nsw i32 %18, 1
%20 = call i32 @ackr(i32 %19, i32 1)
br label %29
21: ; preds = %14, %11
%22 = load i32, i32* %4
%23 = sub nsw i32 %22, 1
%24 = load i32, i32* %4
%25 = load i32, i32* %5
%26 = sub nsw i32 %25, 1
%27 = call i32 @ackr(i32 %24, i32 %26)
%28 = call i32 @ackr(i32 %23, i32 %27)
br label %29
29: ; preds = %21, %17
br label %30
30: ; preds = %8, %29
%31 = load i32, i32* %3
ret i32 %31
}

LLVM IR (-O2):
define i32 @ackr(i32 %0, i32 %1) {
%3 = icmp eq i32 %0, 0
br i1 %3, label %4, label %8
4: ; preds = %14, %2
%5 = phi i32 [ %1, %2 ], [ %15, %14 ]
%6 = add nsw i32 %5, 1
%7 = select i1 %3, i32 %6, i32 undef
ret i32 %7
8: ; preds = %2, %14
%9 = phi i32 [ %15, %14 ], [ %1, %2 ]
%10 = phi i32 [ %16, %14 ], [ %0, %2 ]
%11 = icmp sgt i32 %10, 0
%12 = icmp eq i32 %9, 0
%13 = and i1 %11, %12
br i1 %13, label %14, label %18
14: ; preds = %8, %18
%15 = phi i32 [ %20, %18 ], [ 1, %8 ]
%16 = add nsw i32 %10, -1
%17 = icmp eq i32 %16, 0
br i1 %17, label %4, label %8
18: ; preds = %8
%19 = add nsw i32 %9, -1
%20 = tail call i32 @ackr(i32 %10, i32 %19)
br label %14
}
void helper3() {}


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

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

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

LLVM IR (-O2):
define void @helper3() {
ret void
}
/* Variables and functions */
scalar_t__ islower(int);
int toupper(int c) {
  if (islower(c))
    c -= 'a' - 'A';
  return c;
}


x86 assembly (clang, -O0):
<toupper>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <islower@plt>
cmp    $0x0,%rax
je     1136 <toupper+0x26>
mov    -0x4(%rbp),%eax
sub    $0x20,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<toupper>:
push   %rbx
mov    %edi,%ebx
call   1030 <islower@plt>
lea    -0x20(%rbx),%ecx
test   %rax,%rax
cmove  %ebx,%ecx
mov    %ecx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @toupper(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i64 @islower(i32 %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, i32* %2
%8 = sub nsw i32 %7, 32
store i32 %8, i32* %2
br label %9
9: ; preds = %6, %1
%10 = load i32, i32* %2
ret i32 %10
}

LLVM IR (-O2):
define i32 @toupper(i32 %0) {
%2 = tail call i64 @islower(i32 %0)
%3 = icmp eq i64 %2, 0
%4 = add nsw i32 %0, -32
%5 = select i1 %3, i32 %0, i32 %4
ret i32 %5
}
void gpio_sensor_active(unsigned int csi) {}


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

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

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

LLVM IR (-O2):
define void @gpio_sensor_active(i32 %0) {
ret void
}
void gtk_dialog_add_action_widget() {}


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

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

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

LLVM IR (-O2):
define void @gtk_dialog_add_action_widget() {
ret void
}
void ff_hevc_put_hevc_qpel_h48_12_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_qpel_h48_12_sse4() {
ret void
}
/* Variables and functions */
unsigned long random();
void touch_random_page(char *mem, char *chk, unsigned long max_pfn) {
  unsigned long pfn;
  char c;
  pfn = random() % max_pfn;
  c = random();
  mem[pfn << 12] = c;
  chk[pfn] = c;
}


x86 assembly (clang, -O0):
<touch_random_page>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    $0x0,%al
call   1030 <random@plt>
xor    %ecx,%ecx
mov    %ecx,%edx
divq   -0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    $0x0,%al
call   1030 <random@plt>
mov    %al,-0x21(%rbp)
mov    -0x21(%rbp),%dl
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
shl    $0xc,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x21(%rbp),%dl
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<touch_random_page>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%rbx
mov    %rsi,%r14
mov    %rdi,%r15
xor    %eax,%eax
call   1030 <random@plt>
mov    %rax,%rcx
or     %rbx,%rcx
shr    $0x20,%rcx
je     113b <touch_random_page+0x2b>
xor    %edx,%edx
div    %rbx
mov    %rdx,%rbx
jmp    1141 <touch_random_page+0x31>
xor    %edx,%edx
div    %ebx
mov    %edx,%ebx
xor    %eax,%eax
call   1030 <random@plt>
mov    %rbx,%rcx
shl    $0xc,%rcx
mov    %al,(%r15,%rcx,1)
mov    %al,(%r14,%rbx,1)
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @touch_random_page(i8* %0, i8* %1, i64 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i64
%8 = alloca i8
store i8* %0, i8** %4
store i8* %1, i8** %5
store i64 %2, i64* %6
%9 = call i64 (...) @random()
%10 = load i64, i64* %6
%11 = urem i64 %9, %10
store i64 %11, i64* %7
%12 = call i64 (...) @random()
%13 = trunc i64 %12 to i8
store i8 %13, i8* %8
%14 = load i8, i8* %8
%15 = load i8*, i8** %4
%16 = load i64, i64* %7
%17 = shl i64 %16, 12
%18 = getelementptr inbounds i8, i8* %15, i64 %17
store i8 %14, i8* %18
%19 = load i8, i8* %8
%20 = load i8*, i8** %5
%21 = load i64, i64* %7
%22 = getelementptr inbounds i8, i8* %20, i64 %21
store i8 %19, i8* %22
ret void
}

LLVM IR (-O2):
define void @touch_random_page(i8* nocapture writeonly %0, i8* nocapture writeonly %1, i64 %2) {
%4 = tail call i64 (...) @random()
%5 = urem i64 %4, %2
%6 = tail call i64 (...) @random()
%7 = trunc i64 %6 to i8
%8 = shl i64 %5, 12
%9 = getelementptr inbounds i8, i8* %0, i64 %8
store i8 %7, i8* %9
%10 = getelementptr inbounds i8, i8* %1, i64 %5
store i8 %7, i8* %10
ret void
}
/* Variables and functions */
int /*<<< orphan*/ __puts(char const *);
int /*<<< orphan*/ putchar(char);
void puts(const char *buffer) {
  __puts(buffer);
  putchar('\n');
}


x86 assembly (clang, -O0):
<puts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <__puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<puts>:
push   %rax
call   1040 <__puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
define void @puts(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @__puts(i8* %3)
%5 = call i32 @putchar(i8 signext 10)
ret void
}

LLVM IR (-O2):
define void @puts(i8* %0) {
%2 = tail call i32 @__puts(i8* %0)
%3 = tail call i32 @putchar(i8 signext 10)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
void igfree(void *ptr) { free((char *)ptr); }


x86 assembly (clang, -O0):
<igfree>:
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):
<igfree>:
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @igfree(i8* nocapture %0) {
%2 = tail call i32 @free(i8* %0)
ret void
}
void ff_hevc_put_hevc_epel_h12_8_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_epel_h12_8_sse4() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ log_msg(char *, char const *, char *);
char *strerror(int);
void log_perror(int errnum, const char *prefix) {
  char *errmsg;
  if (!prefix)
    return;
  if (!(errmsg = strerror(errnum)))
    return;
  log_msg("%s: %s\n", prefix, errmsg);
}


x86 assembly (clang, -O0):
<log_perror>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    113f <log_perror+0x1f>
jmp    116e <log_perror+0x4e>
mov    -0x4(%rbp),%edi
call   1040 <strerror@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    115a <log_perror+0x3a>
jmp    116e <log_perror+0x4e>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xe97(%rip),%rdi
call   1030 <log_msg@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<log_perror>:
push   %rbx
test   %rsi,%rsi
je     1146 <log_perror+0x26>
mov    %rsi,%rbx
call   1040 <strerror@plt>
test   %rax,%rax
je     1146 <log_perror+0x26>
lea    0xec6(%rip),%rdi
mov    %rbx,%rsi
mov    %rax,%rdx
pop    %rbx
jmp    1030 <log_msg@plt>
pop    %rbx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"%s: %s\0A\00"
define void @log_perror(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
store i32 %0, i32* %3
store i8* %1, i8** %4
%6 = load i8*, i8** %4
%7 = icmp ne i8* %6, null
br i1 %7, label %9, label %8
8: ; preds = %2
br label %18
9: ; preds = %2
%10 = load i32, i32* %3
%11 = call i8* @strerror(i32 %10)
store i8* %11, i8** %5
%12 = icmp ne i8* %11, null
br i1 %12, label %14, label %13
13: ; preds = %9
br label %18
14: ; preds = %9
%15 = load i8*, i8** %4
%16 = load i8*, i8** %5
%17 = call i32 @log_msg(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* %15, i8* %16)
br label %18
18: ; preds = %14, %13, %8
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"%s: %s\0A\00"
define void @log_perror(i32 %0, i8* %1) {
%3 = icmp eq i8* %1, null
br i1 %3, label %9, label %4
4: ; preds = %2
%5 = tail call i8* @strerror(i32 %0)
%6 = icmp eq i8* %5, null
br i1 %6, label %9, label %7
7: ; preds = %4
%8 = tail call i32 @log_msg(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* %1, i8* %5)
br label %9
9: ; preds = %4, %2, %7
ret void
}
/* Variables and functions */
int /*<<< orphan*/ STDOUT_FILENO;
int /*<<< orphan*/ strlen(char *);
int /*<<< orphan*/ write(int /*<<< orphan*/, char *, int /*<<< orphan*/);
void show_version(void) {
  char *b = "swiftd"
            " - a light and fast webserver\n"
            "Build-Date: "
            "Mar 18 2022"
            " "
            "00:58:04"
            "\n";
  ;
  write(STDOUT_FILENO, b, strlen(b));
}


x86 assembly (clang, -O0):
<show_version>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    0xed1(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    0x2eb6(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x14(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    %eax,%edx
call   1030 <write@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_version>:
push   %r14
push   %rbx
push   %rax
mov    0x2ec5(%rip),%rax
mov    (%rax),%ebx
lea    0xecc(%rip),%r14
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %ebx,%edi
mov    %r14,%rsi
mov    %eax,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <write@plt>

LLVM IR (-O0):
@.str = [70 x i8] c"swiftd - a light and fast webserver\0ABuild-Date: Mar 18 2022 00:58:04\0A\00"
@STDOUT_FILENO = global i32 0
define void @show_version() {
%1 = alloca i8*
store i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0), i8** %1
%2 = load i32, i32* @STDOUT_FILENO
%3 = load i8*, i8** %1
%4 = load i8*, i8** %1
%5 = call i32 @strlen(i8* %4)
%6 = call i32 @write(i32 %2, i8* %3, i32 %5)
ret void
}

LLVM IR (-O2):
@.str = [70 x i8] c"swiftd - a light and fast webserver\0ABuild-Date: Mar 18 2022 00:58:04\0A\00"
@STDOUT_FILENO = global i32 0
define void @show_version() {
%1 = load i32, i32* @STDOUT_FILENO
%2 = tail call i32 @strlen(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @write(i32 %1, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0), i32 %2)
ret void
}
int main() { return 1; }


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    $0x1,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 1
}
/* Type definitions */
typedef int uint32_t;
typedef int volatile int32_t;

/* Variables and functions */
int /*<<< orphan*/ ASSERT(int /*<<< orphan*/);
int /*<<< orphan*/ _UARTBaseValid(int);
int32_t UARTCharGet(uint32_t ui32Base) {
  ASSERT(_UARTBaseValid(ui32Base));
  while ((*((volatile uint32_t *)(ui32Base + 0x00000018))) & 0x00000010) {
  }
  return ((*((volatile uint32_t *)(ui32Base + 0x00000000))));
}


x86 assembly (clang, -O0):
<UARTCharGet>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <_UARTBaseValid@plt>
mov    %eax,%edi
call   1040 <ASSERT@plt>
mov    -0x4(%rbp),%eax
add    $0x18,%eax
cltq
mov    (%rax),%eax
and    $0x10,%eax
cmp    $0x0,%eax
je     1155 <UARTCharGet+0x35>
jmp    113a <UARTCharGet+0x1a>
mov    -0x4(%rbp),%eax
add    $0x0,%eax
cltq
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<UARTCharGet>:
push   %rbx
mov    %edi,%ebx
call   1030 <_UARTBaseValid@plt>
mov    %eax,%edi
call   1040 <ASSERT@plt>
movslq %ebx,%rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
testl  $0x10,0x18(%rax)
jne    1140 <UARTCharGet+0x20>
mov    (%rax),%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @UARTCharGet(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @_UARTBaseValid(i32 %3)
%5 = call i32 @ASSERT(i32 %4)
br label %6
6: ; preds = %14, %1
%7 = load i32, i32* %2
%8 = add nsw i32 %7, 24
%9 = sext i32 %8 to i64
%10 = inttoptr i64 %9 to i32*
%11 = load volatile i32, i32* %10
%12 = and i32 %11, 16
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %6
br label %6
15: ; preds = %6
%16 = load i32, i32* %2
%17 = add nsw i32 %16, 0
%18 = sext i32 %17 to i64
%19 = inttoptr i64 %18 to i32*
%20 = load volatile i32, i32* %19
ret i32 %20
}

LLVM IR (-O2):
define i32 @UARTCharGet(i32 %0) {
%2 = tail call i32 @_UARTBaseValid(i32 %0)
%3 = tail call i32 @ASSERT(i32 %2)
%4 = add nsw i32 %0, 24
%5 = sext i32 %4 to i64
%6 = inttoptr i64 %5 to i32*
br label %7
7: ; preds = %7, %1
%8 = load volatile i32, i32* %6
%9 = and i32 %8, 16
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %7
11: ; preds = %7
%12 = sext i32 %0 to i64
%13 = inttoptr i64 %12 to i32*
%14 = load volatile i32, i32* %13
ret i32 %14
}
/* Variables and functions */
int /*<<< orphan*/ _I8080_SHLD();
void do0x22() { _I8080_SHLD(); }


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

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

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

LLVM IR (-O2):
define void @do0x22() {
%1 = tail call i32 (...) @_I8080_SHLD()
ret void
}
/* Type definitions */
struct Parser {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ getLine(struct Parser *, int);
int /*<<< orphan*/ naParseError(struct Parser *, char *, int /*<<< orphan*/);
void error(struct Parser *p, char *msg, int index) {
  naParseError(p, msg, getLine(p, index));
}


x86 assembly (clang, -O0):
<error>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1040 <getLine@plt>
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    %eax,%edx
call   1030 <naParseError@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<error>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    %edx,%esi
call   1040 <getLine@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <naParseError@plt>

LLVM IR (-O0):
%struct.Parser = type { i32 }
define void @error(%struct.Parser* %0, i8* %1, i32 %2) {
%4 = alloca %struct.Parser*
%5 = alloca i8*
%6 = alloca i32
store %struct.Parser* %0, %struct.Parser** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load %struct.Parser*, %struct.Parser** %4
%8 = load i8*, i8** %5
%9 = load %struct.Parser*, %struct.Parser** %4
%10 = load i32, i32* %6
%11 = call i32 @getLine(%struct.Parser* %9, i32 %10)
%12 = call i32 @naParseError(%struct.Parser* %7, i8* %8, i32 %11)
ret void
}

LLVM IR (-O2):
%struct.Parser = type { i32 }
define void @error(%struct.Parser* %0, i8* %1, i32 %2) {
%4 = tail call i32 @getLine(%struct.Parser* %0, i32 %2)
%5 = tail call i32 @naParseError(%struct.Parser* %0, i8* %1, i32 %4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ byte_reverse_double(double *);
void dbrev_(double *dnum) { byte_reverse_double(dnum); }


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

x86 assembly (clang, -O2):
<dbrev_>:
jmp    1030 <byte_reverse_double@plt>

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

LLVM IR (-O2):
define void @dbrev_(double* %0) {
%2 = tail call i32 @byte_reverse_double(double* %0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ writeEeprom(int /*<<< orphan*/, int /*<<< orphan*/);
void eeprom_write_byte(uint8_t *index, uint8_t in) {
  writeEeprom((uint32_t)index, in);
}


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

x86 assembly (clang, -O2):
<eeprom_write_byte>:
jmp    1030 <writeEeprom@plt>

LLVM IR (-O0):
define void @eeprom_write_byte(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
%5 = load i32*, i32** %3
%6 = ptrtoint i32* %5 to i32
%7 = load i32, i32* %4
%8 = call i32 @writeEeprom(i32 %6, i32 %7)
ret void
}

LLVM IR (-O2):
define void @eeprom_write_byte(i32* %0, i32 %1) {
%3 = ptrtoint i32* %0 to i64
%4 = trunc i64 %3 to i32
%5 = tail call i32 @writeEeprom(i32 %4, i32 %1)
ret void
}
/* Variables and functions */
int break_here(int /*<<< orphan*/);
int main(int argc, char **argv) { return break_here(0); }


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

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

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @break_here(i32 0)
ret i32 %6
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @break_here(i32 0)
ret i32 %3
}
/* Type definitions */
typedef int uint32_t;
typedef int int32_t;

/* Variables and functions */
uint32_t vector_list_config_rgb_to_id(int32_t red, int32_t green,
                                      int32_t blue) {
  return (int32_t)((red << 16) + (green << 8) + (blue << 0));
}


x86 assembly (clang, -O0):
<vector_list_config_rgb_to_id>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%eax
shl    $0x10,%eax
mov    -0x8(%rbp),%ecx
shl    $0x8,%ecx
add    %ecx,%eax
mov    -0xc(%rbp),%ecx
shl    $0x0,%ecx
add    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<vector_list_config_rgb_to_id>:
shl    $0x10,%edi
shl    $0x8,%esi
lea    (%rsi,%rdi,1),%eax
add    %edx,%eax
ret

LLVM IR (-O0):
define i32 @vector_list_config_rgb_to_id(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
%7 = load i32, i32* %4
%8 = shl i32 %7, 16
%9 = load i32, i32* %5
%10 = shl i32 %9, 8
%11 = add nsw i32 %8, %10
%12 = load i32, i32* %6
%13 = shl i32 %12, 0
%14 = add nsw i32 %11, %13
ret i32 %14
}

LLVM IR (-O2):
define i32 @vector_list_config_rgb_to_id(i32 %0, i32 %1, i32 %2) {
%4 = shl i32 %0, 16
%5 = shl i32 %1, 8
%6 = add nsw i32 %5, %4
%7 = add nsw i32 %6, %2
ret i32 %7
}
/* Variables and functions */
scalar_t__ floor(scalar_t__);
scalar_t__ sqrt(long const);
long npix2nside(const long npix) { return (long)floor(sqrt(npix / 12.) + 0.5); }


x86 assembly (clang, -O0):
<npix2nside>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cvtsi2sdq -0x8(%rbp),%xmm0
movsd  0xece(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rdi
call   1030 <sqrt@plt>
cvtsi2sd %rax,%xmm0
movsd  0xeab(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rdi
call   1040 <floor@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<npix2nside>:
push   %rax
cvtsi2sd %rdi,%xmm0
divsd  0xed2(%rip),%xmm0
cvttsd2si %xmm0,%rdi
call   1030 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
addsd  0xec0(%rip),%xmm0
cvttsd2si %xmm0,%rdi
pop    %rax
jmp    1040 <floor@plt>

LLVM IR (-O0):
define i64 @npix2nside(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = sitofp i64 %3 to double
%5 = fdiv double %4, 1.200000e+01
%6 = fptosi double %5 to i64
%7 = call i64 @sqrt(i64 %6)
%8 = sitofp i64 %7 to double
%9 = fadd double %8, 5.000000e-01
%10 = fptosi double %9 to i64
%11 = call i64 @floor(i64 %10)
ret i64 %11
}

LLVM IR (-O2):
define i64 @npix2nside(i64 %0) {
%2 = sitofp i64 %0 to double
%3 = fdiv double %2, 1.200000e+01
%4 = fptosi double %3 to i64
%5 = tail call i64 @sqrt(i64 %4)
%6 = sitofp i64 %5 to double
%7 = fadd double %6, 5.000000e-01
%8 = fptosi double %7 to i64
%9 = tail call i64 @floor(i64 %8)
ret i64 %9
}
/* Type definitions */
typedef int /*<<< orphan*/ uint64_t;

/* Variables and functions */
uint64_t PeResolveImportHash(uint64_t base, uint64_t hash) { return 0; }


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

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

LLVM IR (-O0):
define i32 @PeResolveImportHash(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
ret i32 0
}

LLVM IR (-O2):
define i32 @PeResolveImportHash(i32 %0, i32 %1) {
ret i32 0
}
/* Variables and functions */
int fptr_capi20_register(unsigned int, unsigned int, unsigned int,
                         unsigned int *);
scalar_t__ loadlib();
unsigned capi20_register(unsigned MaxB3Connection, unsigned MaxB3Blks,
                         unsigned MaxSizeB3, unsigned *ApplID) {
  if (loadlib() < 0)
    return 0x1009;
  return fptr_capi20_register(MaxB3Connection, MaxB3Blks, MaxSizeB3, ApplID);
}


x86 assembly (clang, -O0):
<capi20_register>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    $0x0,%al
call   1030 <loadlib@plt>
cmp    $0x0,%rax
jge    1152 <capi20_register+0x32>
movl   $0x1009,-0x4(%rbp)
jmp    1167 <capi20_register+0x47>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x18(%rbp),%rcx
call   1040 <fptr_capi20_register@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<capi20_register>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rcx,%r14
mov    %edx,%r15d
mov    %esi,%ebx
mov    %edi,%ebp
xor    %eax,%eax
call   1030 <loadlib@plt>
test   %rax,%rax
js     1156 <capi20_register+0x36>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %r15d,%edx
mov    %r14,%rcx
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <fptr_capi20_register@plt>
mov    $0x1009,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @capi20_register(i32 %0, i32 %1, i32 %2, i32* %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32*
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32* %3, i32** %9
%10 = call i64 (...) @loadlib()
%11 = icmp slt i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %4
store i32 4105, i32* %5
br label %19
13: ; preds = %4
%14 = load i32, i32* %6
%15 = load i32, i32* %7
%16 = load i32, i32* %8
%17 = load i32*, i32** %9
%18 = call i32 @fptr_capi20_register(i32 %14, i32 %15, i32 %16, i32* %17)
store i32 %18, i32* %5
br label %19
19: ; preds = %13, %12
%20 = load i32, i32* %5
ret i32 %20
}

LLVM IR (-O2):
define i32 @capi20_register(i32 %0, i32 %1, i32 %2, i32* %3) {
%5 = tail call i64 (...) @loadlib()
%6 = icmp slt i64 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %4
%8 = tail call i32 @fptr_capi20_register(i32 %0, i32 %1, i32 %2, i32* %3)
br label %9
9: ; preds = %4, %7
%10 = phi i32 [ %8, %7 ], [ 4105, %4 ]
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ my_strlen(char *);
int /*<<< orphan*/ write(int, char *, int /*<<< orphan*/);
int my_putstr(char *str) {
  if (str == NULL)
    return (-1);
  write(1, str, my_strlen(str));
  return (0);
}


x86 assembly (clang, -O0):
<my_putstr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1143 <my_putstr+0x23>
movl   $0xffffffff,-0x4(%rbp)
jmp    116b <my_putstr+0x4b>
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <my_strlen@plt>
mov    -0x18(%rbp),%rsi
mov    %eax,%edx
mov    $0x1,%edi
call   1040 <write@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<my_putstr>:
test   %rdi,%rdi
je     1141 <my_putstr+0x21>
push   %rbx
mov    %rdi,%rbx
call   1030 <my_strlen@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <write@plt>
xor    %eax,%eax
pop    %rbx
ret
mov    $0xffffffff,%eax
ret

LLVM IR (-O0):
define i32 @my_putstr(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = icmp eq i8* %4, null
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 -1, i32* %2
br label %12
7: ; preds = %1
%8 = load i8*, i8** %3
%9 = load i8*, i8** %3
%10 = call i32 @my_strlen(i8* %9)
%11 = call i32 @write(i32 1, i8* %8, i32 %10)
store i32 0, i32* %2
br label %12
12: ; preds = %7, %6
%13 = load i32, i32* %2
ret i32 %13
}

LLVM IR (-O2):
define i32 @my_putstr(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %6, label %3
3: ; preds = %1
%4 = tail call i32 @my_strlen(i8* %0)
%5 = tail call i32 @write(i32 1, i8* %0, i32 %4)
br label %6
6: ; preds = %1, %3
%7 = phi i32 [ 0, %3 ], [ -1, %1 ]
ret i32 %7
}
/* Variables and functions */
scalar_t__ time(int /*<<< orphan*/);
double CCutil_real_zeit(void) { return (double)time(0); }


x86 assembly (clang, -O0):
<CCutil_real_zeit>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <time@plt>
cvtsi2sd %rax,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<CCutil_real_zeit>:
push   %rax
xor    %edi,%edi
call   1030 <time@plt>
cvtsi2sd %rax,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @CCutil_real_zeit() {
%1 = call i64 @time(i32 0)
%2 = sitofp i64 %1 to double
ret double %2
}

LLVM IR (-O2):
define double @CCutil_real_zeit() {
%1 = tail call i64 @time(i32 0)
%2 = sitofp i64 %1 to double
ret double %2
}
/* Variables and functions */
int /*<<< orphan*/ _Error(long, char *);
void Error_ElementSyntaxCannotBeNullable(long p_position) {
  _Error(p_position, "Element clause in repetition cannot match nothing");
}


x86 assembly (clang, -O0):
<Error_ElementSyntaxCannotBeNullable>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <_Error@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Error_ElementSyntaxCannotBeNullable>:
lea    0xee9(%rip),%rsi
jmp    1030 <_Error@plt>

LLVM IR (-O0):
@.str = [50 x i8] c"Element clause in repetition cannot match nothing\00"
define void @Error_ElementSyntaxCannotBeNullable(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = call i32 @_Error(i64 %3, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [50 x i8] c"Element clause in repetition cannot match nothing\00"
define void @Error_ElementSyntaxCannotBeNullable(i64 %0) {
%2 = tail call i32 @_Error(i64 %0, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ CLEAR_TDI();
int /*<<< orphan*/ SET_TDI();
void bit_out_in_tms(uint8_t byte, int length, char *in, int tdi) {
  if (tdi == 1)
    SET_TDI();
  else
    CLEAR_TDI();
}


x86 assembly (clang, -O0):
<bit_out_in_tms>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
cmpl   $0x1,-0x14(%rbp)
jne    114b <bit_out_in_tms+0x2b>
mov    $0x0,%al
call   1030 <SET_TDI@plt>
jmp    1152 <bit_out_in_tms+0x32>
mov    $0x0,%al
call   1040 <CLEAR_TDI@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bit_out_in_tms>:
xor    %eax,%eax
cmp    $0x1,%ecx
jne    112c <bit_out_in_tms+0xc>
jmp    1030 <SET_TDI@plt>
jmp    1040 <CLEAR_TDI@plt>

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

LLVM IR (-O2):
define void @bit_out_in_tms(i32 %0, i32 %1, i8* nocapture readnone %2, i32 %3) {
%5 = icmp eq i32 %3, 1
br i1 %5, label %6, label %8
6: ; preds = %4
%7 = tail call i32 (...) @SET_TDI()
br label %10
8: ; preds = %4
%9 = tail call i32 (...) @CLEAR_TDI()
br label %10
10: ; preds = %8, %6
ret void
}
unsigned char SD_getInfo() { return 0; }


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

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

LLVM IR (-O0):
define zeroext i8 @SD_getInfo() {
ret i8 0
}

LLVM IR (-O2):
define zeroext i8 @SD_getInfo() {
ret i8 0
}
/* Variables and functions */
int /*<<< orphan*/ device_unregister(void *);
void unregister_cxl_dev(void *dev) { device_unregister(dev); }


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

x86 assembly (clang, -O2):
<unregister_cxl_dev>:
jmp    1030 <device_unregister@plt>

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

LLVM IR (-O2):
define void @unregister_cxl_dev(i8* %0) {
%2 = tail call i32 @device_unregister(i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ foo(unsigned int);
int main(void) {
  unsigned int sum = 0;
  foo(sum);
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @foo(i32 0)
ret i32 0
}
/* Variables and functions */
scalar_t__ glb_malloc(unsigned int);
double *glb_alloc_vec(int nl, int nh) {
  double *v;
  v = (double *)glb_malloc((unsigned)(nh + 1) * sizeof(double));
  return v;
}


x86 assembly (clang, -O0):
<glb_alloc_vec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,%eax
shl    $0x3,%rax
mov    %eax,%edi
call   1030 <glb_malloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<glb_alloc_vec>:
lea    0x8(,%rsi,8),%edi
jmp    1030 <glb_malloc@plt>

LLVM IR (-O0):
define double* @glb_alloc_vec(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca double*
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %4
%7 = add nsw i32 %6, 1
%8 = zext i32 %7 to i64
%9 = mul i64 %8, 8
%10 = trunc i64 %9 to i32
%11 = call i64 @glb_malloc(i32 %10)
%12 = inttoptr i64 %11 to double*
store double* %12, double** %5
%13 = load double*, double** %5
ret double* %13
}

LLVM IR (-O2):
define double* @glb_alloc_vec(i32 %0, i32 %1) {
%3 = shl i32 %1, 3
%4 = add i32 %3, 8
%5 = tail call i64 @glb_malloc(i32 %4)
%6 = inttoptr i64 %5 to double*
ret double* %6
}
void foo027() {}


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

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

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

LLVM IR (-O2):
define void @foo027() {
ret void
}
char *bindtextdomain(domainname, dirname) const char *domainname;
const char *dirname;
{ return libintl_bindtextdomain(domainname, dirname); }


x86 assembly (clang, -O0):
<bindtextdomain>:
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    $0x0,%al
call   1030 <libintl_bindtextdomain@plt>
cltq
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i8* @bindtextdomain(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 = load i8*, i8** %4
%7 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @libintl_bindtextdomain to i32 (i8*, i8*, ...)*)(i8* %5, i8* %6)
%8 = sext i32 %7 to i64
%9 = inttoptr i64 %8 to i8*
ret i8* %9
}

LLVM IR (-O2):
define i8* @bindtextdomain(i8* %0, i8* %1) {
%3 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @libintl_bindtextdomain to i32 (i8*, i8*, ...)*)(i8* %0, i8* %1)
%4 = sext i32 %3 to i64
%5 = inttoptr i64 %4 to i8*
ret i8* %5
}
void g_ascii_digit_value() {}


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

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

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

LLVM IR (-O2):
define void @g_ascii_digit_value() {
ret void
}