xunge/DecIR huggingface dataset:
/* Variables and functions */
int __builtin_preserve_field_info(int const, int);
unsigned invalid2(const int *arg) {
  return __builtin_preserve_field_info(*arg, 1);
}


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

x86 assembly (clang, -O2):
<invalid2>:
mov    (%rdi),%edi
mov    $0x1,%esi
jmp    1030 <__builtin_preserve_field_info@plt>

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

LLVM IR (-O2):
define i32 @invalid2(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = tail call i32 @__builtin_preserve_field_info(i32 %2, i32 1)
ret i32 %3
}
int execute_pselect6() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @execute_pselect6() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ strncpy(char *, char *, int);
void copy(char *to, char *from) {
  strncpy(to, from, 1024 - 10);
  to[1024 - 10] = '\0';
}


x86 assembly (clang, -O0):
<copy>:
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    $0x3f6,%edx
call   1030 <strncpy@plt>
mov    -0x8(%rbp),%rax
movb   $0x0,0x3f6(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<copy>:
push   %rbx
mov    %rdi,%rbx
mov    $0x3f6,%edx
call   1030 <strncpy@plt>
movb   $0x0,0x3f6(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @copy(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 @strncpy(i8* %5, i8* %6, i32 1014)
%8 = load i8*, i8** %3
%9 = getelementptr inbounds i8, i8* %8, i64 1014
store i8 0, i8* %9
ret void
}

LLVM IR (-O2):
define void @copy(i8* %0, i8* %1) {
%3 = tail call i32 @strncpy(i8* %0, i8* %1, i32 1014)
%4 = getelementptr inbounds i8, i8* %0, i64 1014
store i8 0, i8* %4
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ GLdouble;

/* Variables and functions */
int /*<<< orphan*/ glMultMatrixd(int /*<<< orphan*/ *);
void MultMatrixd(GLdouble v[16]) { glMultMatrixd(v); }


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

x86 assembly (clang, -O2):
<MultMatrixd>:
jmp    1030 <glMultMatrixd@plt>

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

LLVM IR (-O2):
define void @MultMatrixd(i32* %0) {
%2 = tail call i32 @glMultMatrixd(i32* %0)
ret void
}
/* Variables and functions */
void *a10(int);
void *a9(int x) { return (((x >> 9) & 1) ? a10(x) : a10(x)); }


x86 assembly (clang, -O0):
<a9>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x9,%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     113e <a9+0x2e>
mov    -0x4(%rbp),%edi
call   1030 <a10@plt>
mov    %rax,-0x10(%rbp)
jmp    114a <a9+0x3a>
mov    -0x4(%rbp),%edi
call   1030 <a10@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<a9>:
jmp    1030 <a10@plt>

LLVM IR (-O0):
define i8* @a9(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = ashr i32 %3, 9
%5 = and i32 %4, 1
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, i32* %2
%9 = call i8* @a10(i32 %8)
br label %13
10: ; preds = %1
%11 = load i32, i32* %2
%12 = call i8* @a10(i32 %11)
br label %13
13: ; preds = %10, %7
%14 = phi i8* [ %9, %7 ], [ %12, %10 ]
ret i8* %14
}

LLVM IR (-O2):
define i8* @a9(i32 %0) {
%2 = tail call i8* @a10(i32 %0)
ret i8* %2
}
/* Type definitions */
typedef int /*<<< orphan*/ ssize_t;

/* Variables and functions */
int ph_unknown_udp_handle_packet(void *handler, const char *packet,
                                 ssize_t len) {
  return 0;
}


x86 assembly (clang, -O0):
<ph_unknown_udp_handle_packet>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @ph_unknown_udp_handle_packet(i8* nocapture readnone %0, i8* nocapture readnone %1, i32 %2) {
ret i32 0
}
float quadraticEaseInf(float p) { return p * p; }


x86 assembly (clang, -O0):
<quadraticEaseInf>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
mulss  -0x4(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<quadraticEaseInf>:
mulss  %xmm0,%xmm0
ret

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

LLVM IR (-O2):
define float @quadraticEaseInf(float %0) {
%2 = fmul float %0, %0
ret float %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int tolower(char const);
int lowercase(int msg_len, const char *msg) {
  int i;
  for (i = 0; i < msg_len; ++i)
    printf("%c", tolower(msg[i]));
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<lowercase>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1171 <lowercase+0x51>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1040 <tolower@plt>
mov    %eax,%esi
lea    0xea4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1136 <lowercase+0x16>
lea    0xe8b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lowercase>:
push   %r15
push   %r14
push   %rbx
test   %edi,%edi
jle    115a <lowercase+0x3a>
mov    %rsi,%r14
mov    %edi,%r15d
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsbl (%r14,%rbx,1),%edi
call   1040 <tolower@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    1140 <lowercase+0x20>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%c\00"
@.str.1 = [2 x i8] c"\0A\00"
define i32 @lowercase(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
store i32 %0, i32* %3
store i8* %1, i8** %4
store i32 0, i32* %5
br label %6
6: ; preds = %18, %2
%7 = load i32, i32* %5
%8 = load i32, i32* %3
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %21
10: ; preds = %6
%11 = load i8*, i8** %4
%12 = load i32, i32* %5
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, i8* %11, i64 %13
%15 = load i8, i8* %14
%16 = call i32 @tolower(i8 signext %15)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %16)
br label %18
18: ; preds = %10
%19 = load i32, i32* %5
%20 = add nsw i32 %19, 1
store i32 %20, i32* %5
br label %6
21: ; preds = %6
%22 = 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):
define i32 @lowercase(i32 %0, i8* nocapture %1) {
%3 = icmp sgt i32 %0, 0
br i1 %3, label %4, label %14
4: ; preds = %2
%5 = zext i32 %0 to i64
br label %6
6: ; preds = %4, %6
%7 = phi i64 [ 0, %4 ], [ %12, %6 ]
%8 = getelementptr inbounds i8, i8* %1, i64 %7
%9 = load i8, i8* %8
%10 = tail call i32 @tolower(i8 signext %9)
%11 = tail call i32 @putchar(i32 %10)
%12 = add nuw nsw i64 %7, 1
%13 = icmp eq i64 %12, %5
br i1 %13, label %14, label %6
14: ; preds = %6, %2
%15 = tail call i32 @putchar(i32 10)
ret i32 0
}
void color_test(double x, double y, double z, double *r, double *g, double *b) {
  *r = 0.5 + 0.5 * x;
  *g = 0.5 + 0.5 * y;
  *b = 0.5 + 0.5 * z;
}


x86 assembly (clang, -O0):
<color_test>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
mov    %rdi,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
mov    %rdx,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xed4(%rip),%xmm1
mulsd  %xmm1,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x10(%rbp),%xmm0
movsd  0xeb7(%rip),%xmm1
mulsd  %xmm1,%xmm0
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x18(%rbp),%xmm0
movsd  0xe9a(%rip),%xmm1
mulsd  %xmm1,%xmm0
addsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<color_test>:
movsd  0xef8(%rip),%xmm3
mulsd  %xmm3,%xmm0
addsd  %xmm3,%xmm0
movsd  %xmm0,(%rdi)
mulsd  %xmm3,%xmm1
addsd  %xmm3,%xmm1
movsd  %xmm1,(%rsi)
mulsd  %xmm3,%xmm2
addsd  %xmm3,%xmm2
movsd  %xmm2,(%rdx)
ret

LLVM IR (-O0):
define void @color_test(double %0, double %1, double %2, double* %3, double* %4, double* %5) {
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double*
%11 = alloca double*
%12 = alloca double*
store double %0, double* %7
store double %1, double* %8
store double %2, double* %9
store double* %3, double** %10
store double* %4, double** %11
store double* %5, double** %12
%13 = load double, double* %7
%14 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %13, double 5.000000e-01)
%15 = load double*, double** %10
store double %14, double* %15
%16 = load double, double* %8
%17 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %16, double 5.000000e-01)
%18 = load double*, double** %11
store double %17, double* %18
%19 = load double, double* %9
%20 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %19, double 5.000000e-01)
%21 = load double*, double** %12
store double %20, double* %21
ret void
}

LLVM IR (-O2):
define void @color_test(double %0, double %1, double %2, double* nocapture writeonly %3, double* nocapture writeonly %4, double* nocapture writeonly %5) {
%7 = tail call double @llvm.fmuladd.f64(double %0, double 5.000000e-01, double 5.000000e-01)
store double %7, double* %3
%8 = tail call double @llvm.fmuladd.f64(double %1, double 5.000000e-01, double 5.000000e-01)
store double %8, double* %4
%9 = tail call double @llvm.fmuladd.f64(double %2, double 5.000000e-01, double 5.000000e-01)
store double %9, double* %5
ret void
}
int path_037_expected_3(int y) {
  unsigned x = 0;
  do {
    if (1) {
      if (5) {
        x = 0;
      }
    }
  } while (0);
  return x;
}


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

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

LLVM IR (-O0):
define i32 @path_037_expected_3(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
store i32 0, i32* %3
br label %4
4: ; preds = %1
store i32 0, i32* %3
br label %5
5: ; preds = %4
%6 = load i32, i32* %3
ret i32 %6
}

LLVM IR (-O2):
define i32 @path_037_expected_3(i32 %0) {
ret i32 0
}
/* Variables and functions */
int EOF;
int get_char();
void repeat(void) {
  int ch;
  while ((ch = get_char()) != EOF && ch != 050)
    ;
}


x86 assembly (clang, -O0):
<repeat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <get_char@plt>
mov    %eax,%ecx
mov    %ecx,-0x4(%rbp)
xor    %eax,%eax
mov    0x2ebb(%rip),%rdx
cmp    (%rdx),%ecx
mov    %al,-0x5(%rbp)
je     1142 <repeat+0x32>
cmpl   $0x28,-0x4(%rbp)
setne  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
test   $0x1,%al
jne    1152 <repeat+0x42>
jmp    1157 <repeat+0x47>
jmp    1118 <repeat+0x8>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<repeat>:
push   %rbx
mov    0x2ed0(%rip),%rbx
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <get_char@plt>
cmp    $0x28,%eax
je     1130 <repeat+0x20>
cmp    (%rbx),%eax
jne    1120 <repeat+0x10>
pop    %rbx
ret

LLVM IR (-O0):
@EOF = global i32 0
define void @repeat() {
%1 = alloca i32
br label %2
2: ; preds = %11, %0
%3 = call i32 (...) @get_char()
store i32 %3, i32* %1
%4 = load i32, i32* @EOF
%5 = icmp ne i32 %3, %4
br i1 %5, label %6, label %9
6: ; preds = %2
%7 = load i32, i32* %1
%8 = icmp ne i32 %7, 40
br label %9
9: ; preds = %6, %2
%10 = phi i1 [ false, %2 ], [ %8, %6 ]
br i1 %10, label %11, label %12
11: ; preds = %9
br label %2
12: ; preds = %9
ret void
}

LLVM IR (-O2):
@EOF = global i32 0
define void @repeat() {
br label %1
1: ; preds = %1, %0
%2 = tail call i32 (...) @get_char()
%3 = load i32, i32* @EOF
%4 = icmp ne i32 %2, %3
%5 = icmp ne i32 %2, 40
%6 = and i1 %5, %4
br i1 %6, label %1, label %7
7: ; preds = %1
ret void
}
long pv__calc_eta(const long long so_far, const long long total,
                  const long elapsed) {
  long long amount_left;
  if (so_far < 1)
    return 0;
  amount_left = total - so_far;
  amount_left *= (long long)elapsed;
  amount_left /= so_far;
  return (long)amount_left;
}


x86 assembly (clang, -O0):
<pv__calc_eta>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
cmpq   $0x1,-0x10(%rbp)
jge    1128 <pv__calc_eta+0x28>
movq   $0x0,-0x8(%rbp)
jmp    115a <pv__calc_eta+0x5a>
mov    -0x18(%rbp),%rax
sub    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rax
imul   -0x28(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rcx
mov    -0x28(%rbp),%rax
cqto
idiv   %rcx
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<pv__calc_eta>:
test   %rdi,%rdi
jle    1121 <pv__calc_eta+0x21>
sub    %rdi,%rsi
imul   %rdx,%rsi
mov    %rsi,%rax
or     %rdi,%rax
shr    $0x20,%rax
je     1124 <pv__calc_eta+0x24>
mov    %rsi,%rax
cqto
idiv   %rdi
ret
xor    %eax,%eax
ret
mov    %esi,%eax
xor    %edx,%edx
div    %edi
ret

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

LLVM IR (-O2):
define i64 @pv__calc_eta(i64 %0, i64 %1, i64 %2) {
%4 = icmp slt i64 %0, 1
br i1 %4, label %9, label %5
5: ; preds = %3
%6 = sub nsw i64 %1, %0
%7 = mul nsw i64 %6, %2
%8 = sdiv i64 %7, %0
br label %9
9: ; preds = %3, %5
%10 = phi i64 [ %8, %5 ], [ 0, %3 ]
ret i64 %10
}
void RTSemXRoadsEWLeave(void) {}


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

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

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

LLVM IR (-O2):
define void @RTSemXRoadsEWLeave() {
ret void
}
double squareRoot(double num) {
  double error = 0.0000001;
  double x = num;
  while ((x - num / x) > error) {
    x = (x + num / x) / 2;
  }
  return x;
}


x86 assembly (clang, -O0):
<squareRoot>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  0xeef(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm1
divsd  -0x18(%rbp),%xmm1
subsd  %xmm1,%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    1167 <squareRoot+0x67>
movsd  -0x18(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm1
divsd  -0x18(%rbp),%xmm1
addsd  %xmm1,%xmm0
movsd  0xeaf(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    1120 <squareRoot+0x20>
movsd  -0x18(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<squareRoot>:
movapd %xmm0,%xmm2
divsd  %xmm0,%xmm2
movapd %xmm0,%xmm1
subsd  %xmm2,%xmm1
ucomisd 0xee8(%rip),%xmm1
jbe    1152 <squareRoot+0x52>
movsd  0xee6(%rip),%xmm3
movsd  0xed6(%rip),%xmm4
movapd %xmm0,%xmm1
xchg   %ax,%ax
addsd  %xmm2,%xmm1
mulsd  %xmm3,%xmm1
movapd %xmm0,%xmm2
divsd  %xmm1,%xmm2
movapd %xmm1,%xmm5
subsd  %xmm2,%xmm5
ucomisd %xmm4,%xmm5
ja     1130 <squareRoot+0x30>
movapd %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @squareRoot(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
store double %0, double* %2
store double 0x3E7AD7F29ABCAF48, double* %3
%5 = load double, double* %2
store double %5, double* %4
br label %6
6: ; preds = %14, %1
%7 = load double, double* %4
%8 = load double, double* %2
%9 = load double, double* %4
%10 = fdiv double %8, %9
%11 = fsub double %7, %10
%12 = load double, double* %3
%13 = fcmp ogt double %11, %12
br i1 %13, label %14, label %21
14: ; preds = %6
%15 = load double, double* %4
%16 = load double, double* %2
%17 = load double, double* %4
%18 = fdiv double %16, %17
%19 = fadd double %15, %18
%20 = fdiv double %19, 2.000000e+00
store double %20, double* %4
br label %6
21: ; preds = %6
%22 = load double, double* %4
ret double %22
}

LLVM IR (-O2):
define double @squareRoot(double %0) {
%2 = fdiv double %0, %0
%3 = fsub double %0, %2
%4 = fcmp ogt double %3, 0x3E7AD7F29ABCAF48
br i1 %4, label %5, label %13
5: ; preds = %1, %5
%6 = phi double [ %10, %5 ], [ %2, %1 ]
%7 = phi double [ %9, %5 ], [ %0, %1 ]
%8 = fadd double %7, %6
%9 = fmul double %8, 5.000000e-01
%10 = fdiv double %0, %9
%11 = fsub double %9, %10
%12 = fcmp ogt double %11, 0x3E7AD7F29ABCAF48
br i1 %12, label %5, label %13
13: ; preds = %5, %1
%14 = phi double [ %0, %1 ], [ %9, %5 ]
ret double %14
}
/* Variables and functions */
long getRegisterConstant64(int);
long getRegisterConstant(int gpr) { return getRegisterConstant64(gpr); }


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

x86 assembly (clang, -O2):
<getRegisterConstant>:
jmp    1030 <getRegisterConstant64@plt>

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

LLVM IR (-O2):
define i64 @getRegisterConstant(i32 %0) {
%2 = tail call i64 @getRegisterConstant64(i32 %0)
ret i64 %2
}
void LCD_Char_1_RestoreConfig(void) {}


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

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

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

LLVM IR (-O2):
define void @LCD_Char_1_RestoreConfig() {
ret void
}
unsigned lstrlenA(LPCSTR) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @lstrlenA(i32 %0) {
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ sigset_t;

/* Variables and functions */
int _NSIG;
int syscall(int, unsigned int, unsigned int, unsigned int, unsigned int,
            int /*<<< orphan*/ *, int);
int io_uring_enter(unsigned fd, unsigned to_submit, unsigned min_complete,
                   unsigned flags, sigset_t *sig) {
  return syscall(426, fd, to_submit, min_complete, flags, sig, _NSIG / 8);
}


x86 assembly (clang, -O0):
<io_uring_enter>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8,-0x18(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0xc(%rbp),%ecx
mov    -0x10(%rbp),%r8d
mov    -0x18(%rbp),%r9
mov    0x2ead(%rip),%rax
mov    (%rax),%eax
mov    $0x8,%edi
cltd
idiv   %edi
mov    -0x1c(%rbp),%edx
mov    $0x1aa,%edi
mov    %eax,(%rsp)
call   1030 <syscall@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<io_uring_enter>:
push   %rax
mov    %r8,%r9
mov    %ecx,%r8d
mov    %edx,%ecx
mov    %esi,%edx
mov    %edi,%esi
mov    0x2ecc(%rip),%rax
mov    (%rax),%eax
lea    0x7(%rax),%edi
test   %eax,%eax
cmovns %eax,%edi
sar    $0x3,%edi
mov    %edi,(%rsp)
mov    $0x1aa,%edi
call   1030 <syscall@plt>
pop    %rcx
ret

LLVM IR (-O0):
@_NSIG = global i32 0
define i32 @io_uring_enter(i32 %0, i32 %1, i32 %2, i32 %3, i32* %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32*
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32* %4, i32** %10
%11 = load i32, i32* %6
%12 = load i32, i32* %7
%13 = load i32, i32* %8
%14 = load i32, i32* %9
%15 = load i32*, i32** %10
%16 = load i32, i32* @_NSIG
%17 = sdiv i32 %16, 8
%18 = call i32 @syscall(i32 426, i32 %11, i32 %12, i32 %13, i32 %14, i32* %15, i32 %17)
ret i32 %18
}

LLVM IR (-O2):
@_NSIG = global i32 0
define i32 @io_uring_enter(i32 %0, i32 %1, i32 %2, i32 %3, i32* %4) {
%6 = load i32, i32* @_NSIG
%7 = sdiv i32 %6, 8
%8 = tail call i32 @syscall(i32 426, i32 %0, i32 %1, i32 %2, i32 %3, i32* %4, i32 %7)
ret i32 %8
}
/* Variables and functions */
scalar_t__ daemon(int, int);
int /*<<< orphan*/ initializate(int, char **);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ server_loop();
int main(int argc, char **argv) {
  initializate(argc, argv);
  if (daemon(1, 1)) {
    perror("daemon");
    return 1;
  }
  server_loop();
  return 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)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <initializate@plt>
mov    $0x1,%esi
mov    %esi,%edi
call   1050 <daemon@plt>
cmp    $0x0,%rax
je     1190 <main+0x50>
lea    0xe81(%rip),%rdi
call   1060 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    119e <main+0x5e>
mov    $0x0,%al
call   1040 <server_loop@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
call   1030 <initializate@plt>
mov    $0x1,%ebx
mov    $0x1,%edi
mov    $0x1,%esi
call   1050 <daemon@plt>
test   %rax,%rax
jne    116c <main+0x2c>
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <server_loop@plt>
mov    %ebx,%eax
pop    %rbx
ret
lea    0xe8d(%rip),%rdi
call   1060 <perror@plt>
jmp    1168 <main+0x28>

LLVM IR (-O0):
@.str = [7 x i8] c"daemon\00"
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 = load i32, i32* %4
%7 = load i8**, i8*** %5
%8 = call i32 @initializate(i32 %6, i8** %7)
%9 = call i64 @daemon(i32 1, i32 1)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %3
br label %15
13: ; preds = %2
%14 = call i32 (...) @server_loop()
store i32 0, i32* %3
br label %15
15: ; preds = %13, %11
%16 = load i32, i32* %3
ret i32 %16
}

LLVM IR (-O2):
@.str = [7 x i8] c"daemon\00"
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 @initializate(i32 %0, i8** %1)
%4 = tail call i64 @daemon(i32 1, i32 1)
%5 = icmp eq i64 %4, 0
br i1 %5, label %8, label %6
6: ; preds = %2
%7 = tail call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
br label %10
8: ; preds = %2
%9 = tail call i32 (...) @server_loop()
br label %10
10: ; preds = %8, %6
%11 = phi i32 [ 1, %6 ], [ 0, %8 ]
ret i32 %11
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
char *malloc(int);
void test_malloc() {
  char *x = malloc(1);
  *x = 42;
  free(x);
}


x86 assembly (clang, -O0):
<test_malloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x1,%edi
call   1040 <malloc@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movb   $0x2a,(%rax)
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_malloc>:
push   %rax
mov    $0x1,%edi
call   1040 <malloc@plt>
movb   $0x2a,(%rax)
mov    %rax,%rdi
pop    %rax
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @test_malloc() {
%1 = alloca i8*
%2 = call i8* @malloc(i32 1)
store i8* %2, i8** %1
%3 = load i8*, i8** %1
store i8 42, i8* %3
%4 = load i8*, i8** %1
%5 = call i32 @free(i8* %4)
ret void
}

LLVM IR (-O2):
define void @test_malloc() {
%1 = tail call dereferenceable_or_null(1) i8* @malloc(i32 1)
store i8 42, i8* %1
%2 = tail call i32 @free(i8* %1)
ret void
}
__attribute__((always_)) void kmemcheck_free_shadow(struct page *page,
                                                    int order) {}


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

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

LLVM IR (-O0):
%struct.page = type opaque
define void @kmemcheck_free_shadow(%struct.page* %0, i32 %1) {
%3 = alloca %struct.page*
%4 = alloca i32
store %struct.page* %0, %struct.page** %3
store i32 %1, i32* %4
ret void
}

LLVM IR (-O2):
%struct.page = type opaque
define void @kmemcheck_free_shadow(%struct.page* nocapture %0, i32 %1) {
ret void
}
void CreNumFromBuf(n, buf) int *n;
char *buf;
{
  int i;
  *n = 0;
  i = 0;
  while (buf[i] != '\0') {
    *n = (((*n) * 10) + buf[i] - '0');
    i++;
  }
}


x86 assembly (clang, -O0):
<CreNumFromBuf>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movl   $0x0,(%rax)
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     115e <CreNumFromBuf+0x5e>
mov    -0x8(%rbp),%rax
imul   $0xa,(%rax),%ecx
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rdx
movsbl (%rax,%rdx,1),%eax
add    %eax,%ecx
sub    $0x30,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    111d <CreNumFromBuf+0x1d>
pop    %rbp
ret

x86 assembly (clang, -O2):
<CreNumFromBuf>:
movl   $0x0,(%rdi)
mov    (%rsi),%al
test   %al,%al
je     1139 <CreNumFromBuf+0x39>
add    $0x1,%rsi
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsbl %al,%eax
lea    (%rcx,%rcx,4),%ecx
lea    (%rax,%rcx,2),%ecx
add    $0xffffffd0,%ecx
mov    %ecx,(%rdi)
movzbl (%rsi),%eax
add    $0x1,%rsi
test   %al,%al
jne    1120 <CreNumFromBuf+0x20>
ret

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

LLVM IR (-O2):
define void @CreNumFromBuf(i32* nocapture %0, i8* nocapture %1) {
store i32 0, i32* %0
%3 = load i8, i8* %1
%4 = icmp eq i8 %3, 0
br i1 %4, label %17, label %5
5: ; preds = %2, %5
%6 = phi i32 [ %12, %5 ], [ 0, %2 ]
%7 = phi i64 [ %13, %5 ], [ 0, %2 ]
%8 = phi i8 [ %15, %5 ], [ %3, %2 ]
%9 = sext i8 %8 to i32
%10 = mul nsw i32 %6, 10
%11 = add nsw i32 %9, -48
%12 = add i32 %11, %10
store i32 %12, i32* %0
%13 = add nuw nsw i64 %7, 1
%14 = getelementptr inbounds i8, i8* %1, i64 %13
%15 = load i8, i8* %14
%16 = icmp eq i8 %15, 0
br i1 %16, label %17, label %5
17: ; preds = %5, %2
ret void
}
int wpas_dbus_unregister_iface(struct wpa_supplicant *wpa_s) { return 0; }


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

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

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

LLVM IR (-O2):
%struct.wpa_supplicant = type opaque
define i32 @wpas_dbus_unregister_iface(%struct.wpa_supplicant* nocapture readnone %0) {
ret i32 0
}
/* Type definitions */
struct sshbuf {
  int dummy;
};
struct ssh_digest_ctx {
  int dummy;
};

/* Variables and functions */
int ssh_digest_update(struct ssh_digest_ctx *, int /*<<< orphan*/,
                      int /*<<< orphan*/);
int /*<<< orphan*/ sshbuf_len(struct sshbuf const *);
int /*<<< orphan*/ sshbuf_ptr(struct sshbuf const *);
int ssh_digest_update_buffer(struct ssh_digest_ctx *ctx,
                             const struct sshbuf *b) {
  return ssh_digest_update(ctx, sshbuf_ptr(b), sshbuf_len(b));
}


x86 assembly (clang, -O0):
<ssh_digest_update_buffer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <sshbuf_ptr@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <sshbuf_len@plt>
mov    -0x20(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    %eax,%edx
call   1050 <ssh_digest_update@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ssh_digest_update_buffer>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
call   1040 <sshbuf_ptr@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1030 <sshbuf_len@plt>
mov    %r14,%rdi
mov    %ebp,%esi
mov    %eax,%edx
pop    %rbx
pop    %r14
pop    %rbp
jmp    1050 <ssh_digest_update@plt>

LLVM IR (-O0):
%struct.ssh_digest_ctx = type { i32 }
%struct.sshbuf = type { i32 }
define i32 @ssh_digest_update_buffer(%struct.ssh_digest_ctx* %0, %struct.sshbuf* %1) {
%3 = alloca %struct.ssh_digest_ctx*
%4 = alloca %struct.sshbuf*
store %struct.ssh_digest_ctx* %0, %struct.ssh_digest_ctx** %3
store %struct.sshbuf* %1, %struct.sshbuf** %4
%5 = load %struct.ssh_digest_ctx*, %struct.ssh_digest_ctx** %3
%6 = load %struct.sshbuf*, %struct.sshbuf** %4
%7 = call i32 @sshbuf_ptr(%struct.sshbuf* %6)
%8 = load %struct.sshbuf*, %struct.sshbuf** %4
%9 = call i32 @sshbuf_len(%struct.sshbuf* %8)
%10 = call i32 @ssh_digest_update(%struct.ssh_digest_ctx* %5, i32 %7, i32 %9)
ret i32 %10
}

LLVM IR (-O2):
%struct.ssh_digest_ctx = type { i32 }
%struct.sshbuf = type { i32 }
define i32 @ssh_digest_update_buffer(%struct.ssh_digest_ctx* %0, %struct.sshbuf* %1) {
%3 = tail call i32 @sshbuf_ptr(%struct.sshbuf* %1)
%4 = tail call i32 @sshbuf_len(%struct.sshbuf* %1)
%5 = tail call i32 @ssh_digest_update(%struct.ssh_digest_ctx* %0, i32 %3, i32 %4)
ret i32 %5
}
int jd2tsi(dj)
double dj;
{
  double ts;
  ts = (dj - 2444239.5) * 86400.0;
  return ((int)ts);
}


x86 assembly (clang, -O0):
<jd2tsi>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xef2(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xede(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
cvttsd2si -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<jd2tsi>:
addsd  0xef8(%rip),%xmm0
mulsd  0xef8(%rip),%xmm0
cvttsd2si %xmm0,%eax
ret

LLVM IR (-O0):
define i32 @jd2tsi(double %0) {
%2 = alloca double
%3 = alloca double
store double %0, double* %2
%4 = load double, double* %2
%5 = fsub double %4, 0x4142A5E7C0000000
%6 = fmul double %5, 8.640000e+04
store double %6, double* %3
%7 = load double, double* %3
%8 = fptosi double %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @jd2tsi(double %0) {
%2 = fadd double %0, 0xC142A5E7C0000000
%3 = fmul double %2, 8.640000e+04
%4 = fptosi double %3 to i32
ret i32 %4
}
/* Type definitions */
struct skiplist_item {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct skiplist_item *);
void _give_back_skiplist_item(struct skiplist_item *item) {
  if (NULL != item) {
    free(item);
  }
}


x86 assembly (clang, -O0):
<_give_back_skiplist_item>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
xor    %eax,%eax
cmp    -0x8(%rbp),%rax
je     1131 <_give_back_skiplist_item+0x21>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_give_back_skiplist_item>:
test   %rdi,%rdi
je     111a <_give_back_skiplist_item+0xa>
jmp    1030 <free@plt>
ret

LLVM IR (-O0):
%struct.skiplist_item = type { i32 }
define void @_give_back_skiplist_item(%struct.skiplist_item* %0) {
%2 = alloca %struct.skiplist_item*
store %struct.skiplist_item* %0, %struct.skiplist_item** %2
%3 = load %struct.skiplist_item*, %struct.skiplist_item** %2
%4 = icmp ne %struct.skiplist_item* null, %3
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load %struct.skiplist_item*, %struct.skiplist_item** %2
%7 = call i32 @free(%struct.skiplist_item* %6)
br label %8
8: ; preds = %5, %1
ret void
}

LLVM IR (-O2):
%struct.skiplist_item = type { i32 }
define void @_give_back_skiplist_item(%struct.skiplist_item* %0) {
%2 = icmp eq %struct.skiplist_item* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @free(%struct.skiplist_item* %0)
br label %5
5: ; preds = %3, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fftss_plan_with_nthreads(int);
void FFTSS_PLAN_WITH_NTHREADS(int *nthreads) {
  fftss_plan_with_nthreads(*nthreads);
}


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

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

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

LLVM IR (-O2):
define void @FFTSS_PLAN_WITH_NTHREADS(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = tail call i32 @fftss_plan_with_nthreads(i32 %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ __coverity_sleep__();
void cpu_relax(void) { __coverity_sleep__(); }


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

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

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

LLVM IR (-O2):
define void @cpu_relax() {
%1 = tail call i32 (...) @__coverity_sleep__()
ret void
}
/* Type definitions */
typedef int uint16_t;
struct buffer {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ put8(struct buffer *, int);
void put16be(struct buffer *input, uint16_t val) {
  put8(input, val >> 8);
  put8(input, val);
}


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

x86 assembly (clang, -O2):
<put16be>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
sar    $0x8,%esi
call   1030 <put8@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <put8@plt>

LLVM IR (-O0):
%struct.buffer = type { i32 }
define void @put16be(%struct.buffer* %0, i32 %1) {
%3 = alloca %struct.buffer*
%4 = alloca i32
store %struct.buffer* %0, %struct.buffer** %3
store i32 %1, i32* %4
%5 = load %struct.buffer*, %struct.buffer** %3
%6 = load i32, i32* %4
%7 = ashr i32 %6, 8
%8 = call i32 @put8(%struct.buffer* %5, i32 %7)
%9 = load %struct.buffer*, %struct.buffer** %3
%10 = load i32, i32* %4
%11 = call i32 @put8(%struct.buffer* %9, i32 %10)
ret void
}

LLVM IR (-O2):
%struct.buffer = type { i32 }
define void @put16be(%struct.buffer* %0, i32 %1) {
%3 = ashr i32 %1, 8
%4 = tail call i32 @put8(%struct.buffer* %0, i32 %3)
%5 = tail call i32 @put8(%struct.buffer* %0, i32 %1)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *);
int /*<<< orphan*/ time_str(int, char *);
void greeting(FILE *outFile) {
  char time[256];
  time_str(256, time);
  fprintf(outFile,
          "Thanks to SQ - XQuantum\n"
          "Begin: %s\n",
          time);
}


x86 assembly (clang, -O0):
<greeting>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x110(%rbp),%rsi
mov    $0x100,%edi
call   1030 <time_str@plt>
mov    -0x8(%rbp),%rdi
lea    -0x110(%rbp),%rdx
lea    0xeae(%rip),%rsi
call   1040 <fprintf@plt>
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<greeting>:
push   %r14
push   %rbx
sub    $0x108,%rsp
mov    %rdi,%rbx
mov    %rsp,%r14
mov    $0x100,%edi
mov    %r14,%rsi
call   1030 <time_str@plt>
lea    0xebc(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
call   1040 <fprintf@plt>
add    $0x108,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [35 x i8] c"Thanks to SQ - XQuantum\0ABegin: %s\0A\00"
define void @greeting(i32* %0) {
%2 = alloca i32*
%3 = alloca [256 x i8]
store i32* %0, i32** %2
%4 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%5 = call i32 @time_str(i32 256, i8* %4)
%6 = load i32*, i32** %2
%7 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%8 = call i32 @fprintf(i32* %6, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i8* %7)
ret void
}

LLVM IR (-O2):
@.str = [35 x i8] c"Thanks to SQ - XQuantum\0ABegin: %s\0A\00"
define void @greeting(i32* nocapture %0) {
%2 = alloca [256 x i8]
%3 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%4 = call i32 @time_str(i32 256, i8* %3)
%5 = call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i8* %3)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
void gotorc(int r, int c) { printf("\x1b[%d;%dH", r + 1, c + 1); }


x86 assembly (clang, -O0):
<gotorc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%esi
add    $0x1,%esi
mov    -0x8(%rbp),%edx
add    $0x1,%edx
lea    0xecf(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gotorc>:
lea    0x1(%rdi),%eax
lea    0x1(%rsi),%edx
lea    0xee3(%rip),%rdi
mov    %eax,%esi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"\1B[%d;%dH\00"
define void @gotorc(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 nsw i32 %5, 1
%7 = load i32, i32* %4
%8 = add nsw i32 %7, 1
%9 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %6, i32 %8)
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"\1B[%d;%dH\00"
define void @gotorc(i32 %0, i32 %1) {
%3 = add nsw i32 %0, 1
%4 = add nsw i32 %1, 1
%5 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %3, i32 %4)
ret void
}
void ConsoleDisableInterrupt() {}


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

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

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

LLVM IR (-O2):
define void @ConsoleDisableInterrupt() {
ret void
}
int main(int argc, const char *argv[]) {
  struct my_struct {
    int a;
    float b;
    int c;
    struct {
      int e;
      float f;
      double g;
      struct {
        float i;
      } h;
      int j;
    } d;
  } y;
  struct my_struct x = {.a = 1,
                        .b = 1.3,
                        .c = 12,
                        .d.e = 100,
                        .d.f = 1.45,
                        .d.g = 45.85,
                        .d.h.i = 148963,
                        .d.j = 1578};
  y = x;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x60(%rbp),%rdi
lea    0xecf(%rip),%rsi
mov    $0x28,%edx
call   1030 <memcpy@plt>
lea    -0x38(%rbp),%rdi
lea    -0x60(%rbp),%rsi
mov    $0x28,%edx
call   1030 <memcpy@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.my_struct = type { i32, float, i32, %struct.anon }
%struct.anon = type { i32, float, double, %struct.anon.0, i32 }
%struct.anon.0 = type { float }
@__const.main.x = %struct.my_struct { i32 1, float 0x3FF4CCCCC0000000, i32 12, %struct.anon { i32 100, float 0x3FF7333340000000, double 4.585000e+01, %struct.anon.0 { float 1.489630e+05 }, i32 1578 } }
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.my_struct
%7 = alloca %struct.my_struct
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = bitcast %struct.my_struct* %7 to i8*
%9 = bitcast %struct.my_struct* %6 to i8*
%10 = bitcast %struct.my_struct* %7 to i8*
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ s2pt1(float, float, float, int);
void s2pt1_(float *x, float *y, float *z, int *symbol) {
  s2pt1(*x, *y, *z, *symbol);
}


x86 assembly (clang, -O0):
<s2pt1_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm1
mov    -0x18(%rbp),%rax
movss  (%rax),%xmm2
mov    -0x20(%rbp),%rax
mov    (%rax),%edi
call   1030 <s2pt1@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<s2pt1_>:
movss  (%rdi),%xmm0
movss  (%rsi),%xmm1
movss  (%rdx),%xmm2
mov    (%rcx),%edi
jmp    1030 <s2pt1@plt>

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

LLVM IR (-O2):
define void @s2pt1_(float* nocapture %0, float* nocapture %1, float* nocapture %2, i32* nocapture %3) {
%5 = load float, float* %0
%6 = load float, float* %1
%7 = load float, float* %2
%8 = load i32, i32* %3
%9 = tail call i32 @s2pt1(float %5, float %6, float %7, i32 %8)
ret void
}
void SdaIn(void) {}


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

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

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

LLVM IR (-O2):
define void @SdaIn() {
ret void
}
/* Variables and functions */
char *getenv(char const *);
scalar_t__ strtol(char *, char **, int /*<<< orphan*/);
void get_env_int(const char *name, int *val, int defaultVal) {
  char *str;
  str = getenv(name);
  if (str)
    *val = (int)strtol(str, (char **)NULL, 0);
  else
    *val = defaultVal;
}


x86 assembly (clang, -O0):
<get_env_int>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     1167 <get_env_int+0x47>
mov    -0x20(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   1040 <strtol@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
jmp    1170 <get_env_int+0x50>
mov    -0x14(%rbp),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_env_int>:
push   %r14
push   %rbx
push   %rax
mov    %edx,%ebx
mov    %rsi,%r14
call   1030 <getenv@plt>
test   %rax,%rax
je     1142 <get_env_int+0x22>
mov    %rax,%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1040 <strtol@plt>
mov    %rax,%rbx
mov    %ebx,(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define void @get_env_int(i8* nocapture %0, i32* nocapture writeonly %1, i32 %2) {
%4 = tail call i8* @getenv(i8* %0)
%5 = icmp eq i8* %4, null
br i1 %5, label %9, label %6
6: ; preds = %3
%7 = tail call i64 @strtol(i8* nocapture %4, i8** null, i32 0)
%8 = trunc i64 %7 to i32
br label %9
9: ; preds = %3, %6
%10 = phi i32 [ %8, %6 ], [ %2, %3 ]
store i32 %10, i32* %1
ret void
}
/* Type definitions */
struct graph {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ unhide(struct graph *, int);
void unhide3(struct graph *g, int a, int b, int c) {
  unhide(g, a);
  unhide(g, b);
  unhide(g, c);
}


x86 assembly (clang, -O0):
<unhide3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1030 <unhide@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%esi
call   1030 <unhide@plt>
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1030 <unhide@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<unhide3>:
push   %rbp
push   %r14
push   %rbx
mov    %ecx,%r14d
mov    %edx,%ebp
mov    %rdi,%rbx
call   1030 <unhide@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
call   1030 <unhide@plt>
mov    %rbx,%rdi
mov    %r14d,%esi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <unhide@plt>

LLVM IR (-O0):
%struct.graph = type { i32 }
define void @unhide3(%struct.graph* %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca %struct.graph*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store %struct.graph* %0, %struct.graph** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load %struct.graph*, %struct.graph** %5
%10 = load i32, i32* %6
%11 = call i32 @unhide(%struct.graph* %9, i32 %10)
%12 = load %struct.graph*, %struct.graph** %5
%13 = load i32, i32* %7
%14 = call i32 @unhide(%struct.graph* %12, i32 %13)
%15 = load %struct.graph*, %struct.graph** %5
%16 = load i32, i32* %8
%17 = call i32 @unhide(%struct.graph* %15, i32 %16)
ret void
}

LLVM IR (-O2):
%struct.graph = type { i32 }
define void @unhide3(%struct.graph* %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i32 @unhide(%struct.graph* %0, i32 %1)
%6 = tail call i32 @unhide(%struct.graph* %0, i32 %2)
%7 = tail call i32 @unhide(%struct.graph* %0, i32 %3)
ret void
}