xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ free(char *);
scalar_t__ malloc(size_t);
int /*<<< orphan*/ printf(char *, char const *, char *);
int /*<<< orphan*/ strcpy(char *, char const *);
char *string_trim(char *);
size_t strlen(char const *);
void _test_trim(const char *str) {
  size_t len = strlen(str);
  char *str_cpy = (char *)malloc(len + 1);
  strcpy(str_cpy, str);
  char *new_str = string_trim(str_cpy);
  printf("trim('%s'): '%s'\n", str, new_str);
  free(str_cpy);
}


x86 assembly (clang, -O0):
<_test_trim>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <strlen@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x18(%rbp),%rdi
call   1080 <string_trim@plt>
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xe4d(%rip),%rdi
call   1060 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_test_trim>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
call   1050 <strlen@plt>
lea    0x1(%rax),%rdi
call   1070 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r14,%rsi
call   1040 <strcpy@plt>
mov    %rbx,%rdi
call   1080 <string_trim@plt>
lea    0xe6e(%rip),%rdi
mov    %r14,%rsi
mov    %rax,%rdx
call   1060 <printf@plt>
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <free@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"trim('%s'): '%s'\0A\00"
define void @_test_trim(i8* %0) {
%2 = alloca i8*
%3 = alloca i64
%4 = alloca i8*
%5 = alloca i8*
store i8* %0, i8** %2
%6 = load i8*, i8** %2
%7 = call i64 @strlen(i8* %6)
store i64 %7, i64* %3
%8 = load i64, i64* %3
%9 = add i64 %8, 1
%10 = call i64 @malloc(i64 %9)
%11 = inttoptr i64 %10 to i8*
store i8* %11, i8** %4
%12 = load i8*, i8** %4
%13 = load i8*, i8** %2
%14 = call i32 @strcpy(i8* %12, i8* %13)
%15 = load i8*, i8** %4
%16 = call i8* @string_trim(i8* %15)
store i8* %16, i8** %5
%17 = load i8*, i8** %2
%18 = load i8*, i8** %5
%19 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %17, i8* %18)
%20 = load i8*, i8** %4
%21 = call i32 @free(i8* %20)
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"trim('%s'): '%s'\0A\00"
define void @_test_trim(i8* %0) {
%2 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%3 = add i64 %2, 1
%4 = tail call i64 @malloc(i64 %3)
%5 = inttoptr i64 %4 to i8*
%6 = tail call i32 @strcpy(i8* %5, i8* %0)
%7 = tail call i8* @string_trim(i8* %5)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %7)
%9 = tail call i32 @free(i8* %5)
ret void
}
double I_GPN2RAD(double gpn) {
  return gpn * 0.0174532925199432957692369076848833;
}


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

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

LLVM IR (-O0):
define double @I_GPN2RAD(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fmul double %3, 0x3F91DF46A2529D39
ret double %4
}

LLVM IR (-O2):
define double @I_GPN2RAD(double %0) {
%2 = fmul double %0, 0x3F91DF46A2529D39
ret double %2
}
/* Variables and functions */
long bikoeff(int, int);
long k1(int m, int n) { return bikoeff(n - 1, n + m - 1); }


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

x86 assembly (clang, -O2):
<k1>:
lea    -0x1(%rsi),%eax
add    %edi,%esi
add    $0xffffffff,%esi
mov    %eax,%edi
jmp    1030 <bikoeff@plt>

LLVM IR (-O0):
define i64 @k1(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 = sub nsw i32 %5, 1
%7 = load i32, i32* %4
%8 = load i32, i32* %3
%9 = add nsw i32 %7, %8
%10 = sub nsw i32 %9, 1
%11 = call i64 @bikoeff(i32 %6, i32 %10)
ret i64 %11
}

LLVM IR (-O2):
define i64 @k1(i32 %0, i32 %1) {
%3 = add i32 %1, -1
%4 = add i32 %3, %0
%5 = tail call i64 @bikoeff(i32 %3, i32 %4)
ret i64 %5
}
struct bios_data_area *get_bios_data_area(void) {
  return (struct bios_data_area *)0x400;
}


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

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

LLVM IR (-O0):
%struct.bios_data_area = type opaque
define %struct.bios_data_area* @get_bios_data_area() {
ret %struct.bios_data_area* inttoptr (i64 1024 to %struct.bios_data_area*)
}

LLVM IR (-O2):
%struct.bios_data_area = type opaque
define %struct.bios_data_area* @get_bios_data_area() {
ret %struct.bios_data_area* inttoptr (i64 1024 to %struct.bios_data_area*)
}
/* Forward declarations */
typedef struct TYPE_4__ TYPE_2__;
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  int /*<<< orphan*/ *display;
};
struct TYPE_4__ {
  TYPE_1__ xgraphicsexpose;
};
typedef TYPE_2__ XEvent;
typedef int /*<<< orphan*/ Display;

/* Variables and functions */
void set_XEvent_xgraphicsexpose_display(void *_p, void *_v) {
  ((XEvent *)_p)->xgraphicsexpose.display = (Display *)_v;
}


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

x86 assembly (clang, -O2):
<set_XEvent_xgraphicsexpose_display>:
mov    %rsi,(%rdi)
ret

LLVM IR (-O0):
%struct.TYPE_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i32* }
define void @set_XEvent_xgraphicsexpose_display(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = bitcast i8* %5 to i32*
%7 = load i8*, i8** %3
%8 = bitcast i8* %7 to %struct.TYPE_4__*
%9 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %8, i32 0, i32 0
%10 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %9, i32 0, i32 0
store i32* %6, i32** %10
ret void
}

LLVM IR (-O2):
define void @set_XEvent_xgraphicsexpose_display(i8* nocapture writeonly %0, i8* %1) {
%3 = bitcast i8* %0 to i8**
store i8* %1, i8** %3
ret void
}
void grpc_security_pre_init(void) {}


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

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

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

LLVM IR (-O2):
define void @grpc_security_pre_init() {
ret void
}
/* Variables and functions */
int __test();
int /*<<< orphan*/ printf(char *, int);
int main() {
  printf("\n%d\n", __test());
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <__test@plt>
mov    %eax,%esi
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <__test@plt>
lea    0xed1(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c"\0A%d\0A\00"
define i32 @main() {
%1 = tail call i32 (...) @__test()
%2 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ LineTerminate(char *);
void EarlyTerminate() { LineTerminate("Abrupt file end within definition"); }


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

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

LLVM IR (-O0):
@.str = [34 x i8] c"Abrupt file end within definition\00"
define void @EarlyTerminate() {
%1 = call i32 @LineTerminate(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [34 x i8] c"Abrupt file end within definition\00"
define void @EarlyTerminate() {
%1 = tail call i32 @LineTerminate(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
ret void
}
int fun643() { return 643; }


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

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

LLVM IR (-O0):
define i32 @fun643() {
ret i32 643
}

LLVM IR (-O2):
define i32 @fun643() {
ret i32 643
}
/* Variables and functions */
float pow(double, float);
float exp(float x) { return pow(2.71828182, x); }


x86 assembly (clang, -O0):
<exp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm1
movsd  0xed6(%rip),%xmm0
call   1030 <pow@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<exp>:
movaps %xmm0,%xmm1
movsd  0xee5(%rip),%xmm0
jmp    1030 <pow@plt>

LLVM IR (-O0):
define float @exp(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = call float @pow(double 0x4005BF0A89F1B0DD, float %3)
ret float %4
}

LLVM IR (-O2):
define float @exp(float %0) {
%2 = tail call float @pow(double 0x4005BF0A89F1B0DD, float %0)
ret float %2
}
int exchange(double a[], long j, long k) {
  double tmp;
  tmp = a[j];
  a[j] = a[k];
  a[k] = tmp;
  return (0);
}


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

x86 assembly (clang, -O2):
<exchange>:
movsd  (%rdi,%rsi,8),%xmm0
movsd  (%rdi,%rdx,8),%xmm1
movsd  %xmm1,(%rdi,%rsi,8)
movsd  %xmm0,(%rdi,%rdx,8)
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @exchange(double* nocapture %0, i64 %1, i64 %2) {
%4 = getelementptr inbounds double, double* %0, i64 %1
%5 = load double, double* %4
%6 = getelementptr inbounds double, double* %0, i64 %2
%7 = load double, double* %6
store double %7, double* %4
store double %5, double* %6
ret i32 0
}
void test19(void) {
  const int a = 100;
  unsigned char flag = 1;
  unsigned char flag2;
  unsigned char flag3;
  const double pi = 3.54;
  if ((flag) && pi) {
  }
  if (flag || flag2 && flag3) {
  }
  if (a == 0 && flag) {
  }
  if (flag || (a == 0)) {
  }
  if (!flag || flag2) {
  }
}


x86 assembly (clang, -O0):
<test19>:
push   %rbp
mov    %rsp,%rbp
movl   $0x64,-0x4(%rbp)
movb   $0x1,-0x5(%rbp)
movsd  0xee9(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movzbl -0x5(%rbp),%eax
cmp    $0x0,%eax
je     113d <test19+0x3d>
mov    $0x1,%al
test   $0x1,%al
jne    1138 <test19+0x38>
jmp    113d <test19+0x3d>
jmp    113d <test19+0x3d>
movzbl -0x5(%rbp),%eax
cmp    $0x0,%eax
jne    1164 <test19+0x64>
movzbl -0x6(%rbp),%eax
cmp    $0x0,%eax
je     1169 <test19+0x69>
movzbl -0x7(%rbp),%eax
cmp    $0x0,%eax
je     1169 <test19+0x69>
jmp    1169 <test19+0x69>
movzbl -0x5(%rbp),%eax
cmp    $0x0,%eax
je     117b <test19+0x7b>
jmp    117b <test19+0x7b>
cmpb   $0x0,-0x5(%rbp)
je     1192 <test19+0x92>
movzbl -0x6(%rbp),%eax
cmp    $0x0,%eax
je     1197 <test19+0x97>
jmp    1197 <test19+0x97>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @test19() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
%4 = alloca i8
%5 = alloca double
store i32 100, i32* %1
store i8 1, i8* %2
store double 3.540000e+00, double* %5
%6 = load i8, i8* %2
%7 = zext i8 %6 to i32
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %0
br i1 true, label %10, label %11
10: ; preds = %9
br label %11
11: ; preds = %10, %9, %0
%12 = load i8, i8* %2
%13 = zext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br i1 %14, label %23, label %15
15: ; preds = %11
%16 = load i8, i8* %3
%17 = zext i8 %16 to i32
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %24
19: ; preds = %15
%20 = load i8, i8* %4
%21 = zext i8 %20 to i32
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %19, %11
br label %24
24: ; preds = %23, %19, %15
%25 = load i8, i8* %2
%26 = zext i8 %25 to i32
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %24
br label %29
29: ; preds = %28, %24
%30 = load i8, i8* %2
%31 = icmp ne i8 %30, 0
br i1 %31, label %32, label %36
32: ; preds = %29
%33 = load i8, i8* %3
%34 = zext i8 %33 to i32
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %32, %29
br label %37
37: ; preds = %36, %32
ret void
}

LLVM IR (-O2):
define void @test19() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ put32(unsigned int);
int /*<<< orphan*/ put8(int);
void sub_reg64_imm32(int reg64, unsigned int imm32) {
  put8(0x48);
  put8(0x81);
  put8(0xE8 + reg64);
  put32(imm32);
}


x86 assembly (clang, -O0):
<sub_reg64_imm32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    $0x48,%edi
call   1030 <put8@plt>
mov    $0x81,%edi
call   1030 <put8@plt>
mov    -0x4(%rbp),%edi
add    $0xe8,%edi
call   1030 <put8@plt>
mov    -0x8(%rbp),%edi
call   1040 <put32@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sub_reg64_imm32>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
mov    $0x48,%edi
call   1030 <put8@plt>
mov    $0x81,%edi
call   1030 <put8@plt>
add    $0xe8,%ebp
mov    %ebp,%edi
call   1030 <put8@plt>
mov    %ebx,%edi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1040 <put32@plt>

LLVM IR (-O0):
define void @sub_reg64_imm32(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = call i32 @put8(i32 72)
%6 = call i32 @put8(i32 129)
%7 = load i32, i32* %3
%8 = add nsw i32 232, %7
%9 = call i32 @put8(i32 %8)
%10 = load i32, i32* %4
%11 = call i32 @put32(i32 %10)
ret void
}

LLVM IR (-O2):
define void @sub_reg64_imm32(i32 %0, i32 %1) {
%3 = tail call i32 @put8(i32 72)
%4 = tail call i32 @put8(i32 129)
%5 = add nsw i32 %0, 232
%6 = tail call i32 @put8(i32 %5)
%7 = tail call i32 @put32(i32 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void hensler17() { printf("hensler17 likes honey roasted peanuts. \n"); }


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

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

LLVM IR (-O0):
@.str = [41 x i8] c"hensler17 likes honey roasted peanuts. \0A\00"
define void @hensler17() {
%1 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [40 x i8] c"hensler17 likes honey roasted peanuts. \00"
define void @hensler17() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int solcon_read_solution_dimensions(int *len, int *dim) {
  int fail;
  double *c;
  fail = _ada_use_c2phc4c(133, len, dim, c, 0);
  return fail;
}


x86 assembly (clang, -O0):
<solcon_read_solution_dimensions>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    $0x85,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<solcon_read_solution_dimensions>:
mov    %rsi,%rdx
mov    %rdi,%rsi
mov    $0x85,%edi
xor    %r8d,%r8d
jmp    1030 <_ada_use_c2phc4c@plt>

LLVM IR (-O0):
define i32 @solcon_read_solution_dimensions(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i32
%6 = alloca double*
store i32* %0, i32** %3
store i32* %1, i32** %4
%7 = load i32*, i32** %3
%8 = load i32*, i32** %4
%9 = load double*, double** %6
%10 = call i32 @_ada_use_c2phc4c(i32 133, i32* %7, i32* %8, double* %9, i32 0)
store i32 %10, i32* %5
%11 = load i32, i32* %5
ret i32 %11
}

LLVM IR (-O2):
define i32 @solcon_read_solution_dimensions(i32* %0, i32* %1) {
%3 = tail call i32 @_ada_use_c2phc4c(i32 133, i32* %0, i32* %1, double* undef, i32 0)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ sys_exit(int);
__attribute__((noreturn, unused)) void exit(int status) { sys_exit(status); }


x86 assembly (clang, -O0):
<exit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <sys_exit@plt>

x86 assembly (clang, -O2):
<exit>:
push   %rax
call   1030 <sys_exit@plt>

LLVM IR (-O0):
define void @exit(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @sys_exit(i32 %3)
unreachable
}

LLVM IR (-O2):
define void @exit(i32 %0) {
%2 = tail call i32 @sys_exit(i32 %0)
unreachable
}
/* Type definitions */
typedef int /*<<< orphan*/ int32_t;

/* Variables and functions */
int32_t tlib_get_cpu_index(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @tlib_get_cpu_index() {
ret i32 0
}
int ft_starstrlen(char **tab) {
  int len;
  len = 0;
  while (tab[len])
    len++;
  return (len);
}


x86 assembly (clang, -O0):
<ft_starstrlen>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     1130 <ft_starstrlen+0x30>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <ft_starstrlen+0xf>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_starstrlen>:
mov    $0xffffffff,%eax
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%eax
cmpq   $0x0,(%rdi)
lea    0x8(%rdi),%rdi
jne    1110 <ft_starstrlen+0x10>
ret

LLVM IR (-O0):
define i32 @ft_starstrlen(i8** %0) {
%2 = alloca i8**
%3 = alloca i32
store i8** %0, i8*** %2
store i32 0, i32* %3
br label %4
4: ; preds = %11, %1
%5 = load i8**, i8*** %2
%6 = load i32, i32* %3
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8*, i8** %5, i64 %7
%9 = load i8*, i8** %8
%10 = icmp ne i8* %9, null
br i1 %10, label %11, label %14
11: ; preds = %4
%12 = load 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 @ft_starstrlen(i8** nocapture %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i64 [ %7, %2 ], [ 0, %1 ]
%4 = getelementptr inbounds i8*, i8** %0, i64 %3
%5 = load i8*, i8** %4
%6 = icmp eq i8* %5, null
%7 = add nuw i64 %3, 1
br i1 %6, label %8, label %2
8: ; preds = %2
%9 = trunc i64 %3 to i32
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main(void) {
  printf("hello world!\r\n");
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [15 x i8] c"hello world!\0D\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [14 x i8] c"hello world!\0D\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int print_array(int *data, int size) {
  int i = 0;
  while (i < size) {
    printf("%d ", *(data + i));
    i++;
  }
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<print_array>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1159 <print_array+0x49>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xebc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1126 <print_array+0x16>
lea    0xea4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_array>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
test   %esi,%esi
jle    1157 <print_array+0x37>
mov    %rdi,%r15
mov    %esi,%r12d
lea    0xec7(%rip),%r14
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    (%r15,%rbx,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%r12
jne    1140 <print_array+0x20>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%d \00"
@.str.1 = [2 x i8] c"\0A\00"
define i32 @print_array(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
store i32 0, i32* %5
br label %6
6: ; preds = %10, %2
%7 = load i32, i32* %5
%8 = load i32, i32* %4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %19
10: ; preds = %6
%11 = load i32*, i32** %3
%12 = load i32, i32* %5
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32, i32* %11, i64 %13
%15 = load i32, i32* %14
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %15)
%17 = load i32, i32* %5
%18 = add nsw i32 %17, 1
store i32 %18, i32* %5
br label %6
19: ; preds = %6
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d \00"
define i32 @print_array(i32* nocapture %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %13
4: ; preds = %2
%5 = zext i32 %1 to i64
br label %6
6: ; preds = %4, %6
%7 = phi i64 [ 0, %4 ], [ %11, %6 ]
%8 = getelementptr inbounds i32, i32* %0, i64 %7
%9 = load i32, i32* %8
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %9)
%11 = add nuw nsw i64 %7, 1
%12 = icmp eq i64 %11, %5
br i1 %12, label %13, label %6
13: ; preds = %6, %2
%14 = tail call i32 @putchar(i32 10)
ret i32 0
}
/* Variables and functions */
size_t b64urlencsize(size_t n) {
  size_t r;
  r = ((n + 2) / 3) * 4;
  if (n % 3) {
    r -= 3 - (n % 3);
  }
  return (r + 1);
}


x86 assembly (clang, -O0):
<b64urlencsize>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x2,%rax
mov    $0x3,%ecx
xor    %edx,%edx
div    %rcx
shl    $0x2,%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    $0x3,%ecx
xor    %edx,%edx
div    %rcx
cmp    $0x0,%rdx
je     115b <b64urlencsize+0x5b>
mov    -0x8(%rbp),%rax
mov    $0x3,%ecx
xor    %edx,%edx
div    %rcx
mov    $0x3,%ecx
sub    %rdx,%rcx
mov    -0x10(%rbp),%rax
sub    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<b64urlencsize>:
lea    0x2(%rdi),%rax
movabs $0xaaaaaaaaaaaaaaab,%rsi
aa aa aa
mul    %rsi
mov    %rdx,%rcx
and    $0xfffffffffffffffe,%rcx
mov    %rdi,%rax
mul    %rsi
shr    %rdx
lea    (%rdx,%rdx,2),%rax
mov    %rdi,%rdx
sub    %rax,%rdx
neg    %rax
test   %rdx,%rdx
lea    -0x2(%rdi,%rax,1),%rax
mov    $0x1,%edx
cmovne %rax,%rdx
lea    (%rdx,%rcx,2),%rax
ret

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

LLVM IR (-O2):
define i64 @b64urlencsize(i64 %0) {
%2 = add i64 %0, 2
%3 = udiv i64 %2, 3
%4 = shl i64 %3, 2
%5 = urem i64 %0, 3
%6 = icmp eq i64 %5, 0
%7 = add nsw i64 %5, -2
%8 = select i1 %6, i64 1, i64 %7
%9 = add i64 %8, %4
ret i64 %9
}
int x37_process_request(struct mypacket *packet) { return 0; }


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

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

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

LLVM IR (-O2):
%struct.mypacket = type opaque
define i32 @x37_process_request(%struct.mypacket* nocapture readnone %0) {
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ SVCXPRT;

/* Variables and functions */
void svcraw_destroy(SVCXPRT *__xprt) { (void)__xprt; }


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

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

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

LLVM IR (-O2):
define void @svcraw_destroy(i32* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_proplist_free() {
  printf("NOT IMPLEMENTED:"
         "pa_proplist_free"
         "\n");
}


x86 assembly (clang, -O0):
<pa_proplist_free>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [34 x i8] c"NOT IMPLEMENTED:pa_proplist_free\0A\00"
define i32 @pa_proplist_free() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@str = [33 x i8] c"NOT IMPLEMENTED:pa_proplist_free\00"
define i32 @pa_proplist_free() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
/* Type definitions */
typedef int int32_t;

/* Variables and functions */
void main() {
  int32_t a;
  a = 10;
  while (a != 0) {
    a = a - 1;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0xa,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1123 <main+0x23>
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    110b <main+0xb>
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @main() {
ret void
}
int fun549() { return 549; }


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

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

LLVM IR (-O0):
define i32 @fun549() {
ret i32 549
}

LLVM IR (-O2):
define i32 @fun549() {
ret i32 549
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  int age = 10;
  int height;
  printf("%d years old.\n");
  printf("%d inches tall.\n", height);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0xa,-0x14(%rbp)
lea    0xecc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%esi
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
@.str = [15 x i8] c"%d years old.\0A\00"
@.str.1 = [17 x i8] c"%d inches tall.\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 undef)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ MEM_SetByte(unsigned int, unsigned int);
void m68k_write_memory_16(unsigned int addr, unsigned int val) {
  MEM_SetByte(addr + 1, val);
  MEM_SetByte(addr + 0, val >> 8);
}


x86 assembly (clang, -O0):
<m68k_write_memory_16>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
add    $0x1,%edi
mov    -0x8(%rbp),%esi
call   1030 <MEM_SetByte@plt>
mov    -0x4(%rbp),%edi
add    $0x0,%edi
mov    -0x8(%rbp),%esi
shr    $0x8,%esi
call   1030 <MEM_SetByte@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<m68k_write_memory_16>:
push   %r14
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%r14d
lea    0x1(%r14),%edi
call   1030 <MEM_SetByte@plt>
shr    $0x8,%ebx
mov    %r14d,%edi
mov    %ebx,%esi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <MEM_SetByte@plt>

LLVM IR (-O0):
define void @m68k_write_memory_16(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 = add i32 %5, 1
%7 = load i32, i32* %4
%8 = call i32 @MEM_SetByte(i32 %6, i32 %7)
%9 = load i32, i32* %3
%10 = add i32 %9, 0
%11 = load i32, i32* %4
%12 = lshr i32 %11, 8
%13 = call i32 @MEM_SetByte(i32 %10, i32 %12)
ret void
}

LLVM IR (-O2):
define void @m68k_write_memory_16(i32 %0, i32 %1) {
%3 = add i32 %0, 1
%4 = tail call i32 @MEM_SetByte(i32 %3, i32 %1)
%5 = lshr i32 %1, 8
%6 = tail call i32 @MEM_SetByte(i32 %0, i32 %5)
ret void
}
/* Variables and functions */
long long current_timestamp();
int plusone(int);
int /*<<< orphan*/ printf(char *, long long);
void run(int count) {
  long long start = current_timestamp();
  long long end;
  int x = 0;
  while (x < count)
    x = plusone(x);
  printf("%lld\n", current_timestamp() - start);
}


x86 assembly (clang, -O0):
<run>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1030 <current_timestamp@plt>
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1169 <run+0x39>
mov    -0x1c(%rbp),%edi
call   1050 <plusone@plt>
mov    %eax,-0x1c(%rbp)
jmp    114d <run+0x1d>
mov    $0x0,%al
call   1030 <current_timestamp@plt>
mov    %rax,%rsi
sub    -0x10(%rbp),%rsi
lea    0xe82(%rip),%rdi
call   1040 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<run>:
push   %rbp
push   %r14
push   %rbx
mov    %edi,%ebp
xor    %ebx,%ebx
xor    %eax,%eax
call   1030 <current_timestamp@plt>
mov    %rax,%r14
test   %ebp,%ebp
jle    115d <run+0x2d>
cs nopw 0x0(%rax,%rax,1)
mov    %ebx,%edi
call   1050 <plusone@plt>
mov    %eax,%ebx
cmp    %ebp,%eax
jl     1150 <run+0x20>
xor    %eax,%eax
call   1030 <current_timestamp@plt>
sub    %r14,%rax
lea    0xe92(%rip),%rdi
mov    %rax,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <printf@plt>

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

LLVM IR (-O2):
@.str = [6 x i8] c"%lld\0A\00"
define void @run(i32 %0) {
%2 = tail call i64 (...) @current_timestamp()
%3 = icmp sgt i32 %0, 0
br i1 %3, label %4, label %8
4: ; preds = %1, %4
%5 = phi i32 [ %6, %4 ], [ 0, %1 ]
%6 = tail call i32 @plusone(i32 %5)
%7 = icmp slt i32 %6, %0
br i1 %7, label %4, label %8
8: ; preds = %4, %1
%9 = tail call i64 (...) @current_timestamp()
%10 = sub nsw i64 %9, %2
%11 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i64 %10)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ VIM_SIF_I2cReadByte(unsigned char, unsigned char *);
void SensorGetReg_SANYO(unsigned char uAddr, unsigned short *uVal) {
  VIM_SIF_I2cReadByte((unsigned char)uAddr, (unsigned char *)uVal);
}


x86 assembly (clang, -O0):
<SensorGetReg_SANYO>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x1(%rbp),%al
mov    -0x10(%rbp),%rsi
movzbl %al,%edi
call   1030 <VIM_SIF_I2cReadByte@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SensorGetReg_SANYO>:
jmp    1030 <VIM_SIF_I2cReadByte@plt>

LLVM IR (-O0):
define void @SensorGetReg_SANYO(i8 zeroext %0, i16* %1) {
%3 = alloca i8
%4 = alloca i16*
store i8 %0, i8* %3
store i16* %1, i16** %4
%5 = load i8, i8* %3
%6 = load i16*, i16** %4
%7 = bitcast i16* %6 to i8*
%8 = call i32 @VIM_SIF_I2cReadByte(i8 zeroext %5, i8* %7)
ret void
}

LLVM IR (-O2):
define void @SensorGetReg_SANYO(i8 zeroext %0, i16* %1) {
%3 = bitcast i16* %1 to i8*
%4 = tail call i32 @VIM_SIF_I2cReadByte(i8 zeroext %0, i8* %3)
ret void
}
/* Type definitions */
struct mdoc_node {
  int dummy;
};
struct mdoc_meta {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ font_push(char);
int /*<<< orphan*/ pre_syn(struct mdoc_node const *);
int pre_ft(const struct mdoc_meta *meta, const struct mdoc_node *n) {
  pre_syn(n);
  font_push('I');
  return (1);
}


x86 assembly (clang, -O0):
<pre_ft>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <pre_syn@plt>
mov    $0x49,%edi
call   1030 <font_push@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pre_ft>:
push   %rax
mov    %rsi,%rdi
call   1040 <pre_syn@plt>
mov    $0x49,%edi
call   1030 <font_push@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.mdoc_meta = type { i32 }
%struct.mdoc_node = type { i32 }
define i32 @pre_ft(%struct.mdoc_meta* %0, %struct.mdoc_node* %1) {
%3 = alloca %struct.mdoc_meta*
%4 = alloca %struct.mdoc_node*
store %struct.mdoc_meta* %0, %struct.mdoc_meta** %3
store %struct.mdoc_node* %1, %struct.mdoc_node** %4
%5 = load %struct.mdoc_node*, %struct.mdoc_node** %4
%6 = call i32 @pre_syn(%struct.mdoc_node* %5)
%7 = call i32 @font_push(i8 signext 73)
ret i32 1
}

LLVM IR (-O2):
%struct.mdoc_meta = type { i32 }
%struct.mdoc_node = type { i32 }
define i32 @pre_ft(%struct.mdoc_meta* nocapture readnone %0, %struct.mdoc_node* %1) {
%3 = tail call i32 @pre_syn(%struct.mdoc_node* %1)
%4 = tail call i32 @font_push(i8 signext 73)
ret i32 1
}
void RTC_EveryMinuteHandler(void) {}


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

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

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

LLVM IR (-O2):
define void @RTC_EveryMinuteHandler() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ showError(char *);
void showHelp() { showError("Usage: netty-login username"); }


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

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

LLVM IR (-O0):
@.str = [28 x i8] c"Usage: netty-login username\00"
define void @showHelp() {
%1 = call i32 @showError(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [28 x i8] c"Usage: netty-login username\00"
define void @showHelp() {
%1 = tail call i32 @showError(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
ret void
}
void rule_exit(void) {}


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

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

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

LLVM IR (-O2):
define void @rule_exit() {
ret void
}
/* Variables and functions */
int intel_ich_gpio_set(int, int);
int intel_ich_gpio23_raise(void) { return intel_ich_gpio_set(23, 1); }


x86 assembly (clang, -O0):
<intel_ich_gpio23_raise>:
push   %rbp
mov    %rsp,%rbp
mov    $0x17,%edi
mov    $0x1,%esi
call   1030 <intel_ich_gpio_set@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<intel_ich_gpio23_raise>:
mov    $0x17,%edi
mov    $0x1,%esi
jmp    1030 <intel_ich_gpio_set@plt>

LLVM IR (-O0):
define i32 @intel_ich_gpio23_raise() {
%1 = call i32 @intel_ich_gpio_set(i32 23, i32 1)
ret i32 %1
}

LLVM IR (-O2):
define i32 @intel_ich_gpio23_raise() {
%1 = tail call i32 @intel_ich_gpio_set(i32 23, i32 1)
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, char const *);
int /*<<< orphan*/ stderr;
void ioError(const char *err, char *filename) {
  fprintf(stderr, "File %s: %s\n", filename, err);
}


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

x86 assembly (clang, -O2):
<ioError>:
mov    %rsi,%rdx
mov    %rdi,%rcx
mov    0x2ec3(%rip),%rax
mov    (%rax),%edi
lea    0xeda(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [13 x i8] c"File %s: %s\0A\00"
define void @ioError(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %4
%7 = load i8*, i8** %3
%8 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %6, i8* %7)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [13 x i8] c"File %s: %s\0A\00"
define void @ioError(i8* %0, i8* %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %1, i8* %0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
void flockfile(FILE *filehandle) {}


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

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

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

LLVM IR (-O2):
define void @flockfile(i32* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ display_labels(char *, char *, int, unsigned int const);
void display_objects(const unsigned set, char *buffer) {
  display_labels(buffer, "123456789ABCDEF", (8), set);
}


x86 assembly (clang, -O0):
<display_objects>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x4(%rbp),%ecx
lea    0xed3(%rip),%rsi
mov    $0x8,%edx
call   1030 <display_labels@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<display_objects>:
mov    %rsi,%rax
mov    %edi,%ecx
lea    0xee4(%rip),%rsi
mov    %rax,%rdi
mov    $0x8,%edx
jmp    1030 <display_labels@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"123456789ABCDEF\00"
define void @display_objects(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
store i32 %0, i32* %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = load i32, i32* %3
%7 = call i32 @display_labels(i8* %5, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 8, i32 %6)
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"123456789ABCDEF\00"
define void @display_objects(i32 %0, i8* %1) {
%3 = tail call i32 @display_labels(i8* %1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 8, i32 %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int, char *);
char *nc_strerror(int);
int /*<<< orphan*/ stderr;
void check(int status) {
  if (status == 0)
    return;
  fprintf(stderr, "%d: %s\n", status, nc_strerror(status));
  fflush(stderr);
  exit(1);
}


x86 assembly (clang, -O0):
<check>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    115b <check+0x1b>
add    $0x10,%rsp
pop    %rbp
ret
mov    0x2e7e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1060 <nc_strerror@plt>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%edx
mov    %rax,%rcx
lea    0xe7b(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e4f(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<check>:
test   %edi,%edi
jne    1145 <check+0x5>
ret
push   %rbp
push   %r14
push   %rbx
mov    %edi,%ebx
mov    0x2e8e(%rip),%r14
mov    (%r14),%ebp
call   1060 <nc_strerror@plt>
lea    0xe9f(%rip),%rsi
mov    %ebp,%edi
mov    %ebx,%edx
mov    %rax,%rcx
call   1030 <fprintf@plt>
mov    (%r14),%edi
call   1040 <fflush@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

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

LLVM IR (-O2):
@stderr = global i32 0
@.str = [8 x i8] c"%d: %s\0A\00"
define void @check(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %3, label %4
3: ; preds = %1
ret void
4: ; preds = %1
%5 = load i32, i32* @stderr
%6 = tail call i8* @nc_strerror(i32 %0)
%7 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %0, i8* %6)
%8 = load i32, i32* @stderr
%9 = tail call i32 @fflush(i32 %8)
%10 = tail call i32 @exit(i32 1)
unreachable
}
void glIsEnabled(void) { return; }


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

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

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

LLVM IR (-O2):
define void @glIsEnabled() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ output_line(char *);
void data_segment_gdata(void) { output_line(".data"); }


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

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

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

LLVM IR (-O2):
@.str = [6 x i8] c".data\00"
define void @data_segment_gdata() {
%1 = tail call i32 @output_line(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
void stirb(int bla) { exit(0); }


x86 assembly (clang, -O0):
<stirb>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
xor    %edi,%edi
call   1030 <exit@plt>

x86 assembly (clang, -O2):
<stirb>:
push   %rax
xor    %edi,%edi
call   1030 <exit@plt>

LLVM IR (-O0):
define void @stirb(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
define void @stirb(i32 %0) {
%2 = tail call i32 @exit(i32 0)
unreachable
}