xunge/DecIR huggingface dataset:
/* Variables and functions */
scalar_t__ isalnum(int);
bool isident(int c) {
  if (isalnum(c) || c == '_' || c == '$')
    return true;
  return false;
}


x86 assembly (clang, -O0):
<isident>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <isalnum@plt>
cmp    $0x0,%rax
jne    1141 <isident+0x31>
cmpl   $0x5f,-0x8(%rbp)
je     1141 <isident+0x31>
cmpl   $0x24,-0x8(%rbp)
jne    114d <isident+0x3d>
movl   $0x1,-0x4(%rbp)
jmp    1154 <isident+0x44>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isident>:
push   %rbx
mov    %edi,%ebx
call   1030 <isalnum@plt>
test   %rax,%rax
setne  %al
cmp    $0x5f,%ebx
sete   %cl
cmp    $0x24,%ebx
sete   %dl
or     %cl,%dl
or     %al,%dl
movzbl %dl,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @isident(i32 %0) {
%2 = tail call i64 @isalnum(i32 %0)
%3 = freeze i64 %2
%4 = icmp ne i64 %3, 0
%5 = icmp eq i32 %0, 95
%6 = icmp eq i32 %0, 36
%7 = or i1 %5, %6
%8 = or i1 %7, %4
%9 = zext i1 %8 to i32
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
char *strdup(char const *);
char *xstrdup(const char *str) {
  char *ptr = strdup(str);
  if (!ptr) {
    fprintf(stderr, "strdup() failed.  Exit.\n");
    exit(1);
  }
  return ptr;
}


x86 assembly (clang, -O0):
<xstrdup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <strdup@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1173 <xstrdup+0x43>
mov    0x2e85(%rip),%rax
mov    (%rax),%edi
lea    0xe9c(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xstrdup>:
push   %rax
call   1050 <strdup@plt>
test   %rax,%rax
je     113d <xstrdup+0xd>
pop    %rcx
ret
mov    0x2e9c(%rip),%rax
mov    (%rax),%edi
lea    0xeb3(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

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

LLVM IR (-O2):
@stderr = global i32 0
@.str = [25 x i8] c"strdup() failed. Exit.\0A\00"
define noalias i8* @xstrdup(i8* nocapture %0) {
%2 = tail call i8* @strdup(i8* %0)
%3 = icmp eq i8* %2, null
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @exit(i32 1)
unreachable
8: ; preds = %1
ret i8* %2
}
int isinfl(long double x) { return __builtin_isinf_sign(x); }


x86 assembly (clang, -O0):
<isinfl>:
push   %rbp
mov    %rsp,%rbp
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fldt   -0x10(%rbp)
fld    %st(0)
fstpt  -0x20(%rbp)
movswq -0x18(%rbp),%rax
fabs
test   %rax,%rax
setns  %cl
xor    %eax,%eax
flds   0xed9(%rip)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
movzbl %cl,%edx
mov    %edx,%ecx
lea    -0x1(%rcx,%rcx,1),%ecx
cmovae %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isinfl>:
fldt   0x8(%rsp)
fld    %st(0)
fstpt  -0x18(%rsp)
movswq -0x10(%rsp),%rax
fabs
xor    %ecx,%ecx
test   %rax,%rax
setns  %cl
xor    %edx,%edx
flds   0xede(%rip)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
lea    -0x1(%rcx,%rcx,1),%eax
cmovb  %edx,%eax
ret

LLVM IR (-O0):
define i32 @isinfl(x86_fp80 %0) {
%2 = alloca x86_fp80
store x86_fp80 %0, x86_fp80* %2
%3 = load x86_fp80, x86_fp80* %2
%4 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %3)
%5 = fcmp oeq x86_fp80 %4, 0xK7FFF8000000000000000
%6 = bitcast x86_fp80 %3 to i80
%7 = icmp slt i80 %6, 0
%8 = select i1 %7, i32 -1, i32 1
%9 = select i1 %5, i32 %8, i32 0
ret i32 %9
}

LLVM IR (-O2):
define i32 @isinfl(x86_fp80 %0) {
%2 = tail call x86_fp80 @llvm.fabs.f80(x86_fp80 %0)
%3 = fcmp oeq x86_fp80 %2, 0xK7FFF8000000000000000
%4 = bitcast x86_fp80 %0 to i80
%5 = icmp slt i80 %4, 0
%6 = select i1 %5, i32 -1, i32 1
%7 = select i1 %3, i32 %6, i32 0
ret i32 %7
}
int main(void) {
  double d;
  d = atof("99.0");
  printf("%s%.3f\n%s%.3f\n", "The string \"99.0\" converted to double is ", d,
         "The converted value divided by 2 is ", d / 2.0);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed2(%rip),%rdi
mov    $0x0,%al
call   1030 <atof@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  0xea8(%rip),%xmm2
divsd  %xmm2,%xmm1
lea    0xeaa(%rip),%rdi
lea    0xeb2(%rip),%rsi
lea    0xed5(%rip),%rdx
mov    $0x2,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee0(%rip),%rdi
xor    %eax,%eax
call   1030 <atof@plt>
cvtsi2sd %eax,%xmm0
movsd  0xec5(%rip),%xmm1
mulsd  %xmm0,%xmm1
lea    0xec7(%rip),%rdi
lea    0xecf(%rip),%rsi
lea    0xef2(%rip),%rdx
mov    $0x2,%al
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"99.0\00"
@.str.1 = [15 x i8] c"%s%.3f\0A%s%.3f\0A\00"
@.str.2 = [42 x i8] c"The string \2299.0\22 converted to double is \00"
@.str.3 = [37 x i8] c"The converted value divided by 2 is \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
store i32 0, i32* %1
%3 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%4 = sitofp i32 %3 to double
store double %4, double* %2
%5 = load double, double* %2
%6 = load double, double* %2
%7 = fdiv double %6, 2.000000e+00
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), double %5, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), double %7)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"99.0\00"
@.str.1 = [15 x i8] c"%s%.3f\0A%s%.3f\0A\00"
@.str.2 = [42 x i8] c"The string \2299.0\22 converted to double is \00"
@.str.3 = [37 x i8] c"The converted value divided by 2 is \00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%2 = sitofp i32 %1 to double
%3 = fmul double %2, 5.000000e-01
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), double %2, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), double %3)
ret i32 0
}
int intcmp(const int a, const int b) { return a < b ? -1 : a > b; }


x86 assembly (clang, -O0):
<intcmp>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1123 <intcmp+0x23>
mov    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
jmp    1134 <intcmp+0x34>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
setg   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<intcmp>:
xor    %ecx,%ecx
cmp    %esi,%edi
setg   %cl
mov    $0xffffffff,%eax
cmovge %ecx,%eax
ret

LLVM IR (-O0):
define i32 @intcmp(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 = load i32, i32* %4
%7 = icmp slt i32 %5, %6
br i1 %7, label %8, label %9
8: ; preds = %2
br label %14
9: ; preds = %2
%10 = load i32, i32* %3
%11 = load i32, i32* %4
%12 = icmp sgt i32 %10, %11
%13 = zext i1 %12 to i32
br label %14
14: ; preds = %9, %8
%15 = phi i32 [ -1, %8 ], [ %13, %9 ]
ret i32 %15
}

LLVM IR (-O2):
define i32 @intcmp(i32 %0, i32 %1) {
%3 = icmp slt i32 %0, %1
%4 = icmp sgt i32 %0, %1
%5 = zext i1 %4 to i32
%6 = select i1 %3, i32 -1, i32 %5
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ JumpToApp();
int main(void) {
  JumpToApp();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @JumpToApp()
ret i32 0
}
/* Type definitions */
typedef int __u8;

/* Variables and functions */
int clear_bit(int nr, void *addr) {
  __u8 *p, mask;
  int retval;
  p = (__u8 *)addr;
  p += nr >> 3;
  mask = 1 << (nr & 0x7);
  retval = (mask & *p) != 0;
  *p &= ~mask;
  return retval;
}


x86 assembly (clang, -O0):
<clear_bit>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x4(%rbp),%ecx
sar    $0x3,%ecx
mov    -0x18(%rbp),%rax
movslq %ecx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x18(%rbp)
mov    -0x4(%rbp),%ecx
and    $0x7,%ecx
mov    $0x1,%eax
shl    %cl,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x18(%rbp),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
setne  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%ecx
xor    $0xffffffff,%ecx
mov    -0x18(%rbp),%rax
and    (%rax),%ecx
mov    %ecx,(%rax)
mov    -0x20(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<clear_bit>:
mov    %edi,%ecx
mov    %edi,%eax
sar    $0x3,%eax
movslq %eax,%rdx
and    $0x7,%cl
mov    (%rsi,%rdx,4),%edi
mov    %edi,%eax
shr    %cl,%eax
and    $0x1,%eax
btr    %ecx,%edi
mov    %edi,(%rsi,%rdx,4)
ret

LLVM IR (-O0):
define i32 @clear_bit(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32*
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %3
store i8* %1, i8** %4
%8 = load i8*, i8** %4
%9 = bitcast i8* %8 to i32*
store i32* %9, i32** %5
%10 = load i32, i32* %3
%11 = ashr i32 %10, 3
%12 = load i32*, i32** %5
%13 = sext i32 %11 to i64
%14 = getelementptr inbounds i32, i32* %12, i64 %13
store i32* %14, i32** %5
%15 = load i32, i32* %3
%16 = and i32 %15, 7
%17 = shl i32 1, %16
store i32 %17, i32* %6
%18 = load i32, i32* %6
%19 = load i32*, i32** %5
%20 = load i32, i32* %19
%21 = and i32 %18, %20
%22 = icmp ne i32 %21, 0
%23 = zext i1 %22 to i32
store i32 %23, i32* %7
%24 = load i32, i32* %6
%25 = xor i32 %24, -1
%26 = load i32*, i32** %5
%27 = load i32, i32* %26
%28 = and i32 %27, %25
store i32 %28, i32* %26
%29 = load i32, i32* %7
ret i32 %29
}

LLVM IR (-O2):
define i32 @clear_bit(i32 %0, i8* nocapture %1) {
%3 = bitcast i8* %1 to i32*
%4 = ashr i32 %0, 3
%5 = sext i32 %4 to i64
%6 = getelementptr inbounds i32, i32* %3, i64 %5
%7 = and i32 %0, 7
%8 = shl nuw nsw i32 1, %7
%9 = load i32, i32* %6
%10 = lshr i32 %9, %7
%11 = and i32 %10, 1
%12 = xor i32 %8, -1
%13 = and i32 %9, %12
store i32 %13, i32* %6
ret i32 %11
}
/* Variables and functions */
int /*<<< orphan*/ close(int *);
int /*<<< orphan*/ printf(char *);
int threadFunction(void *argument) {
  printf("child thread entering\n");
  close((int *)argument);
  printf("child thread exiting\n");
  return 0;
}


x86 assembly (clang, -O0):
<threadFunction>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1040 <close@plt>
lea    0xecf(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<threadFunction>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1040 <close@plt>
lea    0xed7(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [23 x i8] c"child thread entering\0A\00"
@.str.1 = [22 x i8] c"child thread exiting\0A\00"
define i32 @threadFunction(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%4 = load i8*, i8** %2
%5 = bitcast i8* %4 to i32*
%6 = call i32 @close(i32* %5)
%7 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [22 x i8] c"child thread entering\00"
@str.2 = [21 x i8] c"child thread exiting\00"
define i32 @threadFunction(i8* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
%3 = bitcast i8* %0 to i32*
%4 = tail call i32 @close(i32* %3)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.2, i64 0, i64 0))
ret i32 0
}
int track_bbox_height(int ch, int i) {}


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

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

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

LLVM IR (-O2):
define i32 @track_bbox_height(i32 %0, i32 %1) {
ret i32 undef
}
/* Type definitions */
struct rusage {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ w3(struct rusage *);
int main() {
  struct rusage *r;
  w3(r);
  return 0;
}


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

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

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

LLVM IR (-O2):
%struct.rusage = type { i32 }
define i32 @main() {
%1 = tail call i32 @w3(%struct.rusage* undef)
ret i32 0
}
int test_imm_BFuint32_reg(unsigned int val) {
  return ((val) & (0xBF << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_BFuint32_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edx
and    $0xbf,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_BFuint32_reg>:
test   $0xbf,%dil
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_BFuint32_reg(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = and i32 %3, 191
%5 = icmp ne i32 %4, 0
%6 = zext i1 %5 to i64
%7 = select i1 %5, i32 -20, i32 -40
ret i32 %7
}

LLVM IR (-O2):
define i32 @test_imm_BFuint32_reg(i32 %0) {
%2 = and i32 %0, 191
%3 = icmp eq i32 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
void srand48(long seed) {
  seed48((unsigned short[3]){0x330e, seed, seed >> 16});
}


x86 assembly (clang, -O0):
<srand48>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movw   $0x330e,-0xe(%rbp)
mov    -0x8(%rbp),%rax
mov    %ax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
sar    $0x10,%rax
mov    %ax,-0xa(%rbp)
lea    -0xe(%rbp),%rdi
mov    $0x0,%al
call   1030 <seed48@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<srand48>:
push   %rax
movw   $0x330e,0x2(%rsp)
mov    %di,0x4(%rsp)
shr    $0x10,%rdi
mov    %di,0x6(%rsp)
lea    0x2(%rsp),%rdi
xor    %eax,%eax
call   1030 <seed48@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @srand48(i64 %0) {
%2 = alloca i64
%3 = alloca [3 x i16]
store i64 %0, i64* %2
%4 = getelementptr inbounds [3 x i16], [3 x i16]* %3, i64 0, i64 0
store i16 13070, i16* %4
%5 = getelementptr inbounds i16, i16* %4, i64 1
%6 = load i64, i64* %2
%7 = trunc i64 %6 to i16
store i16 %7, i16* %5
%8 = getelementptr inbounds i16, i16* %5, i64 1
%9 = load i64, i64* %2
%10 = ashr i64 %9, 16
%11 = trunc i64 %10 to i16
store i16 %11, i16* %8
%12 = getelementptr inbounds [3 x i16], [3 x i16]* %3, i64 0, i64 0
%13 = call i32 (i16*, ...) bitcast (i32 (...)* @seed48 to i32 (i16*, ...)*)(i16* %12)
ret void
}

LLVM IR (-O2):
define void @srand48(i64 %0) {
%2 = alloca [3 x i16]
%3 = getelementptr inbounds [3 x i16], [3 x i16]* %2, i64 0, i64 0
store i16 13070, i16* %3
%4 = getelementptr inbounds [3 x i16], [3 x i16]* %2, i64 0, i64 1
%5 = trunc i64 %0 to i16
store i16 %5, i16* %4
%6 = getelementptr inbounds [3 x i16], [3 x i16]* %2, i64 0, i64 2
%7 = lshr i64 %0, 16
%8 = trunc i64 %7 to i16
store i16 %8, i16* %6
%9 = call i32 (i16*, ...) bitcast (i32 (...)* @seed48 to i32 (i16*, ...)*)(i16* %3)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fun(int);
int /*<<< orphan*/ printf(char *, int);
int main(int argc, const char *argv[]) {
  int ret = 0;
  fun(1);
  printf("RETURNED %d\n", ret);
  return 0;
}


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

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

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

LLVM IR (-O2):
@.str = [13 x i8] c"RETURNED %d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @fun(i32 1)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 0)
ret i32 0
}
/* Variables and functions */
char *mangle_deserialize_const(char const *, int /*<<< orphan*/);
int /*<<< orphan*/ strlen(char const *);
char *mangle_deserialize_str_const(const char *a_sdata) {
  return mangle_deserialize_const(a_sdata, strlen(a_sdata));
}


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

x86 assembly (clang, -O2):
<mangle_deserialize_str_const>:
push   %rbx
mov    %rdi,%rbx
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    %eax,%esi
pop    %rbx
jmp    1030 <mangle_deserialize_const@plt>

LLVM IR (-O0):
define i8* @mangle_deserialize_str_const(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @strlen(i8* %4)
%6 = call i8* @mangle_deserialize_const(i8* %3, i32 %5)
ret i8* %6
}

LLVM IR (-O2):
define i8* @mangle_deserialize_str_const(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = tail call i8* @mangle_deserialize_const(i8* %0, i32 %2)
ret i8* %3
}
/* Variables and functions */
int /*<<< orphan*/ hmod(uintptr_t, int /*<<< orphan*/, int /*<<< orphan*/);
void hmod_delete(uintptr_t h) { hmod(h, 0, 0); }


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

x86 assembly (clang, -O2):
<hmod_delete>:
xor    %esi,%esi
xor    %edx,%edx
jmp    1030 <hmod@plt>

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

LLVM IR (-O2):
define void @hmod_delete(i64 %0) {
%2 = tail call i32 @hmod(i64 %0, i32 0, i32 0)
ret void
}
const char *gp_file_name_separator(void) { return "/"; }


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

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

LLVM IR (-O0):
@.str = [2 x i8] c"/\00"
define i8* @gp_file_name_separator() {
ret i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [2 x i8] c"/\00"
define i8* @gp_file_name_separator() {
ret i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
int /*<<< orphan*/ test_parser_sourcefile(char *, char *);
int /*<<< orphan*/ test_parser_verify_parse(int /*<<< orphan*/, char *, char *,
                                            char *, int /*<<< orphan*/);
void test_racket_doc_string_blank() {
  test_parser_verify_parse(test_parser_sourcefile("racket", " \"\"\"\"\"\""),
                           "racket", "", "\"\"\"\"\"\"", 0);
}


x86 assembly (clang, -O0):
<test_racket_doc_string_blank>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xed5(%rip),%rsi
call   1030 <test_parser_sourcefile@plt>
mov    %eax,%edi
lea    0xec0(%rip),%rsi
lea    0xec7(%rip),%rdx
lea    0xeba(%rip),%rcx
xor    %r8d,%r8d
call   1040 <test_parser_verify_parse@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_racket_doc_string_blank>:
push   %rbx
lea    0xed8(%rip),%rbx
lea    0xed8(%rip),%rsi
mov    %rbx,%rdi
call   1030 <test_parser_sourcefile@plt>
lea    0xed0(%rip),%rdx
lea    0xec3(%rip),%rcx
mov    %eax,%edi
mov    %rbx,%rsi
xor    %r8d,%r8d
pop    %rbx
jmp    1040 <test_parser_verify_parse@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"racket\00"
@.str.1 = [8 x i8] c" \22\22\22\22\22\22\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [7 x i8] c"\22\22\22\22\22\22\00"
define void @test_racket_doc_string_blank() {
%1 = call i32 @test_parser_sourcefile(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @test_parser_verify_parse(i32 %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 0)
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"racket\00"
@.str.1 = [8 x i8] c" \22\22\22\22\22\22\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [7 x i8] c"\22\22\22\22\22\22\00"
define void @test_racket_doc_string_blank() {
%1 = tail call i32 @test_parser_sourcefile(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @test_parser_verify_parse(i32 %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 0)
ret void
}
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int solcon_read_next_witness_point(int k, int n, int *m, double *sol) {
  int fail, a[2];
  a[0] = k;
  a[1] = n;
  fail = _ada_use_c2phc4c(145, a, m, sol, 0);
  return fail;
}


x86 assembly (clang, -O0):
<solcon_read_next_witness_point>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x20(%rbp)
lea    -0x24(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    $0x91,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<solcon_read_next_witness_point>:
push   %rax
mov    %edi,(%rsp)
mov    %esi,0x4(%rsp)
mov    %rsp,%rsi
mov    $0x91,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i32 @solcon_read_next_witness_point(i32 %0, i32 %1, i32* %2, double* %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32*
%8 = alloca double*
%9 = alloca i32
%10 = alloca [2 x i32]
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32* %2, i32** %7
store double* %3, double** %8
%11 = load i32, i32* %5
%12 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 0
store i32 %11, i32* %12
%13 = load i32, i32* %6
%14 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 1
store i32 %13, i32* %14
%15 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 0
%16 = load i32*, i32** %7
%17 = load double*, double** %8
%18 = call i32 @_ada_use_c2phc4c(i32 145, i32* %15, i32* %16, double* %17, i32 0)
store i32 %18, i32* %9
%19 = load i32, i32* %9
ret i32 %19
}

LLVM IR (-O2):
define i32 @solcon_read_next_witness_point(i32 %0, i32 %1, i32* %2, double* %3) {
%5 = alloca [2 x i32]
%6 = bitcast [2 x i32]* %5 to i8*
%7 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 0
store i32 %0, i32* %7
%8 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 1
store i32 %1, i32* %8
%9 = call i32 @_ada_use_c2phc4c(i32 145, i32* %7, i32* %2, double* %3, i32 0)
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main() {
  printf("qwe\n");
  return 0;
}


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

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

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

LLVM IR (-O2):
@str = [4 x i8] c"qwe\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
size_t time(int /*<<< orphan*/ *);
int main() {
  int *ar = NULL, i;
  for (i = 0;; i++)
    ar[i] = ar[i >> 1] + 1;
  return ar[time(NULL)];
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movq   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
sar    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%edx
add    $0x1,%edx
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    111a <main+0x1a>

x86 assembly (clang, -O2):
LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32
store i32 0, i32* %1
store i32* null, i32** %2
store i32 0, i32* %3
br label %4
4: ; preds = %16, %0
%5 = load i32*, i32** %2
%6 = load i32, i32* %3
%7 = ashr i32 %6, 1
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i32, i32* %5, i64 %8
%10 = load i32, i32* %9
%11 = add nsw i32 %10, 1
%12 = load i32*, i32** %2
%13 = load i32, i32* %3
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, i32* %12, i64 %14
store i32 %11, i32* %15
br label %16
16: ; preds = %4
%17 = load i32, i32* %3
%18 = add nsw i32 %17, 1
store i32 %18, i32* %3
br label %4
}

LLVM IR (-O2):
/* Type definitions */
typedef int uint64_t;
typedef int /*<<< orphan*/ int64_t;
typedef int int32_t;

/* Variables and functions */
int64_t aeron_map_compound_key(int32_t high, int32_t low) {
  return (int64_t)(((uint64_t)high << 32) | (low));
}


x86 assembly (clang, -O0):
<aeron_map_compound_key>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x20,%ecx
shl    %cl,%eax
or     -0x8(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @aeron_map_compound_key(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 = shl i32 %5, 32
%7 = load i32, i32* %4
%8 = or i32 %6, %7
ret i32 %8
}

LLVM IR (-O2):
define i32 @aeron_map_compound_key(i32 %0, i32 %1) {
ret i32 poison
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *, char *);
void g_error(char *message) { printf("%s: %s\n", "true", message); }


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

x86 assembly (clang, -O2):
<g_error>:
mov    %rdi,%rdx
lea    0xee6(%rip),%rdi
lea    0xee7(%rip),%rsi
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [8 x i8] c"%s: %s\0A\00"
@.str.1 = [5 x i8] c"true\00"
define void @g_error(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ yyparse();
int main(int argc, char **argv) {
  yyparse();
  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    $0x0,%al
call   1030 <yyparse@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @yyparse()
ret i32 0
}
/* Type definitions */
struct timespec {
  long tv_nsec;
  int /*<<< orphan*/ tv_sec;
};

/* Variables and functions */
void timespec_sub_ns(struct timespec *ts, long ns) {
  if (ns > ts->tv_nsec) {
    ts->tv_sec--;
    ts->tv_nsec += 1000000000;
  }
  ts->tv_nsec -= ns;
}


x86 assembly (clang, -O0):
<timespec_sub_ns>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%rcx
cmp    (%rcx),%rax
jle    113b <timespec_sub_ns+0x3b>
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%ecx
add    $0xffffffff,%ecx
mov    %ecx,0x8(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
add    $0x3b9aca00,%rcx
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rdx
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
sub    %rdx,%rcx
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<timespec_sub_ns>:
mov    (%rdi),%rax
cmp    %rsi,%rax
jge    1112 <timespec_sub_ns+0x12>
addl   $0xffffffff,0x8(%rdi)
add    $0x3b9aca00,%rax
sub    %rsi,%rax
mov    %rax,(%rdi)
ret

LLVM IR (-O0):
%struct.timespec = type { i64, i32 }
define void @timespec_sub_ns(%struct.timespec* %0, i64 %1) {
%3 = alloca %struct.timespec*
%4 = alloca i64
store %struct.timespec* %0, %struct.timespec** %3
store i64 %1, i64* %4
%5 = load i64, i64* %4
%6 = load %struct.timespec*, %struct.timespec** %3
%7 = getelementptr inbounds %struct.timespec, %struct.timespec* %6, i32 0, i32 0
%8 = load i64, i64* %7
%9 = icmp sgt i64 %5, %8
br i1 %9, label %10, label %19
10: ; preds = %2
%11 = load %struct.timespec*, %struct.timespec** %3
%12 = getelementptr inbounds %struct.timespec, %struct.timespec* %11, i32 0, i32 1
%13 = load i32, i32* %12
%14 = add nsw i32 %13, -1
store i32 %14, i32* %12
%15 = load %struct.timespec*, %struct.timespec** %3
%16 = getelementptr inbounds %struct.timespec, %struct.timespec* %15, i32 0, i32 0
%17 = load i64, i64* %16
%18 = add nsw i64 %17, 1000000000
store i64 %18, i64* %16
br label %19
19: ; preds = %10, %2
%20 = load i64, i64* %4
%21 = load %struct.timespec*, %struct.timespec** %3
%22 = getelementptr inbounds %struct.timespec, %struct.timespec* %21, i32 0, i32 0
%23 = load i64, i64* %22
%24 = sub nsw i64 %23, %20
store i64 %24, i64* %22
ret void
}

LLVM IR (-O2):
%struct.timespec = type { i64, i32 }
define void @timespec_sub_ns(%struct.timespec* nocapture %0, i64 %1) {
%3 = getelementptr inbounds %struct.timespec, %struct.timespec* %0, i64 0, i32 0
%4 = load i64, i64* %3
%5 = icmp slt i64 %4, %1
br i1 %5, label %6, label %11
6: ; preds = %2
%7 = getelementptr inbounds %struct.timespec, %struct.timespec* %0, i64 0, i32 1
%8 = load i32, i32* %7
%9 = add nsw i32 %8, -1
store i32 %9, i32* %7
%10 = add nsw i64 %4, 1000000000
br label %11
11: ; preds = %6, %2
%12 = phi i64 [ %10, %6 ], [ %4, %2 ]
%13 = sub nsw i64 %12, %1
store i64 %13, i64* %3
ret void
}
/* Variables and functions */
char **makefullenv(int /*<<< orphan*/);
char **makenv() { return (makefullenv(0)); }


x86 assembly (clang, -O0):
<makenv>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <makefullenv@plt>
pop    %rbp
ret

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

LLVM IR (-O0):
define i8** @makenv() {
%1 = call i8** @makefullenv(i32 0)
ret i8** %1
}

LLVM IR (-O2):
define i8** @makenv() {
%1 = tail call i8** @makefullenv(i32 0)
ret i8** %1
}
/* Type definitions */
struct stat64 {
  int dummy;
};

/* Variables and functions */
int dll_stat64(char const *, struct stat64 *);
int __wrap___xstat64(int __ver, const char *__filename,
                     struct stat64 *__stat_buf) {
  return dll_stat64(__filename, __stat_buf);
}


x86 assembly (clang, -O0):
<__wrap___xstat64>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <dll_stat64@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__wrap___xstat64>:
mov    %rsi,%rdi
mov    %rdx,%rsi
jmp    1030 <dll_stat64@plt>

LLVM IR (-O0):
%struct.stat64 = type { i32 }
define i32 @__wrap___xstat64(i32 %0, i8* %1, %struct.stat64* %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca %struct.stat64*
store i32 %0, i32* %4
store i8* %1, i8** %5
store %struct.stat64* %2, %struct.stat64** %6
%7 = load i8*, i8** %5
%8 = load %struct.stat64*, %struct.stat64** %6
%9 = call i32 @dll_stat64(i8* %7, %struct.stat64* %8)
ret i32 %9
}

LLVM IR (-O2):
%struct.stat64 = type { i32 }
define i32 @__wrap___xstat64(i32 %0, i8* %1, %struct.stat64* %2) {
%4 = tail call i32 @dll_stat64(i8* %1, %struct.stat64* %2)
ret i32 %4
}
unsigned xrop3_235_1_0(unsigned char s, unsigned char t) {
  unsigned D = 0x00ff;
  unsigned S = ((unsigned)s << 8) | s;
  unsigned T = ((unsigned)t << 8) | t;
  unsigned stk1;
  unsigned stk2;
  stk2 = T ^ S;
  stk2 = ~stk2;
  stk1 = D | stk2;
  return (stk1 & (~S)) | (D & S);
}


x86 assembly (clang, -O0):
<xrop3_235_1_0>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movl   $0xff,-0x8(%rbp)
movzbl -0x1(%rbp),%eax
shl    $0x8,%eax
movzbl -0x1(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0xc(%rbp)
movzbl -0x2(%rbp),%eax
shl    $0x8,%eax
movzbl -0x2(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
xor    -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
xor    $0xffffffff,%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
or     -0x18(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    -0xc(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
mov    -0x8(%rbp),%ecx
and    -0xc(%rbp),%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xrop3_235_1_0>:
mov    %edi,%eax
shl    $0x8,%eax
shl    $0x8,%esi
xor    %eax,%esi
or     %edi,%eax
or     %esi,%eax
not    %eax
or     %edi,%eax
ret

LLVM IR (-O0):
define i32 @xrop3_235_1_0(i8 zeroext %0, i8 zeroext %1) {
%3 = alloca i8
%4 = alloca i8
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i8 %0, i8* %3
store i8 %1, i8* %4
store i32 255, i32* %5
%10 = load i8, i8* %3
%11 = zext i8 %10 to i32
%12 = shl i32 %11, 8
%13 = load i8, i8* %3
%14 = zext i8 %13 to i32
%15 = or i32 %12, %14
store i32 %15, i32* %6
%16 = load i8, i8* %4
%17 = zext i8 %16 to i32
%18 = shl i32 %17, 8
%19 = load i8, i8* %4
%20 = zext i8 %19 to i32
%21 = or i32 %18, %20
store i32 %21, i32* %7
%22 = load i32, i32* %7
%23 = load i32, i32* %6
%24 = xor i32 %22, %23
store i32 %24, i32* %9
%25 = load i32, i32* %9
%26 = xor i32 %25, -1
store i32 %26, i32* %9
%27 = load i32, i32* %5
%28 = load i32, i32* %9
%29 = or i32 %27, %28
store i32 %29, i32* %8
%30 = load i32, i32* %8
%31 = load i32, i32* %6
%32 = xor i32 %31, -1
%33 = and i32 %30, %32
%34 = load i32, i32* %5
%35 = load i32, i32* %6
%36 = and i32 %34, %35
%37 = or i32 %33, %36
ret i32 %37
}

LLVM IR (-O2):
define i32 @xrop3_235_1_0(i8 zeroext %0, i8 zeroext %1) {
%3 = zext i8 %0 to i32
%4 = shl nuw nsw i32 %3, 8
%5 = or i32 %4, %3
%6 = zext i8 %1 to i32
%7 = shl nuw nsw i32 %6, 8
%8 = xor i32 %7, %4
%9 = or i32 %5, %8
%10 = xor i32 %9, -1
%11 = or i32 %10, %3
ret i32 %11
}
void f4() {
  _Complex double a = 1;
  double b = __imag a;
  double *c = &__real a;
  double *d = &__imag a;
}


x86 assembly (clang, -O0):
<f4>:
push   %rbp
mov    %rsp,%rbp
movsd  0xef4(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
lea    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x28(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @f4() {
%1 = alloca { double, double }
%2 = alloca double
%3 = alloca double*
%4 = alloca double*
%5 = getelementptr inbounds { double, double }, { double, double }* %1, i32 0, i32 0
%6 = getelementptr inbounds { double, double }, { double, double }* %1, i32 0, i32 1
store double 1.000000e+00, double* %5
store double 0.000000e+00, double* %6
%7 = getelementptr inbounds { double, double }, { double, double }* %1, i32 0, i32 1
%8 = load double, double* %7
store double %8, double* %2
%9 = getelementptr inbounds { double, double }, { double, double }* %1, i32 0, i32 0
store double* %9, double** %3
%10 = getelementptr inbounds { double, double }, { double, double }* %1, i32 0, i32 1
store double* %10, double** %4
ret void
}

LLVM IR (-O2):
define void @f4() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ ExtSelect(char *, char *, int /*<<< orphan*/);
void ExttTemplateSelect(void) {
  ExtSelect("tTemplate",
            "tTemplate.uTemplate,tTemplate.cLabel,tTemplate.uTemplateSet,"
            "tTemplate.uTemplateType,tTemplate.cComment,tTemplate.cTemplate,"
            "tTemplate.uOwner,tTemplate.uCreatedBy,tTemplate.uCreatedDate,"
            "tTemplate.uModBy,tTemplate.uModDate",
            0);
}


x86 assembly (clang, -O0):
<ExttTemplateSelect>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xee8(%rip),%rsi
xor    %edx,%edx
call   1030 <ExtSelect@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ExttTemplateSelect>:
lea    0xee9(%rip),%rdi
lea    0xeec(%rip),%rsi
xor    %edx,%edx
jmp    1030 <ExtSelect@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"tTemplate\00"
@.str.1 = [220 x i8] c"tTemplate.uTemplate,tTemplate.cLabel,tTemplate.uTemplateSet,tTemplate.uTemplateType,tTemplate.cComment,tTemplate.cTemplate,tTemplate.uOwner,tTemplate.uCreatedBy,tTemplate.uCreatedDate,tTemplate.uModBy,tTemplate.uModDate\00"
define void @ExttTemplateSelect() {
%1 = call i32 @ExtSelect(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([220 x i8], [220 x i8]* @.str.1, i64 0, i64 0), i32 0)
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"tTemplate\00"
@.str.1 = [220 x i8] c"tTemplate.uTemplate,tTemplate.cLabel,tTemplate.uTemplateSet,tTemplate.uTemplateType,tTemplate.cComment,tTemplate.cTemplate,tTemplate.uOwner,tTemplate.uCreatedBy,tTemplate.uCreatedDate,tTemplate.uModBy,tTemplate.uModDate\00"
define void @ExttTemplateSelect() {
%1 = tail call i32 @ExtSelect(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([220 x i8], [220 x i8]* @.str.1, i64 0, i64 0), i32 0)
ret void
}
int ffsl(long i) { return __builtin_ffsl(i); }


x86 assembly (clang, -O0):
<ffsl>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdx
bsf    %rdx,%rax
add    $0x1,%rax
xor    %ecx,%ecx
cmp    $0x0,%rdx
cmove  %rcx,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ffsl>:
bsf    %rdi,%rcx
add    $0x1,%ecx
xor    %eax,%eax
test   %rdi,%rdi
cmovne %ecx,%eax
ret

LLVM IR (-O0):
define i32 @ffsl(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = call i64 @llvm.cttz.i64(i64 %3, i1 true)
%5 = add i64 %4, 1
%6 = icmp eq i64 %3, 0
%7 = select i1 %6, i64 0, i64 %5
%8 = trunc i64 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @ffsl(i64 %0) {
%2 = tail call i64 @llvm.cttz.i64(i64 %0, i1 true)
%3 = icmp eq i64 %0, 0
%4 = trunc i64 %2 to i32
%5 = add nuw nsw i32 %4, 1
%6 = select i1 %3, i32 0, i32 %5
ret i32 %6
}
unsigned long rho_ruby_hash_aref(unsigned long hash, const char *key) {
  return 0;
}


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

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

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

LLVM IR (-O2):
define i64 @rho_ruby_hash_aref(i64 %0, i8* nocapture readnone %1) {
ret i64 0
}
void pd_copy(const double *a, double *b) {
  b[0] = a[0];
  b[1] = a[1];
  b[2] = a[2];
  b[3] = a[3];
  b[4] = a[4];
}


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

x86 assembly (clang, -O2):
<pd_copy>:
movsd  (%rdi),%xmm0
movsd  %xmm0,(%rsi)
movsd  0x8(%rdi),%xmm0
movsd  %xmm0,0x8(%rsi)
movsd  0x10(%rdi),%xmm0
movsd  %xmm0,0x10(%rsi)
movsd  0x18(%rdi),%xmm0
movsd  %xmm0,0x18(%rsi)
movsd  0x20(%rdi),%xmm0
movsd  %xmm0,0x20(%rsi)
ret

LLVM IR (-O0):
define void @pd_copy(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
store double* %0, double** %3
store double* %1, double** %4
%5 = load double*, double** %3
%6 = getelementptr inbounds double, double* %5, i64 0
%7 = load double, double* %6
%8 = load double*, double** %4
%9 = getelementptr inbounds double, double* %8, i64 0
store double %7, double* %9
%10 = load double*, double** %3
%11 = getelementptr inbounds double, double* %10, i64 1
%12 = load double, double* %11
%13 = load double*, double** %4
%14 = getelementptr inbounds double, double* %13, i64 1
store double %12, double* %14
%15 = load double*, double** %3
%16 = getelementptr inbounds double, double* %15, i64 2
%17 = load double, double* %16
%18 = load double*, double** %4
%19 = getelementptr inbounds double, double* %18, i64 2
store double %17, double* %19
%20 = load double*, double** %3
%21 = getelementptr inbounds double, double* %20, i64 3
%22 = load double, double* %21
%23 = load double*, double** %4
%24 = getelementptr inbounds double, double* %23, i64 3
store double %22, double* %24
%25 = load double*, double** %3
%26 = getelementptr inbounds double, double* %25, i64 4
%27 = load double, double* %26
%28 = load double*, double** %4
%29 = getelementptr inbounds double, double* %28, i64 4
store double %27, double* %29
ret void
}

LLVM IR (-O2):
define void @pd_copy(double* nocapture %0, double* nocapture writeonly %1) {
%3 = load double, double* %0
store double %3, double* %1
%4 = getelementptr inbounds double, double* %0, i64 1
%5 = load double, double* %4
%6 = getelementptr inbounds double, double* %1, i64 1
store double %5, double* %6
%7 = getelementptr inbounds double, double* %0, i64 2
%8 = load double, double* %7
%9 = getelementptr inbounds double, double* %1, i64 2
store double %8, double* %9
%10 = getelementptr inbounds double, double* %0, i64 3
%11 = load double, double* %10
%12 = getelementptr inbounds double, double* %1, i64 3
store double %11, double* %12
%13 = getelementptr inbounds double, double* %0, i64 4
%14 = load double, double* %13
%15 = getelementptr inbounds double, double* %1, i64 4
store double %14, double* %15
ret void
}
int mod(int a, int b) {
  if (b == 0)
    return 0;
  return a % b;
}


x86 assembly (clang, -O0):
<mod>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    1120 <mod+0x20>
movl   $0x0,-0x4(%rbp)
jmp    112a <mod+0x2a>
mov    -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
mov    %edx,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<mod>:
test   %esi,%esi
je     110c <mod+0xc>
mov    %edi,%eax
cltd
idiv   %esi
mov    %edx,%eax
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @mod(i32 %0, i32 %1) {
%3 = icmp eq i32 %1, 0
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = srem i32 %0, %1
br label %6
6: ; preds = %2, %4
%7 = phi i32 [ %5, %4 ], [ 0, %2 ]
ret i32 %7
}
void ff_hevc_put_hevc_bi_qpel_v32_10_sse4() {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @g_spawn_error_quark() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ call_f(int /*<<< orphan*/);
int /*<<< orphan*/ rec_untyp(int /*<<< orphan*/);
void call_all(void) { rec_untyp(call_f(0)); }


x86 assembly (clang, -O0):
<call_all>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1040 <call_f@plt>
mov    %eax,%edi
call   1030 <rec_untyp@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<call_all>:
push   %rax
xor    %edi,%edi
call   1040 <call_f@plt>
mov    %eax,%edi
pop    %rax
jmp    1030 <rec_untyp@plt>

LLVM IR (-O0):
define void @call_all() {
%1 = call i32 @call_f(i32 0)
%2 = call i32 @rec_untyp(i32 %1)
ret void
}

LLVM IR (-O2):
define void @call_all() {
%1 = tail call i32 @call_f(i32 0)
%2 = tail call i32 @rec_untyp(i32 %1)
ret void
}