xunge/DecIR huggingface dataset:
/* Type definitions */
struct list_head {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ INIT_LIST_HEAD(struct list_head *);
int /*<<< orphan*/ __qla_list_splice(struct list_head *, struct list_head *);
int /*<<< orphan*/ list_empty(struct list_head *);
void qla_list_splice_init(struct list_head *list, struct list_head *head) {
  if (!list_empty(list)) {
    __qla_list_splice(list, head);
    INIT_LIST_HEAD(list);
  }
}


x86 assembly (clang, -O0):
<qla_list_splice_init>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <list_empty@plt>
cmp    $0x0,%eax
jne    1168 <qla_list_splice_init+0x38>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <__qla_list_splice@plt>
mov    -0x8(%rbp),%rdi
call   1040 <INIT_LIST_HEAD@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<qla_list_splice_init>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1050 <list_empty@plt>
test   %eax,%eax
je     114b <qla_list_splice_init+0x1b>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <__qla_list_splice@plt>
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <INIT_LIST_HEAD@plt>

LLVM IR (-O0):
%struct.list_head = type { i32 }
define void @qla_list_splice_init(%struct.list_head* %0, %struct.list_head* %1) {
%3 = alloca %struct.list_head*
%4 = alloca %struct.list_head*
store %struct.list_head* %0, %struct.list_head** %3
store %struct.list_head* %1, %struct.list_head** %4
%5 = load %struct.list_head*, %struct.list_head** %3
%6 = call i32 @list_empty(%struct.list_head* %5)
%7 = icmp ne i32 %6, 0
br i1 %7, label %14, label %8
8: ; preds = %2
%9 = load %struct.list_head*, %struct.list_head** %3
%10 = load %struct.list_head*, %struct.list_head** %4
%11 = call i32 @__qla_list_splice(%struct.list_head* %9, %struct.list_head* %10)
%12 = load %struct.list_head*, %struct.list_head** %3
%13 = call i32 @INIT_LIST_HEAD(%struct.list_head* %12)
br label %14
14: ; preds = %8, %2
ret void
}

LLVM IR (-O2):
%struct.list_head = type { i32 }
define void @qla_list_splice_init(%struct.list_head* %0, %struct.list_head* %1) {
%3 = tail call i32 @list_empty(%struct.list_head* %0)
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %2
%6 = tail call i32 @__qla_list_splice(%struct.list_head* %0, %struct.list_head* %1)
%7 = tail call i32 @INIT_LIST_HEAD(%struct.list_head* %0)
br label %8
8: ; preds = %5, %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ e_absx();
int /*<<< orphan*/ e_and();
void e_and_absx() {
  e_absx();
  e_and();
}


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

x86 assembly (clang, -O2):
<e_and_absx>:
push   %rax
xor    %eax,%eax
call   1040 <e_absx@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <e_and@plt>

LLVM IR (-O0):
define void @e_and_absx() {
%1 = call i32 (...) @e_absx()
%2 = call i32 (...) @e_and()
ret void
}

LLVM IR (-O2):
define void @e_and_absx() {
%1 = tail call i32 (...) @e_absx()
%2 = tail call i32 (...) @e_and()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ memset(void *, int /*<<< orphan*/, int);
void test_func(void) {
  char buf[16];
  void *buffer_to_confuse_compiler = buf;
  memset(buffer_to_confuse_compiler, 0, 32);
}


x86 assembly (clang, -O0):
<test_func>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1030 <memset@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_func>:
sub    $0x18,%rsp
mov    %rsp,%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1030 <memset@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define void @test_func() {
%1 = alloca [16 x i8]
%2 = alloca i8*
%3 = getelementptr inbounds [16 x i8], [16 x i8]* %1, i64 0, i64 0
store i8* %3, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @memset(i8* %4, i32 0, i32 32)
ret void
}

LLVM IR (-O2):
define void @test_func() {
%1 = alloca [16 x i8]
%2 = getelementptr inbounds [16 x i8], [16 x i8]* %1, i64 0, i64 0
%3 = call i32 @memset(i8* %2, i32 0, i32 32)
ret void
}
/* Type definitions */
struct coro {
  int dummy;
};
struct chunk_array {
  int dummy;
};

/* Variables and functions */
scalar_t__ coro_lwan_array_new(struct coro *, int);
__attribute__((unused)) struct chunk_array *
coro_chunk_array_new(struct coro *coro) {
  return (struct chunk_array *)coro_lwan_array_new(coro, false);
}


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

x86 assembly (clang, -O2):
<coro_chunk_array_new>:
xor    %esi,%esi
jmp    1030 <coro_lwan_array_new@plt>

LLVM IR (-O0):
%struct.chunk_array = type { i32 }
%struct.coro = type { i32 }
define %struct.chunk_array* @coro_chunk_array_new(%struct.coro* %0) {
%2 = alloca %struct.coro*
store %struct.coro* %0, %struct.coro** %2
%3 = load %struct.coro*, %struct.coro** %2
%4 = call i64 @coro_lwan_array_new(%struct.coro* %3, i32 0)
%5 = inttoptr i64 %4 to %struct.chunk_array*
ret %struct.chunk_array* %5
}

LLVM IR (-O2):
%struct.chunk_array = type { i32 }
%struct.coro = type { i32 }
define %struct.chunk_array* @coro_chunk_array_new(%struct.coro* %0) {
%2 = tail call i64 @coro_lwan_array_new(%struct.coro* %0, i32 0)
%3 = inttoptr i64 %2 to %struct.chunk_array*
ret %struct.chunk_array* %3
}
double rgbToXyzY(int rin, int gin, int bin) {
  double r = ((double)rin / 255.0);
  double g = ((double)gin / 255.0);
  double b = ((double)bin / 255.0);
  return (r * 0.212671) + (g * 0.715160) + (b * 0.072169);
}


x86 assembly (clang, -O0):
<rgbToXyzY>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
cvtsi2sdl -0x4(%rbp),%xmm0
movsd  0xefe(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  0xee8(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
cvtsi2sdl -0xc(%rbp),%xmm0
movsd  0xed2(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm1
movsd  0xeb4(%rip),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  0xe9f(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
movsd  0xe82(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<rgbToXyzY>:
cvtsi2sd %edi,%xmm1
movsd  0xef4(%rip),%xmm2
divsd  %xmm2,%xmm1
cvtsi2sd %esi,%xmm3
divsd  %xmm2,%xmm3
cvtsi2sd %edx,%xmm0
divsd  %xmm2,%xmm0
mulsd  0xee0(%rip),%xmm3
mulsd  0xee0(%rip),%xmm1
addsd  %xmm3,%xmm1
mulsd  0xedc(%rip),%xmm0
addsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @rgbToXyzY(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca double
%8 = alloca double
%9 = alloca double
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%10 = load i32, i32* %4
%11 = sitofp i32 %10 to double
%12 = fdiv double %11, 2.550000e+02
store double %12, double* %7
%13 = load i32, i32* %5
%14 = sitofp i32 %13 to double
%15 = fdiv double %14, 2.550000e+02
store double %15, double* %8
%16 = load i32, i32* %6
%17 = sitofp i32 %16 to double
%18 = fdiv double %17, 2.550000e+02
store double %18, double* %9
%19 = load double, double* %7
%20 = load double, double* %8
%21 = fmul double %20, 7.151600e-01
%22 = call double @llvm.fmuladd.f64(double %19, double 2.126710e-01, double %21)
%23 = load double, double* %9
%24 = call double @llvm.fmuladd.f64(double %23, double 0x3FB279AAE6C8F755, double %22)
ret double %24
}

LLVM IR (-O2):
define double @rgbToXyzY(i32 %0, i32 %1, i32 %2) {
%4 = sitofp i32 %0 to double
%5 = fdiv double %4, 2.550000e+02
%6 = sitofp i32 %1 to double
%7 = fdiv double %6, 2.550000e+02
%8 = sitofp i32 %2 to double
%9 = fdiv double %8, 2.550000e+02
%10 = fmul double %7, 7.151600e-01
%11 = tail call double @llvm.fmuladd.f64(double %5, double 2.126710e-01, double %10)
%12 = tail call double @llvm.fmuladd.f64(double %9, double 0x3FB279AAE6C8F755, double %11)
ret double %12
}
void Default_Handler(void) {
#pragma diag_push
#pragma CHECK_ULP("-2.1")
  while (1) {
  }
#pragma diag_pop
}


x86 assembly (clang, -O0):
<Default_Handler>:
push   %rbp
mov    %rsp,%rbp
jmp    1109 <Default_Handler+0x9>
jmp    1109 <Default_Handler+0x9>

x86 assembly (clang, -O2):
<Default_Handler>:
jmp    1100 <Default_Handler>

LLVM IR (-O0):
define void @Default_Handler() {
br label %1
1: ; preds = %0, %1
br label %1
}

LLVM IR (-O2):
define void @Default_Handler() {
br label %1
1: ; preds = %0, %1
br label %1
}
void INT_Excep_SCI12_TXI12(void) {}


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

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

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

LLVM IR (-O2):
define void @INT_Excep_SCI12_TXI12() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ fd_set;

/* Variables and functions */
int /*<<< orphan*/ process_conference(int /*<<< orphan*/ *,
                                      int /*<<< orphan*/ *);
int /*<<< orphan*/ process_control(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int /*<<< orphan*/ process_p2p(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
void peer_io(fd_set *ips, fd_set *ops) {
  process_conference(ips, ops);
  process_p2p(ips, ops);
  process_control(ips, ops);
}


x86 assembly (clang, -O0):
<peer_io>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <process_conference@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <process_p2p@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <process_control@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<peer_io>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1030 <process_conference@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <process_p2p@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1050 <process_control@plt>

LLVM IR (-O0):
define void @peer_io(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 = call i32 @process_conference(i32* %5, i32* %6)
%8 = load i32*, i32** %3
%9 = load i32*, i32** %4
%10 = call i32 @process_p2p(i32* %8, i32* %9)
%11 = load i32*, i32** %3
%12 = load i32*, i32** %4
%13 = call i32 @process_control(i32* %11, i32* %12)
ret void
}

LLVM IR (-O2):
define void @peer_io(i32* %0, i32* %1) {
%3 = tail call i32 @process_conference(i32* %0, i32* %1)
%4 = tail call i32 @process_p2p(i32* %0, i32* %1)
%5 = tail call i32 @process_control(i32* %0, i32* %1)
ret void
}
/* Variables and functions */
int open(char const *, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, char const *);
int OpenFile(const char *filepath, int flag) {
  int fd;
  if (0 > (fd = open(filepath, flag))) {
    perror("open");
    printf("file: %s\n", filepath);
    return (-1);
  }
  return fd;
}


x86 assembly (clang, -O0):
<OpenFile>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1040 <open@plt>
mov    %eax,%ecx
mov    %ecx,-0x18(%rbp)
xor    %eax,%eax
cmp    %ecx,%eax
jle    1182 <OpenFile+0x52>
lea    0xe9f(%rip),%rdi
call   1050 <perror@plt>
mov    -0x10(%rbp),%rsi
lea    0xe94(%rip),%rdi
call   1030 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1188 <OpenFile+0x58>
mov    -0x18(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<OpenFile>:
push   %rbx
mov    %rdi,%rbx
call   1040 <open@plt>
test   %eax,%eax
js     113f <OpenFile+0xf>
pop    %rbx
ret
lea    0xeba(%rip),%rdi
call   1050 <perror@plt>
lea    0xeb3(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
mov    $0xffffffff,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c"open\00"
@.str.1 = [10 x i8] c"file: %s\0A\00"
define i32 @OpenFile(i8* %0, i32 %1) {
%3 = tail call i32 @open(i8* %0, i32 %1)
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %2
%6 = tail call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* %0)
br label %8
8: ; preds = %2, %5
%9 = phi i32 [ -1, %5 ], [ %3, %2 ]
ret i32 %9
}
/* Variables and functions */
double gsw_gibbs(int, int, int, double, double, double);
double gsw_entropy_from_t(double sa, double t, double p) {
  int n0, n1;
  n0 = 0;
  n1 = 1;
  return (-gsw_gibbs(n0, n1, n0, sa, t, p));
}


x86 assembly (clang, -O0):
<gsw_entropy_from_t>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x1,-0x20(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
call   1030 <gsw_gibbs@plt>
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gsw_entropy_from_t>:
push   %rax
xor    %edi,%edi
mov    $0x1,%esi
xor    %edx,%edx
call   1030 <gsw_gibbs@plt>
xorps  0xeda(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @gsw_entropy_from_t(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca i32
%8 = alloca i32
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
store i32 0, i32* %7
store i32 1, i32* %8
%9 = load i32, i32* %7
%10 = load i32, i32* %8
%11 = load i32, i32* %7
%12 = load double, double* %4
%13 = load double, double* %5
%14 = load double, double* %6
%15 = call double @gsw_gibbs(i32 %9, i32 %10, i32 %11, double %12, double %13, double %14)
%16 = fneg double %15
ret double %16
}

LLVM IR (-O2):
define double @gsw_entropy_from_t(double %0, double %1, double %2) {
%4 = tail call double @gsw_gibbs(i32 0, i32 1, i32 0, double %0, double %1, double %2)
%5 = fneg double %4
ret double %5
}
int multiple(int num) {
  int i;
  int mask = 1;
  int mult = 1;
  for (i = 1; i <= 10; i++, mask <<= 1) {
    if ((num & mask) != 0) {
      mult = 0;
      break;
    }
  }
  return mult;
}


x86 assembly (clang, -O0):
<multiple>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x1,-0xc(%rbp)
movl   $0x1,-0x10(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jg     115d <multiple+0x5d>
mov    -0x4(%rbp),%eax
and    -0xc(%rbp),%eax
cmp    $0x0,%eax
je     1141 <multiple+0x41>
movl   $0x0,-0x10(%rbp)
jmp    115d <multiple+0x5d>
jmp    1146 <multiple+0x46>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    111c <multiple+0x1c>
mov    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<multiple>:
xor    %eax,%eax
test   $0x3ff,%edi
sete   %al
ret

LLVM IR (-O0):
define i32 @multiple(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %2
store i32 1, i32* %4
store i32 1, i32* %5
store i32 1, i32* %3
br label %6
6: ; preds = %16, %1
%7 = load i32, i32* %3
%8 = icmp sle i32 %7, 10
br i1 %8, label %9, label %21
9: ; preds = %6
%10 = load i32, i32* %2
%11 = load i32, i32* %4
%12 = and i32 %10, %11
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %9
store i32 0, i32* %5
br label %21
15: ; preds = %9
br label %16
16: ; preds = %15
%17 = load i32, i32* %3
%18 = add nsw i32 %17, 1
store i32 %18, i32* %3
%19 = load i32, i32* %4
%20 = shl i32 %19, 1
store i32 %20, i32* %4
br label %6
21: ; preds = %14, %6
%22 = load i32, i32* %5
ret i32 %22
}

LLVM IR (-O2):
define i32 @multiple(i32 %0) {
%2 = and i32 %0, 1023
%3 = icmp eq i32 %2, 0
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Variables and functions */
scalar_t__ shim_enosys(int /*<<< orphan*/, unsigned int, unsigned int, int,
                       void *);
int shim_quotactl_fd(unsigned int fd, unsigned int cmd, int id, void *addr) {
  return (int)shim_enosys(0, fd, cmd, id, addr);
}


x86 assembly (clang, -O0):
<shim_quotactl_fd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
mov    -0x18(%rbp),%r8
xor    %edi,%edi
call   1030 <shim_enosys@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<shim_quotactl_fd>:
mov    %rcx,%r8
mov    %edx,%ecx
mov    %esi,%edx
mov    %edi,%esi
xor    %edi,%edi
jmp    1030 <shim_enosys@plt>

LLVM IR (-O0):
define i32 @shim_quotactl_fd(i32 %0, i32 %1, i32 %2, i8* %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i8* %3, i8** %8
%9 = load i32, i32* %5
%10 = load i32, i32* %6
%11 = load i32, i32* %7
%12 = load i8*, i8** %8
%13 = call i64 @shim_enosys(i32 0, i32 %9, i32 %10, i32 %11, i8* %12)
%14 = trunc i64 %13 to i32
ret i32 %14
}

LLVM IR (-O2):
define i32 @shim_quotactl_fd(i32 %0, i32 %1, i32 %2, i8* %3) {
%5 = tail call i64 @shim_enosys(i32 0, i32 %0, i32 %1, i32 %2, i8* %3)
%6 = trunc i64 %5 to i32
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ test(int, int);
void foo(int x, int y) {
  if (x == y)
    goto a;
  else {
  a:;
    if (x == y)
      goto b;
    else {
    b:;
      if (x != y)
        test(x, y);
    }
  }
}


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jne    112f <foo+0x1f>
jmp    1134 <foo+0x24>
jmp    1134 <foo+0x24>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jne    1145 <foo+0x35>
jmp    114a <foo+0x3a>
jmp    114a <foo+0x3a>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
je     1161 <foo+0x51>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <test@plt>
jmp    1166 <foo+0x56>
jmp    116b <foo+0x5b>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo>:
cmp    %esi,%edi
jne    1115 <foo+0x5>
ret
jmp    1030 <test@plt>

LLVM IR (-O0):
define void @foo(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 eq i32 %5, %6
br i1 %7, label %8, label %9
8: ; preds = %2
br label %10
9: ; preds = %2
br label %10
10: ; preds = %9, %8
%11 = load i32, i32* %3
%12 = load i32, i32* %4
%13 = icmp eq i32 %11, %12
br i1 %13, label %14, label %15
14: ; preds = %10
br label %16
15: ; preds = %10
br label %16
16: ; preds = %15, %14
%17 = load i32, i32* %3
%18 = load i32, i32* %4
%19 = icmp ne i32 %17, %18
br i1 %19, label %20, label %24
20: ; preds = %16
%21 = load i32, i32* %3
%22 = load i32, i32* %4
%23 = call i32 @test(i32 %21, i32 %22)
br label %24
24: ; preds = %20, %16
br label %25
25: ; preds = %24
br label %26
26: ; preds = %25
ret void
}

LLVM IR (-O2):
define void @foo(i32 %0, i32 %1) {
%3 = icmp eq i32 %0, %1
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = tail call i32 @test(i32 %0, i32 %1)
br label %6
6: ; preds = %4, %2
ret void
}
/* Variables and functions */
void memcpy(void) {}


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

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

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

LLVM IR (-O2):
define void @memcpy() {
ret void
}
/* Type definitions */
struct tm {
  int dummy;
};
typedef int /*<<< orphan*/ buf;

/* Variables and functions */
int /*<<< orphan*/ asctime_s(char *, int, struct tm const *);
void uninitvar_asctime_s(void) {
  const struct tm *tm;
  char buf[26];
  asctime_s(buf, sizeof(buf), tm);
}


x86 assembly (clang, -O0):
<uninitvar_asctime_s>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
lea    -0x30(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    $0x1a,%esi
call   1030 <asctime_s@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<uninitvar_asctime_s>:
sub    $0x28,%rsp
mov    %rsp,%rdi
mov    $0x1a,%esi
call   1030 <asctime_s@plt>
add    $0x28,%rsp
ret

LLVM IR (-O0):
%struct.tm = type { i32 }
define void @uninitvar_asctime_s() {
%1 = alloca %struct.tm*
%2 = alloca [26 x i8]
%3 = getelementptr inbounds [26 x i8], [26 x i8]* %2, i64 0, i64 0
%4 = load %struct.tm*, %struct.tm** %1
%5 = call i32 @asctime_s(i8* %3, i32 26, %struct.tm* %4)
ret void
}

LLVM IR (-O2):
%struct.tm = type { i32 }
define void @uninitvar_asctime_s() {
%1 = alloca [26 x i8]
%2 = getelementptr inbounds [26 x i8], [26 x i8]* %1, i64 0, i64 0
%3 = call i32 @asctime_s(i8* %2, i32 26, %struct.tm* undef)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ __m64;
typedef int /*<<< orphan*/ __m128;

/* Variables and functions */
int /*<<< orphan*/ _mm_cvtps_pi32(int /*<<< orphan*/);
__m64 test_mm_cvtps_pi32(__m128 a) { return _mm_cvtps_pi32(a); }


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

x86 assembly (clang, -O2):
<test_mm_cvtps_pi32>:
jmp    1030 <_mm_cvtps_pi32@plt>

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

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

/* Variables and functions */
int /*<<< orphan*/ stdlib_strided_scusumkbn(int /*<<< orphan*/ const,
                                            float const, float const *,
                                            int /*<<< orphan*/ const, float *,
                                            int /*<<< orphan*/ const);
void stdlib_strided_scusum(const int64_t N, const float sum, const float *X,
                           const int64_t strideX, float *Y,
                           const int64_t strideY) {
  stdlib_strided_scusumkbn(N, sum, X, strideX, Y, strideY);
}


x86 assembly (clang, -O0):
<stdlib_strided_scusum>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
movss  %xmm0,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    -0x4(%rbp),%edi
movss  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%rcx
mov    -0x24(%rbp),%r8d
call   1030 <stdlib_strided_scusumkbn@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stdlib_strided_scusum>:
jmp    1030 <stdlib_strided_scusumkbn@plt>

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

LLVM IR (-O2):
define void @stdlib_strided_scusum(i32 %0, float %1, float* %2, i32 %3, float* %4, i32 %5) {
%7 = tail call i32 @stdlib_strided_scusumkbn(i32 %0, float %1, float* %2, i32 %3, float* %4, i32 %5)
ret void
}
unsigned int _uiBackupLine(unsigned int uiLine) { return (1); }


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

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

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

LLVM IR (-O2):
define i32 @_uiBackupLine(i32 %0) {
ret i32 1
}
void get_job() {}


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

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

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

LLVM IR (-O2):
define void @get_job() {
ret void
}
/* Variables and functions */
unsigned int cpuid_eax(int);
unsigned int cpuid_family(void) {
  const unsigned int eax = cpuid_eax(1);
  return (eax & 0xff00000) >> (20 - 4) | (eax & 0xf00) >> 8;
}


x86 assembly (clang, -O0):
<cpuid_family>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x1,%edi
call   1030 <cpuid_eax@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xff00000,%eax
shr    $0x10,%eax
mov    -0x4(%rbp),%ecx
and    $0xf00,%ecx
shr    $0x8,%ecx
or     %ecx,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cpuid_family>:
push   %rax
mov    $0x1,%edi
call   1030 <cpuid_eax@plt>
mov    %eax,%ecx
shr    $0x10,%ecx
and    $0xff0,%ecx
shr    $0x8,%eax
and    $0xf,%eax
or     %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @cpuid_family() {
%1 = alloca i32
%2 = call i32 @cpuid_eax(i32 1)
store i32 %2, i32* %1
%3 = load i32, i32* %1
%4 = and i32 %3, 267386880
%5 = lshr i32 %4, 16
%6 = load i32, i32* %1
%7 = and i32 %6, 3840
%8 = lshr i32 %7, 8
%9 = or i32 %5, %8
ret i32 %9
}

LLVM IR (-O2):
define i32 @cpuid_family() {
%1 = tail call i32 @cpuid_eax(i32 1)
%2 = lshr i32 %1, 16
%3 = and i32 %2, 4080
%4 = lshr i32 %1, 8
%5 = and i32 %4, 15
%6 = or i32 %3, %5
ret i32 %6
}
/* Type definitions */
struct sockaddr_un {
  int dummy;
};
struct sockaddr {
  int dummy;
};
typedef int socklen_t;
typedef int /*<<< orphan*/ sa;

/* Variables and functions */
int anetGenericAccept(char *, int, struct sockaddr *, int *);
int anetUnixAccept(char *err, int s) {
  int fd;
  struct sockaddr_un sa;
  socklen_t salen = sizeof(sa);
  if ((fd = anetGenericAccept(err, s, (struct sockaddr *)&sa, &salen)) == -1) {
    return -1;
  }
  return fd;
}


x86 assembly (clang, -O0):
<anetUnixAccept>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
movl   $0x4,-0x24(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
lea    -0x20(%rbp),%rdx
lea    -0x24(%rbp),%rcx
call   1030 <anetGenericAccept@plt>
mov    %eax,-0x18(%rbp)
cmp    $0xffffffff,%eax
jne    1152 <anetUnixAccept+0x42>
movl   $0xffffffff,-0x4(%rbp)
jmp    1158 <anetUnixAccept+0x48>
mov    -0x18(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<anetUnixAccept>:
sub    $0x18,%rsp
movl   $0x4,0xc(%rsp)
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
call   1030 <anetGenericAccept@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.sockaddr_un = type { i32 }
%struct.sockaddr = type { i32 }
define i32 @anetUnixAccept(i8* %0, i32 %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca %struct.sockaddr_un
%8 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32 4, i32* %8
%9 = load i8*, i8** %4
%10 = load i32, i32* %5
%11 = bitcast %struct.sockaddr_un* %7 to %struct.sockaddr*
%12 = call i32 @anetGenericAccept(i8* %9, i32 %10, %struct.sockaddr* %11, i32* %8)
store i32 %12, i32* %6
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %15
14: ; preds = %2
store i32 -1, i32* %3
br label %17
15: ; preds = %2
%16 = load i32, i32* %6
store i32 %16, i32* %3
br label %17
17: ; preds = %15, %14
%18 = load i32, i32* %3
ret i32 %18
}

LLVM IR (-O2):
%struct.sockaddr_un = type { i32 }
%struct.sockaddr = type { i32 }
define i32 @anetUnixAccept(i8* %0, i32 %1) {
%3 = alloca %struct.sockaddr_un
%4 = alloca i32
%5 = bitcast %struct.sockaddr_un* %3 to i8*
%6 = bitcast i32* %4 to i8*
store i32 4, i32* %4
%7 = bitcast %struct.sockaddr_un* %3 to %struct.sockaddr*
%8 = call i32 @anetGenericAccept(i8* %0, i32 %1, %struct.sockaddr* %7, i32* %4)
ret i32 %8
}
int check_request(char request[65536]) {
  if (request[0] == 'G' && request[1] == 'E' && request[2] == 'T')
    return 200;
  else
    return 400;
}


x86 assembly (clang, -O0):
<check_request>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x47,%eax
jne    1146 <check_request+0x46>
mov    -0x10(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x45,%eax
jne    1146 <check_request+0x46>
mov    -0x10(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x54,%eax
jne    1146 <check_request+0x46>
movl   $0xc8,-0x4(%rbp)
jmp    114d <check_request+0x4d>
movl   $0x190,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_request>:
cmpb   $0x47,(%rdi)
jne    1116 <check_request+0x16>
cmpb   $0x45,0x1(%rdi)
jne    1116 <check_request+0x16>
mov    $0xc8,%eax
cmpb   $0x54,0x2(%rdi)
je     111b <check_request+0x1b>
mov    $0x190,%eax
ret

LLVM IR (-O0):
define i32 @check_request(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = getelementptr inbounds i8, i8* %4, i64 0
%6 = load i8, i8* %5
%7 = sext i8 %6 to i32
%8 = icmp eq i32 %7, 71
br i1 %8, label %9, label %22
9: ; preds = %1
%10 = load i8*, i8** %3
%11 = getelementptr inbounds i8, i8* %10, i64 1
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 69
br i1 %14, label %15, label %22
15: ; preds = %9
%16 = load i8*, i8** %3
%17 = getelementptr inbounds i8, i8* %16, i64 2
%18 = load i8, i8* %17
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 84
br i1 %20, label %21, label %22
21: ; preds = %15
store i32 200, i32* %2
br label %23
22: ; preds = %15, %9, %1
store i32 400, i32* %2
br label %23
23: ; preds = %22, %21
%24 = load i32, i32* %2
ret i32 %24
}

LLVM IR (-O2):
define i32 @check_request(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 71
br i1 %3, label %4, label %12
4: ; preds = %1
%5 = getelementptr inbounds i8, i8* %0, i64 1
%6 = load i8, i8* %5
%7 = icmp eq i8 %6, 69
br i1 %7, label %8, label %12
8: ; preds = %4
%9 = getelementptr inbounds i8, i8* %0, i64 2
%10 = load i8, i8* %9
%11 = icmp eq i8 %10, 84
br i1 %11, label %13, label %12
12: ; preds = %8, %4, %1
br label %13
13: ; preds = %8, %12
%14 = phi i32 [ 400, %12 ], [ 200, %8 ]
ret i32 %14
}
void ASN1_ENUMERATED_to_BN(void) {}


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

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

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

LLVM IR (-O2):
define void @ASN1_ENUMERATED_to_BN() {
ret void
}
__attribute((pure, no, const, fastcall)) void __xxx(void) {}


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

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

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

LLVM IR (-O2):
define void @__xxx() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ wchar_t;

/* Variables and functions */
int __get_array_size(int /*<<< orphan*/ *);
int __infer_nondet_int();
int swprintf(wchar_t *s, size_t n, const wchar_t *format, ...) {
  int res;
  int size1;
  size1 = __get_array_size(s);
  res = __infer_nondet_int();
  if (res < 0)
    while (1)
      ;
  return res;
}


x86 assembly (clang, -O0):
<swprintf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <__get_array_size@plt>
mov    %eax,-0x20(%rbp)
mov    $0x0,%al
call   1030 <__infer_nondet_int@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jge    115e <swprintf+0x3e>
jmp    1159 <swprintf+0x39>
jmp    1159 <swprintf+0x39>
mov    -0x1c(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<swprintf>:
push   %rax
call   1040 <__get_array_size@plt>
xor    %eax,%eax
call   1030 <__infer_nondet_int@plt>
test   %eax,%eax
js     1140 <swprintf+0x20>
pop    %rcx
ret
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
jmp    1140 <swprintf+0x20>

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

LLVM IR (-O2):
define i32 @swprintf(i32* %0, i64 %1, i32* nocapture readnone %2, ...) {
%4 = tail call i32 @__get_array_size(i32* %0)
%5 = tail call i32 (...) @__infer_nondet_int()
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %3, %7
br label %7
8: ; preds = %3
ret i32 %5
}
unsigned int _cairo_combsort_newgap(unsigned int gap) {
  gap = 10 * gap / 13;
  if (gap == 9 || gap == 10)
    gap = 11;
  if (gap < 1)
    gap = 1;
  return gap;
}


x86 assembly (clang, -O0):
<_cairo_combsort_newgap>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
imul   $0xa,-0x4(%rbp),%eax
mov    $0xd,%ecx
xor    %edx,%edx
div    %ecx
mov    %eax,-0x4(%rbp)
cmpl   $0x9,-0x4(%rbp)
je     112b <_cairo_combsort_newgap+0x2b>
cmpl   $0xa,-0x4(%rbp)
jne    1132 <_cairo_combsort_newgap+0x32>
movl   $0xb,-0x4(%rbp)
cmpl   $0x1,-0x4(%rbp)
jae    1143 <_cairo_combsort_newgap+0x43>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_cairo_combsort_newgap>:
add    %edi,%edi
lea    (%rdi,%rdi,4),%eax
add    $0xffffff8b,%eax
mov    $0xb,%ecx
cmp    $0x1a,%eax
jb     1122 <_cairo_combsort_newgap+0x22>
lea    (%rdi,%rdi,4),%eax
mov    %eax,%eax
imul   $0x4ec4ec4f,%rax,%rcx
shr    $0x22,%rcx
test   %ecx,%ecx
mov    $0x1,%eax
cmovne %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @_cairo_combsort_newgap(i32 %0) {
%2 = mul i32 %0, 10
%3 = udiv i32 %2, 13
%4 = add i32 %2, -117
%5 = icmp ult i32 %4, 26
%6 = select i1 %5, i32 11, i32 %3
%7 = icmp eq i32 %6, 0
%8 = select i1 %7, i32 1, i32 %6
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ memcpy(void *, void *, int);
unsigned short mus_char_to_ulshort(const unsigned char *inp) {
  unsigned short o;
  unsigned char *outp = (unsigned char *)&o;
  memcpy((void *)outp, (void *)inp, 2);
  return (o);
}


x86 assembly (clang, -O0):
<mus_char_to_ulshort>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0xa(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    $0x2,%edx
call   1030 <memcpy@plt>
movzwl -0xa(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mus_char_to_ulshort>:
push   %rax
mov    %rdi,%rsi
lea    0x6(%rsp),%rdi
mov    $0x2,%edx
call   1030 <memcpy@plt>
movzwl 0x6(%rsp),%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define zeroext i16 @mus_char_to_ulshort(i8* %0) {
%2 = alloca i16
%3 = bitcast i16* %2 to i8*
%4 = call i32 @memcpy(i8* %3, i8* %0, i32 2)
%5 = load i16, i16* %2
ret i16 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
void dbg_set_out(FILE *fp) {}


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

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

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

LLVM IR (-O2):
define void @dbg_set_out(i32* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int SIGABRT;
int SIGINT;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void SignalHandler(int signal) {
  if (SIGINT == signal) {
    printf("\n");
    exit(EXIT_FAILURE);
  } else if (SIGABRT == signal) {
    exit(EXIT_FAILURE);
  }
}


x86 assembly (clang, -O0):
<SignalHandler>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2eb6(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jne    1157 <SignalHandler+0x37>
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e88(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>
mov    0x2e72(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jne    1177 <SignalHandler+0x57>
mov    0x2e68(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>
jmp    117c <SignalHandler+0x5c>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SignalHandler>:
push   %rax
mov    0x2ec0(%rip),%rax
cmp    %edi,(%rax)
je     1139 <SignalHandler+0x19>
mov    0x2e9d(%rip),%rax
cmp    %edi,(%rax)
je     1143 <SignalHandler+0x23>
pop    %rax
ret
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x2e8e(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

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

LLVM IR (-O2):
@SIGINT = global i32 0
@EXIT_FAILURE = global i32 0
@SIGABRT = global i32 0
define void @SignalHandler(i32 %0) {
%2 = load i32, i32* @SIGINT
%3 = icmp eq i32 %2, %0
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = tail call i32 @putchar(i32 10)
%6 = load i32, i32* @EXIT_FAILURE
%7 = tail call i32 @exit(i32 %6)
unreachable
8: ; preds = %1
%9 = load i32, i32* @SIGABRT
%10 = icmp eq i32 %9, %0
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, i32* @EXIT_FAILURE
%13 = tail call i32 @exit(i32 %12)
unreachable
14: ; preds = %8
ret void
}
/* Variables and functions */
int getOrigin(int);
int /*<<< orphan*/ initPersonOnFloor(int, int);
void chuckCall(void) {
  int tmp;
  {
    {
      tmp = getOrigin(3);
      initPersonOnFloor(3, tmp);
    }
    return;
  }
}


x86 assembly (clang, -O0):
<chuckCall>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x3,%edi
call   1030 <getOrigin@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%esi
mov    $0x3,%edi
call   1040 <initPersonOnFloor@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<chuckCall>:
push   %rax
mov    $0x3,%edi
call   1030 <getOrigin@plt>
mov    $0x3,%edi
mov    %eax,%esi
pop    %rax
jmp    1040 <initPersonOnFloor@plt>

LLVM IR (-O0):
define void @chuckCall() {
%1 = alloca i32
%2 = call i32 @getOrigin(i32 3)
store i32 %2, i32* %1
%3 = load i32, i32* %1
%4 = call i32 @initPersonOnFloor(i32 3, i32 %3)
ret void
}

LLVM IR (-O2):
define void @chuckCall() {
%1 = tail call i32 @getOrigin(i32 3)
%2 = tail call i32 @initPersonOnFloor(i32 3, i32 %1)
ret void
}
/* Variables and functions */
int do_run();
int main(int argc, char *argv[]) {
  int ret = do_run();
  return ret;
}


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)
mov    $0x0,%al
call   1030 <do_run@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
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
%7 = call i32 (...) @do_run()
store i32 %7, i32* %6
%8 = load i32, i32* %6
ret i32 %8
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @do_run()
ret i32 %3
}
int test_unquoted_keys(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @test_unquoted_keys() {
ret i32 0
}
/* Variables and functions */
scalar_t__ tolower(int);
void str_tolower(char *s) {
  for (; *s; ++s)
    *s = (char)tolower((int)*s);
}


x86 assembly (clang, -O0):
<str_tolower>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     114e <str_tolower+0x3e>
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <tolower@plt>
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    111c <str_tolower+0xc>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<str_tolower>:
push   %rbx
mov    (%rdi),%al
test   %al,%al
je     1136 <str_tolower+0x26>
mov    %rdi,%rbx
add    $0x1,%rbx
xchg   %ax,%ax
movsbl %al,%edi
call   1030 <tolower@plt>
mov    %al,-0x1(%rbx)
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1120 <str_tolower+0x10>
pop    %rbx
ret

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

LLVM IR (-O2):
define void @str_tolower(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %13, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %11, %4 ], [ %2, %1 ]
%6 = phi i8* [ %10, %4 ], [ %0, %1 ]
%7 = sext i8 %5 to i32
%8 = tail call i64 @tolower(i32 %7)
%9 = trunc i64 %8 to i8
store i8 %9, i8* %6
%10 = getelementptr inbounds i8, i8* %6, i64 1
%11 = load i8, i8* %10
%12 = icmp eq i8 %11, 0
br i1 %12, label %13, label %4
13: ; preds = %4, %1
ret void
}
float loopFloat(float x) {
  if (x < 0.)
    return x - (int)x + 1.;
  else if (x >= 1)
    return x - (int)x;
  return x;
}


x86 assembly (clang, -O0):
<loopFloat>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jbe    114f <loopFloat+0x4f>
movss  -0x8(%rbp),%xmm0
cvttss2si -0x8(%rbp),%eax
cvtsi2ss %eax,%xmm1
subss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xecb(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1190 <loopFloat+0x90>
movss  -0x8(%rbp),%xmm0
movss  0xea4(%rip),%xmm1
ucomiss %xmm1,%xmm0
jb     1181 <loopFloat+0x81>
movss  -0x8(%rbp),%xmm0
cvttss2si -0x8(%rbp),%eax
cvtsi2ss %eax,%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1190 <loopFloat+0x90>
jmp    1186 <loopFloat+0x86>
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<loopFloat>:
xorps  %xmm1,%xmm1
ucomiss %xmm0,%xmm1
jbe    111c <loopFloat+0x1c>
cvttps2dq %xmm0,%xmm1
cvtdq2ps %xmm1,%xmm1
subss  %xmm1,%xmm0
addss  0xee5(%rip),%xmm0
ret
ucomiss 0xedd(%rip),%xmm0
jb     1130 <loopFloat+0x30>
cvttps2dq %xmm0,%xmm1
cvtdq2ps %xmm1,%xmm1
subss  %xmm1,%xmm0
ret

LLVM IR (-O0):
define float @loopFloat(float %0) {
%2 = alloca float
%3 = alloca float
store float %0, float* %3
%4 = load float, float* %3
%5 = fpext float %4 to double
%6 = fcmp olt double %5, 0.000000e+00
br i1 %6, label %7, label %16
7: ; preds = %1
%8 = load float, float* %3
%9 = load float, float* %3
%10 = fptosi float %9 to i32
%11 = sitofp i32 %10 to float
%12 = fsub float %8, %11
%13 = fpext float %12 to double
%14 = fadd double %13, 1.000000e+00
%15 = fptrunc double %14 to float
store float %15, float* %2
br label %28
16: ; preds = %1
%17 = load float, float* %3
%18 = fcmp oge float %17, 1.000000e+00
br i1 %18, label %19, label %25
19: ; preds = %16
%20 = load float, float* %3
%21 = load float, float* %3
%22 = fptosi float %21 to i32
%23 = sitofp i32 %22 to float
%24 = fsub float %20, %23
store float %24, float* %2
br label %28
25: ; preds = %16
br label %26
26: ; preds = %25
%27 = load float, float* %3
store float %27, float* %2
br label %28
28: ; preds = %26, %19, %7
%29 = load float, float* %2
ret float %29
}

LLVM IR (-O2):
define float @loopFloat(float %0) {
%2 = fcmp olt float %0, 0.000000e+00
br i1 %2, label %3, label %8
3: ; preds = %1
%4 = fptosi float %0 to i32
%5 = sitofp i32 %4 to float
%6 = fsub float %0, %5
%7 = fadd float %6, 1.000000e+00
br label %14
8: ; preds = %1
%9 = fcmp ult float %0, 1.000000e+00
br i1 %9, label %14, label %10
10: ; preds = %8
%11 = fptosi float %0 to i32
%12 = sitofp i32 %11 to float
%13 = fsub float %0, %12
br label %14
14: ; preds = %8, %10, %3
%15 = phi float [ %7, %3 ], [ %13, %10 ], [ %0, %8 ]
ret float %15
}
int fun1173() { return 1173; }


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

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

LLVM IR (-O0):
define i32 @fun1173() {
ret i32 1173
}

LLVM IR (-O2):
define i32 @fun1173() {
ret i32 1173
}
/* Variables and functions */
int add(int, int);
int do_add(int x, int y) { return add(x, y); }


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

x86 assembly (clang, -O2):
<do_add>:
jmp    1030 <add@plt>

LLVM IR (-O0):
define i32 @do_add(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 = call i32 @add(i32 %5, i32 %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @do_add(i32 %0, i32 %1) {
%3 = tail call i32 @add(i32 %0, i32 %1)
ret i32 %3
}
int documentContinue(struct collectionFormat *collection) { return 1; }


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

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

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

LLVM IR (-O2):
%struct.collectionFormat = type opaque
define i32 @documentContinue(%struct.collectionFormat* nocapture readnone %0) {
ret i32 1
}
void foo074() {}


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

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

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

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