xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ daemonize(char *);
int main(int argc, char *argv[]) {
  if (argc > 1) {
    daemonize(argv[1]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
jle    113d <main+0x2d>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1030 <daemonize@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
cmp    $0x2,%edi
jl     1123 <main+0x13>
push   %rax
mov    0x8(%rsi),%rdi
call   1030 <daemonize@plt>
add    $0x8,%rsp
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = icmp sgt i32 %6, 1
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load i8**, i8*** %5
%10 = getelementptr inbounds i8*, i8** %9, i64 1
%11 = load i8*, i8** %10
%12 = call i32 @daemonize(i8* %11)
br label %13
13: ; preds = %8, %2
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %4, label %8
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i32 @daemonize(i8* %6)
br label %8
8: ; preds = %4, %2
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main() {
  printf("Hello Mac ! \n");
  return 0;
}


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

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

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

LLVM IR (-O2):
@str = [13 x i8] c"Hello Mac ! \00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
ret i32 0
}
int test_imm_8Bint64_highword_reg(long long val) {
  return ((val >> 32) & (0x8B << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_8Bint64_highword_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdx
sar    $0x20,%rdx
and    $0x8b,%rdx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_8Bint64_highword_reg>:
movabs $0x8b00000000,%rax
test   %rax,%rdi
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_8Bint64_highword_reg(i64 %0) {
%2 = and i64 %0, 597000454144
%3 = icmp eq i64 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
char *getEnumStermKind(int value) {
  switch (value) {
  case 0:
    return "NOLL_STERM_LVAR";
  case 1:
    return "NOLL_STERM_SVAR";
  case 2:
    return "NOLL_STERM_PRJ";
  default:
    return "NOLL_STERM_OTHER";
  }
}


x86 assembly (clang, -O0):
<getEnumStermKind>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
test   %eax,%eax
je     113c <getEnumStermKind+0x3c>
jmp    111a <getEnumStermKind+0x1a>
mov    -0x10(%rbp),%eax
sub    $0x1,%eax
je     114c <getEnumStermKind+0x4c>
jmp    112b <getEnumStermKind+0x2b>
mov    -0x10(%rbp),%eax
sub    $0x2,%eax
je     115c <getEnumStermKind+0x5c>
jmp    116c <getEnumStermKind+0x6c>
lea    0xebd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1177 <getEnumStermKind+0x77>
lea    0xebd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1177 <getEnumStermKind+0x77>
lea    0xebd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1177 <getEnumStermKind+0x77>
lea    0xebc(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<getEnumStermKind>:
cmp    $0x2,%edi
ja     1117 <getEnumStermKind+0x17>
movslq %edi,%rax
lea    0xf31(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
ret
lea    0xf11(%rip),%rax
ret

LLVM IR (-O0):
@.str = [16 x i8] c"NOLL_STERM_LVAR\00"
@.str.1 = [16 x i8] c"NOLL_STERM_SVAR\00"
@.str.2 = [15 x i8] c"NOLL_STERM_PRJ\00"
@.str.3 = [17 x i8] c"NOLL_STERM_OTHER\00"
define i8* @getEnumStermKind(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %8 [
i32 0, label %5
i32 1, label %6
i32 2, label %7
]
5: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8** %2
br label %9
6: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %9
7: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %9
8: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %9
9: ; preds = %8, %7, %6, %5
%10 = load i8*, i8** %2
ret i8* %10
}

LLVM IR (-O2):
@.str = [16 x i8] c"NOLL_STERM_LVAR\00"
@.str.1 = [16 x i8] c"NOLL_STERM_SVAR\00"
@.str.2 = [15 x i8] c"NOLL_STERM_PRJ\00"
@.str.3 = [17 x i8] c"NOLL_STERM_OTHER\00"
@reltable.getEnumStermKind = [3 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str to i64), i64 ptrtoint ([3 x i32]* @reltable.getEnumStermKind to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.1 to i64), i64 ptrtoint ([3 x i32]* @reltable.getEnumStermKind to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.2 to i64), i64 ptrtoint ([3 x i32]* @reltable.getEnumStermKind to i64)) to i32)]
define i8* @getEnumStermKind(i32 %0) {
%2 = icmp ult i32 %0, 3
br i1 %2, label %3, label %7
3: ; preds = %1
%4 = sext i32 %0 to i64
%5 = shl i64 %4, 2
%6 = call i8* @llvm.load.relative.i64(i8* bitcast ([3 x i32]* @reltable.getEnumStermKind to i8*), i64 %5)
br label %7
7: ; preds = %1, %3
%8 = phi i8* [ %6, %3 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), %1 ]
ret i8* %8
}
void WebPRescalerDspInitMIPSdspR2(void) {}


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

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

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

LLVM IR (-O2):
define void @WebPRescalerDspInitMIPSdspR2() {
ret void
}
int test_imm_32uint32_reg(unsigned int val) {
  return ((val) & (0x32 << 0)) ? -20 : -40;
}


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

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

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

LLVM IR (-O2):
define i32 @test_imm_32uint32_reg(i32 %0) {
%2 = and i32 %0, 50
%3 = icmp eq i32 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Variables and functions */
int partition(int *, int, int);
void sort(int a[], int lo, int hi) {
  if (hi <= lo)
    return;
  int j = partition(a, lo, hi);
  sort(a, lo, j - 1);
  sort(a, j + 1, hi);
}


x86 assembly (clang, -O0):
<sort>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     1143 <sort+0x23>
jmp    1179 <sort+0x59>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1030 <partition@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x14(%rbp),%edx
sub    $0x1,%edx
call   1040 <sort@plt>
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%esi
add    $0x1,%esi
mov    -0x10(%rbp),%edx
call   1040 <sort@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sort>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
cmp    %esi,%edx
jle    1166 <sort+0x46>
mov    %edx,%r14d
mov    %esi,%ebp
mov    %rdi,%r15
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r15,%rdi
mov    %ebp,%esi
mov    %r14d,%edx
call   1030 <partition@plt>
mov    %eax,%ebx
lea    -0x1(%rbx),%edx
mov    %r15,%rdi
mov    %ebp,%esi
call   1040 <sort@plt>
add    $0x1,%ebx
mov    %ebx,%ebp
cmp    %r14d,%ebx
jl     1140 <sort+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @sort(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* %6
%9 = load i32, i32* %5
%10 = icmp sle i32 %8, %9
br i1 %10, label %11, label %12
11: ; preds = %3
br label %25
12: ; preds = %3
%13 = load i32*, i32** %4
%14 = load i32, i32* %5
%15 = load i32, i32* %6
%16 = call i32 @partition(i32* %13, i32 %14, i32 %15)
store i32 %16, i32* %7
%17 = load i32*, i32** %4
%18 = load i32, i32* %5
%19 = load i32, i32* %7
%20 = sub nsw i32 %19, 1
%21 = load i32*, i32** %4
%22 = load i32, i32* %7
%23 = add nsw i32 %22, 1
%24 = load i32, i32* %6
br label %25
25: ; preds = %12, %11
ret void
}

LLVM IR (-O2):
define void @sort(i32* %0, i32 %1, i32 %2) {
%4 = icmp sgt i32 %2, %1
br i1 %4, label %5, label %11
5: ; preds = %3, %5
%6 = phi i32 [ %9, %5 ], [ %1, %3 ]
%7 = tail call i32 @partition(i32* %0, i32 %6, i32 %2)
%8 = add nsw i32 %7, -1
tail call void @sort(i32* %0, i32 %6, i32 %8)
%9 = add nsw i32 %7, 1
%10 = icmp slt i32 %9, %2
br i1 %10, label %5, label %11
11: ; preds = %5, %3
ret void
}
int no_function(void) { return 0; }


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ SIG_UNBLOCK;
int /*<<< orphan*/ sigaddset(int /*<<< orphan*/ *, int);
int /*<<< orphan*/ sigemptyset(int /*<<< orphan*/ *);
int /*<<< orphan*/ sigprocmask(int /*<<< orphan*/, int /*<<< orphan*/ *,
                               int /*<<< orphan*/ *);
void sys_sigrelease(int sig) {
  sigset_t mask;
  sigemptyset(&mask);
  sigaddset(&mask, sig);
  sigprocmask(SIG_UNBLOCK, &mask, (sigset_t *)NULL);
}


x86 assembly (clang, -O0):
<sys_sigrelease>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    -0x8(%rbp),%rdi
call   1040 <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   1030 <sigprocmask@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sys_sigrelease>:
push   %r14
push   %rbx
push   %rax
mov    %edi,%ebx
lea    0x4(%rsp),%r14
mov    %r14,%rdi
call   1040 <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   1030 <sigprocmask@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@SIG_UNBLOCK = global i32 0
define void @sys_sigrelease(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 @sigprocmask(i32 %7, i32* %3, i32* null)
ret void
}

LLVM IR (-O2):
@SIG_UNBLOCK = global i32 0
define void @sys_sigrelease(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 @sigprocmask(i32 %6, i32* %2, i32* null)
ret void
}
unsigned char i2c(int i) {
  return (((i) < 10) ? ((i) + '0') : (((i & 0x0f) + 'a') - 10));
}


x86 assembly (clang, -O0):
<i2c>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0xa,-0x4(%rbp)
jge    111f <i2c+0x1f>
mov    -0x4(%rbp),%eax
add    $0x30,%eax
mov    %eax,-0x8(%rbp)
jmp    112e <i2c+0x2e>
mov    -0x4(%rbp),%eax
and    $0xf,%eax
add    $0x61,%eax
sub    $0xa,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<i2c>:
mov    %edi,%eax
and    $0xf,%al
add    $0x57,%al
lea    0x30(%rdi),%ecx
cmp    $0xa,%edi
movzbl %cl,%ecx
movzbl %al,%eax
cmovl  %ecx,%eax
ret

LLVM IR (-O0):
define zeroext i8 @i2c(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp slt i32 %3, 10
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = add nsw i32 %6, 48
br label %13
8: ; preds = %1
%9 = load i32, i32* %2
%10 = and i32 %9, 15
%11 = add nsw i32 %10, 97
%12 = sub nsw i32 %11, 10
br label %13
13: ; preds = %8, %5
%14 = phi i32 [ %7, %5 ], [ %12, %8 ]
%15 = trunc i32 %14 to i8
ret i8 %15
}

LLVM IR (-O2):
define zeroext i8 @i2c(i32 %0) {
%2 = icmp slt i32 %0, 10
%3 = add nsw i32 %0, 48
%4 = and i32 %0, 15
%5 = add nuw nsw i32 %4, 87
%6 = select i1 %2, i32 %3, i32 %5
%7 = trunc i32 %6 to i8
ret i8 %7
}
/* Type definitions */
typedef int /*<<< orphan*/ __m128;

/* Variables and functions */
int /*<<< orphan*/ _mm_cmpnlt_ss(int /*<<< orphan*/, int /*<<< orphan*/);
__m128 test_mm_cmpnlt_ss(__m128 __a, __m128 __b) {
  return _mm_cmpnlt_ss(__a, __b);
}


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

x86 assembly (clang, -O2):
<test_mm_cmpnlt_ss>:
jmp    1030 <_mm_cmpnlt_ss@plt>

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

LLVM IR (-O2):
define i32 @test_mm_cmpnlt_ss(i32 %0, i32 %1) {
%3 = tail call i32 @_mm_cmpnlt_ss(i32 %0, i32 %1)
ret i32 %3
}
/* Variables and functions */
char *strcpy_x86_64_fast(char *, char const *);
char *strcpy(char *__restrict__ dest, const char *__restrict__ src) {
  return strcpy_x86_64_fast(dest, src);
}


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

x86 assembly (clang, -O2):
<strcpy>:
jmp    1030 <strcpy_x86_64_fast@plt>

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

LLVM IR (-O2):
define i8* @strcpy(i8* noalias %0, i8* noalias %1) {
%3 = tail call i8* @strcpy_x86_64_fast(i8* %0, i8* %1)
ret i8* %3
}
/* Variables and functions */
int /*<<< orphan*/ absolute();
int /*<<< orphan*/ readmemw65816(int /*<<< orphan*/);
int /*<<< orphan*/ sbc16(int /*<<< orphan*/);
void sbcAbs16(void) { sbc16(readmemw65816(absolute())); }


x86 assembly (clang, -O0):
<sbcAbs16>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <absolute@plt>
mov    %eax,%edi
call   1030 <readmemw65816@plt>
mov    %eax,%edi
call   1050 <sbc16@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<sbcAbs16>:
push   %rax
xor    %eax,%eax
call   1040 <absolute@plt>
mov    %eax,%edi
call   1030 <readmemw65816@plt>
mov    %eax,%edi
pop    %rax
jmp    1050 <sbc16@plt>

LLVM IR (-O0):
define void @sbcAbs16() {
%1 = call i32 (...) @absolute()
%2 = call i32 @readmemw65816(i32 %1)
%3 = call i32 @sbc16(i32 %2)
ret void
}

LLVM IR (-O2):
define void @sbcAbs16() {
%1 = tail call i32 (...) @absolute()
%2 = tail call i32 @readmemw65816(i32 %1)
%3 = tail call i32 @sbc16(i32 %2)
ret void
}
/* Type definitions */
typedef int int32_t;

/* Variables and functions */
int32_t get_socket_fd() {
  static int32_t fd = 100000000 + 1;
  fd--;
  return fd;
}


x86 assembly (clang, -O0):
<get_socket_fd>:
push   %rbp
mov    %rsp,%rbp
mov    0x2f16(%rip),%eax
add    $0xffffffff,%eax
mov    %eax,0x2f0d(%rip)
mov    0x2f07(%rip),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_socket_fd>:
mov    0x2f1a(%rip),%eax
add    $0xffffffff,%eax
mov    %eax,0x2f11(%rip)
ret

LLVM IR (-O0):
@get_socket_fd.fd = internal global i32 100000001
define i32 @get_socket_fd() {
%1 = load i32, i32* @get_socket_fd.fd
%2 = add nsw i32 %1, -1
store i32 %2, i32* @get_socket_fd.fd
%3 = load i32, i32* @get_socket_fd.fd
ret i32 %3
}

LLVM IR (-O2):
@get_socket_fd.fd = internal unnamed_addr global i32 100000001
define i32 @get_socket_fd() {
%1 = load i32, i32* @get_socket_fd.fd
%2 = add nsw i32 %1, -1
store i32 %2, i32* @get_socket_fd.fd
ret i32 %2
}
int min(int a, int b, int c) {
  int m = a;
  if (b < m)
    m = b;
  if (c < m)
    m = c;
  return m;
}


x86 assembly (clang, -O0):
<min>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1125 <min+0x25>
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1137 <min+0x37>
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<min>:
mov    %edi,%eax
cmp    %edi,%esi
cmovl  %esi,%eax
cmp    %edx,%eax
cmovg  %edx,%eax
ret

LLVM IR (-O0):
define i32 @min(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
store i32 %8, i32* %7
%9 = load i32, i32* %5
%10 = load i32, i32* %7
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %3
%13 = load i32, i32* %5
store i32 %13, i32* %7
br label %14
14: ; preds = %12, %3
%15 = load i32, i32* %6
%16 = load i32, i32* %7
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = load i32, i32* %6
store i32 %19, i32* %7
br label %20
20: ; preds = %18, %14
%21 = load i32, i32* %7
ret i32 %21
}

LLVM IR (-O2):
define i32 @min(i32 %0, i32 %1, i32 %2) {
%4 = icmp slt i32 %1, %0
%5 = select i1 %4, i32 %1, i32 %0
%6 = icmp sgt i32 %5, %2
%7 = select i1 %6, i32 %2, i32 %5
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
scalar_t__ read(int, void *, size_t);
int /*<<< orphan*/ stdout;
void read_(int fd, void *buf, size_t count) {
  if (read(fd, buf, count) <= 0) {
    fprintf(stdout, "CONNECTION CLOSED BY FOREIGN HOST\n");
  }
}


x86 assembly (clang, -O0):
<read_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <read@plt>
cmp    $0x0,%rax
jg     1162 <read_+0x42>
mov    0x2e8c(%rip),%rax
mov    (%rax),%edi
lea    0xea3(%rip),%rsi
call   1040 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_>:
push   %rax
call   1030 <read@plt>
test   %rax,%rax
jle    112d <read_+0xd>
pop    %rax
ret
mov    0x2eac(%rip),%rax
mov    (%rax),%edi
lea    0xec3(%rip),%rsi
pop    %rax
jmp    1040 <fprintf@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [35 x i8] c"CONNECTION CLOSED BY FOREIGN HOST\0A\00"
define void @read_(i32 %0, i8* %1, i64 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i64
store i32 %0, i32* %4
store i8* %1, i8** %5
store i64 %2, i64* %6
%7 = load i32, i32* %4
%8 = load i8*, i8** %5
%9 = load i64, i64* %6
%10 = call i64 @read(i32 %7, i8* %8, i64 %9)
%11 = icmp sle i64 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %3
%13 = load i32, i32* @stdout
%14 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
br label %15
15: ; preds = %12, %3
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [35 x i8] c"CONNECTION CLOSED BY FOREIGN HOST\0A\00"
define void @read_(i32 %0, i8* nocapture %1, i64 %2) {
%4 = tail call i64 @read(i32 %0, i8* %1, i64 %2)
%5 = icmp slt i64 %4, 1
br i1 %5, label %6, label %9
6: ; preds = %3
%7 = load i32, i32* @stdout
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
br label %9
9: ; preds = %6, %3
ret void
}
/* Variables and functions */
char *strchr(const char *s, int ch) {
  while (*s && *s != ch)
    ++s;
  if (*s == ch)
    return (char *)s;
  return NULL;
}


x86 assembly (clang, -O0):
<strchr>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x15(%rbp)
je     1130 <strchr+0x30>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    -0x14(%rbp),%eax
setne  %al
mov    %al,-0x15(%rbp)
mov    -0x15(%rbp),%al
test   $0x1,%al
jne    1140 <strchr+0x40>
jmp    1151 <strchr+0x51>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    110b <strchr+0xb>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    -0x14(%rbp),%eax
jne    116e <strchr+0x6e>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1176 <strchr+0x76>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strchr>:
add    $0xffffffffffffffff,%rdi
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsbl 0x1(%rdi),%ecx
add    $0x1,%rdi
test   %ecx,%ecx
je     1120 <strchr+0x20>
cmp    %esi,%ecx
jne    1110 <strchr+0x10>
xor    %eax,%eax
cmp    %esi,%ecx
cmove  %rdi,%rax
ret

LLVM IR (-O0):
define i8* @strchr(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
br label %6
6: ; preds = %19, %2
%7 = load i8*, i8** %4
%8 = load i8, i8* %7
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %17
11: ; preds = %6
%12 = load i8*, i8** %4
%13 = load i8, i8* %12
%14 = sext i8 %13 to i32
%15 = load i32, i32* %5
%16 = icmp ne i32 %14, %15
br label %17
17: ; preds = %11, %6
%18 = phi i1 [ false, %6 ], [ %16, %11 ]
br i1 %18, label %19, label %22
19: ; preds = %17
%20 = load i8*, i8** %4
%21 = getelementptr inbounds i8, i8* %20, i32 1
store i8* %21, i8** %4
br label %6
22: ; preds = %17
%23 = load i8*, i8** %4
%24 = load i8, i8* %23
%25 = sext i8 %24 to i32
%26 = load i32, i32* %5
%27 = icmp eq i32 %25, %26
br i1 %27, label %28, label %30
28: ; preds = %22
%29 = load i8*, i8** %4
store i8* %29, i8** %3
br label %31
30: ; preds = %22
store i8* null, i8** %3
br label %31
31: ; preds = %30, %28
%32 = load i8*, i8** %3
ret i8* %32
}

LLVM IR (-O2):
define i8* @strchr(i8* %0, i32 %1) {
br label %3
3: ; preds = %3, %2
%4 = phi i8* [ %0, %2 ], [ %10, %3 ]
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 0
%7 = sext i8 %5 to i32
%8 = icmp eq i32 %7, %1
%9 = or i1 %6, %8
%10 = getelementptr inbounds i8, i8* %4, i64 1
br i1 %9, label %11, label %3
11: ; preds = %3
%12 = select i1 %8, i8* %4, i8* null
ret i8* %12
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_getgrnam_malloc() {
  printf("NOT IMPLEMENTED:"
         "pa_getgrnam_malloc"
         "\n");
}


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

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

LLVM IR (-O0):
@.str = [36 x i8] c"NOT IMPLEMENTED:pa_getgrnam_malloc\0A\00"
define i32 @pa_getgrnam_malloc() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@str = [35 x i8] c"NOT IMPLEMENTED:pa_getgrnam_malloc\00"
define i32 @pa_getgrnam_malloc() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
/* Variables and functions */
int i_abs(int *);
int intr_wrap_090(int p1) { return i_abs(&p1); }


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

x86 assembly (clang, -O2):
<intr_wrap_090>:
push   %rax
mov    %edi,0x4(%rsp)
lea    0x4(%rsp),%rdi
call   1030 <i_abs@plt>
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @intr_wrap_090(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @i_abs(i32* %2)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ tests3();
int main_test(int argc, char *argv[]) {
  tests3();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main_test(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @tests3()
ret i32 0
}
/* Variables and functions */
scalar_t__ isspace(char);
char *trimwhitespace(char *line) {
  while (isspace(*(line))) {
    line = line + 1;
  }
  return line;
}


x86 assembly (clang, -O0):
<trimwhitespace>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isspace@plt>
cmp    $0x0,%rax
je     1143 <trimwhitespace+0x33>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    111c <trimwhitespace+0xc>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<trimwhitespace>:
push   %rbx
mov    %rdi,%rbx
add    $0xffffffffffffffff,%rbx
nopl   0x0(%rax,%rax,1)
movsbl 0x1(%rbx),%edi
add    $0x1,%rbx
call   1030 <isspace@plt>
test   %rax,%rax
jne    1120 <trimwhitespace+0x10>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @trimwhitespace(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %8, %1
%4 = load i8*, i8** %2
%5 = load i8, i8* %4
%6 = call i64 @isspace(i8 signext %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %3
%9 = load i8*, i8** %2
%10 = getelementptr inbounds i8, i8* %9, i64 1
store i8* %10, i8** %2
br label %3
11: ; preds = %3
%12 = load i8*, i8** %2
ret i8* %12
}

LLVM IR (-O2):
define i8* @trimwhitespace(i8* %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i8* [ %0, %1 ], [ %7, %2 ]
%4 = load i8, i8* %3
%5 = tail call i64 @isspace(i8 signext %4)
%6 = icmp eq i64 %5, 0
%7 = getelementptr inbounds i8, i8* %3, i64 1
br i1 %6, label %8, label %2
8: ; preds = %2
ret i8* %3
}
arlength(t) {
  if (t >= 010)
    return (2);
  switch (t) {
  case 0:
  case 1:
    return (2);
  case 6:
    return (4);
  case 2:
  case 3:
    return (8);
  }
  return (1024);
}


x86 assembly (clang, -O0):
<arlength>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x8,-0x8(%rbp)
jl     111d <arlength+0x1d>
movl   $0x2,-0x4(%rbp)
jmp    1181 <arlength+0x81>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
sub    $0x2,%eax
jb     1156 <arlength+0x56>
jmp    1131 <arlength+0x31>
mov    -0xc(%rbp),%eax
add    $0xfffffffe,%eax
sub    $0x2,%eax
jb     116e <arlength+0x6e>
jmp    1145 <arlength+0x45>
mov    -0xc(%rbp),%eax
sub    $0x6,%eax
je     1162 <arlength+0x62>
jmp    117a <arlength+0x7a>
movl   $0x2,-0x4(%rbp)
jmp    1181 <arlength+0x81>
movl   $0x4,-0x4(%rbp)
jmp    1181 <arlength+0x81>
movl   $0x8,-0x4(%rbp)
jmp    1181 <arlength+0x81>
movl   $0x400,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<arlength>:
mov    $0x2,%eax
cmp    $0x7,%edi
jg     111e <arlength+0x1e>
mov    $0x400,%eax
jae    111e <arlength+0x1e>
movslq %edi,%rax
lea    0xee5(%rip),%rcx
mov    (%rcx,%rax,4),%eax
ret

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

LLVM IR (-O2):
@switch.table.arlength = [7 x i32] [i32 2, i32 2, i32 8, i32 8, i32 1024, i32 1024, i32 4]
define i32 @arlength(i32 %0) {
%2 = icmp sgt i32 %0, 7
br i1 %2, label %9, label %3
3: ; preds = %1
%4 = icmp ult i32 %0, 7
br i1 %4, label %5, label %9
5: ; preds = %3
%6 = sext i32 %0 to i64
%7 = getelementptr inbounds [7 x i32], [7 x i32]* @switch.table.arlength, i64 0, i64 %6
%8 = load i32, i32* %7
br label %9
9: ; preds = %3, %5, %1
%10 = phi i32 [ 2, %1 ], [ %8, %5 ], [ 1024, %3 ]
ret i32 %10
}
/* Type definitions */
typedef scalar_t__ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, float);
void processSTSpeed(uint8_t *cmdBuffer, uint8_t size) {
  float speed = ((int)cmdBuffer[3] << 8) | ((int)cmdBuffer[2]);
  printf("speed = %f knots\n", speed / 10.0);
}


x86 assembly (clang, -O0):
<processSTSpeed>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%rax
shl    $0x8,%eax
mov    -0x8(%rbp),%rcx
mov    0x10(%rcx),%rcx
or     %ecx,%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xeb1(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
lea    0xeaa(%rip),%rdi
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<processSTSpeed>:
mov    0x18(%rdi),%eax
shl    $0x8,%eax
or     0x10(%rdi),%eax
cvtsi2ss %eax,%xmm0
divss  0xedb(%rip),%xmm0
lea    0xed8(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"speed = %f knots\0A\00"
define void @processSTSpeed(i64* %0, i64 %1) {
%3 = alloca i64*
%4 = alloca i64
%5 = alloca float
store i64* %0, i64** %3
store i64 %1, i64* %4
%6 = load i64*, i64** %3
%7 = getelementptr inbounds i64, i64* %6, i64 3
%8 = load i64, i64* %7
%9 = trunc i64 %8 to i32
%10 = shl i32 %9, 8
%11 = load i64*, i64** %3
%12 = getelementptr inbounds i64, i64* %11, i64 2
%13 = load i64, i64* %12
%14 = trunc i64 %13 to i32
%15 = or i32 %10, %14
%16 = sitofp i32 %15 to float
store float %16, float* %5
%17 = load float, float* %5
%18 = fpext float %17 to double
%19 = fdiv double %18, 1.000000e+01
%20 = fptrunc double %19 to float
%21 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), float %20)
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"speed = %f knots\0A\00"
define void @processSTSpeed(i64* nocapture %0, i64 %1) {
%3 = getelementptr inbounds i64, i64* %0, i64 3
%4 = load i64, i64* %3
%5 = trunc i64 %4 to i32
%6 = shl i32 %5, 8
%7 = getelementptr inbounds i64, i64* %0, i64 2
%8 = load i64, i64* %7
%9 = trunc i64 %8 to i32
%10 = or i32 %6, %9
%11 = sitofp i32 %10 to float
%12 = fdiv float %11, 1.000000e+01
%13 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), float %12)
ret void
}
void gtk_about_dialog_new() {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ _mm_sll_epi32(int /*<<< orphan*/, int /*<<< orphan*/);
__m128i test_mm_sll_epi32(__m128i A, __m128i B) { return _mm_sll_epi32(A, B); }


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

x86 assembly (clang, -O2):
<test_mm_sll_epi32>:
jmp    1030 <_mm_sll_epi32@plt>

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

LLVM IR (-O2):
define i32 @test_mm_sll_epi32(i32 %0, i32 %1) {
%3 = tail call i32 @_mm_sll_epi32(i32 %0, i32 %1)
ret i32 %3
}
void findme() {}


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

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

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

LLVM IR (-O2):
define void @findme() {
ret void
}
/* Variables and functions */
scalar_t__ syscall(int, int);
int close(int fd) { return (int)syscall(2, fd); }


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

x86 assembly (clang, -O2):
<close>:
mov    %edi,%esi
mov    $0x2,%edi
jmp    1030 <syscall@plt>

LLVM IR (-O0):
define i32 @close(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i64 @syscall(i32 2, i32 %3)
%5 = trunc i64 %4 to i32
ret i32 %5
}

LLVM IR (-O2):
define i32 @close(i32 %0) {
%2 = tail call i64 @syscall(i32 2, i32 %0)
%3 = trunc i64 %2 to i32
ret i32 %3
}
void a9bcdefghijklmnopqrstuvwxzy() {}


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

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

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

LLVM IR (-O2):
define void @a9bcdefghijklmnopqrstuvwxzy() {
ret void
}
/* Variables and functions */
void *malloc(size_t);
int /*<<< orphan*/ memset(void *, int /*<<< orphan*/, size_t);
int /*<<< orphan*/ s_hook_memory_add(void *, size_t, char const *, int);
void *s_malloc_(size_t size, const char *file, int line) {
  void *ptr = malloc(size);
  memset(ptr, 0, size);
  s_hook_memory_add(ptr, size, file, line);
  return ptr;
}


x86 assembly (clang, -O0):
<s_malloc_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rdx
xor    %esi,%esi
call   1030 <memset@plt>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x14(%rbp),%ecx
call   1050 <s_hook_memory_add@plt>
mov    -0x20(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<s_malloc_>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %edx,%r14d
mov    %rsi,%r15
mov    %rdi,%rbp
call   1040 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1030 <memset@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
mov    %r14d,%ecx
call   1050 <s_hook_memory_add@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i8* @s_malloc_(i64 %0, i8* %1, i32 %2) {
%4 = alloca i64
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i8*
store i64 %0, i64* %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%8 = load i64, i64* %4
%9 = call i8* @malloc(i64 %8)
store i8* %9, i8** %7
%10 = load i8*, i8** %7
%11 = load i64, i64* %4
%12 = call i32 @memset(i8* %10, i32 0, i64 %11)
%13 = load i8*, i8** %7
%14 = load i64, i64* %4
%15 = load i8*, i8** %5
%16 = load i32, i32* %6
%17 = call i32 @s_hook_memory_add(i8* %13, i64 %14, i8* %15, i32 %16)
%18 = load i8*, i8** %7
ret i8* %18
}

LLVM IR (-O2):
define i8* @s_malloc_(i64 %0, i8* %1, i32 %2) {
%4 = tail call i8* @malloc(i64 %0)
%5 = tail call i32 @memset(i8* %4, i32 0, i64 %0)
%6 = tail call i32 @s_hook_memory_add(i8* %4, i64 %0, i8* %1, i32 %2)
ret i8* %4
}
/* Variables and functions */
double RAND_MAX;
double rand();
size_t TestingMostlyAscending(size_t index, size_t total) {
  return index + rand() * 1.0 / RAND_MAX * 5 - 2.5;
}


x86 assembly (clang, -O0):
<TestingMostlyAscending>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movaps 0xed9(%rip),%xmm1
movq   -0x8(%rbp),%xmm0
punpckldq %xmm1,%xmm0
movapd 0xed8(%rip),%xmm1
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
xor    %eax,%eax
call   1030 <rand@plt>
movsd  -0x18(%rbp),%xmm1
mov    0x2e89(%rip),%rax
movsd  (%rax),%xmm2
divsd  %xmm2,%xmm0
movsd  0xeb1(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xea9(%rip),%xmm1
addsd  %xmm1,%xmm0
movaps %xmm0,%xmm1
cvttsd2si %xmm1,%rax
mov    %rax,%rdx
sar    $0x3f,%rdx
movsd  0xe96(%rip),%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rcx
and    %rdx,%rcx
or     %rcx,%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TestingMostlyAscending>:
sub    $0x18,%rsp
movq   %rdi,%xmm0
punpckldq 0xedf(%rip),%xmm0
subpd  0xee7(%rip),%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addsd  %xmm0,%xmm1
movapd %xmm1,(%rsp)
xor    %eax,%eax
call   1030 <rand@plt>
mov    0x2ea0(%rip),%rax
divsd  (%rax),%xmm0
mulsd  0xecc(%rip),%xmm0
addsd  (%rsp),%xmm0
addsd  0xec7(%rip),%xmm0
cvttsd2si %xmm0,%rcx
mov    %rcx,%rdx
sar    $0x3f,%rdx
subsd  0xebb(%rip),%xmm0
cvttsd2si %xmm0,%rax
and    %rdx,%rax
or     %rcx,%rax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@RAND_MAX = global double 0.000000e+00
define i64 @TestingMostlyAscending(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %3
%6 = uitofp i64 %5 to double
%7 = call double (...) @rand()
%8 = fmul double %7, 1.000000e+00
%9 = load double, double* @RAND_MAX
%10 = fdiv double %8, %9
%11 = call double @llvm.fmuladd.f64(double %10, double 5.000000e+00, double %6)
%12 = fsub double %11, 2.500000e+00
%13 = fptoui double %12 to i64
ret i64 %13
}

LLVM IR (-O2):
@RAND_MAX = global double 0.000000e+00
define i64 @TestingMostlyAscending(i64 %0, i64 %1) {
%3 = uitofp i64 %0 to double
%4 = tail call double (...) @rand()
%5 = load double, double* @RAND_MAX
%6 = fdiv double %4, %5
%7 = tail call double @llvm.fmuladd.f64(double %6, double 5.000000e+00, double %3)
%8 = fadd double %7, -2.500000e+00
%9 = fptoui double %8 to i64
ret i64 %9
}
int abs(int i) { return (i >= 0) ? i : -i; }


x86 assembly (clang, -O0):
<abs>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jl     111c <abs+0x1c>
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
jmp    1124 <abs+0x24>
xor    %eax,%eax
sub    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @abs(i32 %0) {
%2 = tail call i32 @llvm.abs.i32(i32 %0, i1 true)
ret i32 %2
}
/* Variables and functions */
unsigned short inw_local(int);
__attribute__((always_)) unsigned short inw(int port) {
  return inw_local(port);
}


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

x86 assembly (clang, -O2):
<inw>:
jmp    1030 <inw_local@plt>

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

LLVM IR (-O2):
define zeroext i16 @inw(i32 %0) {
%2 = tail call zeroext i16 @inw_local(i32 %0)
ret i16 %2
}
/* Variables and functions */
int CHAR_BIT;
int __test_bit(int idx, unsigned long *bmap) {
  unsigned long mask = (1UL << ((idx) % (CHAR_BIT * sizeof(unsigned long))));
  unsigned long *p =
      ((unsigned long *)bmap) + ((idx) / (CHAR_BIT * sizeof(unsigned long)));
  return *p & mask;
}


x86 assembly (clang, -O0):
<__test_bit>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movslq -0x4(%rbp),%rax
mov    0x2eca(%rip),%rcx
movslq (%rcx),%rcx
shl    $0x3,%rcx
xor    %edx,%edx
div    %rcx
mov    %rdx,%rcx
mov    $0x1,%eax
shl    %cl,%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
movslq -0x4(%rbp),%rax
mov    0x2e9c(%rip),%rcx
movslq (%rcx),%rcx
shl    $0x3,%rcx
xor    %edx,%edx
div    %rcx
mov    %rax,%rcx
mov    -0x28(%rbp),%rax
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
and    -0x18(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<__test_bit>:
movslq %edi,%rax
mov    0x2ed6(%rip),%rcx
movslq (%rcx),%rcx
shl    $0x3,%rcx
mov    %rax,%rdx
or     %rcx,%rdx
shr    $0x20,%rdx
je     1127 <__test_bit+0x27>
xor    %edx,%edx
div    %rcx
mov    %rdx,%rcx
jmp    112f <__test_bit+0x2f>
mov    %edi,%eax
xor    %edx,%edx
div    %ecx
mov    %edx,%ecx
mov    $0x1,%edx
shl    %cl,%rdx
and    (%rsi,%rax,8),%edx
mov    %edx,%eax
ret

LLVM IR (-O0):
@CHAR_BIT = global i32 0
define i32 @__test_bit(i32 %0, i64* %1) {
%3 = alloca i32
%4 = alloca i64*
%5 = alloca i64
%6 = alloca i64*
store i32 %0, i32* %3
store i64* %1, i64** %4
%7 = load i32, i32* %3
%8 = sext i32 %7 to i64
%9 = load i32, i32* @CHAR_BIT
%10 = sext i32 %9 to i64
%11 = mul i64 %10, 8
%12 = urem i64 %8, %11
%13 = shl i64 1, %12
store i64 %13, i64* %5
%14 = load i64*, i64** %4
%15 = load i32, i32* %3
%16 = sext i32 %15 to i64
%17 = load i32, i32* @CHAR_BIT
%18 = sext i32 %17 to i64
%19 = mul i64 %18, 8
%20 = udiv i64 %16, %19
%21 = getelementptr inbounds i64, i64* %14, i64 %20
store i64* %21, i64** %6
%22 = load i64*, i64** %6
%23 = load i64, i64* %22
%24 = load i64, i64* %5
%25 = and i64 %23, %24
%26 = trunc i64 %25 to i32
ret i32 %26
}

LLVM IR (-O2):
@CHAR_BIT = global i32 0
define i32 @__test_bit(i32 %0, i64* nocapture %1) {
%3 = sext i32 %0 to i64
%4 = load i32, i32* @CHAR_BIT
%5 = sext i32 %4 to i64
%6 = shl nsw i64 %5, 3
%7 = urem i64 %3, %6
%8 = shl nuw i64 1, %7
%9 = udiv i64 %3, %6
%10 = getelementptr inbounds i64, i64* %1, i64 %9
%11 = load i64, i64* %10
%12 = and i64 %11, %8
%13 = trunc i64 %12 to i32
ret i32 %13
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
main() {
  size_t foo = sizeof(size_t);
  exit(0);
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @exit(i32 0)
unreachable
}
/* Variables and functions */
double jn(int, double);
double bessel_j(double x, double y) {
  int n = (int)x;
  return (jn(n, y));
}


x86 assembly (clang, -O0):
<bessel_j>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
cvttsd2si -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
movsd  -0x10(%rbp),%xmm0
call   1030 <jn@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bessel_j>:
cvttsd2si %xmm0,%edi
movaps %xmm1,%xmm0
jmp    1030 <jn@plt>

LLVM IR (-O0):
define double @bessel_j(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca i32
store double %0, double* %3
store double %1, double* %4
%6 = load double, double* %3
%7 = fptosi double %6 to i32
store i32 %7, i32* %5
%8 = load i32, i32* %5
%9 = load double, double* %4
%10 = call double @jn(i32 %8, double %9)
ret double %10
}

LLVM IR (-O2):
define double @bessel_j(double %0, double %1) {
%3 = fptosi double %0 to i32
%4 = tail call double @jn(i32 %3, double %1)
ret double %4
}
/* Type definitions */
typedef unsigned long long __u64;

/* Variables and functions */
__u64 extended_to_chunk(__u64 flags) { return flags & ~(1ULL << 48); }


x86 assembly (clang, -O0):
<extended_to_chunk>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movabs $0xfffeffffffffffff,%rax
ff fe ff
and    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<extended_to_chunk>:
movabs $0xfffeffffffffffff,%rax
ff fe ff
and    %rdi,%rax
ret

LLVM IR (-O0):
define i64 @extended_to_chunk(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = and i64 %3, -281474976710657
ret i64 %4
}

LLVM IR (-O2):
define i64 @extended_to_chunk(i64 %0) {
%2 = and i64 %0, -281474976710657
ret i64 %2
}
/* Variables and functions */
int gca_search_size(const void *aa, void *bb) {
  const size_t a = *(const size_t *)aa;
  const size_t b = *(size_t *)bb;
  return (((a) > (b)) - ((b) > (a)));
}


x86 assembly (clang, -O0):
<gca_search_size>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
cmp    -0x20(%rbp),%rax
seta   %al
and    $0x1,%al
movzbl %al,%eax
mov    -0x20(%rbp),%rcx
cmp    -0x18(%rbp),%rcx
seta   %cl
and    $0x1,%cl
movzbl %cl,%ecx
sub    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<gca_search_size>:
mov    (%rdi),%rcx
xor    %eax,%eax
cmp    (%rsi),%rcx
seta   %al
sbb    $0x0,%eax
ret

LLVM IR (-O0):
define i32 @gca_search_size(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i64
store i8* %0, i8** %3
store i8* %1, i8** %4
%7 = load i8*, i8** %3
%8 = bitcast i8* %7 to i64*
%9 = load i64, i64* %8
store i64 %9, i64* %5
%10 = load i8*, i8** %4
%11 = bitcast i8* %10 to i64*
%12 = load i64, i64* %11
store i64 %12, i64* %6
%13 = load i64, i64* %5
%14 = load i64, i64* %6
%15 = icmp ugt i64 %13, %14
%16 = zext i1 %15 to i32
%17 = load i64, i64* %6
%18 = load i64, i64* %5
%19 = icmp ugt i64 %17, %18
%20 = zext i1 %19 to i32
%21 = sub nsw i32 %16, %20
ret i32 %21
}

LLVM IR (-O2):
define i32 @gca_search_size(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i64*
%4 = load i64, i64* %3
%5 = bitcast i8* %1 to i64*
%6 = load i64, i64* %5
%7 = icmp ugt i64 %4, %6
%8 = zext i1 %7 to i32
%9 = icmp ugt i64 %6, %4
%10 = sext i1 %9 to i32
%11 = add nsw i32 %10, %8
ret i32 %11
}
void foo692(int p) {}


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

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

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

LLVM IR (-O2):
define void @foo692(i32 %0) {
ret void
}
void caller_1_1_2_1_2_1_1() {}


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

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

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

LLVM IR (-O2):
define void @caller_1_1_2_1_2_1_1() {
ret void
}
int am33xx_bbu_spi_nor_register_handler(const char *name, char *devicefile) {
  return 0;
}


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

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

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

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