xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void print_head_licence_lfmm() {
  printf("LFMM  Copyright (C) 2012 Eric Frichot\n"
         "This program comes with ABSOLUTELY NO WARRANTY; for details type "
         "'./LFMM -l'.\n"
         "This is free software, and you are welcome to redistribute it\n"
         "under certain conditions; type './LFMM -l' for details.\n\n");
}


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

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

LLVM IR (-O0):
@.str = [236 x i8] c"LFMM Copyright (C) 2012 Eric Frichot\0AThis program comes with ABSOLUTELY NO WARRANTY; for details type './LFMM -l'.\0AThis is free software, and you are welcome to redistribute it\0Aunder certain conditions; type './LFMM -l' for details.\0A\0A\00"
define void @print_head_licence_lfmm() {
%1 = call i32 @printf(i8* getelementptr inbounds ([236 x i8], [236 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [235 x i8] c"LFMM Copyright (C) 2012 Eric Frichot\0AThis program comes with ABSOLUTELY NO WARRANTY; for details type './LFMM -l'.\0AThis is free software, and you are welcome to redistribute it\0Aunder certain conditions; type './LFMM -l' for details.\0A\00"
define void @print_head_licence_lfmm() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([235 x i8], [235 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int normalize(int, int, int);
int normalize_db(int val, int max) {
  if (val <= 30)
    return 0;
  else if (val >= 100)
    return max;
  else
    return normalize(val - 30, 70, max);
}


x86 assembly (clang, -O0):
<normalize_db>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x1e,-0x8(%rbp)
jg     1134 <normalize_db+0x24>
movl   $0x0,-0x4(%rbp)
jmp    115f <normalize_db+0x4f>
cmpl   $0x64,-0x8(%rbp)
jl     1149 <normalize_db+0x39>
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    115f <normalize_db+0x4f>
mov    -0x8(%rbp),%edi
sub    $0x1e,%edi
mov    -0xc(%rbp),%edx
mov    $0x46,%esi
call   1030 <normalize@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<normalize_db>:
xor    %eax,%eax
cmp    $0x1f,%edi
jl     1120 <normalize_db+0x10>
mov    %esi,%edx
cmp    $0x63,%edi
jbe    1121 <normalize_db+0x11>
mov    %edx,%eax
ret
add    $0xffffffe2,%edi
mov    $0x46,%esi
jmp    1030 <normalize@plt>

LLVM IR (-O0):
define i32 @normalize_db(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* %4
%7 = icmp sle i32 %6, 30
br i1 %7, label %8, label %9
8: ; preds = %2
store i32 0, i32* %3
br label %19
9: ; preds = %2
%10 = load i32, i32* %4
%11 = icmp sge i32 %10, 100
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = load i32, i32* %5
store i32 %13, i32* %3
br label %19
14: ; preds = %9
%15 = load i32, i32* %4
%16 = sub nsw i32 %15, 30
%17 = load i32, i32* %5
%18 = call i32 @normalize(i32 %16, i32 70, i32 %17)
store i32 %18, i32* %3
br label %19
19: ; preds = %14, %12, %8
%20 = load i32, i32* %3
ret i32 %20
}

LLVM IR (-O2):
define i32 @normalize_db(i32 %0, i32 %1) {
%3 = icmp slt i32 %0, 31
br i1 %3, label %9, label %4
4: ; preds = %2
%5 = icmp ugt i32 %0, 99
br i1 %5, label %9, label %6
6: ; preds = %4
%7 = add nsw i32 %0, -30
%8 = tail call i32 @normalize(i32 %7, i32 70, i32 %1)
br label %9
9: ; preds = %4, %2, %6
%10 = phi i32 [ %8, %6 ], [ 0, %2 ], [ %1, %4 ]
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
int isqrt(int);
void t_sqrt_101() {
  Assert_real((isqrt(101) == 10),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/stdlib/isqrt.c",
              510, ("Integer square root of 101 should be 10"));
}


x86 assembly (clang, -O0):
<t_sqrt_101>:
push   %rbp
mov    %rsp,%rbp
mov    $0x65,%edi
call   1030 <isqrt@plt>
cmp    $0xa,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xec0(%rip),%rsi
mov    $0x1fe,%edx
lea    0xf56(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_sqrt_101>:
push   %rax
mov    $0x65,%edi
call   1030 <isqrt@plt>
xor    %edi,%edi
cmp    $0xa,%eax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf60(%rip),%rcx
mov    $0x1fe,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [162 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/stdlib/isqrt.c\00"
@.str.1 = [40 x i8] c"Integer square root of 101 should be 10\00"
define void @t_sqrt_101() {
%1 = call i32 @isqrt(i32 101)
%2 = icmp eq i32 %1, 10
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([162 x i8], [162 x i8]* @.str, i64 0, i64 0), i32 510, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [162 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/stdlib/isqrt.c\00"
@.str.1 = [40 x i8] c"Integer square root of 101 should be 10\00"
define void @t_sqrt_101() {
%1 = tail call i32 @isqrt(i32 101)
%2 = icmp eq i32 %1, 10
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([162 x i8], [162 x i8]* @.str, i64 0, i64 0), i32 510, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ ENOSYS;
int /*<<< orphan*/ errno;
FILE *popen(const char *command, const char *modes) {
  errno = ENOSYS;
  return NULL;
}


x86 assembly (clang, -O0):
<popen>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2ed5(%rip),%rax
mov    (%rax),%ecx
mov    0x2ebc(%rip),%rax
mov    %ecx,(%rax)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
@ENOSYS = global i32 0
@errno = global i32 0
define i32* @popen(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i32, i32* @ENOSYS
store i32 %5, i32* @errno
ret i32* null
}

LLVM IR (-O2):
@ENOSYS = global i32 0
@errno = global i32 0
define noalias i32* @popen(i8* nocapture readnone %0, i8* nocapture readnone %1) {
%3 = load i32, i32* @ENOSYS
store i32 %3, i32* @errno
ret i32* null
}
/* Variables and functions */
int /*<<< orphan*/ O_RDONLY;
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ smm_errno_update(int);
void *smm_cwd_push(void) {
  union {
    void *u_poi;
    int u_int;
  } fd;
  fd.u_poi = NULL;
  if ((fd.u_int = open(".", O_RDONLY)) < 0) {
    smm_errno_update((0xC0000000 | (6)));
  }
  return fd.u_poi;
}


x86 assembly (clang, -O0):
<smm_cwd_push>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movq   $0x0,-0x8(%rbp)
mov    0x2eb1(%rip),%rax
mov    (%rax),%esi
lea    0xec0(%rip),%rdi
call   1040 <open@plt>
mov    %eax,-0x8(%rbp)
cmp    $0x0,%eax
jge    115b <smm_cwd_push+0x3b>
mov    $0xc0000006,%edi
call   1030 <smm_errno_update@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<smm_cwd_push>:
push   %rbx
mov    0x2ec0(%rip),%rax
mov    (%rax),%esi
lea    0xecf(%rip),%rdi
call   1040 <open@plt>
mov    %eax,%ebx
test   %eax,%eax
jns    1146 <smm_cwd_push+0x26>
mov    $0xc0000006,%edi
call   1030 <smm_errno_update@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
%union.anon = type { i8* }
@.str = [2 x i8] c".\00"
@O_RDONLY = global i32 0
define i8* @smm_cwd_push() {
%1 = alloca %union.anon
%2 = bitcast %union.anon* %1 to i8**
store i8* null, i8** %2
%3 = load i32, i32* @O_RDONLY
%4 = call i32 @open(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = bitcast %union.anon* %1 to i32*
store i32 %4, i32* %5
%6 = icmp slt i32 %4, 0
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @smm_errno_update(i32 -1073741818)
br label %9
9: ; preds = %7, %0
%10 = bitcast %union.anon* %1 to i8**
%11 = load i8*, i8** %10
ret i8* %11
}

LLVM IR (-O2):
@.str = [2 x i8] c".\00"
@O_RDONLY = global i32 0
define i8* @smm_cwd_push() {
%1 = load i32, i32* @O_RDONLY
%2 = tail call i32 @open(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = icmp slt i32 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = tail call i32 @smm_errno_update(i32 -1073741818)
br label %6
6: ; preds = %4, %0
%7 = zext i32 %2 to i64
%8 = inttoptr i64 %7 to i8*
ret i8* %8
}
struct bwb_line *bwb_OPTION_ARITHMETIC_FIXED(struct bwb_line *l) {
  bwx_DEBUG(__FUNCTION__);
  return bwb_zline(l);
}


x86 assembly (clang, -O0):
<bwb_OPTION_ARITHMETIC_FIXED>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
mov    $0x0,%al
call   1030 <bwx_DEBUG@plt>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1040 <bwb_zline@plt>
cltq
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bwb_OPTION_ARITHMETIC_FIXED>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
xor    %eax,%eax
call   1030 <bwx_DEBUG@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <bwb_zline@plt>
cltq
pop    %rbx
ret

LLVM IR (-O0):
%struct.bwb_line = type opaque
@__FUNCTION__.bwb_OPTION_ARITHMETIC_FIXED = [28 x i8] c"bwb_OPTION_ARITHMETIC_FIXED\00"
define %struct.bwb_line* @bwb_OPTION_ARITHMETIC_FIXED(%struct.bwb_line* %0) {
%2 = alloca %struct.bwb_line*
store %struct.bwb_line* %0, %struct.bwb_line** %2
%3 = call i32 (i8*, ...) bitcast (i32 (...)* @bwx_DEBUG to i32 (i8*, ...)*)(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @__FUNCTION__.bwb_OPTION_ARITHMETIC_FIXED, i64 0, i64 0))
%4 = load %struct.bwb_line*, %struct.bwb_line** %2
%5 = call i32 (%struct.bwb_line*, ...) bitcast (i32 (...)* @bwb_zline to i32 (%struct.bwb_line*, ...)*)(%struct.bwb_line* %4)
%6 = sext i32 %5 to i64
%7 = inttoptr i64 %6 to %struct.bwb_line*
ret %struct.bwb_line* %7
}

LLVM IR (-O2):
%struct.bwb_line = type opaque
@__FUNCTION__.bwb_OPTION_ARITHMETIC_FIXED = [28 x i8] c"bwb_OPTION_ARITHMETIC_FIXED\00"
define %struct.bwb_line* @bwb_OPTION_ARITHMETIC_FIXED(%struct.bwb_line* %0) {
%2 = tail call i32 (i8*, ...) bitcast (i32 (...)* @bwx_DEBUG to i32 (i8*, ...)*)(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @__FUNCTION__.bwb_OPTION_ARITHMETIC_FIXED, i64 0, i64 0))
%3 = tail call i32 (%struct.bwb_line*, ...) bitcast (i32 (...)* @bwb_zline to i32 (%struct.bwb_line*, ...)*)(%struct.bwb_line* %0)
%4 = sext i32 %3 to i64
%5 = inttoptr i64 %4 to %struct.bwb_line*
ret %struct.bwb_line* %5
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ struct_exist(char *);
int can_add_struct(char *structname) {
  if (struct_exist(structname) != (0)) {
    printf("Struct type %s already exists\n", structname);
    return (0);
  }
  return (1);
}


x86 assembly (clang, -O0):
<can_add_struct>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <struct_exist@plt>
cmp    $0x0,%eax
je     115a <can_add_struct+0x3a>
mov    -0x10(%rbp),%rsi
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1161 <can_add_struct+0x41>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<can_add_struct>:
push   %rbx
mov    %rdi,%rbx
call   1040 <struct_exist@plt>
test   %eax,%eax
je     1140 <can_add_struct+0x20>
lea    0xecc(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret
mov    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [31 x i8] c"Struct type %s already exists\0A\00"
define i32 @can_add_struct(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i32 @struct_exist(i8* %4)
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i8*, i8** %3
%9 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i8* %8)
store i32 0, i32* %2
br label %11
10: ; preds = %1
store i32 1, i32* %2
br label %11
11: ; preds = %10, %7
%12 = load i32, i32* %2
ret i32 %12
}

LLVM IR (-O2):
@.str = [31 x i8] c"Struct type %s already exists\0A\00"
define i32 @can_add_struct(i8* %0) {
%2 = tail call i32 @struct_exist(i8* %0)
%3 = icmp eq i32 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i8* %0)
br label %6
6: ; preds = %1, %4
%7 = phi i32 [ 0, %4 ], [ 1, %1 ]
ret i32 %7
}
void FR_Mandelbrot_uv2mandelbrot(long double *x, long double *y) {
  *x = (*x) * 2 - 1.;
  *y = 1. - (*y) * 2;
}


x86 assembly (clang, -O0):
<FR_Mandelbrot_uv2mandelbrot>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
fldt   (%rax)
fadd   %st,%st(0)
fld1
fld    %st(0)
fchs
faddp  %st,%st(2)
fxch   %st(1)
fstpt  (%rax)
mov    -0x10(%rbp),%rax
fldt   (%rax)
fadd   %st,%st(0)
fsubrp %st,%st(1)
fstpt  (%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<FR_Mandelbrot_uv2mandelbrot>:
fldt   (%rdi)
fadd   %st,%st(0)
fld1
fld    %st(0)
fchs
faddp  %st,%st(2)
fxch   %st(1)
fstpt  (%rdi)
fldt   (%rsi)
fadd   %st,%st(0)
fsubrp %st,%st(1)
fstpt  (%rsi)
ret

LLVM IR (-O0):
define void @FR_Mandelbrot_uv2mandelbrot(x86_fp80* %0, x86_fp80* %1) {
%3 = alloca x86_fp80*
%4 = alloca x86_fp80*
store x86_fp80* %0, x86_fp80** %3
store x86_fp80* %1, x86_fp80** %4
%5 = load x86_fp80*, x86_fp80** %3
%6 = load x86_fp80, x86_fp80* %5
%7 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %6, x86_fp80 0xK40008000000000000000, x86_fp80 0xKBFFF8000000000000000)
%8 = load x86_fp80*, x86_fp80** %3
store x86_fp80 %7, x86_fp80* %8
%9 = load x86_fp80*, x86_fp80** %4
%10 = load x86_fp80, x86_fp80* %9
%11 = fneg x86_fp80 %10
%12 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %11, x86_fp80 0xK40008000000000000000, x86_fp80 0xK3FFF8000000000000000)
%13 = load x86_fp80*, x86_fp80** %4
store x86_fp80 %12, x86_fp80* %13
ret void
}

LLVM IR (-O2):
define void @FR_Mandelbrot_uv2mandelbrot(x86_fp80* nocapture %0, x86_fp80* nocapture %1) {
%3 = load x86_fp80, x86_fp80* %0
%4 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %3, x86_fp80 0xK40008000000000000000, x86_fp80 0xKBFFF8000000000000000)
store x86_fp80 %4, x86_fp80* %0
%5 = load x86_fp80, x86_fp80* %1
%6 = fneg x86_fp80 %5
%7 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %6, x86_fp80 0xK40008000000000000000, x86_fp80 0xK3FFF8000000000000000)
store x86_fp80 %7, x86_fp80* %1
ret void
}
const char *dablooms_version(void) { return "0.9.1"; }


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

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

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

LLVM IR (-O2):
@.str = [6 x i8] c"0.9.1\00"
define i8* @dablooms_version() {
ret i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
}
/* Type definitions */
typedef int /*<<< orphan*/ uint64_t;

/* Variables and functions */
int /*<<< orphan*/ rotr64(int /*<<< orphan*/, int);
uint64_t bmw_large_r6(uint64_t x) {
  uint64_t r;
  r = rotr64(x, 64 - 43);
  return r;
}


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

x86 assembly (clang, -O2):
<bmw_large_r6>:
mov    $0x15,%esi
jmp    1030 <rotr64@plt>

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

LLVM IR (-O2):
define i32 @bmw_large_r6(i32 %0) {
%2 = tail call i32 @rotr64(i32 %0, i32 21)
ret i32 %2
}
/* Type definitions */
struct lzw_ctx {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct lzw_ctx *);
void lzw_context_destroy(struct lzw_ctx *ctx) { free(ctx); }


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

x86 assembly (clang, -O2):
<lzw_context_destroy>:
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.lzw_ctx = type { i32 }
define void @lzw_context_destroy(%struct.lzw_ctx* %0) {
%2 = alloca %struct.lzw_ctx*
store %struct.lzw_ctx* %0, %struct.lzw_ctx** %2
%3 = load %struct.lzw_ctx*, %struct.lzw_ctx** %2
%4 = call i32 @free(%struct.lzw_ctx* %3)
ret void
}

LLVM IR (-O2):
%struct.lzw_ctx = type { i32 }
define void @lzw_context_destroy(%struct.lzw_ctx* nocapture %0) {
%2 = tail call i32 @free(%struct.lzw_ctx* %0)
ret void
}
/* Variables and functions */
char const *getenv(char const *);
const char *source_handler_env(const char *parameter) {
  return getenv(parameter);
}


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

x86 assembly (clang, -O2):
<source_handler_env>:
jmp    1030 <getenv@plt>

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

LLVM IR (-O2):
define i8* @source_handler_env(i8* nocapture %0) {
%2 = tail call i8* @getenv(i8* %0)
ret i8* %2
}
void RTThreadWaitNoResume(void) {}


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

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

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

LLVM IR (-O2):
define void @RTThreadWaitNoResume() {
ret void
}
/* Variables and functions */
char *U_WMRCORENONE_set(char *);
char *U_WMR6D_set(void) { return U_WMRCORENONE_set("U_WMR6D"); }


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

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

LLVM IR (-O0):
@.str = [8 x i8] c"U_WMR6D\00"
define i8* @U_WMR6D_set() {
%1 = call i8* @U_WMRCORENONE_set(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}

LLVM IR (-O2):
@.str = [8 x i8] c"U_WMR6D\00"
define i8* @U_WMR6D_set() {
%1 = tail call i8* @U_WMRCORENONE_set(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}
/* Variables and functions */
int /*<<< orphan*/ free(void **);
void simpleMatrixDestroyRelease(void *MATRIX) {
  void **rows = (void **)MATRIX;
  free(rows[0]);
  free(rows);
}


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

x86 assembly (clang, -O2):
<simpleMatrixDestroyRelease>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @simpleMatrixDestroyRelease(i8* %0) {
%2 = alloca i8*
%3 = alloca i8**
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = bitcast i8* %4 to i8**
store i8** %5, i8*** %3
%6 = load i8**, i8*** %3
%7 = getelementptr inbounds i8*, i8** %6, i64 0
%8 = load i8*, i8** %7
%9 = bitcast i8* %8 to i8**
%10 = call i32 @free(i8** %9)
%11 = load i8**, i8*** %3
%12 = call i32 @free(i8** %11)
ret void
}

LLVM IR (-O2):
define void @simpleMatrixDestroyRelease(i8* nocapture %0) {
%2 = bitcast i8* %0 to i8**
%3 = bitcast i8* %0 to i8***
%4 = load i8**, i8*** %3
%5 = tail call i32 @free(i8** %4)
%6 = tail call i32 @free(i8** %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  int age = 24;
  int height = 12 * 6 - 1;
  printf("I am %d years old.\n", age);
  printf("I am %-10d years old.\n", age);
  printf("I am %d inches tall.\n", height);
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x18,%esi
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
mov    $0x18,%esi
call   1030 <printf@plt>
lea    0xef1(%rip),%rdi
mov    $0x47,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [20 x i8] c"I am %d years old.\0A\00"
@.str.1 = [23 x i8] c"I am %-10d years old.\0A\00"
@.str.2 = [22 x i8] c"I am %d inches tall.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 24, i32* %2
store i32 71, i32* %3
%4 = load i32, i32* %2
%5 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = load i32, i32* %2
%7 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 %6)
%8 = load i32, i32* %3
%9 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i32 %8)
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"I am %d years old.\0A\00"
@.str.1 = [23 x i8] c"I am %-10d years old.\0A\00"
@.str.2 = [22 x i8] c"I am %d inches tall.\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 24)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 24)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i32 71)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ infixToPostfix(char *);
int main() {
  char exp[] = "a+b*(c^d-e)^(f+g*h)-i";
  infixToPostfix(exp);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeda(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xed7(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xed5(%rip),%eax
mov    %eax,-0x10(%rbp)
mov    0xecf(%rip),%ax
mov    %ax,-0xc(%rbp)
lea    -0x20(%rbp),%rdi
call   1030 <infixToPostfix@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movaps 0xee5(%rip),%xmm0
movaps %xmm0,(%rsp)
movabs $0x692d29682a672b,%rax
mov    %rax,0xe(%rsp)
mov    %rsp,%rdi
call   1030 <infixToPostfix@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@__const.main.exp = [22 x i8] c"a+b*(c^d-e)^(f+g*h)-i\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [22 x i8]
store i32 0, i32* %1
%3 = bitcast [22 x i8]* %2 to i8*
%4 = getelementptr inbounds [22 x i8], [22 x i8]* %2, i64 0, i64 0
%5 = call i32 @infixToPostfix(i8* %4)
ret i32 0
}

LLVM IR (-O2):
@__const.main.exp = [22 x i8] c"a+b*(c^d-e)^(f+g*h)-i\00"
define i32 @main() {
%1 = alloca [22 x i8]
%2 = getelementptr inbounds [22 x i8], [22 x i8]* %1, i64 0, i64 0
%3 = call i32 @infixToPostfix(i8* %2)
ret i32 0
}
int gmacdev_release(struct inode *inode, struct file *file) { return 0; }


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

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

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

LLVM IR (-O2):
%struct.inode = type opaque
%struct.file = type opaque
define i32 @gmacdev_release(%struct.inode* nocapture readnone %0, %struct.file* nocapture readnone %1) {
ret i32 0
}
const char *SkipListDBGetLastErrorString(void *beData) {}


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

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

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

LLVM IR (-O2):
define noalias i8* @SkipListDBGetLastErrorString(i8* nocapture readnone %0) {
ret i8* undef
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
void handle_alarm(int sig) { exit(EXIT_SUCCESS); }


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

x86 assembly (clang, -O2):
<handle_alarm>:
push   %rax
mov    0x2ec8(%rip),%rax
mov    (%rax),%edi
call   1030 <exit@plt>

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

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define void @handle_alarm(i32 %0) {
%2 = load i32, i32* @EXIT_SUCCESS
%3 = tail call i32 @exit(i32 %2)
unreachable
}
/* Variables and functions */
int __builtin_allegrex_ceil_w_s(float);
int pspFpuCeil(float fs) { return (__builtin_allegrex_ceil_w_s(fs)); }


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

x86 assembly (clang, -O2):
<pspFpuCeil>:
jmp    1030 <__builtin_allegrex_ceil_w_s@plt>

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

LLVM IR (-O2):
define i32 @pspFpuCeil(float %0) {
%2 = tail call i32 @__builtin_allegrex_ceil_w_s(float %0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ CRYPTO_malloc_init();
int /*<<< orphan*/ SSL_library_init();
int /*<<< orphan*/ SSL_load_error_strings();
void initssl() {
  CRYPTO_malloc_init();
  SSL_library_init();
  SSL_load_error_strings();
}


x86 assembly (clang, -O0):
<initssl>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <CRYPTO_malloc_init@plt>
mov    $0x0,%al
call   1030 <SSL_library_init@plt>
mov    $0x0,%al
call   1040 <SSL_load_error_strings@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<initssl>:
push   %rax
xor    %eax,%eax
call   1050 <CRYPTO_malloc_init@plt>
xor    %eax,%eax
call   1030 <SSL_library_init@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <SSL_load_error_strings@plt>

LLVM IR (-O0):
define void @initssl() {
%1 = call i32 (...) @CRYPTO_malloc_init()
%2 = call i32 (...) @SSL_library_init()
%3 = call i32 (...) @SSL_load_error_strings()
ret void
}

LLVM IR (-O2):
define void @initssl() {
%1 = tail call i32 (...) @CRYPTO_malloc_init()
%2 = tail call i32 (...) @SSL_library_init()
%3 = tail call i32 (...) @SSL_load_error_strings()
ret void
}
int gsendx(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @gsendx() {
ret i32 0
}
int pair2index(int i1, int i2, int n_motifs) {
  int index;
  index = (i1 - 1) * n_motifs + i2;
  return index;
}


x86 assembly (clang, -O0):
<pair2index>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
imul   -0xc(%rbp),%eax
add    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<pair2index>:
lea    -0x1(%rdi),%eax
imul   %edx,%eax
add    %esi,%eax
ret

LLVM IR (-O0):
define i32 @pair2index(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%8 = load i32, i32* %4
%9 = sub nsw i32 %8, 1
%10 = load i32, i32* %6
%11 = mul nsw i32 %9, %10
%12 = load i32, i32* %5
%13 = add nsw i32 %11, %12
store i32 %13, i32* %7
%14 = load i32, i32* %7
ret i32 %14
}

LLVM IR (-O2):
define i32 @pair2index(i32 %0, i32 %1, i32 %2) {
%4 = add nsw i32 %0, -1
%5 = mul nsw i32 %4, %2
%6 = add nsw i32 %5, %1
ret i32 %6
}
/* Variables and functions */
int arg_rest(char **);
int dialog_dselect(char const *, char *, int /*<<< orphan*/,
                   int /*<<< orphan*/);
int /*<<< orphan*/ numeric_arg(char **, int);
int call_dselect(const char *t, char *av[], int *offset_add) {
  *offset_add = arg_rest(av);
  return dialog_dselect(t, av[1], numeric_arg(av, 2), numeric_arg(av, 3));
}


x86 assembly (clang, -O0):
<call_dselect>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <arg_rest@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1040 <numeric_arg@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x3,%esi
call   1040 <numeric_arg@plt>
mov    -0x30(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    %eax,%ecx
call   1050 <dialog_dselect@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<call_dselect>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rdx,%r14
mov    %rsi,%rbx
mov    %rdi,%r15
mov    %rsi,%rdi
call   1030 <arg_rest@plt>
mov    %eax,(%r14)
mov    0x8(%rbx),%r14
mov    %rbx,%rdi
mov    $0x2,%esi
call   1040 <numeric_arg@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
mov    $0x3,%esi
call   1040 <numeric_arg@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    %eax,%ecx
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <dialog_dselect@plt>

LLVM IR (-O0):
define i32 @call_dselect(i8* %0, i8** %1, i32* %2) {
%4 = alloca i8*
%5 = alloca i8**
%6 = alloca i32*
store i8* %0, i8** %4
store i8** %1, i8*** %5
store i32* %2, i32** %6
%7 = load i8**, i8*** %5
%8 = call i32 @arg_rest(i8** %7)
%9 = load i32*, i32** %6
store i32 %8, i32* %9
%10 = load i8*, i8** %4
%11 = load i8**, i8*** %5
%12 = getelementptr inbounds i8*, i8** %11, i64 1
%13 = load i8*, i8** %12
%14 = load i8**, i8*** %5
%15 = call i32 @numeric_arg(i8** %14, i32 2)
%16 = load i8**, i8*** %5
%17 = call i32 @numeric_arg(i8** %16, i32 3)
%18 = call i32 @dialog_dselect(i8* %10, i8* %13, i32 %15, i32 %17)
ret i32 %18
}

LLVM IR (-O2):
define i32 @call_dselect(i8* %0, i8** %1, i32* nocapture writeonly %2) {
%4 = tail call i32 @arg_rest(i8** %1)
store i32 %4, i32* %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i32 @numeric_arg(i8** %1, i32 2)
%8 = tail call i32 @numeric_arg(i8** %1, i32 3)
%9 = tail call i32 @dialog_dselect(i8* %0, i8* %6, i32 %7, i32 %8)
ret i32 %9
}
/* Variables and functions */
double pow(double, int);
double f6(double x) { return -pow(x, 2); }


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

x86 assembly (clang, -O2):
<f6>:
push   %rax
mov    $0x2,%edi
call   1030 <pow@plt>
xorps  0xede(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @f6(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = call double @pow(double %3, i32 2)
%5 = fneg double %4
ret double %5
}

LLVM IR (-O2):
define double @f6(double %0) {
%2 = tail call double @pow(double %0, i32 2)
%3 = fneg double %2
ret double %3
}
void ff_hevc_put_hevc_uni_epel_h48_8_sse4() {}


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

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

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

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

/* Variables and functions */
__m128i __attribute__((__always___, __nodebug__)) _mm_castpd_si128(__m128d in) {
  return (__m128i)in;
}


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

x86 assembly (clang, -O2):
<_mm_castpd_si128>:
mov    %edi,%eax
ret

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

LLVM IR (-O2):
define i32 @_mm_castpd_si128(i32 returned %0) {
ret i32 %0
}
/* Variables and functions */
int system(char const *);
int run(const char *cmd) { return system(cmd); }


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

x86 assembly (clang, -O2):
<run>:
jmp    1030 <system@plt>

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

LLVM IR (-O2):
define i32 @run(i8* nocapture %0) {
%2 = tail call i32 @system(i8* %0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ TRUE;
int /*<<< orphan*/ endwin();
int /*<<< orphan*/ getch();
int /*<<< orphan*/ initscr();
int /*<<< orphan*/ keypad(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ noecho();
int /*<<< orphan*/ printw(char *);
int /*<<< orphan*/ raw();
int /*<<< orphan*/ refresh();
int /*<<< orphan*/ stdscr;
int main() {
  initscr();
  raw();
  noecho();
  keypad(stdscr, TRUE);
  printw("Hello World !!!");
  refresh();
  getch();
  endwin();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <initscr@plt>
mov    $0x0,%al
call   1050 <raw@plt>
mov    $0x0,%al
call   10a0 <noecho@plt>
mov    0x2e3d(%rip),%rax
mov    (%rax),%edi
mov    0x2e2c(%rip),%rax
mov    (%rax),%esi
call   1030 <keypad@plt>
lea    0xe3e(%rip),%rdi
call   1060 <printw@plt>
mov    $0x0,%al
call   1070 <refresh@plt>
mov    $0x0,%al
call   1080 <getch@plt>
mov    $0x0,%al
call   1090 <endwin@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <initscr@plt>
xor    %eax,%eax
call   1050 <raw@plt>
xor    %eax,%eax
call   10a0 <noecho@plt>
mov    0x2e4b(%rip),%rax
mov    (%rax),%edi
mov    0x2e3a(%rip),%rax
mov    (%rax),%esi
call   1030 <keypad@plt>
lea    0xe4c(%rip),%rdi
call   1060 <printw@plt>
xor    %eax,%eax
call   1070 <refresh@plt>
xor    %eax,%eax
call   1080 <getch@plt>
xor    %eax,%eax
call   1090 <endwin@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@stdscr = global i32 0
@TRUE = global i32 0
@.str = [16 x i8] c"Hello World !!!\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @initscr()
%3 = call i32 (...) @raw()
%4 = call i32 (...) @noecho()
%5 = load i32, i32* @stdscr
%6 = load i32, i32* @TRUE
%7 = call i32 @keypad(i32 %5, i32 %6)
%8 = call i32 @printw(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%9 = call i32 (...) @refresh()
%10 = call i32 (...) @getch()
%11 = call i32 (...) @endwin()
ret i32 0
}

LLVM IR (-O2):
@stdscr = global i32 0
@TRUE = global i32 0
@.str = [16 x i8] c"Hello World !!!\00"
define i32 @main() {
%1 = tail call i32 (...) @initscr()
%2 = tail call i32 (...) @raw()
%3 = tail call i32 (...) @noecho()
%4 = load i32, i32* @stdscr
%5 = load i32, i32* @TRUE
%6 = tail call i32 @keypad(i32 %4, i32 %5)
%7 = tail call i32 @printw(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 (...) @refresh()
%9 = tail call i32 (...) @getch()
%10 = tail call i32 (...) @endwin()
ret i32 0
}
void gtk_text_tag_table_remove() {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ SIG_UNBLOCK;
int pthread_sigmask(int /*<<< orphan*/, int /*<<< orphan*/ *,
                    int /*<<< orphan*/ *);
int /*<<< orphan*/ sigaddset(int /*<<< orphan*/ *, int);
int /*<<< orphan*/ sigemptyset(int /*<<< orphan*/ *);
int m_signal_unblock(int sig) {
  sigset_t sig_mask;
  sigemptyset(&sig_mask);
  sigaddset(&sig_mask, sig);
  return (pthread_sigmask(SIG_UNBLOCK, &sig_mask, NULL));
}


x86 assembly (clang, -O0):
<m_signal_unblock>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    -0x8(%rbp),%rdi
call   1030 <sigemptyset@plt>
mov    -0x4(%rbp),%esi
lea    -0x8(%rbp),%rdi
call   1050 <sigaddset@plt>
mov    0x2e91(%rip),%rax
mov    (%rax),%edi
lea    -0x8(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1040 <pthread_sigmask@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<m_signal_unblock>:
push   %r14
push   %rbx
push   %rax
mov    %edi,%ebx
lea    0x4(%rsp),%r14
mov    %r14,%rdi
call   1030 <sigemptyset@plt>
mov    %r14,%rdi
mov    %ebx,%esi
call   1050 <sigaddset@plt>
mov    0x2e94(%rip),%rax
mov    (%rax),%edi
mov    %r14,%rsi
xor    %edx,%edx
call   1040 <pthread_sigmask@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@SIG_UNBLOCK = global i32 0
define i32 @m_signal_unblock(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = call i32 @sigemptyset(i32* %3)
%5 = load i32, i32* %2
%6 = call i32 @sigaddset(i32* %3, i32 %5)
%7 = load i32, i32* @SIG_UNBLOCK
%8 = call i32 @pthread_sigmask(i32 %7, i32* %3, i32* null)
ret i32 %8
}

LLVM IR (-O2):
@SIG_UNBLOCK = global i32 0
define i32 @m_signal_unblock(i32 %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
%4 = call i32 @sigemptyset(i32* %2)
%5 = call i32 @sigaddset(i32* %2, i32 %0)
%6 = load i32, i32* @SIG_UNBLOCK
%7 = call i32 @pthread_sigmask(i32 %6, i32* %2, i32* null)
ret i32 %7
}
/* Variables and functions */
char *sqlite3_mprintf(char *, char const *);
char *feisty_db_sqlite3_strdup(const char *s) {
  return sqlite3_mprintf("%s", s);
}


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

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

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
define i8* @feisty_db_sqlite3_strdup(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i8* @sqlite3_mprintf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %3)
ret i8* %4
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
define i8* @feisty_db_sqlite3_strdup(i8* %0) {
%2 = tail call i8* @sqlite3_mprintf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %0)
ret i8* %2
}
/* Type definitions */
struct bio {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct bio *);
void HsFreeBio(struct bio *bio) {
  free(bio);
  return;
}


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

x86 assembly (clang, -O2):
<HsFreeBio>:
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.bio = type { i32 }
define void @HsFreeBio(%struct.bio* %0) {
%2 = alloca %struct.bio*
store %struct.bio* %0, %struct.bio** %2
%3 = load %struct.bio*, %struct.bio** %2
%4 = call i32 @free(%struct.bio* %3)
ret void
}

LLVM IR (-O2):
%struct.bio = type { i32 }
define void @HsFreeBio(%struct.bio* nocapture %0) {
%2 = tail call i32 @free(%struct.bio* %0)
ret void
}
double st_maxf(double x, double y) { return x > y ? x : y; }


x86 assembly (clang, -O0):
<st_maxf>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    112d <st_maxf+0x2d>
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    1137 <st_maxf+0x37>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<st_maxf>:
maxsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @st_maxf(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 = load double, double* %4
%7 = fcmp ogt double %5, %6
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = load double, double* %3
br label %12
10: ; preds = %2
%11 = load double, double* %4
br label %12
12: ; preds = %10, %8
%13 = phi double [ %9, %8 ], [ %11, %10 ]
ret double %13
}

LLVM IR (-O2):
define double @st_maxf(double %0, double %1) {
%3 = fcmp ogt double %0, %1
%4 = select i1 %3, double %0, double %1
ret double %4
}
/* Variables and functions */
int f204(int *);
int f205(int *p) { return f204(p); }


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

x86 assembly (clang, -O2):
<f205>:
jmp    1030 <f204@plt>

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

LLVM IR (-O2):
define i32 @f205(i32* %0) {
%2 = tail call i32 @f204(i32* %0)
ret i32 %2
}
extern void cop_optional_reset(void) {}


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

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

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

LLVM IR (-O2):
define void @cop_optional_reset() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ strcmp(char const *, char *);
int identifier_is_special(const char *name) {
  return !strcmp(name, "<special>");
}


x86 assembly (clang, -O0):
<identifier_is_special>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<identifier_is_special>:
push   %rax
lea    0xee8(%rip),%rsi
call   1030 <strcmp@plt>
xor    %ecx,%ecx
test   %eax,%eax
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [10 x i8] c"<special>\00"
define i32 @identifier_is_special(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @strcmp(i8* %3, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%5 = icmp ne i32 %4, 0
%6 = xor i1 %5, true
%7 = zext i1 %6 to i32
ret i32 %7
}

LLVM IR (-O2):
@.str = [10 x i8] c"<special>\00"
define i32 @identifier_is_special(i8* nocapture %0) {
%2 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i32 %2, 0
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ internal_fiat_p224_square(uintptr_t, uintptr_t);
void fiat_p224_square(uint32_t out1[7], const uint32_t arg1[7]) {
  internal_fiat_p224_square((uintptr_t)out1, (uintptr_t)arg1);
}


x86 assembly (clang, -O0):
<fiat_p224_square>:
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 <internal_fiat_p224_square@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fiat_p224_square>:
jmp    1030 <internal_fiat_p224_square@plt>

LLVM IR (-O0):
define void @fiat_p224_square(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 = ptrtoint i32* %5 to i64
%7 = load i32*, i32** %4
%8 = ptrtoint i32* %7 to i64
%9 = call i32 @internal_fiat_p224_square(i64 %6, i64 %8)
ret void
}

LLVM IR (-O2):
define void @fiat_p224_square(i32* %0, i32* %1) {
%3 = ptrtoint i32* %0 to i64
%4 = ptrtoint i32* %1 to i64
%5 = tail call i32 @internal_fiat_p224_square(i64 %3, i64 %4)
ret void
}
int callback(void *opq, int argc, char **argv, char **colname) { return 0; }


x86 assembly (clang, -O0):
<callback>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @callback(i8* nocapture readnone %0, i32 %1, i8** nocapture readnone %2, i8** nocapture readnone %3) {
ret i32 0
}