xunge/DecIR huggingface dataset:
/* Variables and functions */
char *strchr(char *, char);
void fxmlDecodeEntity(char **input, char **output) {
  char *s;
  s = strchr(*input, ';');
  *input = s + 1;
  **output = '?';
  (*output)++;
}


x86 assembly (clang, -O0):
<fxmlDecodeEntity>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
mov    $0x3b,%esi
call   1030 <strchr@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rcx
add    $0x1,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movb   $0x3f,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fxmlDecodeEntity>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    (%rdi),%rdi
mov    $0x3b,%esi
call   1030 <strchr@plt>
add    $0x1,%rax
mov    %rax,(%rbx)
mov    (%r14),%rax
movb   $0x3f,(%rax)
addq   $0x1,(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @fxmlDecodeEntity(i8** %0, i8** %1) {
%3 = alloca i8**
%4 = alloca i8**
%5 = alloca i8*
store i8** %0, i8*** %3
store i8** %1, i8*** %4
%6 = load i8**, i8*** %3
%7 = load i8*, i8** %6
%8 = call i8* @strchr(i8* %7, i8 signext 59)
store i8* %8, i8** %5
%9 = load i8*, i8** %5
%10 = getelementptr inbounds i8, i8* %9, i64 1
%11 = load i8**, i8*** %3
store i8* %10, i8** %11
%12 = load i8**, i8*** %4
%13 = load i8*, i8** %12
store i8 63, i8* %13
%14 = load i8**, i8*** %4
%15 = load i8*, i8** %14
%16 = getelementptr inbounds i8, i8* %15, i32 1
store i8* %16, i8** %14
ret void
}

LLVM IR (-O2):
define void @fxmlDecodeEntity(i8** nocapture %0, i8** nocapture %1) {
%3 = load i8*, i8** %0
%4 = tail call i8* @strchr(i8* dereferenceable(1) %3, i8 signext 59)
%5 = getelementptr inbounds i8, i8* %4, i64 1
store i8* %5, i8** %0
%6 = load i8*, i8** %1
store i8 63, i8* %6
%7 = load i8*, i8** %1
%8 = getelementptr inbounds i8, i8* %7, i64 1
store i8* %8, i8** %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ f3_cmp(long double, long double);
int __netf2(long double a, long double b) { return !!f3_cmp(a, b); }


x86 assembly (clang, -O0):
<__netf2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
fldt   0x20(%rbp)
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fstpt  -0x20(%rbp)
fldt   -0x10(%rbp)
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  0x10(%rax)
fstpt  (%rax)
call   1030 <f3_cmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__netf2>:
sub    $0x28,%rsp
fldt   0x30(%rsp)
fldt   0x40(%rsp)
fstpt  0x10(%rsp)
fstpt  (%rsp)
call   1030 <f3_cmp@plt>
xor    %ecx,%ecx
test   %eax,%eax
setne  %cl
mov    %ecx,%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
define i32 @__netf2(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* %4
%7 = call i32 @f3_cmp(x86_fp80 %5, x86_fp80 %6)
%8 = icmp ne i32 %7, 0
%9 = xor i1 %8, true
%10 = xor i1 %9, true
%11 = zext i1 %10 to i32
ret i32 %11
}

LLVM IR (-O2):
define i32 @__netf2(x86_fp80 %0, x86_fp80 %1) {
%3 = tail call i32 @f3_cmp(x86_fp80 %0, x86_fp80 %1)
%4 = icmp ne i32 %3, 0
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ delay_x();
int /*<<< orphan*/ status_off();
int /*<<< orphan*/ status_on();
void blink_red(void) {
  for (;;) {
    status_on();
    delay_x();
    status_off();
    delay_x();
  }
}


x86 assembly (clang, -O0):
<blink_red>:
push   %rbp
mov    %rsp,%rbp
jmp    1139 <blink_red+0x9>
mov    $0x0,%al
call   1040 <status_on@plt>
mov    $0x0,%al
call   1030 <delay_x@plt>
mov    $0x0,%al
call   1050 <status_off@plt>
mov    $0x0,%al
call   1030 <delay_x@plt>
jmp    1139 <blink_red+0x9>

x86 assembly (clang, -O2):
<blink_red>:
push   %rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <status_on@plt>
xor    %eax,%eax
call   1030 <delay_x@plt>
xor    %eax,%eax
call   1050 <status_off@plt>
xor    %eax,%eax
call   1030 <delay_x@plt>
jmp    1140 <blink_red+0x10>

LLVM IR (-O0):
define void @blink_red() {
br label %1
1: ; preds = %1, %0
%2 = call i32 (...) @status_on()
%3 = call i32 (...) @delay_x()
%4 = call i32 (...) @status_off()
%5 = call i32 (...) @delay_x()
br label %1
}

LLVM IR (-O2):
define void @blink_red() {
br label %1
1: ; preds = %1, %0
%2 = tail call i32 (...) @status_on()
%3 = tail call i32 (...) @delay_x()
%4 = tail call i32 (...) @status_off()
%5 = tail call i32 (...) @delay_x()
br label %1
}
void clobber(int *array, int size) {
  array[-1] = 0x123;
  array[size] = 0x123;
}


x86 assembly (clang, -O0):
<clobber>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movl   $0x123,-0x4(%rax)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movl   $0x123,(%rax,%rcx,4)
pop    %rbp
ret

x86 assembly (clang, -O2):
<clobber>:
movl   $0x123,-0x4(%rdi)
movslq %esi,%rax
movl   $0x123,(%rdi,%rax,4)
ret

LLVM IR (-O0):
define void @clobber(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 = getelementptr inbounds i32, i32* %5, i64 -1
store i32 291, i32* %6
%7 = load i32*, i32** %3
%8 = load i32, i32* %4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i32, i32* %7, i64 %9
store i32 291, i32* %10
ret void
}

LLVM IR (-O2):
define void @clobber(i32* nocapture writeonly %0, i32 %1) {
%3 = getelementptr inbounds i32, i32* %0, i64 -1
store i32 291, i32* %3
%4 = sext i32 %1 to i64
%5 = getelementptr inbounds i32, i32* %0, i64 %4
store i32 291, i32* %5
ret void
}
/* Type definitions */
typedef int uint16_t;

/* Variables and functions */
uint16_t reverse_endian16(uint16_t data) {
  return 0 | (data & 0x00ff) << 8 | (data & 0xff00) >> 8;
}


x86 assembly (clang, -O0):
<reverse_endian16>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xff,%eax
shl    $0x8,%eax
or     $0x0,%eax
mov    -0x4(%rbp),%ecx
and    $0xff00,%ecx
sar    $0x8,%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<reverse_endian16>:
rol    $0x8,%di
movzwl %di,%eax
ret

LLVM IR (-O0):
define i32 @reverse_endian16(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = and i32 %3, 255
%5 = shl i32 %4, 8
%6 = or i32 0, %5
%7 = load i32, i32* %2
%8 = and i32 %7, 65280
%9 = ashr i32 %8, 8
%10 = or i32 %6, %9
ret i32 %10
}

LLVM IR (-O2):
define i32 @reverse_endian16(i32 %0) {
%2 = trunc i32 %0 to i16
%3 = tail call i16 @llvm.bswap.i16(i16 %2)
%4 = zext i16 %3 to i32
ret i32 %4
}
int test_imm_4Aint64_highword_reg(long long val) {
  return ((val >> 32) & (0x4A << 0)) ? -20 : -40;
}


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

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

LLVM IR (-O0):
define i32 @test_imm_4Aint64_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, 74
%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_4Aint64_highword_reg(i64 %0) {
%2 = and i64 %0, 317827579904
%3 = icmp eq i64 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ memorial_delete(int);
int do_final_memorial(void) {
  int i;
  for (i = 1; i <= 50; i++)
    memorial_delete(i);
  return 0;
}


x86 assembly (clang, -O0):
<do_final_memorial>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x1,-0x4(%rbp)
cmpl   $0x32,-0x4(%rbp)
jg     113f <do_final_memorial+0x2f>
mov    -0x4(%rbp),%edi
call   1030 <memorial_delete@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    111f <do_final_memorial+0xf>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_final_memorial>:
push   %rbx
mov    $0x1,%ebx
cs nopw 0x0(%rax,%rax,1)
mov    %ebx,%edi
call   1030 <memorial_delete@plt>
add    $0x1,%ebx
cmp    $0x33,%ebx
jne    1120 <do_final_memorial+0x10>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @do_final_memorial() {
%1 = alloca i32
store i32 1, i32* %1
br label %2
2: ; preds = %8, %0
%3 = load i32, i32* %1
%4 = icmp sle i32 %3, 50
br i1 %4, label %5, label %11
5: ; preds = %2
%6 = load i32, i32* %1
%7 = call i32 @memorial_delete(i32 %6)
br label %8
8: ; preds = %5
%9 = load i32, i32* %1
%10 = add nsw i32 %9, 1
store i32 %10, i32* %1
br label %2
11: ; preds = %2
ret i32 0
}

LLVM IR (-O2):
define i32 @do_final_memorial() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 1, %0 ], [ %4, %1 ]
%3 = tail call i32 @memorial_delete(i32 %2)
%4 = add nuw nsw i32 %2, 1
%5 = icmp eq i32 %4, 51
br i1 %5, label %6, label %1
6: ; preds = %1
ret i32 0
}
int libmesh_C_isnan_longdouble(long double a) { return (a != a); }


x86 assembly (clang, -O0):
<libmesh_C_isnan_longdouble>:
push   %rbp
mov    %rsp,%rbp
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fldt   -0x10(%rbp)
fucomip %st(0),%st
setp   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<libmesh_C_isnan_longdouble>:
fldt   0x8(%rsp)
xor    %eax,%eax
fucomip %st(0),%st
setp   %al
ret

LLVM IR (-O0):
define i32 @libmesh_C_isnan_longdouble(x86_fp80 %0) {
%2 = alloca x86_fp80
store x86_fp80 %0, x86_fp80* %2
%3 = load x86_fp80, x86_fp80* %2
%4 = load x86_fp80, x86_fp80* %2
%5 = fcmp une x86_fp80 %3, %4
%6 = zext i1 %5 to i32
ret i32 %6
}

LLVM IR (-O2):
define i32 @libmesh_C_isnan_longdouble(x86_fp80 %0) {
%2 = fcmp uno x86_fp80 %0, 0xK00000000000000000000
%3 = zext i1 %2 to i32
ret i32 %3
}
int toupper(c)
int c;
{ return (__toupper(c)); }


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

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

LLVM IR (-O0):
define i32 @toupper(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 (i32, ...) bitcast (i32 (...)* @__toupper to i32 (i32, ...)*)(i32 %3)
ret i32 %4
}

LLVM IR (-O2):
define i32 @toupper(i32 %0) {
%2 = tail call i32 (i32, ...) bitcast (i32 (...)* @__toupper to i32 (i32, ...)*)(i32 %0)
ret i32 %2
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
int hash_uint32(int);
uint32_t noise2D(uint32_t x, uint32_t y, uint32_t seed) {
  return hash_uint32(((hash_uint32(x) << 16) ^ hash_uint32(y)) + seed);
}


x86 assembly (clang, -O0):
<noise2D>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <hash_uint32@plt>
shl    $0x10,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <hash_uint32@plt>
mov    -0x10(%rbp),%edi
xor    %eax,%edi
add    -0xc(%rbp),%edi
call   1030 <hash_uint32@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<noise2D>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %esi,%ebp
call   1030 <hash_uint32@plt>
mov    %eax,%ebx
shl    $0x10,%ebx
mov    %ebp,%edi
call   1030 <hash_uint32@plt>
xor    %eax,%ebx
add    %r14d,%ebx
mov    %ebx,%edi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <hash_uint32@plt>

LLVM IR (-O0):
define i32 @noise2D(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* %4
%8 = call i32 @hash_uint32(i32 %7)
%9 = shl i32 %8, 16
%10 = load i32, i32* %5
%11 = call i32 @hash_uint32(i32 %10)
%12 = xor i32 %9, %11
%13 = load i32, i32* %6
%14 = add nsw i32 %12, %13
%15 = call i32 @hash_uint32(i32 %14)
ret i32 %15
}

LLVM IR (-O2):
define i32 @noise2D(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @hash_uint32(i32 %0)
%5 = shl i32 %4, 16
%6 = tail call i32 @hash_uint32(i32 %1)
%7 = xor i32 %5, %6
%8 = add nsw i32 %7, %2
%9 = tail call i32 @hash_uint32(i32 %8)
ret i32 %9
}
void foo818() {}


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

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

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

LLVM IR (-O2):
define void @foo818() {
ret void
}
void h_cgatt(char *name, int argc, char **argv, void *user_data) {
  printf("CALLED %s\n", __FUNCTION__);
}


x86 assembly (clang, -O0):
<h_cgatt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
lea    0xed2(%rip),%rdi
lea    0xed6(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<h_cgatt>:
lea    0xee9(%rip),%rdi
lea    0xeed(%rip),%rsi
xor    %eax,%eax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"CALLED %s\0A\00"
@__FUNCTION__.h_cgatt = [8 x i8] c"h_cgatt\00"
define void @h_cgatt(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
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @__FUNCTION__.h_cgatt, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"CALLED %s\0A\00"
@__FUNCTION__.h_cgatt = [8 x i8] c"h_cgatt\00"
define void @h_cgatt(i8* nocapture readnone %0, i32 %1, i8** nocapture readnone %2, i8* nocapture readnone %3) {
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @__FUNCTION__.h_cgatt, i64 0, i64 0))
ret void
}
elseif(a) { a_func(); }


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

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

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

LLVM IR (-O2):
define i32 @elseif(i32 %0) {
%2 = tail call i32 (...) @a_func()
ret i32 undef
}
int do_632() { return 632; }


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

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

LLVM IR (-O0):
define i32 @do_632() {
ret i32 632
}

LLVM IR (-O2):
define i32 @do_632() {
ret i32 632
}
/* Type definitions */
typedef int /*<<< orphan*/ mpfr_t;

/* Variables and functions */
int /*<<< orphan*/ GMP_RNDN;
int /*<<< orphan*/ mpfr_exp(int /*<<< orphan*/, int /*<<< orphan*/,
                            int /*<<< orphan*/);
void TARGET(mpfr_t ret, mpfr_t a) { mpfr_exp(ret, a, GMP_RNDN); }


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

x86 assembly (clang, -O2):
<TARGET>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edx
jmp    1030 <mpfr_exp@plt>

LLVM IR (-O0):
@GMP_RNDN = global i32 0
define void @TARGET(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 = load i32, i32* @GMP_RNDN
%8 = call i32 @mpfr_exp(i32 %5, i32 %6, i32 %7)
ret void
}

LLVM IR (-O2):
@GMP_RNDN = global i32 0
define void @TARGET(i32 %0, i32 %1) {
%3 = load i32, i32* @GMP_RNDN
%4 = tail call i32 @mpfr_exp(i32 %0, i32 %1, i32 %3)
ret void
}
/* Variables and functions */
scalar_t__ is_palindromic(int);
int main() {
  if (is_palindromic(8555548)) {
    return 1;
  }
  return !is_palindromic(855558);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x828c1c,%edi
call   1030 <is_palindromic@plt>
cmp    $0x0,%rax
je     113f <main+0x2f>
movl   $0x1,-0x4(%rbp)
jmp    115a <main+0x4a>
mov    $0xd0e06,%edi
call   1030 <is_palindromic@plt>
cmp    $0x0,%rax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x828c1c,%edi
call   1030 <is_palindromic@plt>
mov    %rax,%rcx
mov    $0x1,%eax
test   %rcx,%rcx
je     112a <main+0x1a>
pop    %rcx
ret
mov    $0xd0e06,%edi
call   1030 <is_palindromic@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
sete   %al
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i64 @is_palindromic(i32 8555548)
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %5
4: ; preds = %0
store i32 1, i32* %1
br label %10
5: ; preds = %0
%6 = call i64 @is_palindromic(i32 855558)
%7 = icmp ne i64 %6, 0
%8 = xor i1 %7, true
%9 = zext i1 %8 to i32
store i32 %9, i32* %1
br label %10
10: ; preds = %5, %4
%11 = load i32, i32* %1
ret i32 %11
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i64 @is_palindromic(i32 8555548)
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %7
3: ; preds = %0
%4 = tail call i64 @is_palindromic(i32 855558)
%5 = icmp eq i64 %4, 0
%6 = zext i1 %5 to i32
br label %7
7: ; preds = %0, %3
%8 = phi i32 [ %6, %3 ], [ 1, %0 ]
ret i32 %8
}
int do_246() { return 246; }


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

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

LLVM IR (-O0):
define i32 @do_246() {
ret i32 246
}

LLVM IR (-O2):
define i32 @do_246() {
ret i32 246
}
/* Variables and functions */
scalar_t__ __infer_nondet_int();
void FN_loop_once_break_bad() {
  while (__infer_nondet_int()) {
    break;
  }
}


x86 assembly (clang, -O0):
<FN_loop_once_break_bad>:
push   %rbp
mov    %rsp,%rbp
jmp    1119 <FN_loop_once_break_bad+0x9>
mov    $0x0,%al
call   1030 <__infer_nondet_int@plt>
cmp    $0x0,%rax
je     112f <FN_loop_once_break_bad+0x1f>
jmp    112f <FN_loop_once_break_bad+0x1f>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @FN_loop_once_break_bad() {
br label %1
1: ; preds = %0
%2 = call i64 (...) @__infer_nondet_int()
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %5
4: ; preds = %1
br label %5
5: ; preds = %4, %1
ret void
}

LLVM IR (-O2):
define void @FN_loop_once_break_bad() {
%1 = tail call i64 (...) @__infer_nondet_int()
ret void
}
void I2CEnable(unsigned long ulBase) {
  ;
  (*((volatile unsigned long *)(ulBase + 0x00000000))) &= ~0x00000002;
  (*((volatile unsigned long *)(ulBase + 0x00000000))) |= 0x00000001;
}


x86 assembly (clang, -O0):
<I2CEnable>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
and    $0xfffffffffffffffd,%rcx
mov    %rcx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
or     $0x1,%rcx
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<I2CEnable>:
andq   $0xfffffffffffffffd,(%rdi)
orq    $0x1,(%rdi)
ret

LLVM IR (-O0):
define void @I2CEnable(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = add i64 %3, 0
%5 = inttoptr i64 %4 to i64*
%6 = load volatile i64, i64* %5
%7 = and i64 %6, -3
store volatile i64 %7, i64* %5
%8 = load i64, i64* %2
%9 = add i64 %8, 0
%10 = inttoptr i64 %9 to i64*
%11 = load volatile i64, i64* %10
%12 = or i64 %11, 1
store volatile i64 %12, i64* %10
ret void
}

LLVM IR (-O2):
define void @I2CEnable(i64 %0) {
%2 = inttoptr i64 %0 to i64*
%3 = load volatile i64, i64* %2
%4 = and i64 %3, -3
store volatile i64 %4, i64* %2
%5 = load volatile i64, i64* %2
%6 = or i64 %5, 1
store volatile i64 %6, i64* %2
ret void
}
bug(n) int n;
{
  printf("Fatal error number %d\n", n);
  exit(-1);
}


x86 assembly (clang, -O0):
<bug>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xecb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<bug>:
push   %rax
mov    %edi,%esi
lea    0xed6(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"Fatal error number %d\0A\00"
define i32 @bug(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %3)
unreachable
}

LLVM IR (-O2):
@.str = [23 x i8] c"Fatal error number %d\0A\00"
define i32 @bug(i32 %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %0)
tail call void @exit(i32 -1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ output_optstring(char const *);
int /*<<< orphan*/ printf(char *, char const *);
int getopt(int argc, char *const argv[], const char *optstring) {
  printf("# getopt() optstring = %s\n", optstring);
  output_optstring(optstring);
  return -1;
}


x86 assembly (clang, -O0):
<getopt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xec2(%rip),%rdi
call   1040 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <output_optstring@plt>
mov    $0xffffffff,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getopt>:
push   %rbx
mov    %rdx,%rbx
lea    0xed5(%rip),%rdi
mov    %rdx,%rsi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <output_optstring@plt>
mov    $0xffffffff,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [27 x i8] c"# getopt() optstring = %s\0A\00"
define i32 @getopt(i32 %0, i8** %1, i8* %2) {
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* %2, i8** %6
%7 = load i8*, i8** %6
%8 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = load i8*, i8** %6
%10 = call i32 @output_optstring(i8* %9)
ret i32 -1
}

LLVM IR (-O2):
@.str = [27 x i8] c"# getopt() optstring = %s\0A\00"
define i32 @getopt(i32 %0, i8** nocapture readnone %1, i8* %2) {
%4 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %2)
%5 = tail call i32 @output_optstring(i8* %2)
ret i32 -1
}
/* Variables and functions */
int combos(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, int);
int main(int argc, char *argv[]) {
  int combinations = 1 + combos(0, 0);
  printf("%i", combinations);
  return 0;
}


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

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

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

LLVM IR (-O2):
@.str = [3 x i8] c"%i\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @combos(i32 0, i32 0)
%4 = add nsw i32 %3, 1
%5 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %4)
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;
struct drm_gem_close {
  int /*<<< orphan*/ handle;
};

/* Variables and functions */
int /*<<< orphan*/ DRM_IOCTL_GEM_CLOSE;
int /*<<< orphan*/ ioctl(int, int /*<<< orphan*/, struct drm_gem_close *);
void close_handle(int vgem_fd, uint32_t handle) {
  struct drm_gem_close close = {
      .handle = handle,
  };
  ioctl(vgem_fd, DRM_IOCTL_GEM_CLOSE, &close);
}


x86 assembly (clang, -O0):
<close_handle>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    0x2eb2(%rip),%rax
mov    (%rax),%esi
lea    -0x10(%rbp),%rdx
call   1030 <ioctl@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<close_handle>:
push   %rax
mov    %esi,(%rsp)
mov    0x2ec5(%rip),%rax
mov    (%rax),%esi
mov    %rsp,%rdx
call   1030 <ioctl@plt>
pop    %rax
ret

LLVM IR (-O0):
%struct.drm_gem_close = type { i32 }
@DRM_IOCTL_GEM_CLOSE = global i32 0
define void @close_handle(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca %struct.drm_gem_close
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = getelementptr inbounds %struct.drm_gem_close, %struct.drm_gem_close* %5, i32 0, i32 0
%7 = load i32, i32* %4
store i32 %7, i32* %6
%8 = load i32, i32* %3
%9 = load i32, i32* @DRM_IOCTL_GEM_CLOSE
%10 = call i32 @ioctl(i32 %8, i32 %9, %struct.drm_gem_close* %5)
ret void
}

LLVM IR (-O2):
%struct.drm_gem_close = type { i32 }
@DRM_IOCTL_GEM_CLOSE = global i32 0
define void @close_handle(i32 %0, i32 %1) {
%3 = alloca %struct.drm_gem_close
%4 = bitcast %struct.drm_gem_close* %3 to i8*
%5 = getelementptr inbounds %struct.drm_gem_close, %struct.drm_gem_close* %3, i64 0, i32 0
store i32 %1, i32* %5
%6 = load i32, i32* @DRM_IOCTL_GEM_CLOSE
%7 = call i32 @ioctl(i32 %0, i32 %6, %struct.drm_gem_close* %3)
ret void
}
int valid1(int *ptr) {
  int date, ch = 0;
  date = ptr[2] * 10 + ptr[3];
  if ((date >= 1 && date <= 12) || (date >= 21 && date <= 32) ||
      (date >= 41 && date <= 52))
    ch = 1;
  return ch;
}


x86 assembly (clang, -O0):
<valid1>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
imul   $0xa,0x8(%rax),%eax
mov    -0x8(%rbp),%rcx
add    0xc(%rcx),%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x1,-0xc(%rbp)
jl     1135 <valid1+0x35>
cmpl   $0xc,-0xc(%rbp)
jle    115d <valid1+0x5d>
cmpl   $0x15,-0xc(%rbp)
jl     1149 <valid1+0x49>
cmpl   $0x20,-0xc(%rbp)
jle    115d <valid1+0x5d>
cmpl   $0x29,-0xc(%rbp)
jl     1164 <valid1+0x64>
cmpl   $0x34,-0xc(%rbp)
jg     1164 <valid1+0x64>
movl   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<valid1>:
mov    0x8(%rdi),%eax
mov    0xc(%rdi),%ecx
lea    (%rax,%rax,4),%eax
lea    (%rcx,%rax,2),%edx
add    $0xffffffff,%edx
cmp    $0xc,%edx
setb   %dil
lea    (%rcx,%rax,2),%esi
add    $0xffffffeb,%esi
cmp    $0xc,%esi
setb   %dl
or     %dil,%dl
lea    (%rcx,%rax,2),%eax
add    $0xffffffd7,%eax
cmp    $0xc,%eax
setb   %al
or     %dl,%al
movzbl %al,%eax
ret

LLVM IR (-O0):
define i32 @valid1(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32
store i32* %0, i32** %2
store i32 0, i32* %4
%5 = load i32*, i32** %2
%6 = getelementptr inbounds i32, i32* %5, i64 2
%7 = load i32, i32* %6
%8 = mul nsw i32 %7, 10
%9 = load i32*, i32** %2
%10 = getelementptr inbounds i32, i32* %9, i64 3
%11 = load i32, i32* %10
%12 = add nsw i32 %8, %11
store i32 %12, i32* %3
%13 = load i32, i32* %3
%14 = icmp sge i32 %13, 1
br i1 %14, label %15, label %18
15: ; preds = %1
%16 = load i32, i32* %3
%17 = icmp sle i32 %16, 12
br i1 %17, label %30, label %18
18: ; preds = %15, %1
%19 = load i32, i32* %3
%20 = icmp sge i32 %19, 21
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = load i32, i32* %3
%23 = icmp sle i32 %22, 32
br i1 %23, label %30, label %24
24: ; preds = %21, %18
%25 = load i32, i32* %3
%26 = icmp sge i32 %25, 41
br i1 %26, label %27, label %31
27: ; preds = %24
%28 = load i32, i32* %3
%29 = icmp sle i32 %28, 52
br i1 %29, label %30, label %31
30: ; preds = %27, %21, %15
store i32 1, i32* %4
br label %31
31: ; preds = %30, %27, %24
%32 = load i32, i32* %4
ret i32 %32
}

LLVM IR (-O2):
define i32 @valid1(i32* nocapture %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 2
%3 = load i32, i32* %2
%4 = mul nsw i32 %3, 10
%5 = getelementptr inbounds i32, i32* %0, i64 3
%6 = load i32, i32* %5
%7 = add nsw i32 %4, %6
%8 = add i32 %7, -1
%9 = icmp ult i32 %8, 12
%10 = add i32 %7, -21
%11 = icmp ult i32 %10, 12
%12 = or i1 %9, %11
%13 = add i32 %7, -41
%14 = icmp ult i32 %13, 12
%15 = select i1 %12, i1 true, i1 %14
%16 = zext i1 %15 to i32
ret i32 %16
}
/* Type definitions */
typedef int /*<<< orphan*/ stack_trace;

/* Variables and functions */
int backtrace(void **, int);
int /*<<< orphan*/ backtrace_symbols_fd(void *, int, int);
int /*<<< orphan*/ printf(char *);
void print_backtrace(void) {
  int stack_trace[100];
  int ret;
  if ((ret = backtrace((void **)&stack_trace, sizeof(stack_trace))) <= 0) {
    printf("backtrace failed\n");
  }
  backtrace_symbols_fd((void *)stack_trace, ret, 1);
}


x86 assembly (clang, -O0):
<print_backtrace>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1a0,%rsp
lea    -0x190(%rbp),%rdi
mov    $0x190,%esi
call   1040 <backtrace@plt>
mov    %eax,-0x194(%rbp)
cmp    $0x0,%eax
jg     1167 <print_backtrace+0x37>
lea    0xe9e(%rip),%rdi
call   1050 <printf@plt>
lea    -0x190(%rbp),%rdi
mov    -0x194(%rbp),%esi
mov    $0x1,%edx
call   1030 <backtrace_symbols_fd@plt>
add    $0x1a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_backtrace>:
push   %rbx
sub    $0x190,%rsp
mov    %rsp,%rdi
mov    $0x190,%esi
call   1050 <backtrace@plt>
mov    %eax,%ebx
test   %eax,%eax
jg     1157 <print_backtrace+0x27>
lea    0xeae(%rip),%rdi
call   1040 <puts@plt>
mov    %rsp,%rdi
mov    %ebx,%esi
mov    $0x1,%edx
call   1030 <backtrace_symbols_fd@plt>
add    $0x190,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [18 x i8] c"backtrace failed\0A\00"
define void @print_backtrace() {
%1 = alloca [100 x i32]
%2 = alloca i32
%3 = bitcast [100 x i32]* %1 to i8**
%4 = call i32 @backtrace(i8** %3, i32 400)
store i32 %4, i32* %2
%5 = icmp sle i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %6, %0
%9 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 0
%10 = bitcast i32* %9 to i8*
%11 = load i32, i32* %2
%12 = call i32 @backtrace_symbols_fd(i8* %10, i32 %11, i32 1)
ret void
}

LLVM IR (-O2):
@str = [17 x i8] c"backtrace failed\00"
define void @print_backtrace() {
%1 = alloca [100 x i32]
%2 = bitcast [100 x i32]* %1 to i8*
%3 = bitcast [100 x i32]* %1 to i8**
%4 = call i32 @backtrace(i8** %3, i32 400)
%5 = icmp slt i32 %4, 1
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
br label %8
8: ; preds = %6, %0
%9 = call i32 @backtrace_symbols_fd(i8* %2, i32 %4, i32 1)
ret void
}
/* Variables and functions */
scalar_t__ foo(int *);
void f(int *p) {
  if (foo(p))
    *p = 1;
}


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <foo@plt>
cmp    $0x0,%rax
je     1139 <f+0x29>
mov    -0x8(%rbp),%rax
movl   $0x1,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f>:
push   %rbx
mov    %rdi,%rbx
call   1030 <foo@plt>
test   %rax,%rax
je     1124 <f+0x14>
movl   $0x1,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @f(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i64 @foo(i32* %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = load i32*, i32** %2
store i32 1, i32* %7
br label %8
8: ; preds = %6, %1
ret void
}

LLVM IR (-O2):
define void @f(i32* %0) {
%2 = tail call i64 @foo(i32* %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %5, label %4
4: ; preds = %1
store i32 1, i32* %0
br label %5
5: ; preds = %4, %1
ret void
}
void cleanArray(int *wordNumberArray) {
  int i;
  for (i = 0; i < 1000000; i++) {
    *(wordNumberArray + i) = -1;
  }
}


x86 assembly (clang, -O0):
<cleanArray>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0xf4240,-0xc(%rbp)
jge    1139 <cleanArray+0x39>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movl   $0xffffffff,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <cleanArray+0xf>
pop    %rbp
ret

x86 assembly (clang, -O2):
<cleanArray>:
push   %rax
mov    $0x3d0900,%edx
mov    $0xff,%esi
call   1030 <memset@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @cleanArray(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
store i32* %0, i32** %2
store i32 0, i32* %3
br label %4
4: ; preds = %12, %1
%5 = load i32, i32* %3
%6 = icmp slt i32 %5, 1000000
br i1 %6, label %7, label %15
7: ; preds = %4
%8 = load i32*, i32** %2
%9 = load i32, i32* %3
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i32, i32* %8, i64 %10
store i32 -1, i32* %11
br label %12
12: ; preds = %7
%13 = load i32, i32* %3
%14 = add nsw i32 %13, 1
store i32 %14, i32* %3
br label %4
15: ; preds = %4
ret void
}

LLVM IR (-O2):
define void @cleanArray(i32* nocapture writeonly %0) {
%2 = bitcast i32* %0 to i8*
ret void
}
/* Type definitions */
typedef scalar_t__ uint8_t;
typedef int uint16_t;

/* Variables and functions */
__attribute__((always_)) void BEPackUint16(uint8_t container[2],
                                           uint16_t data) {
  container[0] = (uint8_t)(data >> 8);
  container[1] = (uint8_t)data;
}


x86 assembly (clang, -O0):
<BEPackUint16>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
sar    $0x8,%eax
movslq %eax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
movslq -0xc(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x8(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<BEPackUint16>:
movslq %esi,%rax
sar    $0x8,%esi
movslq %esi,%rcx
mov    %rcx,(%rdi)
mov    %rax,0x8(%rdi)
ret

LLVM IR (-O0):
define void @BEPackUint16(i64* %0, i32 %1) {
%3 = alloca i64*
%4 = alloca i32
store i64* %0, i64** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = ashr i32 %5, 8
%7 = sext i32 %6 to i64
%8 = load i64*, i64** %3
%9 = getelementptr inbounds i64, i64* %8, i64 0
store i64 %7, i64* %9
%10 = load i32, i32* %4
%11 = sext i32 %10 to i64
%12 = load i64*, i64** %3
%13 = getelementptr inbounds i64, i64* %12, i64 1
store i64 %11, i64* %13
ret void
}

LLVM IR (-O2):
define void @BEPackUint16(i64* nocapture writeonly %0, i32 %1) {
%3 = ashr i32 %1, 8
%4 = sext i32 %3 to i64
store i64 %4, i64* %0
%5 = sext i32 %1 to i64
%6 = getelementptr inbounds i64, i64* %0, i64 1
store i64 %5, i64* %6
ret void
}
/* Type definitions */
typedef scalar_t__ int32_t;

/* Variables and functions */
int32_t __attribute__((const)) lw6sys_imin(int32_t a, int32_t b) {
  return (a < b) ? a : b;
}


x86 assembly (clang, -O0):
<lw6sys_imin>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
jge    1127 <lw6sys_imin+0x27>
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    112f <lw6sys_imin+0x2f>
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<lw6sys_imin>:
mov    %rsi,%rax
cmp    %rsi,%rdi
cmovl  %rdi,%rax
ret

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

LLVM IR (-O2):
define i64 @lw6sys_imin(i64 %0, i64 %1) {
%3 = icmp slt i64 %0, %1
%4 = select i1 %3, i64 %0, i64 %1
ret i64 %4
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
void cleanup() { exit(0); }


x86 assembly (clang, -O0):
<cleanup>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <exit@plt>

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

LLVM IR (-O0):
define void @cleanup() {
%1 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
define void @cleanup() {
%1 = tail call i32 @exit(i32 0)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
ic(void) { printf("India,China\n"); }


x86 assembly (clang, -O0):
<ic>:
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):
<ic>:
lea    0xee9(%rip),%rdi
jmp    1030 <puts@plt>

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

LLVM IR (-O2):
@str = [12 x i8] c"India,China\00"
define i32 @ic() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  (void)fprintf(stderr, "usage: logname\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [16 x i8] c"usage: logname\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [16 x i8] c"usage: logname\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}
const char *ccnl_matchMode2str(int mode) {
  switch (mode) {
  case 0:
    return "CMP_EXACT";
  case 1:
    return "CMP_MATCH";
  case 2:
    return "CMP_LONGEST";
  }
  return "?";
}


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

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

LLVM IR (-O0):
@.str = [10 x i8] c"CMP_EXACT\00"
@.str.1 = [10 x i8] c"CMP_MATCH\00"
@.str.2 = [12 x i8] c"CMP_LONGEST\00"
@.str.3 = [2 x i8] c"?\00"
define i8* @ccnl_matchMode2str(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 ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8** %2
br label %9
6: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %9
7: ; preds = %1
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %9
8: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 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 = [10 x i8] c"CMP_EXACT\00"
@.str.1 = [10 x i8] c"CMP_MATCH\00"
@.str.2 = [12 x i8] c"CMP_LONGEST\00"
@.str.3 = [2 x i8] c"?\00"
@reltable.ccnl_matchMode2str = [3 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str to i64), i64 ptrtoint ([3 x i32]* @reltable.ccnl_matchMode2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.1 to i64), i64 ptrtoint ([3 x i32]* @reltable.ccnl_matchMode2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.2 to i64), i64 ptrtoint ([3 x i32]* @reltable.ccnl_matchMode2str to i64)) to i32)]
define i8* @ccnl_matchMode2str(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.ccnl_matchMode2str to i8*), i64 %5)
br label %7
7: ; preds = %1, %3
%8 = phi i8* [ %6, %3 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), %1 ]
ret i8* %8
}
void UI_FeederAddItem(float feederID, const char *name, int index) {}


x86 assembly (clang, -O0):
<UI_FeederAddItem>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @UI_FeederAddItem(float %0, i8* %1, i32 %2) {
%4 = alloca float
%5 = alloca i8*
%6 = alloca i32
store float %0, float* %4
store i8* %1, i8** %5
store i32 %2, i32* %6
ret void
}

LLVM IR (-O2):
define void @UI_FeederAddItem(float %0, i8* nocapture %1, i32 %2) {
ret void
}
/* Variables and functions */
char *malloc(int);
int /*<<< orphan*/ strcpy(char *, char const *);
int strlen(char const *);
char *copy_string(const char *str) {
  int len = strlen(str);
  char *result = malloc(len + 1);
  strcpy(result, str);
  return (result);
}


x86 assembly (clang, -O0):
<copy_string>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
add    $0x1,%edi
call   1050 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<copy_string>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
call   1040 <strlen@plt>
lea    0x1(%rax),%edi
call   1050 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i8* @copy_string(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i8*
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = call i32 @strlen(i8* %5)
store i32 %6, i32* %3
%7 = load i32, i32* %3
%8 = add nsw i32 %7, 1
%9 = call i8* @malloc(i32 %8)
store i8* %9, i8** %4
%10 = load i8*, i8** %4
%11 = load i8*, i8** %2
%12 = call i32 @strcpy(i8* %10, i8* %11)
%13 = load i8*, i8** %4
ret i8* %13
}

LLVM IR (-O2):
define i8* @copy_string(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = add nsw i32 %2, 1
%4 = tail call i8* @malloc(i32 %3)
%5 = tail call i32 @strcpy(i8* %4, i8* %0)
ret i8* %4
}
void gdk_gc_set_clip_mask() {}


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

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

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

LLVM IR (-O2):
define void @gdk_gc_set_clip_mask() {
ret void
}
int baseTest(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @baseTest() {
ret i32 0
}
void TOSH_MAKE_PW0_OUTPUT() { ; }


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

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

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

LLVM IR (-O2):
define void @TOSH_MAKE_PW0_OUTPUT() {
ret void
}
int to_sudoku_cell(const int row_index) { return row_index / 9; }


x86 assembly (clang, -O0):
<to_sudoku_cell>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x9,%ecx
cltd
idiv   %ecx
pop    %rbp
ret

x86 assembly (clang, -O2):
<to_sudoku_cell>:
movslq %edi,%rax
imul   $0x38e38e39,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x21,%rax
add    %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @to_sudoku_cell(i32 %0) {
%2 = sdiv i32 %0, 9
ret i32 %2
}
int smb1357_set_battery_0V(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @smb1357_set_battery_0V() {
ret i32 0
}
void gdk_filter_return_get_type() {}


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

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

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

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

/* Variables and functions */
int EOF;
int __infer_nondet_int();
int /*<<< orphan*/ free(int /*<<< orphan*/ *);
int fclose(FILE *stream) {
  int n;
  free(stream);
  n = __infer_nondet_int();
  if (n > 0)
    return 0;
  else
    return EOF;
}


x86 assembly (clang, -O0):
<fclose>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    $0x0,%al
call   1040 <__infer_nondet_int@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jle    1155 <fclose+0x35>
movl   $0x0,-0x4(%rbp)
jmp    1161 <fclose+0x41>
mov    0x2e8c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fclose>:
push   %rbx
call   1030 <free@plt>
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <__infer_nondet_int@plt>
test   %eax,%eax
jg     113c <fclose+0x1c>
mov    0x2eae(%rip),%rax
mov    (%rax),%ebx
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@EOF = global i32 0
define i32 @fclose(i32* %0) {
%2 = alloca i32
%3 = alloca i32*
%4 = alloca i32
store i32* %0, i32** %3
%5 = load i32*, i32** %3
%6 = call i32 @free(i32* %5)
%7 = call i32 (...) @__infer_nondet_int()
store i32 %7, i32* %4
%8 = load i32, i32* %4
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %1
store i32 0, i32* %2
br label %13
11: ; preds = %1
%12 = load i32, i32* @EOF
store i32 %12, i32* %2
br label %13
13: ; preds = %11, %10
%14 = load i32, i32* %2
ret i32 %14
}

LLVM IR (-O2):
@EOF = global i32 0
define i32 @fclose(i32* nocapture %0) {
%2 = tail call i32 @free(i32* %0)
%3 = tail call i32 (...) @__infer_nondet_int()
%4 = icmp sgt i32 %3, 0
%5 = load i32, i32* @EOF
%6 = select i1 %4, i32 0, i32 %5
ret i32 %6
}