xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ AffineEncrypt(char *, int, int, int);
int Inverse(int);
int AffineDecrypt(char text[], int letters, int key1, int key2) {
  int invKey1, decKey2;
  invKey1 = Inverse(key1);
  decKey2 = 26 - ((invKey1 * key2) % 26);
  AffineEncrypt(text, letters, invKey1, decKey2);
  return 0;
}


x86 assembly (clang, -O0):
<AffineDecrypt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    -0x10(%rbp),%edi
call   1030 <Inverse@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
imul   -0x14(%rbp),%eax
mov    $0x1a,%ecx
cltd
idiv   %ecx
mov    $0x1a,%eax
sub    %edx,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%ecx
call   1040 <AffineEncrypt@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<AffineDecrypt>:
push   %rbp
push   %r14
push   %rbx
mov    %ecx,%ebp
mov    %esi,%r14d
mov    %rdi,%rbx
mov    %edx,%edi
call   1030 <Inverse@plt>
imul   %eax,%ebp
movslq %ebp,%rdx
imul   $0x4ec4ec4f,%rdx,%rsi
mov    %rsi,%rcx
shr    $0x3f,%rcx
sar    $0x23,%rsi
add    %ecx,%esi
lea    (%rsi,%rsi,4),%ecx
lea    (%rcx,%rcx,4),%ecx
add    %esi,%ecx
sub    %edx,%ecx
add    $0x1a,%ecx
mov    %rbx,%rdi
mov    %r14d,%esi
mov    %eax,%edx
call   1040 <AffineEncrypt@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @AffineDecrypt(i8* %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i8* %0, i8** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%11 = load i32, i32* %7
%12 = call i32 @Inverse(i32 %11)
store i32 %12, i32* %9
%13 = load i32, i32* %9
%14 = load i32, i32* %8
%15 = mul nsw i32 %13, %14
%16 = srem i32 %15, 26
%17 = sub nsw i32 26, %16
store i32 %17, i32* %10
%18 = load i8*, i8** %5
%19 = load i32, i32* %6
%20 = load i32, i32* %9
%21 = load i32, i32* %10
%22 = call i32 @AffineEncrypt(i8* %18, i32 %19, i32 %20, i32 %21)
ret i32 0
}

LLVM IR (-O2):
define i32 @AffineDecrypt(i8* %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i32 @Inverse(i32 %2)
%6 = mul nsw i32 %5, %3
%7 = srem i32 %6, 26
%8 = sub nsw i32 26, %7
%9 = tail call i32 @AffineEncrypt(i8* %0, i32 %1, i32 %5, i32 %8)
ret i32 0
}
/* Variables and functions */
unsigned char *QRspec_createFrame(int);
unsigned char *QRspec_newFrame(int version) {
  if (version < 1 || version > 40)
    return NULL;
  return QRspec_createFrame(version);
}


x86 assembly (clang, -O0):
<QRspec_newFrame>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0xc(%rbp)
cmpl   $0x1,-0xc(%rbp)
jl     112f <QRspec_newFrame+0x1f>
cmpl   $0x28,-0xc(%rbp)
jle    113c <QRspec_newFrame+0x2c>
movq   $0x0,-0x8(%rbp)
jmp    1148 <QRspec_newFrame+0x38>
mov    -0xc(%rbp),%edi
call   1030 <QRspec_createFrame@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<QRspec_newFrame>:
lea    -0x29(%rdi),%eax
cmp    $0xffffffd8,%eax
jae    111b <QRspec_newFrame+0xb>
xor    %eax,%eax
ret
jmp    1030 <QRspec_createFrame@plt>

LLVM IR (-O0):
define i8* @QRspec_newFrame(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp slt i32 %4, 1
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = load i32, i32* %3
%8 = icmp sgt i32 %7, 40
br i1 %8, label %9, label %10
9: ; preds = %6, %1
store i8* null, i8** %2
br label %13
10: ; preds = %6
%11 = load i32, i32* %3
%12 = call i8* @QRspec_createFrame(i32 %11)
store i8* %12, i8** %2
br label %13
13: ; preds = %10, %9
%14 = load i8*, i8** %2
ret i8* %14
}

LLVM IR (-O2):
define i8* @QRspec_newFrame(i32 %0) {
%2 = add i32 %0, -41
%3 = icmp ult i32 %2, -40
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i8* @QRspec_createFrame(i32 %0)
br label %6
6: ; preds = %1, %4
%7 = phi i8* [ %5, %4 ], [ null, %1 ]
ret i8* %7
}
unsigned int VENUS_EXTRADATA_SIZE(int width, int height) {
  (void)height;
  (void)width;
  return 16 * 1024;
}


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

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

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

LLVM IR (-O2):
define i32 @VENUS_EXTRADATA_SIZE(i32 %0, i32 %1) {
ret i32 16384
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void usage(void) {
  printf("Syntax: kmercompare <-r reference> <-a reads> <-k kmer> [-i id]\n");
}


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

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

LLVM IR (-O0):
@.str = [65 x i8] c"Syntax: kmercompare <-r reference> <-a reads> <-k kmer> [-i id]\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [64 x i8] c"Syntax: kmercompare <-r reference> <-a reads> <-k kmer> [-i id]\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str, i64 0, i64 0))
ret void
}
void do_undefs(void) {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ epoll36(struct __test_metadata *);
void wrapper_epoll36(struct __test_metadata *_metadata,
                     struct __fixture_variant_metadata *variant) {
  epoll36(_metadata);
}


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

x86 assembly (clang, -O2):
<wrapper_epoll36>:
jmp    1030 <epoll36@plt>

LLVM IR (-O0):
%struct.__test_metadata = type { i32 }
%struct.__fixture_variant_metadata = type { i32 }
define void @wrapper_epoll36(%struct.__test_metadata* %0, %struct.__fixture_variant_metadata* %1) {
%3 = alloca %struct.__test_metadata*
%4 = alloca %struct.__fixture_variant_metadata*
store %struct.__test_metadata* %0, %struct.__test_metadata** %3
store %struct.__fixture_variant_metadata* %1, %struct.__fixture_variant_metadata** %4
%5 = load %struct.__test_metadata*, %struct.__test_metadata** %3
%6 = call i32 @epoll36(%struct.__test_metadata* %5)
ret void
}

LLVM IR (-O2):
%struct.__test_metadata = type { i32 }
%struct.__fixture_variant_metadata = type { i32 }
define void @wrapper_epoll36(%struct.__test_metadata* %0, %struct.__fixture_variant_metadata* nocapture readnone %1) {
%3 = tail call i32 @epoll36(%struct.__test_metadata* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ thTryLockMutex(void *);
int thTryLockFastMutex(void *p) { thTryLockMutex(p); }


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

x86 assembly (clang, -O2):
<thTryLockFastMutex>:
jmp    1030 <thTryLockMutex@plt>

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

LLVM IR (-O2):
define i32 @thTryLockFastMutex(i8* %0) {
%2 = tail call i32 @thTryLockMutex(i8* %0)
ret i32 undef
}
/* Variables and functions */
int get_overflow();
long long intMultiply(long long, long long);
int /*<<< orphan*/ set_overflow(int);
long long int intCube(long long int x) {
  long long int y = intMultiply(x, x);
  int overflow = get_overflow();
  y = intMultiply(x, y);
  if (overflow)
    set_overflow(1);
  return y;
}


x86 assembly (clang, -O0):
<intCube>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1050 <intMultiply@plt>
mov    %rax,-0x10(%rbp)
mov    $0x0,%al
call   1030 <get_overflow@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <intMultiply@plt>
mov    %rax,-0x10(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     117c <intCube+0x4c>
mov    $0x1,%edi
call   1040 <set_overflow@plt>
mov    -0x10(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<intCube>:
push   %rbp
push   %r14
push   %rbx
mov    %rdi,%rbx
mov    %rdi,%rsi
call   1050 <intMultiply@plt>
mov    %rax,%r14
xor    %eax,%eax
call   1030 <get_overflow@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <intMultiply@plt>
mov    %rax,%rbx
test   %ebp,%ebp
je     1167 <intCube+0x37>
mov    $0x1,%edi
call   1040 <set_overflow@plt>
mov    %rbx,%rax
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
define i64 @intCube(i64 %0) {
%2 = tail call i64 @intMultiply(i64 %0, i64 %0)
%3 = tail call i32 (...) @get_overflow()
%4 = tail call i64 @intMultiply(i64 %0, i64 %2)
%5 = icmp eq i32 %3, 0
br i1 %5, label %8, label %6
6: ; preds = %1
%7 = tail call i32 @set_overflow(i32 1)
br label %8
8: ; preds = %6, %1
ret i64 %4
}
/* Variables and functions */
int /*<<< orphan*/ _hmt_register_covercase(char *, char *);
void _hmt_covercase_HMM_FastNormalizeVec3_init(void) {
  _hmt_register_covercase("HMM_FastNormalizeVec3", "1");
}


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

x86 assembly (clang, -O2):
<_hmt_covercase_HMM_FastNormalizeVec3_init>:
lea    0xee9(%rip),%rdi
lea    0xef8(%rip),%rsi
jmp    1030 <_hmt_register_covercase@plt>

LLVM IR (-O0):
@.str = [22 x i8] c"HMM_FastNormalizeVec3\00"
@.str.1 = [2 x i8] c"1\00"
define void @_hmt_covercase_HMM_FastNormalizeVec3_init() {
%1 = call i32 @_hmt_register_covercase(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"HMM_FastNormalizeVec3\00"
@.str.1 = [2 x i8] c"1\00"
define void @_hmt_covercase_HMM_FastNormalizeVec3_init() {
%1 = tail call i32 @_hmt_register_covercase(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}
void foo() {
  int buf[100][200];
  for (int i = 0; i < 100; i++) {
    for (int j = 0; j < 200; j++)
      buf[i][j] = 0;
  }
}


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x13810,%rsp
movl   $0x0,-0x13884(%rbp)
cmpl   $0x64,-0x13884(%rbp)
jge    118f <foo+0x8f>
movl   $0x0,-0x13888(%rbp)
cmpl   $0xc8,-0x13888(%rbp)
jge    1176 <foo+0x76>
movslq -0x13884(%rbp),%rcx
lea    -0x13880(%rbp),%rax
imul   $0x320,%rcx,%rcx
add    %rcx,%rax
movslq -0x13888(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x13888(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13888(%rbp)
jmp    112c <foo+0x2c>
jmp    117b <foo+0x7b>
mov    -0x13884(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13884(%rbp)
jmp    1115 <foo+0x15>
add    $0x13810,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @foo() {
%1 = alloca [100 x [200 x i32]]
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %2
br label %4
4: ; preds = %22, %0
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, 100
br i1 %6, label %7, label %25
7: ; preds = %4
store i32 0, i32* %3
br label %8
8: ; preds = %18, %7
%9 = load i32, i32* %3
%10 = icmp slt i32 %9, 200
br i1 %10, label %11, label %21
11: ; preds = %8
%12 = load i32, i32* %2
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [100 x [200 x i32]], [100 x [200 x i32]]* %1, i64 0, i64 %13
%15 = load i32, i32* %3
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [200 x i32], [200 x i32]* %14, i64 0, i64 %16
store i32 0, i32* %17
br label %18
18: ; preds = %11
%19 = load i32, i32* %3
%20 = add nsw i32 %19, 1
store i32 %20, i32* %3
br label %8
21: ; preds = %8
br label %22
22: ; preds = %21
%23 = load i32, i32* %2
%24 = add nsw i32 %23, 1
store i32 %24, i32* %2
br label %4
25: ; preds = %4
ret void
}

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


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

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

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

LLVM IR (-O2):
define void @caller_1_2_1_1_2_2_1() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free2(void **);
void free2double(double **p) { free2((void **)p); }


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

x86 assembly (clang, -O2):
<free2double>:
jmp    1030 <free2@plt>

LLVM IR (-O0):
define void @free2double(double** %0) {
%2 = alloca double**
store double** %0, double*** %2
%3 = load double**, double*** %2
%4 = bitcast double** %3 to i8**
%5 = call i32 @free2(i8** %4)
ret void
}

LLVM IR (-O2):
define void @free2double(double** %0) {
%2 = bitcast double** %0 to i8**
%3 = tail call i32 @free2(i8** %2)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ err_msg;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ snprintf(char *, int, char *);
int main() {
  char err_msg[32] = {0};
  snprintf(err_msg, sizeof(err_msg), "12345678901234567890123456789012");
  printf("err_msg : %s\n", err_msg);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1050 <memset@plt>
lea    -0x30(%rbp),%rdi
mov    $0x20,%esi
lea    0xea1(%rip),%rdx
call   1040 <snprintf@plt>
lea    -0x30(%rbp),%rsi
lea    0xeb2(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
lea    0xec8(%rip),%rdx
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x20,%esi
call   1040 <snprintf@plt>
lea    0xed2(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [33 x i8] c"12345678901234567890123456789012\00"
@.str.1 = [14 x i8] c"err_msg : %s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [32 x i8]
store i32 0, i32* %1
%3 = bitcast [32 x i8]* %2 to i8*
%4 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 0
%5 = call i32 @snprintf(i8* %4, i32 32, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%6 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 0
%7 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %6)
ret i32 0
}

LLVM IR (-O2):
@.str = [33 x i8] c"12345678901234567890123456789012\00"
@.str.1 = [14 x i8] c"err_msg : %s\0A\00"
define i32 @main() {
%1 = alloca [32 x i8]
%2 = getelementptr inbounds [32 x i8], [32 x i8]* %1, i64 0, i64 0
%3 = call i32 @snprintf(i8* %2, i32 32, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %2)
ret i32 0
}
/* Type definitions */
typedef int nbits;

/* Variables and functions */
int /*<<< orphan*/ memcpy(unsigned long *, unsigned long const *, int);
void bitmap_copy(unsigned long *dst, const unsigned long *src, int nbits) {
  if (((nbits) <= (sizeof(unsigned long) * 8))) {
    *dst = *src;
  } else {
    int len = (((nbits) + (8 * sizeof(long)) - 1) / (8 * sizeof(long))) *
              sizeof(unsigned long);
    memcpy(dst, src, len);
  }
}


x86 assembly (clang, -O0):
<bitmap_copy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movslq -0x14(%rbp),%rax
cmp    $0x40,%rax
ja     1144 <bitmap_copy+0x34>
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
jmp    116b <bitmap_copy+0x5b>
movslq -0x14(%rbp),%rax
add    $0x40,%rax
sub    $0x1,%rax
shr    $0x6,%rax
shl    $0x3,%rax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%edx
call   1030 <memcpy@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bitmap_copy>:
cmp    $0x40,%edx
ja     111c <bitmap_copy+0xc>
mov    (%rsi),%rax
mov    %rax,(%rdi)
ret
movslq %edx,%rdx
add    $0x3f,%rdx
shr    $0x3,%rdx
and    $0xfffffff8,%edx
jmp    1030 <memcpy@plt>

LLVM IR (-O0):
define void @bitmap_copy(i64* %0, i64* %1, i32 %2) {
%4 = alloca i64*
%5 = alloca i64*
%6 = alloca i32
%7 = alloca i32
store i64* %0, i64** %4
store i64* %1, i64** %5
store i32 %2, i32* %6
%8 = load i32, i32* %6
%9 = sext i32 %8 to i64
%10 = icmp ule i64 %9, 64
br i1 %10, label %11, label %15
11: ; preds = %3
%12 = load i64*, i64** %5
%13 = load i64, i64* %12
%14 = load i64*, i64** %4
store i64 %13, i64* %14
br label %27
15: ; preds = %3
%16 = load i32, i32* %6
%17 = sext i32 %16 to i64
%18 = add i64 %17, 64
%19 = sub i64 %18, 1
%20 = udiv i64 %19, 64
%21 = mul i64 %20, 8
%22 = trunc i64 %21 to i32
store i32 %22, i32* %7
%23 = load i64*, i64** %4
%24 = load i64*, i64** %5
%25 = load i32, i32* %7
%26 = call i32 @memcpy(i64* %23, i64* %24, i32 %25)
br label %27
27: ; preds = %15, %11
ret void
}

LLVM IR (-O2):
define void @bitmap_copy(i64* %0, i64* %1, i32 %2) {
%4 = icmp ult i32 %2, 65
br i1 %4, label %5, label %7
5: ; preds = %3
%6 = load i64, i64* %1
store i64 %6, i64* %0
br label %14
7: ; preds = %3
%8 = sext i32 %2 to i64
%9 = add nsw i64 %8, 63
%10 = lshr i64 %9, 3
%11 = trunc i64 %10 to i32
%12 = and i32 %11, -8
%13 = tail call i32 @memcpy(i64* %0, i64* %1, i32 %12)
br label %14
14: ; preds = %7, %5
ret void
}
/* Type definitions */
struct stat {
  int /*<<< orphan*/ st_mode;
};

/* Variables and functions */
scalar_t__ S_ISDIR(int /*<<< orphan*/);
int stat(char const *, struct stat *);
int dirExists(const char *path) {
  struct stat pstats;
  int err = stat(path, &pstats);
  if ((err == 0) && S_ISDIR(pstats.st_mode))
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<dirExists>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <stat@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jne    1164 <dirExists+0x44>
mov    -0x18(%rbp),%edi
call   1030 <S_ISDIR@plt>
cmp    $0x0,%rax
je     1164 <dirExists+0x44>
movl   $0x1,-0x4(%rbp)
jmp    116b <dirExists+0x4b>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dirExists>:
push   %rax
mov    %rsp,%rsi
call   1040 <stat@plt>
test   %eax,%eax
jne    1144 <dirExists+0x24>
mov    (%rsp),%edi
call   1030 <S_ISDIR@plt>
mov    %rax,%rcx
mov    $0x1,%eax
test   %rcx,%rcx
je     1144 <dirExists+0x24>
pop    %rcx
ret
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.stat = type { i32 }
define i32 @dirExists(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca %struct.stat
%5 = alloca i32
store i8* %0, i8** %3
%6 = load i8*, i8** %3
%7 = call i32 @stat(i8* %6, %struct.stat* %4)
store i32 %7, i32* %5
%8 = load i32, i32* %5
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %16
10: ; preds = %1
%11 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 0
%12 = load i32, i32* %11
%13 = call i64 @S_ISDIR(i32 %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %10
store i32 1, i32* %2
br label %17
16: ; preds = %10, %1
store i32 0, i32* %2
br label %17
17: ; preds = %16, %15
%18 = load i32, i32* %2
ret i32 %18
}

LLVM IR (-O2):
%struct.stat = type { i32 }
define i32 @dirExists(i8* nocapture %0) {
%2 = alloca %struct.stat
%3 = bitcast %struct.stat* %2 to i8*
%4 = call i32 @stat(i8* %0, %struct.stat* %2)
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %11
6: ; preds = %1
%7 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 0
%8 = load i32, i32* %7
%9 = tail call i64 @S_ISDIR(i32 %8)
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %6, %1
br label %12
12: ; preds = %6, %11
%13 = phi i32 [ 0, %11 ], [ 1, %6 ]
ret i32 %13
}
/* Variables and functions */
scalar_t__ erfc(float);
float erfcf(float x) { return (float)erfc(x); }


x86 assembly (clang, -O0):
<erfcf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <erfc@plt>
cvtsi2ss %rax,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<erfcf>:
push   %rax
call   1030 <erfc@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @erfcf(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = call i64 @erfc(float %3)
%5 = sitofp i64 %4 to float
ret float %5
}

LLVM IR (-O2):
define float @erfcf(float %0) {
%2 = tail call i64 @erfc(float %0)
%3 = sitofp i64 %2 to float
ret float %3
}
/* Type definitions */
struct __test_metadata {
  int dummy;
};
struct __fixture_variant_metadata {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ epoll54(struct __test_metadata *);
void wrapper_epoll54(struct __test_metadata *_metadata,
                     struct __fixture_variant_metadata *variant) {
  epoll54(_metadata);
}


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

x86 assembly (clang, -O2):
<wrapper_epoll54>:
jmp    1030 <epoll54@plt>

LLVM IR (-O0):
%struct.__test_metadata = type { i32 }
%struct.__fixture_variant_metadata = type { i32 }
define void @wrapper_epoll54(%struct.__test_metadata* %0, %struct.__fixture_variant_metadata* %1) {
%3 = alloca %struct.__test_metadata*
%4 = alloca %struct.__fixture_variant_metadata*
store %struct.__test_metadata* %0, %struct.__test_metadata** %3
store %struct.__fixture_variant_metadata* %1, %struct.__fixture_variant_metadata** %4
%5 = load %struct.__test_metadata*, %struct.__test_metadata** %3
%6 = call i32 @epoll54(%struct.__test_metadata* %5)
ret void
}

LLVM IR (-O2):
%struct.__test_metadata = type { i32 }
%struct.__fixture_variant_metadata = type { i32 }
define void @wrapper_epoll54(%struct.__test_metadata* %0, %struct.__fixture_variant_metadata* nocapture readnone %1) {
%3 = tail call i32 @epoll54(%struct.__test_metadata* %0)
ret void
}
/* Variables and functions */
long inl(int);
int /*<<< orphan*/ outl(long, int);
long clfetch(long cfgadr) {
  outl((cfgadr | 0x80000000) & ~3, 0xcf8);
  return inl((0xcfc + (cfgadr & 3)));
}


x86 assembly (clang, -O0):
<clfetch>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movabs $0x80000000,%rdi
or     -0x8(%rbp),%rdi
and    $0xfffffffffffffffc,%rdi
mov    $0xcf8,%esi
call   1030 <outl@plt>
mov    -0x8(%rbp),%rax
and    $0x3,%rax
add    $0xcfc,%rax
mov    %eax,%edi
call   1040 <inl@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<clfetch>:
push   %rbx
mov    %rdi,%rbx
movabs $0xffffffff7ffffffc,%rax
ff ff ff
and    %rdi,%rax
mov    $0x80000000,%edi
or     %rax,%rdi
mov    $0xcf8,%esi
call   1030 <outl@plt>
or     $0xcfc,%ebx
and    $0xcff,%ebx
mov    %ebx,%edi
pop    %rbx
jmp    1040 <inl@plt>

LLVM IR (-O0):
define i64 @clfetch(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = or i64 %3, 2147483648
%5 = and i64 %4, -4
%6 = call i32 @outl(i64 %5, i32 3320)
%7 = load i64, i64* %2
%8 = and i64 %7, 3
%9 = add nsw i64 3324, %8
%10 = trunc i64 %9 to i32
%11 = call i64 @inl(i32 %10)
ret i64 %11
}

LLVM IR (-O2):
define i64 @clfetch(i64 %0) {
%2 = and i64 %0, -2147483652
%3 = or i64 %2, 2147483648
%4 = tail call i32 @outl(i64 %3, i32 3320)
%5 = trunc i64 %0 to i32
%6 = and i32 %5, 3
%7 = or i32 %6, 3324
%8 = tail call i64 @inl(i32 %7)
ret i64 %8
}
/* Type definitions */
typedef char u_int8_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/ *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int /*<<< orphan*/,
                         int /*<<< orphan*/);
void format_disk(FILE **fp) {
  u_int8_t blank = '\0';
  int loop;
  fseek(*fp, 0, 0);
  for (loop = 143360; loop != 0; loop--)
    fputc(blank, *fp);
  return;
}


x86 assembly (clang, -O0):
<format_disk>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movb   $0x0,-0x9(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
xor    %edx,%edx
mov    %edx,%esi
call   1040 <fseek@plt>
movl   $0x23000,-0x10(%rbp)
cmpl   $0x0,-0x10(%rbp)
je     1171 <format_disk+0x51>
mov    -0x9(%rbp),%al
mov    -0x8(%rbp),%rcx
mov    (%rcx),%rsi
movsbl %al,%edi
call   1030 <fputc@plt>
mov    -0x10(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x10(%rbp)
jmp    1147 <format_disk+0x27>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<format_disk>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    (%rdi),%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1040 <fseek@plt>
mov    $0xfffdd000,%ebp
nopw   0x0(%rax,%rax,1)
mov    (%rbx),%rsi
xor    %edi,%edi
call   1030 <fputc@plt>
inc    %ebp
jne    1140 <format_disk+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define void @format_disk(i32** %0) {
%2 = alloca i32**
%3 = alloca i8
%4 = alloca i32
store i32** %0, i32*** %2
store i8 0, i8* %3
%5 = load i32**, i32*** %2
%6 = load i32*, i32** %5
%7 = call i32 @fseek(i32* %6, i32 0, i32 0)
store i32 143360, i32* %4
br label %8
8: ; preds = %16, %1
%9 = load i32, i32* %4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %19
11: ; preds = %8
%12 = load i8, i8* %3
%13 = load i32**, i32*** %2
%14 = load i32*, i32** %13
%15 = call i32 @fputc(i8 signext %12, i32* %14)
br label %16
16: ; preds = %11
%17 = load i32, i32* %4
%18 = add nsw i32 %17, -1
store i32 %18, i32* %4
br label %8
19: ; preds = %8
ret void
}

LLVM IR (-O2):
define void @format_disk(i32** nocapture %0) {
%2 = load i32*, i32** %0
%3 = tail call i32 @fseek(i32* %2, i32 0, i32 0)
br label %4
4: ; preds = %1, %4
%5 = phi i32 [ 143360, %1 ], [ %8, %4 ]
%6 = load i32*, i32** %0
%7 = tail call i32 @fputc(i8 signext 0, i32* %6)
%8 = add nsw i32 %5, -1
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %4
10: ; preds = %4
ret void
}
void g_queue_unlink() {}


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

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

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

LLVM IR (-O2):
define void @g_queue_unlink() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ perr(char *);
int floorInt(int m, int n) {
  if (n != 0) {
    return (int)m / n;
  } else {
    perr("The dividend shouldn't be zero.\n");
    return 0;
  }
}


x86 assembly (clang, -O0):
<floorInt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     1137 <floorInt+0x27>
mov    -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
mov    %eax,-0x4(%rbp)
jmp    114a <floorInt+0x3a>
lea    0xec2(%rip),%rdi
call   1030 <perr@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<floorInt>:
test   %esi,%esi
je     111a <floorInt+0xa>
mov    %edi,%eax
cltd
idiv   %esi
ret
push   %rax
lea    0xede(%rip),%rdi
call   1030 <perr@plt>
xor    %eax,%eax
add    $0x8,%rsp
ret

LLVM IR (-O0):
@.str = [33 x i8] c"The dividend shouldn't be zero.\0A\00"
define i32 @floorInt(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 ne i32 %6, 0
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load i32, i32* %4
%10 = load i32, i32* %5
%11 = sdiv i32 %9, %10
store i32 %11, i32* %3
br label %14
12: ; preds = %2
%13 = call i32 @perr(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %14
14: ; preds = %12, %8
%15 = load i32, i32* %3
ret i32 %15
}

LLVM IR (-O2):
@.str = [33 x i8] c"The dividend shouldn't be zero.\0A\00"
define i32 @floorInt(i32 %0, i32 %1) {
%3 = icmp eq i32 %1, 0
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = sdiv i32 %0, %1
br label %8
6: ; preds = %2
%7 = tail call i32 @perr(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %6, %4
%9 = phi i32 [ %5, %4 ], [ 0, %6 ]
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ assert(int /*<<< orphan*/);
double nexttoward(double d, long double td) {
  assert(0);
  return 0;
}


x86 assembly (clang, -O0):
<nexttoward>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
fldt   0x10(%rbp)
movsd  %xmm0,-0x8(%rbp)
fstpt  -0x20(%rbp)
xor    %edi,%edi
call   1030 <assert@plt>
xorps  %xmm0,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nexttoward>:
push   %rax
xor    %edi,%edi
call   1030 <assert@plt>
xorps  %xmm0,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @nexttoward(double %0, x86_fp80 %1) {
%3 = alloca double
%4 = alloca x86_fp80
store double %0, double* %3
store x86_fp80 %1, x86_fp80* %4
%5 = call i32 @assert(i32 0)
ret double 0.000000e+00
}

LLVM IR (-O2):
define double @nexttoward(double %0, x86_fp80 %1) {
%3 = tail call i32 @assert(i32 0)
ret double 0.000000e+00
}
int fun951() { return 951; }


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

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

LLVM IR (-O0):
define i32 @fun951() {
ret i32 951
}

LLVM IR (-O2):
define i32 @fun951() {
ret i32 951
}
/* Variables and functions */
int caps_flags();
int /*<<< orphan*/ sprintf(char *, char *, int);
void caps_to_s(char *caps) { sprintf(caps, "%d", caps_flags()); }


x86 assembly (clang, -O0):
<caps_to_s>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    $0x0,%al
call   1040 <caps_flags@plt>
mov    -0x10(%rbp),%rdi
mov    %eax,%edx
lea    0xeb8(%rip),%rsi
call   1030 <sprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<caps_to_s>:
push   %rbx
mov    %rdi,%rbx
xor    %eax,%eax
call   1040 <caps_flags@plt>
lea    0xece(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
pop    %rbx
jmp    1030 <sprintf@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
define void @caps_to_s(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (...) @caps_flags()
%5 = call i32 @sprintf(i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %4)
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define void @caps_to_s(i8* nocapture writeonly %0) {
%2 = tail call i32 (...) @caps_flags()
%3 = tail call i32 @sprintf(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %2)
ret void
}
/* Type definitions */
struct hash {
  int dummy;
};

/* Variables and functions */
int hash_del_bin(struct hash *, char const *, size_t);
size_t strlen(char const *);
int hash_del(struct hash *hash, const char *key) {
  size_t keylen = strlen(key);
  return hash_del_bin(hash, key, keylen);
}


x86 assembly (clang, -O0):
<hash_del>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1040 <hash_del_bin@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hash_del>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
call   1030 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %rax,%rdx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <hash_del_bin@plt>

LLVM IR (-O0):
%struct.hash = type { i32 }
define i32 @hash_del(%struct.hash* %0, i8* %1) {
%3 = alloca %struct.hash*
%4 = alloca i8*
%5 = alloca i64
store %struct.hash* %0, %struct.hash** %3
store i8* %1, i8** %4
%6 = load i8*, i8** %4
%7 = call i64 @strlen(i8* %6)
store i64 %7, i64* %5
%8 = load %struct.hash*, %struct.hash** %3
%9 = load i8*, i8** %4
%10 = load i64, i64* %5
%11 = call i32 @hash_del_bin(%struct.hash* %8, i8* %9, i64 %10)
ret i32 %11
}

LLVM IR (-O2):
%struct.hash = type { i32 }
define i32 @hash_del(%struct.hash* %0, i8* %1) {
%3 = tail call i64 @strlen(i8* dereferenceable(1) %1)
%4 = tail call i32 @hash_del_bin(%struct.hash* %0, i8* %1, i64 %3)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void print_usage(char **argv) {
  printf("Usage: %s --fc first_cylindre --fs first_sector -s size (>0)\n",
         argv[0]);
}


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

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

LLVM IR (-O0):
@.str = [62 x i8] c"Usage: %s --fc first_cylindre --fs first_sector -s size (>0)\0A\00"
define void @print_usage(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = load i8**, i8*** %2
%4 = getelementptr inbounds i8*, i8** %3, i64 0
%5 = load i8*, i8** %4
%6 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0), i8* %5)
ret void
}

LLVM IR (-O2):
@.str = [62 x i8] c"Usage: %s --fc first_cylindre --fs first_sector -s size (>0)\0A\00"
define void @print_usage(i8** nocapture %0) {
%2 = load i8*, i8** %0
%3 = tail call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0), i8* %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ nrerror(char *);
void usage(void) {
  nrerror("usage: RNAdistance [-D[fhwcFHWCP]] [-X[p|m|f|c]] [-S] [-B [file]]");
}


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

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

LLVM IR (-O0):
@.str = [66 x i8] c"usage: RNAdistance [-D[fhwcFHWCP]] [-X[p|m|f|c]] [-S] [-B [file]]\00"
define void @usage() {
%1 = call i32 @nrerror(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [66 x i8] c"usage: RNAdistance [-D[fhwcFHWCP]] [-X[p|m|f|c]] [-S] [-B [file]]\00"
define void @usage() {
%1 = tail call i32 @nrerror(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0))
ret void
}
double KPHtoMPH(double KPH) {
  double MPH = 0.621371 * KPH;
  return MPH;
}


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

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

LLVM IR (-O0):
define double @KPHtoMPH(double %0) {
%2 = alloca double
%3 = alloca double
store double %0, double* %2
%4 = load double, double* %2
%5 = fmul double 6.213710e-01, %4
store double %5, double* %3
%6 = load double, double* %3
ret double %6
}

LLVM IR (-O2):
define double @KPHtoMPH(double %0) {
%2 = fmul double %0, 6.213710e-01
ret double %2
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ __builtin_rdctl(int);
uint32_t _Nios2_Get_ctlreg_pteaddr(void) {
  return (uint32_t)__builtin_rdctl(8);
}


x86 assembly (clang, -O0):
<_Nios2_Get_ctlreg_pteaddr>:
push   %rbp
mov    %rsp,%rbp
mov    $0x8,%edi
call   1030 <__builtin_rdctl@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<_Nios2_Get_ctlreg_pteaddr>:
mov    $0x8,%edi
jmp    1030 <__builtin_rdctl@plt>

LLVM IR (-O0):
define i32 @_Nios2_Get_ctlreg_pteaddr() {
%1 = call i32 @__builtin_rdctl(i32 8)
ret i32 %1
}

LLVM IR (-O2):
define i32 @_Nios2_Get_ctlreg_pteaddr() {
%1 = tail call i32 @__builtin_rdctl(i32 8)
ret i32 %1
}
void ar9003_hw_rtt_load_hist(struct ath_hw *ah) {}


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

x86 assembly (clang, -O2):
ret

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

LLVM IR (-O2):
%struct.ath_hw = type opaque
define void @ar9003_hw_rtt_load_hist(%struct.ath_hw* nocapture %0) {
ret void
}
void ff_hevc_put_hevc_epel_v12_10_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_epel_v12_10_sse4() {
ret void
}
int test_imm_61int16_mem(short *val) {
  return ((*val) & (0x61 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_61int16_mem>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movswl (%rax),%edx
and    $0x61,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_61int16_mem>:
testb  $0x61,(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_61int16_mem(i16* nocapture %0) {
%2 = load i16, i16* %0
%3 = and i16 %2, 97
%4 = icmp eq i16 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ isdigit(char);
int is_number(char *str) {
  while (*str) {
    if (!isdigit(*str)) {
      return 0;
    }
    str++;
  }
  return 1;
}


x86 assembly (clang, -O0):
<is_number>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
je     115b <is_number+0x4b>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%eax
jne    114a <is_number+0x3a>
movl   $0x0,-0x4(%rbp)
jmp    1162 <is_number+0x52>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    111c <is_number+0xc>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_number>:
push   %rbp
push   %rbx
push   %rax
mov    (%rdi),%al
mov    $0x1,%ebp
test   %al,%al
je     114b <is_number+0x3b>
mov    %rdi,%rbx
add    $0x1,%rbx
cs nopw 0x0(%rax,%rax,1)
nop
movsbl %al,%edi
call   1030 <isdigit@plt>
test   %eax,%eax
je     1149 <is_number+0x39>
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1130 <is_number+0x20>
jmp    114b <is_number+0x3b>
xor    %ebp,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @is_number(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %13, label %7
4: ; preds = %7
%5 = load i8, i8* %12
%6 = icmp eq i8 %5, 0
br i1 %6, label %13, label %7
7: ; preds = %1, %4
%8 = phi i8 [ %5, %4 ], [ %2, %1 ]
%9 = phi i8* [ %12, %4 ], [ %0, %1 ]
%10 = tail call i32 @isdigit(i8 signext %8)
%11 = icmp eq i32 %10, 0
%12 = getelementptr inbounds i8, i8* %9, i64 1
br i1 %11, label %13, label %4
13: ; preds = %7, %4, %1
%14 = phi i32 [ 1, %1 ], [ 1, %4 ], [ 0, %7 ]
ret i32 %14
}
/* Variables and functions */
int /*<<< orphan*/ move(int, int /*<<< orphan*/);
int /*<<< orphan*/ mvaddstr(int, int, char *);
int /*<<< orphan*/ stdscr;
int strlen(char *);
int /*<<< orphan*/ wclrtoeol(int /*<<< orphan*/);
void write_title(char *title) {
  move(4 - 2, 0);
  wclrtoeol(stdscr);
  if (0 != title)
    mvaddstr(4 - 2, (64 - strlen(title)) / 2, title);
}


x86 assembly (clang, -O0):
<write_title>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x2,%edi
xor    %esi,%esi
call   1060 <move@plt>
mov    0x2e89(%rip),%rax
mov    (%rax),%edi
call   1030 <wclrtoeol@plt>
xor    %eax,%eax
cmp    -0x8(%rbp),%rax
je     119c <write_title+0x5c>
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    $0x40,%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
mov    -0x8(%rbp),%rdx
mov    $0x2,%edi
call   1050 <mvaddstr@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_title>:
push   %rbx
mov    %rdi,%rbx
mov    $0x2,%edi
xor    %esi,%esi
call   1060 <move@plt>
mov    0x2e91(%rip),%rax
mov    (%rax),%edi
call   1030 <wclrtoeol@plt>
test   %rbx,%rbx
je     1189 <write_title+0x49>
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    $0x40,%ecx
sub    %eax,%ecx
mov    %ecx,%esi
shr    $0x1f,%esi
add    %ecx,%esi
sar    %esi
mov    $0x2,%edi
mov    %rbx,%rdx
pop    %rbx
jmp    1050 <mvaddstr@plt>
pop    %rbx
ret

LLVM IR (-O0):
@stdscr = global i32 0
define void @write_title(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @move(i32 2, i32 0)
%4 = load i32, i32* @stdscr
%5 = call i32 @wclrtoeol(i32 %4)
%6 = load i8*, i8** %2
%7 = icmp ne i8* null, %6
br i1 %7, label %8, label %15
8: ; preds = %1
%9 = load i8*, i8** %2
%10 = call i32 @strlen(i8* %9)
%11 = sub nsw i32 64, %10
%12 = sdiv i32 %11, 2
%13 = load i8*, i8** %2
%14 = call i32 @mvaddstr(i32 2, i32 %12, i8* %13)
br label %15
15: ; preds = %8, %1
ret void
}

LLVM IR (-O2):
@stdscr = global i32 0
define void @write_title(i8* %0) {
%2 = tail call i32 @move(i32 2, i32 0)
%3 = load i32, i32* @stdscr
%4 = tail call i32 @wclrtoeol(i32 %3)
%5 = icmp eq i8* %0, null
br i1 %5, label %11, label %6
6: ; preds = %1
%7 = tail call i32 @strlen(i8* %0)
%8 = sub nsw i32 64, %7
%9 = sdiv i32 %8, 2
%10 = tail call i32 @mvaddstr(i32 2, i32 %9, i8* %0)
br label %11
11: ; preds = %6, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fl_all_constriant_type();
void dis_collect_fluent() { fl_all_constriant_type(); }


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

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

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

LLVM IR (-O2):
define void @dis_collect_fluent() {
%1 = tail call i32 (...) @fl_all_constriant_type()
ret void
}
/* Variables and functions */
double exp(double const);
double corr(const double distance, const double lambda) {
  return exp(-distance / lambda);
}


x86 assembly (clang, -O0):
<corr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
divsd  -0x10(%rbp),%xmm0
call   1030 <exp@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<corr>:
xorpd  0xee8(%rip),%xmm0
divsd  %xmm1,%xmm0
jmp    1030 <exp@plt>

LLVM IR (-O0):
define double @corr(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 = fneg double %5
%7 = load double, double* %4
%8 = fdiv double %6, %7
%9 = call double @exp(double %8)
ret double %9
}

LLVM IR (-O2):
define double @corr(double %0, double %1) {
%3 = fneg double %0
%4 = fdiv double %3, %1
%5 = tail call double @exp(double %4)
ret double %5
}
/* Variables and functions */
int /*<<< orphan*/ do_popf();
int /*<<< orphan*/ do_retf();
void do_iret(void) {
  do_retf();
  do_popf();
}


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

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

LLVM IR (-O0):
define void @do_iret() {
%1 = call i32 (...) @do_retf()
%2 = call i32 (...) @do_popf()
ret void
}

LLVM IR (-O2):
define void @do_iret() {
%1 = tail call i32 (...) @do_retf()
%2 = tail call i32 (...) @do_popf()
ret void
}
/* Variables and functions */
unsigned long *malloc(unsigned long);
int /*<<< orphan*/ pascal_asymmetric(unsigned long *, unsigned long);
int /*<<< orphan*/ print_array(unsigned long *, unsigned long);
int main(int argc, char *argv[]) {
  unsigned long elements = 1051;
  unsigned long *numray = malloc(elements * sizeof(unsigned long));
  pascal_asymmetric(numray, elements);
  print_array(numray, elements);
  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)
movq   $0x41b,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
shl    $0x3,%rdi
call   1040 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1050 <pascal_asymmetric@plt>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <print_array@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x20d8,%edi
call   1040 <malloc@plt>
mov    %rax,%rbx
mov    $0x41b,%esi
mov    %rax,%rdi
call   1050 <pascal_asymmetric@plt>
mov    $0x41b,%esi
mov    %rbx,%rdi
call   1030 <print_array@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i64
%7 = alloca i64*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i64 1051, i64* %6
%8 = load i64, i64* %6
%9 = mul i64 %8, 8
%10 = call i64* @malloc(i64 %9)
store i64* %10, i64** %7
%11 = load i64*, i64** %7
%12 = load i64, i64* %6
%13 = call i32 @pascal_asymmetric(i64* %11, i64 %12)
%14 = load i64*, i64** %7
%15 = load i64, i64* %6
%16 = call i32 @print_array(i64* %14, i64 %15)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i64* @malloc(i64 8408)
%4 = tail call i32 @pascal_asymmetric(i64* %3, i64 1051)
%5 = tail call i32 @print_array(i64* %3, i64 1051)
ret i32 0
}