xunge/DecIR huggingface dataset:
int strlens(char s[]) {
  int i;
  i = 0;
  while (s[i] != '\0')
    ++i;
  return i;
}


x86 assembly (clang, -O0):
<strlens>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     1132 <strlens+0x32>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <strlens+0xf>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @strlens(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
store i32 0, i32* %3
br label %4
4: ; preds = %12, %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 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %4
%13 = load i32, i32* %3
%14 = add nsw i32 %13, 1
store i32 %14, i32* %3
br label %4
15: ; preds = %4
%16 = load i32, i32* %3
ret i32 %16
}

LLVM IR (-O2):
define i32 @strlens(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, 0
%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 */
bool nrf52_errata_248(void) { return false; }


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ free(int /*<<< orphan*/ *);
void free_XPointerMovedEvent(void *_p) {
  if (_p == NULL)
    abort();
  free((XPointerMovedEvent *)_p);
}


x86 assembly (clang, -O0):
<free_XPointerMovedEvent>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    113e <free_XPointerMovedEvent+0x1e>
mov    $0x0,%al
call   1040 <abort@plt>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<free_XPointerMovedEvent>:
test   %rdi,%rdi
je     112a <free_XPointerMovedEvent+0xa>
jmp    1030 <free@plt>
push   %rax
xor    %eax,%eax
call   1040 <abort@plt>

LLVM IR (-O0):
define void @free_XPointerMovedEvent(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 (...) @abort()
unreachable
7: ; preds = %1
%8 = load i8*, i8** %2
%9 = bitcast i8* %8 to i32*
%10 = call i32 @free(i32* %9)
ret void
}

LLVM IR (-O2):
define void @free_XPointerMovedEvent(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = tail call i32 (...) @abort()
unreachable
5: ; preds = %1
%6 = bitcast i8* %0 to i32*
%7 = tail call i32 @free(i32* %6)
ret void
}
int shrfunc2(int x) { return x * 100; }


x86 assembly (clang, -O0):
<shrfunc2>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
imul   $0x64,-0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<shrfunc2>:
imul   $0x64,%edi,%eax
ret

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

LLVM IR (-O2):
define i32 @shrfunc2(i32 %0) {
%2 = mul nsw i32 %0, 100
ret i32 %2
}
float int_float_overflow(unsigned __int128 n) { return n; }


x86 assembly (clang, -O0):
<int_float_overflow>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x8(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%rcx
mov    %rcx,-0x18(%rbp)
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1140 <__floatuntisf>
add    $0x20,%rsp
pop    %rbp
ret
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)

x86 assembly (clang, -O2):
<int_float_overflow>:
push   %rax
call   1110 <__floatuntisf>
pop    %rax
ret
nopl   0x0(%rax,%rax,1)

LLVM IR (-O0):
define float @int_float_overflow(i64 %0, i64 %1) {
%3 = alloca i128
%4 = alloca i128
%5 = bitcast i128* %3 to { i64, i64 }*
%6 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %5, i32 0, i32 0
store i64 %0, i64* %6
%7 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %5, i32 0, i32 1
store i64 %1, i64* %7
%8 = load i128, i128* %3
store i128 %8, i128* %4
%9 = load i128, i128* %4
%10 = uitofp i128 %9 to float
ret float %10
}

LLVM IR (-O2):
define float @int_float_overflow(i64 %0, i64 %1) {
%3 = zext i64 %1 to i128
%4 = shl nuw i128 %3, 64
%5 = zext i64 %0 to i128
%6 = or i128 %4, %5
%7 = uitofp i128 %6 to float
ret float %7
}
void _fpreset(void) { __asm__("fninit"); }


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

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

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

LLVM IR (-O2):
define void @_fpreset() {
tail call void asm sideeffect "fninit", "~{dirflag},~{fpsr},~{flags}"()
ret void
}
/* Variables and functions */
int min(int, int);
int smallest_bit(int a, int b, int c) { return min(a, min(b, c)); }


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

x86 assembly (clang, -O2):
<smallest_bit>:
push   %rbx
mov    %edi,%ebx
mov    %esi,%edi
mov    %edx,%esi
call   1030 <min@plt>
mov    %ebx,%edi
mov    %eax,%esi
pop    %rbx
jmp    1030 <min@plt>

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

LLVM IR (-O2):
define i32 @smallest_bit(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @min(i32 %1, i32 %2)
%5 = tail call i32 @min(i32 %0, i32 %4)
ret i32 %5
}
int muggle_socket_lib_init() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @muggle_socket_lib_init() {
ret i32 0
}
/* Type definitions */
typedef scalar_t__ uint32_t;

/* Variables and functions */
uint32_t multimap_maxU32(uint32_t a, uint32_t b) { return a > b ? a : b; }


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

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

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

LLVM IR (-O2):
define i64 @multimap_maxU32(i64 %0, i64 %1) {
%3 = icmp sgt i64 %0, %1
%4 = select i1 %3, i64 %0, i64 %1
ret i64 %4
}
int fun700() { return 700; }


x86 assembly (clang, -O0):
push   %rbp
mov    %rsp,%rbp
mov    $0x2bc,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
mov    $0x2bc,%eax
ret

LLVM IR (-O0):
define i32 @fun700() {
ret i32 700
}

LLVM IR (-O2):
define i32 @fun700() {
ret i32 700
}
/* Variables and functions */
float atof(char *);
int numcmp(char *s1, char *s2) {
  float n1 = atof(s1);
  float n2 = atof(s2);
  if (n1 < n2) {
    return -1;
  } else if (n1 > n2) {
    return 1;
  } else {
    return 0;
  }
}


x86 assembly (clang, -O0):
<numcmp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <atof@plt>
movss  %xmm0,-0x1c(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <atof@plt>
movss  %xmm0,-0x20(%rbp)
movss  -0x1c(%rbp),%xmm1
movss  -0x20(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    115b <numcmp+0x4b>
movl   $0xffffffff,-0x4(%rbp)
jmp    117d <numcmp+0x6d>
movss  -0x1c(%rbp),%xmm0
ucomiss -0x20(%rbp),%xmm0
jbe    1176 <numcmp+0x66>
movl   $0x1,-0x4(%rbp)
jmp    117d <numcmp+0x6d>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<numcmp>:
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%rbx
call   1030 <atof@plt>
movss  %xmm0,0xc(%rsp)
mov    %rbx,%rdi
call   1030 <atof@plt>
xor    %ecx,%ecx
movss  0xc(%rsp),%xmm1
ucomiss %xmm0,%xmm1
seta   %cl
ucomiss %xmm1,%xmm0
mov    $0xffffffff,%eax
cmovbe %ecx,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @numcmp(i8* %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca float
%7 = alloca float
store i8* %0, i8** %4
store i8* %1, i8** %5
%8 = load i8*, i8** %4
%9 = call float @atof(i8* %8)
store float %9, float* %6
%10 = load i8*, i8** %5
%11 = call float @atof(i8* %10)
store float %11, float* %7
%12 = load float, float* %6
%13 = load float, float* %7
%14 = fcmp olt float %12, %13
br i1 %14, label %15, label %16
15: ; preds = %2
store i32 -1, i32* %3
br label %22
16: ; preds = %2
%17 = load float, float* %6
%18 = load float, float* %7
%19 = fcmp ogt float %17, %18
br i1 %19, label %20, label %21
20: ; preds = %16
store i32 1, i32* %3
br label %22
21: ; preds = %16
store i32 0, i32* %3
br label %22
22: ; preds = %21, %20, %15
%23 = load i32, i32* %3
ret i32 %23
}

LLVM IR (-O2):
define i32 @numcmp(i8* nocapture %0, i8* nocapture %1) {
%3 = tail call float @atof(i8* %0)
%4 = tail call float @atof(i8* %1)
%5 = fcmp olt float %3, %4
%6 = fcmp ogt float %3, %4
%7 = zext i1 %6 to i32
%8 = select i1 %5, i32 -1, i32 %7
ret i32 %8
}
/* Type definitions */
typedef scalar_t__ uint16_t;

/* Variables and functions */
int genBitCount_uint16_t(uint16_t v) {
  unsigned c;
  for (c = 0; v; c++)
    v &= v - 1;
  return c;
}


x86 assembly (clang, -O0):
<genBitCount_uint16_t>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1138 <genBitCount_uint16_t+0x38>
mov    -0x8(%rbp),%rax
sub    $0x1,%rax
and    -0x8(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <genBitCount_uint16_t+0xf>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @genBitCount_uint16_t(i64 %0) {
%2 = icmp eq i64 %0, 0
br i1 %2, label %10, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %8, %3 ], [ 0, %1 ]
%5 = phi i64 [ %7, %3 ], [ %0, %1 ]
%6 = add nsw i64 %5, -1
%7 = and i64 %6, %5
%8 = add i32 %4, 1
%9 = icmp eq i64 %7, 0
br i1 %9, label %10, label %3
10: ; preds = %3, %1
%11 = phi i32 [ 0, %1 ], [ %8, %3 ]
ret i32 %11
}
/* Variables and functions */
int /*<<< orphan*/ wFree(char *);
int /*<<< orphan*/ wNotYet(char *);
char *wPopString();
int /*<<< orphan*/ wPushStringCopy(char *);
void wBasReplaceSubStr() {
  char *source, *replace, *with;
  with = wPopString();
  replace = wPopString();
  source = wPopString();
  wNotYet("ReplaceSubStr");
  wFree(with);
  wFree(replace);
  wFree(source);
  wPushStringCopy("");
}


x86 assembly (clang, -O0):
<wBasReplaceSubStr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    $0x0,%al
call   1030 <wPopString@plt>
mov    %rax,-0x18(%rbp)
mov    $0x0,%al
call   1030 <wPopString@plt>
mov    %rax,-0x10(%rbp)
mov    $0x0,%al
call   1030 <wPopString@plt>
mov    %rax,-0x8(%rbp)
lea    0xe90(%rip),%rdi
call   1050 <wNotYet@plt>
mov    -0x18(%rbp),%rdi
call   1060 <wFree@plt>
mov    -0x10(%rbp),%rdi
call   1060 <wFree@plt>
mov    -0x8(%rbp),%rdi
call   1060 <wFree@plt>
lea    0xe76(%rip),%rdi
call   1040 <wPushStringCopy@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wBasReplaceSubStr>:
push   %r15
push   %r14
push   %rbx
xor    %eax,%eax
call   1030 <wPopString@plt>
mov    %rax,%r14
xor    %eax,%eax
call   1030 <wPopString@plt>
mov    %rax,%r15
xor    %eax,%eax
call   1030 <wPopString@plt>
mov    %rax,%rbx
lea    0xe96(%rip),%rdi
call   1050 <wNotYet@plt>
mov    %r14,%rdi
call   1060 <wFree@plt>
mov    %r15,%rdi
call   1060 <wFree@plt>
mov    %rbx,%rdi
call   1060 <wFree@plt>
lea    0xe7f(%rip),%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <wPushStringCopy@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"ReplaceSubStr\00"
@.str.1 = [1 x i8] zeroinitializer
define void @wBasReplaceSubStr() {
%1 = alloca i8*
%2 = alloca i8*
%3 = alloca i8*
%4 = call i8* (...) @wPopString()
store i8* %4, i8** %3
%5 = call i8* (...) @wPopString()
store i8* %5, i8** %2
%6 = call i8* (...) @wPopString()
store i8* %6, i8** %1
%7 = call i32 @wNotYet(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%8 = load i8*, i8** %3
%9 = call i32 @wFree(i8* %8)
%10 = load i8*, i8** %2
%11 = call i32 @wFree(i8* %10)
%12 = load i8*, i8** %1
%13 = call i32 @wFree(i8* %12)
%14 = call i32 @wPushStringCopy(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"ReplaceSubStr\00"
@.str.1 = [1 x i8] zeroinitializer
define void @wBasReplaceSubStr() {
%1 = tail call i8* (...) @wPopString()
%2 = tail call i8* (...) @wPopString()
%3 = tail call i8* (...) @wPopString()
%4 = tail call i32 @wNotYet(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @wFree(i8* %1)
%6 = tail call i32 @wFree(i8* %2)
%7 = tail call i32 @wFree(i8* %3)
%8 = tail call i32 @wPushStringCopy(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
ret void
}
void DrawMaskWSpan(struct WLine *pWline) {}


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

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

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

LLVM IR (-O2):
%struct.WLine = type opaque
define void @DrawMaskWSpan(%struct.WLine* nocapture %0) {
ret void
}
int MapBgStep(pcmd, argv)
char **pcmd;
char *argv[];
{
  AddItemToArgList(argv, "&", 100);
  return MapStep(pcmd, argv);
}


x86 assembly (clang, -O0):
<MapBgStep>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xec5(%rip),%rsi
mov    $0x64,%edx
mov    $0x0,%al
call   1030 <AddItemToArgList@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <MapStep@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MapBgStep>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
lea    0xecf(%rip),%rsi
mov    %rbx,%rdi
mov    $0x64,%edx
xor    %eax,%eax
call   1030 <AddItemToArgList@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <MapStep@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"&\00"
define i32 @MapBgStep(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 = call i32 (i8**, i8*, i32, ...) bitcast (i32 (...)* @AddItemToArgList to i32 (i8**, i8*, i32, ...)*)(i8** %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 100)
%7 = load i8**, i8*** %3
%8 = load i8**, i8*** %4
%9 = call i32 (i8**, i8**, ...) bitcast (i32 (...)* @MapStep to i32 (i8**, i8**, ...)*)(i8** %7, i8** %8)
ret i32 %9
}

LLVM IR (-O2):
@.str = [2 x i8] c"&\00"
define i32 @MapBgStep(i8** %0, i8** %1) {
%3 = tail call i32 (i8**, i8*, i32, ...) bitcast (i32 (...)* @AddItemToArgList to i32 (i8**, i8*, i32, ...)*)(i8** %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 100)
%4 = tail call i32 (i8**, i8**, ...) bitcast (i32 (...)* @MapStep to i32 (i8**, i8**, ...)*)(i8** %0, i8** %1)
ret i32 %4
}
int Char_to_MINUS_int(char c) { return (int)(unsigned char)c; }


x86 assembly (clang, -O0):
<Char_to_MINUS_int>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<Char_to_MINUS_int>:
movzbl %dil,%eax
ret

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

LLVM IR (-O2):
define i32 @Char_to_MINUS_int(i8 signext %0) {
%2 = zext i8 %0 to i32
ret i32 %2
}
/* Type definitions */
typedef scalar_t__ int64_t;
typedef int /*<<< orphan*/ Z3_string;
typedef int /*<<< orphan*/ Z3_context;

/* Variables and functions */
int /*<<< orphan*/
Z3_parse_smtlib2_string(int /*<<< orphan*/, int /*<<< orphan*/,
                        int /*<<< orphan*/, int /*<<< orphan*/,
                        int /*<<< orphan*/, int /*<<< orphan*/,
                        int /*<<< orphan*/, int /*<<< orphan*/);
int64_t redz3_parse_smtlib2_string(int64_t ctx, const char *str) {
  return (int64_t)Z3_parse_smtlib2_string((Z3_context)ctx, (Z3_string)str, 0, 0,
                                          0, 0, 0, 0);
}


x86 assembly (clang, -O0):
<redz3_parse_smtlib2_string>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %eax,%edi
mov    -0x10(%rbp),%rax
mov    %eax,%esi
xor    %r9d,%r9d
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
movl   $0x0,(%rsp)
movl   $0x0,0x8(%rsp)
call   1030 <Z3_parse_smtlib2_string@plt>
cltq
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<redz3_parse_smtlib2_string>:
push   %rax
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
push   $0x0
push   $0x0
call   1030 <Z3_parse_smtlib2_string@plt>
add    $0x10,%rsp
cltq
pop    %rcx
ret

LLVM IR (-O0):
define i64 @redz3_parse_smtlib2_string(i64 %0, i8* %1) {
%3 = alloca i64
%4 = alloca i8*
store i64 %0, i64* %3
store i8* %1, i8** %4
%5 = load i64, i64* %3
%6 = trunc i64 %5 to i32
%7 = load i8*, i8** %4
%8 = ptrtoint i8* %7 to i32
%9 = call i32 @Z3_parse_smtlib2_string(i32 %6, i32 %8, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
%10 = sext i32 %9 to i64
ret i64 %10
}

LLVM IR (-O2):
define i64 @redz3_parse_smtlib2_string(i64 %0, i8* %1) {
%3 = trunc i64 %0 to i32
%4 = ptrtoint i8* %1 to i64
%5 = trunc i64 %4 to i32
%6 = tail call i32 @Z3_parse_smtlib2_string(i32 %3, i32 %5, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
%7 = sext i32 %6 to i64
ret i64 %7
}
/* Type definitions */
typedef int /*<<< orphan*/ mode_t;

/* Variables and functions */
int mkdir(char const *, int /*<<< orphan*/);
int outside_mkdir(const char *pathname, mode_t mode) {
  return mkdir(pathname, mode);
}


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

x86 assembly (clang, -O2):
<outside_mkdir>:
jmp    1030 <mkdir@plt>

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

LLVM IR (-O2):
define i32 @outside_mkdir(i8* nocapture %0, i32 %1) {
%3 = tail call i32 @mkdir(i8* %0, i32 %1)
ret i32 %3
}
/* Type definitions */
struct Instruction_Type {
  int dummy;
};

/* Variables and functions */
scalar_t__ execute(struct Instruction_Type *);
void *executevoid(void *instr_type_void) {
  return (void *)execute((struct Instruction_Type *)instr_type_void);
}


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

x86 assembly (clang, -O2):
<executevoid>:
jmp    1030 <execute@plt>

LLVM IR (-O0):
%struct.Instruction_Type = type { i32 }
define i8* @executevoid(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = bitcast i8* %3 to %struct.Instruction_Type*
%5 = call i64 @execute(%struct.Instruction_Type* %4)
%6 = inttoptr i64 %5 to i8*
ret i8* %6
}

LLVM IR (-O2):
%struct.Instruction_Type = type { i32 }
define i8* @executevoid(i8* %0) {
%2 = bitcast i8* %0 to %struct.Instruction_Type*
%3 = tail call i64 @execute(%struct.Instruction_Type* %2)
%4 = inttoptr i64 %3 to i8*
ret i8* %4
}
void FinalizeLiterals(void) {}


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

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

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

LLVM IR (-O2):
define void @FinalizeLiterals() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void print_usage() {
  printf("USAGE: :/deinterleave file.fastq  f.file.fastq r.file.fastq\n");
  exit(0);
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<print_usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [61 x i8] c"USAGE: :/deinterleave file.fastq f.file.fastq r.file.fastq\0A\00"
define void @print_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [60 x i8] c"USAGE: :/deinterleave file.fastq f.file.fastq r.file.fastq\00"
define void @print_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @exit(i32 0)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, float);
int maina() {
  float pi = 3.14159265;
  float d = 30.0;
  float a = d * pi;
  printf("%8.8f\n", a);
  return 0;
}


x86 assembly (clang, -O0):
<maina>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  0xee4(%rip),%xmm0
movss  %xmm0,-0x4(%rbp)
movss  0xed3(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
mulss  -0x4(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
lea    0xebb(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<maina>:
push   %rax
lea    0xeec(%rip),%rdi
movss  0xee0(%rip),%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%8.8f\0A\00"
define i32 @maina() {
%1 = alloca float
%2 = alloca float
%3 = alloca float
store float 0x400921FB60000000, float* %1
store float 3.000000e+01, float* %2
%4 = load float, float* %2
%5 = load float, float* %1
%6 = fmul float %4, %5
store float %6, float* %3
%7 = load float, float* %3
%8 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), float %7)
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"%8.8f\0A\00"
define i32 @maina() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), float 0x40578FDBA0000000)
ret i32 0
}
/* Type definitions */
typedef int uint64_t;
typedef scalar_t__ uint16_t;

/* Variables and functions */
void register_farg(void *farg, int s, uint16_t _exp, uint64_t mant) {
  uint64_t tmp;
  tmp = ((uint64_t)s << 63) | ((uint64_t)_exp << 52) | mant;
  *(uint64_t *)farg = tmp;
  do {
  } while (0);
}


x86 assembly (clang, -O0):
<register_farg>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x3f,%ecx
shl    %cl,%eax
mov    -0x18(%rbp),%rcx
mov    %ecx,%edx
mov    $0x34,%ecx
shl    %cl,%edx
mov    %edx,%ecx
or     %ecx,%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
jmp    1141 <register_farg+0x41>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @register_farg(i8* %0, i32 %1, i64 %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i64
%8 = alloca i32
%9 = alloca i32
store i8* %0, i8** %5
store i32 %1, i32* %6
store i64 %2, i64* %7
store i32 %3, i32* %8
%10 = load i32, i32* %6
%11 = shl i32 %10, 63
%12 = load i64, i64* %7
%13 = trunc i64 %12 to i32
%14 = shl i32 %13, 52
%15 = or i32 %11, %14
%16 = load i32, i32* %8
%17 = or i32 %15, %16
store i32 %17, i32* %9
%18 = load i32, i32* %9
%19 = load i8*, i8** %5
%20 = bitcast i8* %19 to i32*
store i32 %18, i32* %20
br label %21
21: ; preds = %4
br label %22
22: ; preds = %21
ret void
}

LLVM IR (-O2):
define void @register_farg(i8* nocapture %0, i32 %1, i64 %2, i32 %3) {
ret void
}
void INT_Excep_PERIA_INTA243(void) {}


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

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

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

LLVM IR (-O2):
define void @INT_Excep_PERIA_INTA243() {
ret void
}
extern double n1s1n2n3(int n1, float s1, int n2, int n3) {
  return n1 + s1 + n2 + n3;
}


x86 assembly (clang, -O0):
<n1s1n2n3>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movss  %xmm0,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
cvtsi2ssl -0x4(%rbp),%xmm0
addss  -0x8(%rbp),%xmm0
cvtsi2ssl -0xc(%rbp),%xmm1
addss  %xmm1,%xmm0
cvtsi2ssl -0x10(%rbp),%xmm1
addss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<n1s1n2n3>:
cvtsi2ss %edi,%xmm1
cvtsi2ss %esi,%xmm2
cvtsi2ss %edx,%xmm3
addss  %xmm0,%xmm1
addss  %xmm1,%xmm2
addss  %xmm2,%xmm3
xorps  %xmm0,%xmm0
cvtss2sd %xmm3,%xmm0
ret

LLVM IR (-O0):
define double @n1s1n2n3(i32 %0, float %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca float
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store float %1, float* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* %5
%10 = sitofp i32 %9 to float
%11 = load float, float* %6
%12 = fadd float %10, %11
%13 = load i32, i32* %7
%14 = sitofp i32 %13 to float
%15 = fadd float %12, %14
%16 = load i32, i32* %8
%17 = sitofp i32 %16 to float
%18 = fadd float %15, %17
%19 = fpext float %18 to double
ret double %19
}

LLVM IR (-O2):
define double @n1s1n2n3(i32 %0, float %1, i32 %2, i32 %3) {
%5 = sitofp i32 %0 to float
%6 = fadd float %5, %1
%7 = sitofp i32 %2 to float
%8 = fadd float %6, %7
%9 = sitofp i32 %3 to float
%10 = fadd float %8, %9
%11 = fpext float %10 to double
ret double %11
}
/* Variables and functions */
int CL_SUCCESS;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, int);
void err_check(int err, char *err_code) {
  if (err != CL_SUCCESS) {
    printf("Error: %d\n", err);
    exit(-1);
  }
}


x86 assembly (clang, -O0):
<err_check>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%eax
mov    0x2ea7(%rip),%rcx
cmp    (%rcx),%eax
je     115a <err_check+0x3a>
mov    -0x4(%rbp),%esi
lea    0xeb5(%rip),%rdi
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<err_check>:
push   %rax
mov    0x2eb8(%rip),%rax
cmp    %edi,(%rax)
jne    112e <err_check+0xe>
pop    %rax
ret
mov    %edi,%esi
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

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

LLVM IR (-O2):
@CL_SUCCESS = global i32 0
@.str = [11 x i8] c"Error: %d\0A\00"
define void @err_check(i32 %0, i8* nocapture readnone %1) {
%3 = load i32, i32* @CL_SUCCESS
%4 = icmp eq i32 %3, %0
br i1 %4, label %8, label %5
5: ; preds = %2
%6 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %0)
%7 = tail call i32 @exit(i32 -1)
unreachable
8: ; preds = %2
ret void
}
double gprime(double x) {
  return 30 * x * x * x * x + 36 * x * x * x - 6 * x * x - 10 * x;
}


x86 assembly (clang, -O0):
<gprime>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  0xf07(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm2
movsd  0xee3(%rip),%xmm1
mulsd  -0x8(%rbp),%xmm1
mulsd  -0x8(%rbp),%xmm1
mulsd  -0x8(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xebc(%rip),%xmm1
mulsd  -0x8(%rbp),%xmm1
movsd  -0x8(%rbp),%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x8(%rbp),%xmm0
movsd  0xe7e(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<gprime>:
movsd  0xef8(%rip),%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
movsd  0xeec(%rip),%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm1
addsd  %xmm2,%xmm1
movsd  0xed8(%rip),%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
mulsd  0xecc(%rip),%xmm0
addsd  %xmm2,%xmm0
ret

LLVM IR (-O0):
define double @gprime(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fmul double 3.000000e+01, %3
%5 = load double, double* %2
%6 = fmul double %4, %5
%7 = load double, double* %2
%8 = fmul double %6, %7
%9 = load double, double* %2
%10 = load double, double* %2
%11 = fmul double 3.600000e+01, %10
%12 = load double, double* %2
%13 = fmul double %11, %12
%14 = load double, double* %2
%15 = fmul double %13, %14
%16 = call double @llvm.fmuladd.f64(double %8, double %9, double %15)
%17 = load double, double* %2
%18 = fmul double 6.000000e+00, %17
%19 = load double, double* %2
%20 = fneg double %18
%21 = call double @llvm.fmuladd.f64(double %20, double %19, double %16)
%22 = load double, double* %2
%23 = call double @llvm.fmuladd.f64(double -1.000000e+01, double %22, double %21)
ret double %23
}

LLVM IR (-O2):
define double @gprime(double %0) {
%2 = fmul double %0, 3.000000e+01
%3 = fmul double %2, %0
%4 = fmul double %3, %0
%5 = fmul double %0, 3.600000e+01
%6 = fmul double %5, %0
%7 = fmul double %6, %0
%8 = tail call double @llvm.fmuladd.f64(double %4, double %0, double %7)
%9 = fmul double %0, -6.000000e+00
%10 = tail call double @llvm.fmuladd.f64(double %9, double %0, double %8)
%11 = tail call double @llvm.fmuladd.f64(double %0, double -1.000000e+01, double %10)
ret double %11
}
/* Variables and functions */
int /*<<< orphan*/ mtrie_clean(void *);
void http_headers_map_clean(void *map) {
  if (map)
    mtrie_clean(map);
}


x86 assembly (clang, -O0):
<http_headers_map_clean>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1130 <http_headers_map_clean+0x20>
mov    -0x8(%rbp),%rdi
call   1030 <mtrie_clean@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @http_headers_map_clean(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @mtrie_clean(i8* %0)
br label %5
5: ; preds = %3, %1
ret void
}
void RTStrSpaceInsert(void) {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @gtk_handle_box_set_snap_edge() {
ret void
}
/* Type definitions */
struct lifo {
  int dummy;
};

/* Variables and functions */
double expm1(double);
double pop(struct lifo *);
double opr_expm1(struct lifo *stack) {
  double op = pop(stack);
  return expm1(op);
}


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

x86 assembly (clang, -O2):
<opr_expm1>:
push   %rax
call   1030 <pop@plt>
pop    %rax
jmp    1040 <expm1@plt>

LLVM IR (-O0):
%struct.lifo = type { i32 }
define double @opr_expm1(%struct.lifo* %0) {
%2 = alloca %struct.lifo*
%3 = alloca double
store %struct.lifo* %0, %struct.lifo** %2
%4 = load %struct.lifo*, %struct.lifo** %2
%5 = call double @pop(%struct.lifo* %4)
store double %5, double* %3
%6 = load double, double* %3
%7 = call double @expm1(double %6)
ret double %7
}

LLVM IR (-O2):
%struct.lifo = type { i32 }
define double @opr_expm1(%struct.lifo* %0) {
%2 = tail call double @pop(%struct.lifo* %0)
%3 = tail call double @expm1(double %2)
ret double %3
}
/* Variables and functions */
int /*<<< orphan*/ ENOSYS;
int /*<<< orphan*/ errno;
int sched_get_priority_min(int policy) {
  errno = ENOSYS;
  return -1;
}


x86 assembly (clang, -O0):
<sched_get_priority_min>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    0x2eda(%rip),%rax
mov    (%rax),%ecx
mov    0x2ec1(%rip),%rax
mov    %ecx,(%rax)
mov    $0xffffffff,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<sched_get_priority_min>:
mov    0x2ee1(%rip),%rax
mov    (%rax),%eax
mov    0x2ec8(%rip),%rcx
mov    %eax,(%rcx)
mov    $0xffffffff,%eax
ret

LLVM IR (-O0):
@ENOSYS = global i32 0
@errno = global i32 0
define i32 @sched_get_priority_min(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* @ENOSYS
store i32 %3, i32* @errno
ret i32 -1
}

LLVM IR (-O2):
@ENOSYS = global i32 0
@errno = global i32 0
define i32 @sched_get_priority_min(i32 %0) {
%2 = load i32, i32* @ENOSYS
store i32 %2, i32* @errno
ret i32 -1
}
/* Variables and functions */
int /*<<< orphan*/ yasm_xfree(void *);
void filename_delete_one(void *d) { yasm_xfree(d); }


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

x86 assembly (clang, -O2):
<filename_delete_one>:
jmp    1030 <yasm_xfree@plt>

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

LLVM IR (-O2):
define void @filename_delete_one(i8* %0) {
%2 = tail call i32 @yasm_xfree(i8* %0)
ret void
}
/* Type definitions */
struct timespec {
  int tv_nsec;
  scalar_t__ tv_sec;
};

/* Variables and functions */
int /*<<< orphan*/ CLOCK_REALTIME;
int /*<<< orphan*/ clock_gettime(int /*<<< orphan*/, struct timespec *);
long long getMSTime() {
  struct timespec ts;
  clock_gettime(CLOCK_REALTIME, &ts);
  return (long long)ts.tv_sec * 1000 + ts.tv_nsec / 1000000;
}


x86 assembly (clang, -O0):
<getMSTime>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0x2ec1(%rip),%rax
mov    (%rax),%edi
lea    -0x10(%rbp),%rsi
call   1030 <clock_gettime@plt>
imul   $0x3e8,-0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%eax
mov    $0xf4240,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getMSTime>:
sub    $0x18,%rsp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0x8(%rsp),%rsi
call   1030 <clock_gettime@plt>
imul   $0x3e8,0x10(%rsp),%rcx
movslq 0x8(%rsp),%rax
imul   $0x431bde83,%rax,%rax
mov    %rax,%rdx
shr    $0x3f,%rdx
sar    $0x32,%rax
add    %edx,%eax
cltq
add    %rcx,%rax
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.timespec = type { i32, i64 }
@CLOCK_REALTIME = global i32 0
define i64 @getMSTime() {
%1 = alloca %struct.timespec
%2 = load i32, i32* @CLOCK_REALTIME
%3 = call i32 @clock_gettime(i32 %2, %struct.timespec* %1)
%4 = getelementptr inbounds %struct.timespec, %struct.timespec* %1, i32 0, i32 1
%5 = load i64, i64* %4
%6 = mul nsw i64 %5, 1000
%7 = getelementptr inbounds %struct.timespec, %struct.timespec* %1, i32 0, i32 0
%8 = load i32, i32* %7
%9 = sdiv i32 %8, 1000000
%10 = sext i32 %9 to i64
%11 = add nsw i64 %6, %10
ret i64 %11
}

LLVM IR (-O2):
%struct.timespec = type { i32, i64 }
@CLOCK_REALTIME = global i32 0
define i64 @getMSTime() {
%1 = alloca %struct.timespec
%2 = bitcast %struct.timespec* %1 to i8*
%3 = load i32, i32* @CLOCK_REALTIME
%4 = call i32 @clock_gettime(i32 %3, %struct.timespec* %1)
%5 = getelementptr inbounds %struct.timespec, %struct.timespec* %1, i64 0, i32 1
%6 = load i64, i64* %5
%7 = mul nsw i64 %6, 1000
%8 = getelementptr inbounds %struct.timespec, %struct.timespec* %1, i64 0, i32 0
%9 = load i32, i32* %8
%10 = sdiv i32 %9, 1000000
%11 = sext i32 %10 to i64
%12 = add nsw i64 %7, %11
ret i64 %12
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, char *);
void bail(char *msg) {
  printf("%s\n", msg);
  exit(-1);
}


x86 assembly (clang, -O0):
<bail>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<bail>:
push   %rax
mov    %rdi,%rsi
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
define void @bail(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 @exit(i32 -1)
unreachable
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
define void @bail(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @exit(i32 -1)
unreachable
}
int E(int x, int y) { return ((x >> 2) << 2) <= x; }


x86 assembly (clang, -O0):
<E>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x2,%eax
shl    $0x2,%eax
cmp    -0x4(%rbp),%eax
setle  %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<E>:
mov    %edi,%ecx
and    $0xfffffffc,%ecx
xor    %eax,%eax
cmp    %edi,%ecx
setle  %al
ret

LLVM IR (-O0):
define i32 @E(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 = ashr i32 %5, 2
%7 = shl i32 %6, 2
%8 = load i32, i32* %3
%9 = icmp sle i32 %7, %8
%10 = zext i1 %9 to i32
ret i32 %10
}

LLVM IR (-O2):
define i32 @E(i32 %0, i32 %1) {
%3 = and i32 %0, -4
%4 = icmp sle i32 %3, %0
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void func_slave() {
  char *name = "function slave";
  printf("%s\n", name);
}


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

x86 assembly (clang, -O2):
<func_slave>:
lea    0xef8(%rip),%rdi
lea    0xee2(%rip),%rsi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"function slave\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define void @func_slave() {
%1 = alloca i8*
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8** %1
%2 = load i8*, i8** %1
%3 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %2)
ret void
}

LLVM IR (-O2):
@.str = [15 x i8] c"function slave\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define void @func_slave() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ ERR_error_string(unsigned long, int /*<<< orphan*/ *);
unsigned long ERR_get_error();
int /*<<< orphan*/ logmsg(int, char *, int /*<<< orphan*/);
void conn_log_ssl_err_queue(int level) {
  unsigned long err;
  while ((err = ERR_get_error()) != 0)
    logmsg(level, "SSL error: %s", ERR_error_string(err, NULL));
}


x86 assembly (clang, -O0):
<conn_log_ssl_err_queue>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1050 <ERR_get_error@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
je     1179 <conn_log_ssl_err_queue+0x49>
mov    -0x4(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <ERR_error_string@plt>
mov    -0x14(%rbp),%edi
mov    %eax,%edx
lea    0xe91(%rip),%rsi
call   1040 <logmsg@plt>
jmp    113b <conn_log_ssl_err_queue+0xb>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<conn_log_ssl_err_queue>:
push   %r14
push   %rbx
push   %rax
mov    %edi,%ebx
xor    %eax,%eax
call   1050 <ERR_get_error@plt>
test   %rax,%rax
je     1172 <conn_log_ssl_err_queue+0x42>
lea    0xeb7(%rip),%r14
nopl   0x0(%rax)
mov    %rax,%rdi
xor    %esi,%esi
call   1030 <ERR_error_string@plt>
mov    %ebx,%edi
mov    %r14,%rsi
mov    %eax,%edx
call   1040 <logmsg@plt>
xor    %eax,%eax
call   1050 <ERR_get_error@plt>
test   %rax,%rax
jne    1150 <conn_log_ssl_err_queue+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [14 x i8] c"SSL error: %s\00"
define void @conn_log_ssl_err_queue(i32 %0) {
%2 = alloca i32
%3 = alloca i64
store i32 %0, i32* %2
br label %4
4: ; preds = %7, %1
%5 = call i64 (...) @ERR_get_error()
store i64 %5, i64* %3
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %4
%8 = load i32, i32* %2
%9 = load i64, i64* %3
%10 = call i32 @ERR_error_string(i64 %9, i32* null)
%11 = call i32 @logmsg(i32 %8, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %10)
br label %4
12: ; preds = %4
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"SSL error: %s\00"
define void @conn_log_ssl_err_queue(i32 %0) {
%2 = tail call i64 (...) @ERR_get_error()
%3 = icmp eq i64 %2, 0
br i1 %3, label %10, label %4
4: ; preds = %1, %4
%5 = phi i64 [ %8, %4 ], [ %2, %1 ]
%6 = tail call i32 @ERR_error_string(i64 %5, i32* null)
%7 = tail call i32 @logmsg(i32 %0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %6)
%8 = tail call i64 (...) @ERR_get_error()
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %4
10: ; preds = %4, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
void sigterm_handler(int sig) { exit(0); }


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

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

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

LLVM IR (-O2):
define void @sigterm_handler(i32 %0) {
%2 = tail call i32 @exit(i32 0)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ mrec2();
int a(void) {
  mrec2();
  return 3;
}


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

x86 assembly (clang, -O2):
<a>:
push   %rax
xor    %eax,%eax
call   1030 <mrec2@plt>
mov    $0x3,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @a() {
%1 = call i32 (...) @mrec2()
ret i32 3
}

LLVM IR (-O2):
define i32 @a() {
%1 = tail call i32 (...) @mrec2()
ret i32 3
}
/* Type definitions */
typedef int useconds_t;
struct timespec {
  int tv_sec;
  int tv_nsec;
};

/* Variables and functions */
int nanosleep(struct timespec *, int /*<<< orphan*/ *);
int usleep(useconds_t usec) {
  struct timespec time;
  time.tv_sec = usec / 1000000;
  time.tv_nsec = (usec % 1000000) * 1000;
  return (nanosleep(&time, NULL));
}


x86 assembly (clang, -O0):
<usleep>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    $0xf4240,%ecx
cltd
idiv   %ecx
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%eax
mov    $0xf4240,%ecx
cltd
idiv   %ecx
imul   $0x3e8,%edx,%eax
mov    %eax,-0xc(%rbp)
lea    -0x10(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <nanosleep@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usleep>:
push   %rax
movslq %edi,%rax
imul   $0x431bde83,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x32,%rcx
add    %edx,%ecx
mov    %ecx,(%rsp)
imul   $0xf4240,%ecx,%ecx
sub    %ecx,%eax
imul   $0x3e8,%eax,%eax
mov    %eax,0x4(%rsp)
mov    %rsp,%rdi
xor    %esi,%esi
call   1030 <nanosleep@plt>
pop    %rcx
ret

LLVM IR (-O0):
%struct.timespec = type { i32, i32 }
define i32 @usleep(i32 %0) {
%2 = alloca i32
%3 = alloca %struct.timespec
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = sdiv i32 %4, 1000000
%6 = getelementptr inbounds %struct.timespec, %struct.timespec* %3, i32 0, i32 0
store i32 %5, i32* %6
%7 = load i32, i32* %2
%8 = srem i32 %7, 1000000
%9 = mul nsw i32 %8, 1000
%10 = getelementptr inbounds %struct.timespec, %struct.timespec* %3, i32 0, i32 1
store i32 %9, i32* %10
%11 = call i32 @nanosleep(%struct.timespec* %3, i32* null)
ret i32 %11
}

LLVM IR (-O2):
%struct.timespec = type { i32, i32 }
define i32 @usleep(i32 %0) {
%2 = alloca %struct.timespec
%3 = bitcast %struct.timespec* %2 to i8*
%4 = sdiv i32 %0, 1000000
%5 = getelementptr inbounds %struct.timespec, %struct.timespec* %2, i64 0, i32 0
store i32 %4, i32* %5
%6 = srem i32 %0, 1000000
%7 = mul nsw i32 %6, 1000
%8 = getelementptr inbounds %struct.timespec, %struct.timespec* %2, i64 0, i32 1
store i32 %7, i32* %8
%9 = call i32 @nanosleep(%struct.timespec* %2, i32* null)
ret i32 %9
}
void av_opt_get_q() {}


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

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

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

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