xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ setState(char *);
int /*<<< orphan*/ sprintf(char *, char *, char const *);
void d(const char *from) {
  char buffer[100];
  sprintf(buffer, "d() from %s", from);
  setState(buffer);
}


x86 assembly (clang, -O0):
<d>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x70(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xec5(%rip),%rsi
call   1040 <sprintf@plt>
lea    -0x70(%rbp),%rdi
call   1030 <setState@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<d>:
push   %rbx
sub    $0x70,%rsp
mov    %rdi,%rdx
lea    0xed1(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <setState@plt>
add    $0x70,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [12 x i8] c"d() from %s\00"
define void @d(i8* %0) {
%2 = alloca [100 x i8]
%3 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%4 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %0)
%5 = call i32 @setState(i8* %3)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ atomic_decrement(unsigned char volatile *);
void atomic_dec_uchar(volatile unsigned char *target) {
  atomic_decrement(target);
}


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

x86 assembly (clang, -O2):
<atomic_dec_uchar>:
jmp    1030 <atomic_decrement@plt>

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

LLVM IR (-O2):
define void @atomic_dec_uchar(i8* %0) {
%2 = tail call i32 @atomic_decrement(i8* %0)
ret void
}
/* Variables and functions */
int geteuid();
int getuid();
int /*<<< orphan*/ printf(char *, int);
int main() {
  int real = getuid();
  int euid = geteuid();
  printf("The real UID =: %d\n", real);
  printf("The effective UID =: %d\n", euid);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <getuid@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1050 <geteuid@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%esi
lea    0xea3(%rip),%rdi
call   1040 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xea8(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
xor    %eax,%eax
call   1030 <getuid@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1050 <geteuid@plt>
mov    %eax,%ebp
lea    0xeb4(%rip),%rdi
mov    %ebx,%esi
call   1040 <printf@plt>
lea    0xeba(%rip),%rdi
mov    %ebp,%esi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [20 x i8] c"The real UID =: %d\0A\00"
@.str.1 = [25 x i8] c"The effective UID =: %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 (...) @getuid()
store i32 %4, i32* %2
%5 = call i32 (...) @geteuid()
store i32 %5, i32* %3
%6 = load i32, i32* %2
%7 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %6)
%8 = load i32, i32* %3
%9 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %8)
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"The real UID =: %d\0A\00"
@.str.1 = [25 x i8] c"The effective UID =: %d\0A\00"
define i32 @main() {
%1 = tail call i32 (...) @getuid()
%2 = tail call i32 (...) @geteuid()
%3 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %1)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %2)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ output_line(char *);
void gen_multiply_by_two(void) { output_line("add hl,hl"); }


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

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

LLVM IR (-O0):
@.str = [10 x i8] c"add hl,hl\00"
define void @gen_multiply_by_two() {
%1 = call i32 @output_line(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"add hl,hl\00"
define void @gen_multiply_by_two() {
%1 = tail call i32 @output_line(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
ret void
}
double sign(double d) { return d < 0 ? -1 : 1; }


x86 assembly (clang, -O0):
<sign>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm1
xorps  %xmm0,%xmm0
mov    $0x1,%eax
mov    $0xffffffff,%ecx
ucomisd %xmm1,%xmm0
cmova  %ecx,%eax
cvtsi2sd %eax,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<sign>:
xorpd  %xmm1,%xmm1
xor    %eax,%eax
ucomisd %xmm0,%xmm1
seta   %al
lea    0xeec(%rip),%rcx
movsd  (%rcx,%rax,8),%xmm0
ret

LLVM IR (-O0):
define double @sign(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fcmp olt double %3, 0.000000e+00
%5 = zext i1 %4 to i64
%6 = select i1 %4, i32 -1, i32 1
%7 = sitofp i32 %6 to double
ret double %7
}

LLVM IR (-O2):
define double @sign(double %0) {
%2 = fcmp olt double %0, 0.000000e+00
%3 = select i1 %2, double -1.000000e+00, double 1.000000e+00
ret double %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, long long);
int main() {
  int n;
  long long x = 2;
  long long y = 1;
  long long l;
  for (n = 0; n <= 100; n++) {
    printf(" %lld\n", x);
    l = x + y;
    x = y;
    y = l;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x2,-0x10(%rbp)
movq   $0x1,-0x18(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x64,-0x8(%rbp)
jg     117a <main+0x6a>
mov    -0x10(%rbp),%rsi
lea    0xeb5(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
add    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1136 <main+0x26>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    $0x2,%ebx
mov    $0x1,%eax
mov    $0x65,%ebp
lea    0xed3(%rip),%r14
nopl   (%rax)
mov    %rax,%r15
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
add    %r15,%rbx
mov    %rbx,%rax
mov    %r15,%rbx
add    $0xffffffff,%ebp
jne    1130 <main+0x20>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [7 x i8] c" %lld\0A\00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 0, %0 ], [ %7, %1 ]
%3 = phi i64 [ 1, %0 ], [ %6, %1 ]
%4 = phi i64 [ 2, %0 ], [ %3, %1 ]
%5 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i64 %4)
%6 = add nsw i64 %3, %4
%7 = add nuw nsw i32 %2, 1
%8 = icmp eq i32 %7, 101
br i1 %8, label %9, label %1
9: ; preds = %1
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void hello() { printf("Hello, World!"); }


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

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

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

LLVM IR (-O2):
@.str = [14 x i8] c"Hello, World!\00"
define void @hello() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
ret void
}
unsigned int hi_dword(unsigned long long Q) {
  unsigned long long qwBuf = Q >> 32;
  return (unsigned int)qwBuf;
}


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

x86 assembly (clang, -O2):
<hi_dword>:
mov    %rdi,%rax
shr    $0x20,%rax
ret

LLVM IR (-O0):
define i32 @hi_dword(i64 %0) {
%2 = alloca i64
%3 = alloca i64
store i64 %0, i64* %2
%4 = load i64, i64* %2
%5 = lshr i64 %4, 32
store i64 %5, i64* %3
%6 = load i64, i64* %3
%7 = trunc i64 %6 to i32
ret i32 %7
}

LLVM IR (-O2):
define i32 @hi_dword(i64 %0) {
%2 = lshr i64 %0, 32
%3 = trunc i64 %2 to i32
ret i32 %3
}
void EVP_enc_null(void) {}


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

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

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

LLVM IR (-O2):
define void @EVP_enc_null() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ init_srv_sp();
int /*<<< orphan*/ printf(char *);
int main(int argc, char **argv) {
  printf("Esperant conexions rpc al port 8181\n");
  init_srv_sp();
  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)
lea    0xec3(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <init_srv_sp@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [37 x i8] c"Esperant conexions rpc al port 8181\0A\00"
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 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%7 = call i32 (...) @init_srv_sp()
ret i32 0
}

LLVM IR (-O2):
@str = [36 x i8] c"Esperant conexions rpc al port 8181\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 (...) @init_srv_sp()
ret i32 0
}
long double squarel(x)
long double x;
{ return (x * x); }


x86 assembly (clang, -O0):
<squarel>:
push   %rbp
mov    %rsp,%rbp
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fldt   -0x10(%rbp)
fmul   %st,%st(0)
pop    %rbp
ret

x86 assembly (clang, -O2):
<squarel>:
fldt   0x8(%rsp)
fmul   %st,%st(0)
ret

LLVM IR (-O0):
define x86_fp80 @squarel(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 = fmul x86_fp80 %3, %4
ret x86_fp80 %5
}

LLVM IR (-O2):
define x86_fp80 @squarel(x86_fp80 %0) {
%2 = fmul x86_fp80 %0, %0
ret x86_fp80 %2
}
/* Variables and functions */
int /*<<< orphan*/ ft_isdigit(char const);
int ft_sisdigit(const char *str) {
  while (*str) {
    if (!ft_isdigit(*str))
      return (0);
    ++str;
  }
  return (1);
}


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

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

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

LLVM IR (-O2):
define i32 @ft_sisdigit(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %13, label %7
4: ; preds = %7
%5 = load i8, i8* %12
%6 = icmp eq i8 %5, 0
br i1 %6, label %13, label %7
7: ; preds = %1, %4
%8 = phi i8 [ %5, %4 ], [ %2, %1 ]
%9 = phi i8* [ %12, %4 ], [ %0, %1 ]
%10 = tail call i32 @ft_isdigit(i8 signext %8)
%11 = icmp eq i32 %10, 0
%12 = getelementptr inbounds i8, i8* %9, i64 1
br i1 %11, label %13, label %4
13: ; preds = %7, %4, %1
%14 = phi i32 [ 1, %1 ], [ 1, %4 ], [ 0, %7 ]
ret i32 %14
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void existeFichero() { printf("Comprueba si existe un fichero\n"); }


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

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

LLVM IR (-O0):
@.str = [32 x i8] c"Comprueba si existe un fichero\0A\00"
define void @existeFichero() {
%1 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [31 x i8] c"Comprueba si existe un fichero\00"
define void @existeFichero() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ PR18795(int /*<<< orphan*/);
void PR18795_helper() { PR18795(0); }


x86 assembly (clang, -O0):
<PR18795_helper>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <PR18795@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<PR18795_helper>:
xor    %edi,%edi
jmp    1030 <PR18795@plt>

LLVM IR (-O0):
define void @PR18795_helper() {
%1 = call i32 @PR18795(i32 0)
ret void
}

LLVM IR (-O2):
define void @PR18795_helper() {
%1 = tail call i32 @PR18795(i32 0)
ret void
}
void glx_lowpc(void) {}


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

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

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

LLVM IR (-O2):
define void @glx_lowpc() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ eventcb_logcb(char *);
int /*<<< orphan*/ keyhandler_removeall();
void eventcb_halt(void *arg) {
  keyhandler_removeall();
  eventcb_logcb("Cleared all keyframes.");
}


x86 assembly (clang, -O0):
<eventcb_halt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x0,%al
call   1030 <keyhandler_removeall@plt>
lea    0xec6(%rip),%rdi
call   1040 <eventcb_logcb@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eventcb_halt>:
push   %rax
xor    %eax,%eax
call   1030 <keyhandler_removeall@plt>
lea    0xed1(%rip),%rdi
pop    %rax
jmp    1040 <eventcb_logcb@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"Cleared all keyframes.\00"
define void @eventcb_halt(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (...) @keyhandler_removeall()
%4 = call i32 @eventcb_logcb(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"Cleared all keyframes.\00"
define void @eventcb_halt(i8* nocapture readnone %0) {
%2 = tail call i32 (...) @keyhandler_removeall()
%3 = tail call i32 @eventcb_logcb(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Type definitions */
struct ottery_state {
  int dummy;
};
struct ottery_config {
  int dummy;
};

/* Variables and functions */
int ottery_st_initialize(struct ottery_state *, struct ottery_config const *,
                         int);
int ottery_st_init(struct ottery_state *st, const struct ottery_config *cfg) {
  return ottery_st_initialize(st, cfg, 1);
}


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

x86 assembly (clang, -O2):
<ottery_st_init>:
mov    $0x1,%edx
jmp    1030 <ottery_st_initialize@plt>

LLVM IR (-O0):
%struct.ottery_state = type { i32 }
%struct.ottery_config = type { i32 }
define i32 @ottery_st_init(%struct.ottery_state* %0, %struct.ottery_config* %1) {
%3 = alloca %struct.ottery_state*
%4 = alloca %struct.ottery_config*
store %struct.ottery_state* %0, %struct.ottery_state** %3
store %struct.ottery_config* %1, %struct.ottery_config** %4
%5 = load %struct.ottery_state*, %struct.ottery_state** %3
%6 = load %struct.ottery_config*, %struct.ottery_config** %4
%7 = call i32 @ottery_st_initialize(%struct.ottery_state* %5, %struct.ottery_config* %6, i32 1)
ret i32 %7
}

LLVM IR (-O2):
%struct.ottery_state = type { i32 }
%struct.ottery_config = type { i32 }
define i32 @ottery_st_init(%struct.ottery_state* %0, %struct.ottery_config* %1) {
%3 = tail call i32 @ottery_st_initialize(%struct.ottery_state* %0, %struct.ottery_config* %1, i32 1)
ret i32 %3
}
/* Variables and functions */
scalar_t__ isspace(int);
int nextChar();
int skipToNonWhite(void) {
  int c;
  do
    c = nextChar();
  while (c != '\n' && isspace(c));
  return c;
}


x86 assembly (clang, -O0):
<skipToNonWhite>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <nextChar@plt>
mov    %eax,-0x4(%rbp)
xor    %eax,%eax
cmpl   $0xa,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     1153 <skipToNonWhite+0x33>
mov    -0x4(%rbp),%edi
call   1040 <isspace@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
test   $0x1,%al
jne    1128 <skipToNonWhite+0x8>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<skipToNonWhite>:
push   %rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <nextChar@plt>
mov    %eax,%ebx
cmp    $0xa,%eax
je     114a <skipToNonWhite+0x2a>
mov    %ebx,%edi
call   1040 <isspace@plt>
test   %rax,%rax
jne    1130 <skipToNonWhite+0x10>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @skipToNonWhite() {
%1 = alloca i32
br label %2
2: ; preds = %11, %0
%3 = call i32 (...) @nextChar()
store i32 %3, i32* %1
br label %4
4: ; preds = %2
%5 = load i32, i32* %1
%6 = icmp ne i32 %5, 10
br i1 %6, label %7, label %11
7: ; preds = %4
%8 = load i32, i32* %1
%9 = call i64 @isspace(i32 %8)
%10 = icmp ne i64 %9, 0
br label %11
11: ; preds = %7, %4
%12 = phi i1 [ false, %4 ], [ %10, %7 ]
br i1 %12, label %2, label %13
13: ; preds = %11
%14 = load i32, i32* %1
ret i32 %14
}

LLVM IR (-O2):
define i32 @skipToNonWhite() {
br label %1
1: ; preds = %4, %0
%2 = tail call i32 (...) @nextChar()
%3 = icmp eq i32 %2, 10
br i1 %3, label %7, label %4
4: ; preds = %1
%5 = tail call i64 @isspace(i32 %2)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %1
7: ; preds = %1, %4
ret i32 %2
}
int bar2(float x) { return x != x; }


x86 assembly (clang, -O0):
<bar2>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
ucomiss -0x4(%rbp),%xmm0
setne  %al
setp   %cl
or     %cl,%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<bar2>:
xor    %eax,%eax
ucomiss %xmm0,%xmm0
setp   %al
ret

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

LLVM IR (-O2):
define i32 @bar2(float %0) {
%2 = fcmp uno float %0, 0.000000e+00
%3 = zext i1 %2 to i32
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ io_program_out(int, int);
void pic14_bulk_erase_setup2(void) { io_program_out(0x07, 6); }


x86 assembly (clang, -O0):
<pic14_bulk_erase_setup2>:
push   %rbp
mov    %rsp,%rbp
mov    $0x7,%edi
mov    $0x6,%esi
call   1030 <io_program_out@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<pic14_bulk_erase_setup2>:
mov    $0x7,%edi
mov    $0x6,%esi
jmp    1030 <io_program_out@plt>

LLVM IR (-O0):
define void @pic14_bulk_erase_setup2() {
%1 = call i32 @io_program_out(i32 7, i32 6)
ret void
}

LLVM IR (-O2):
define void @pic14_bulk_erase_setup2() {
%1 = tail call i32 @io_program_out(i32 7, i32 6)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ LedDriver_IsOn(int /*<<< orphan*/);
uint8_t LedDriver_IsOff(uint8_t NLed) { return LedDriver_IsOn(NLed); }


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

x86 assembly (clang, -O2):
<LedDriver_IsOff>:
jmp    1030 <LedDriver_IsOn@plt>

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

LLVM IR (-O2):
define i32 @LedDriver_IsOff(i32 %0) {
%2 = tail call i32 @LedDriver_IsOn(i32 %0)
ret i32 %2
}
void xpc_atfork_prepare(void) {}


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

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

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

LLVM IR (-O2):
define void @xpc_atfork_prepare() {
ret void
}
/* Variables and functions */
void *malloc(int);
int /*<<< orphan*/ msg(char *);
void *xmalloc(size_t size) {
  void *p = malloc(size);
  if (p == NULL && size == 0)
    p = malloc(1);
  if (p == NULL)
    msg("Out of memory");
  return p;
}


x86 assembly (clang, -O0):
<xmalloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %eax,%edi
call   1030 <malloc@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    115f <xmalloc+0x3f>
cmpq   $0x0,-0x8(%rbp)
jne    115f <xmalloc+0x3f>
mov    $0x1,%edi
call   1030 <malloc@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1176 <xmalloc+0x56>
lea    0xe8f(%rip),%rdi
call   1040 <msg@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xmalloc>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1030 <malloc@plt>
mov    %rax,%r14
test   %rbx,%rbx
jne    1146 <xmalloc+0x26>
test   %r14,%r14
jne    1146 <xmalloc+0x26>
mov    $0x1,%edi
call   1030 <malloc@plt>
mov    %rax,%r14
test   %r14,%r14
jne    1157 <xmalloc+0x37>
lea    0xeae(%rip),%rdi
call   1040 <msg@plt>
mov    %r14,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [14 x i8] c"Out of memory\00"
define i8* @xmalloc(i64 %0) {
%2 = alloca i64
%3 = alloca i8*
store i64 %0, i64* %2
%4 = load i64, i64* %2
%5 = trunc i64 %4 to i32
%6 = call i8* @malloc(i32 %5)
store i8* %6, i8** %3
%7 = load i8*, i8** %3
%8 = icmp eq i8* %7, null
br i1 %8, label %9, label %14
9: ; preds = %1
%10 = load i64, i64* %2
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = call i8* @malloc(i32 1)
store i8* %13, i8** %3
br label %14
14: ; preds = %12, %9, %1
%15 = load i8*, i8** %3
%16 = icmp eq i8* %15, null
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = call i32 @msg(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
br label %19
19: ; preds = %17, %14
%20 = load i8*, i8** %3
ret i8* %20
}

LLVM IR (-O2):
@.str = [14 x i8] c"Out of memory\00"
define i8* @xmalloc(i64 %0) {
%2 = trunc i64 %0 to i32
%3 = tail call i8* @malloc(i32 %2)
%4 = icmp eq i8* %3, null
%5 = icmp eq i64 %0, 0
%6 = and i1 %5, %4
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = tail call dereferenceable_or_null(1) i8* @malloc(i32 1)
br label %9
9: ; preds = %7, %1
%10 = phi i8* [ %8, %7 ], [ %3, %1 ]
%11 = icmp eq i8* %10, null
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = tail call i32 @msg(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
br label %14
14: ; preds = %12, %9
ret i8* %10
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void openDBResponse(int openDBFail) {
  if (openDBFail == 1)
    fprintf(stderr, "Can't open Database.db\n");
  else {
  }
}


x86 assembly (clang, -O0):
<openDBResponse>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x1,-0x4(%rbp)
jne    113f <openDBResponse+0x2f>
mov    0x2eb4(%rip),%rax
mov    (%rax),%edi
lea    0xecb(%rip),%rsi
call   1030 <fprintf@plt>
jmp    1144 <openDBResponse+0x34>
jmp    1144 <openDBResponse+0x34>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<openDBResponse>:
cmp    $0x1,%edi
jne    112a <openDBResponse+0x1a>
mov    0x2ec4(%rip),%rax
mov    (%rax),%edi
lea    0xedb(%rip),%rsi
jmp    1030 <fprintf@plt>
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [24 x i8] c"Can't open Database.db\0A\00"
define void @openDBResponse(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp eq i32 %3, 1
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* @stderr
%7 = call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
br label %9
8: ; preds = %1
br label %9
9: ; preds = %8, %5
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [24 x i8] c"Can't open Database.db\0A\00"
define void @openDBResponse(i32 %0) {
%2 = icmp eq i32 %0, 1
br i1 %2, label %3, label %6
3: ; preds = %1
%4 = load i32, i32* @stderr
%5 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
br label %6
6: ; preds = %1, %3
ret void
}
int fun561() { return 561; }


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

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

LLVM IR (-O0):
define i32 @fun561() {
ret i32 561
}

LLVM IR (-O2):
define i32 @fun561() {
ret i32 561
}
const char *getdns_get_api_version(void) { return "July 2015"; }


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

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

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

LLVM IR (-O2):
@.str = [10 x i8] c"July 2015\00"
define i8* @getdns_get_api_version() {
ret i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0)
}
int test_imm_D2uint64_lowword_mem(unsigned long long *val) {
  return ((*val) & (0xD2 << 0)) ? -20 : -40;
}


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

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

LLVM IR (-O0):
define i32 @test_imm_D2uint64_lowword_mem(i64* %0) {
%2 = alloca i64*
store i64* %0, i64** %2
%3 = load i64*, i64** %2
%4 = load i64, i64* %3
%5 = and i64 %4, 210
%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_D2uint64_lowword_mem(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = and i64 %2, 210
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
void __DELETE_java_nio_CharBuffer(void *me, void *client_data) {}


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

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

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

LLVM IR (-O2):
define void @__DELETE_java_nio_CharBuffer(i8* nocapture %0, i8* nocapture %1) {
ret void
}
yyerror(s) char *s;
{ error("parser error: %s\n", s); }


x86 assembly (clang, -O0):
<yyerror>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1030 <error@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<yyerror>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
xor    %eax,%eax
jmp    1030 <error@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"parser error: %s\0A\00"
define i32 @yyerror(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @error to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = load i32, i32* %2
ret i32 %6
}

LLVM IR (-O2):
@.str = [18 x i8] c"parser error: %s\0A\00"
define i32 @yyerror(i8* %0) {
%2 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @error to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %0)
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage() {
  fprintf(stderr,
          "9ls [-dU] [-a authsrv] [-p port] [-P passwd] [-u user] addr path\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 = [66 x i8] c"9ls [-dU] [-a authsrv] [-p port] [-P passwd] [-u user] addr path\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [66 x i8] c"9ls [-dU] [-a authsrv] [-p port] [-P passwd] [-u user] addr path\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}
/* Type definitions */
struct roff_node {
  int dummy;
};
struct roff_meta {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ font_push(char);
int pre_sy(const struct roff_meta *meta, struct roff_node *n) {
  font_push('B');
  return 1;
}


x86 assembly (clang, -O0):
<pre_sy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x42,%edi
call   1030 <font_push@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pre_sy>:
push   %rax
mov    $0x42,%edi
call   1030 <font_push@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.roff_meta = type { i32 }
%struct.roff_node = type { i32 }
define i32 @pre_sy(%struct.roff_meta* %0, %struct.roff_node* %1) {
%3 = alloca %struct.roff_meta*
%4 = alloca %struct.roff_node*
store %struct.roff_meta* %0, %struct.roff_meta** %3
store %struct.roff_node* %1, %struct.roff_node** %4
%5 = call i32 @font_push(i8 signext 66)
ret i32 1
}

LLVM IR (-O2):
%struct.roff_meta = type { i32 }
%struct.roff_node = type { i32 }
define i32 @pre_sy(%struct.roff_meta* nocapture readnone %0, %struct.roff_node* nocapture readnone %1) {
%3 = tail call i32 @font_push(i8 signext 66)
ret i32 1
}
/* Variables and functions */
int __VERIFIER_nondet_int();
int main() {
  int x;
  int y;
  int z;
  x = __VERIFIER_nondet_int();
  y = __VERIFIER_nondet_int();
  z = __VERIFIER_nondet_int();
  while (x > z && y > z) {
    x = x - 1;
    y = y - 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%ecx
xor    %eax,%eax
cmp    -0x10(%rbp),%ecx
mov    %al,-0x11(%rbp)
jle    115a <main+0x4a>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
setg   %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
test   $0x1,%al
jne    116a <main+0x5a>
jmp    1181 <main+0x71>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    113d <main+0x2d>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %5, i32* %2
%6 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %6, i32* %3
%7 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %7, i32* %4
br label %8
8: ; preds = %18, %0
%9 = load i32, i32* %2
%10 = load i32, i32* %4
%11 = icmp sgt i32 %9, %10
br i1 %11, label %12, label %16
12: ; preds = %8
%13 = load i32, i32* %3
%14 = load i32, i32* %4
%15 = icmp sgt i32 %13, %14
br label %16
16: ; preds = %12, %8
%17 = phi i1 [ false, %8 ], [ %15, %12 ]
br i1 %17, label %18, label %23
18: ; preds = %16
%19 = load i32, i32* %2
%20 = sub nsw i32 %19, 1
store i32 %20, i32* %2
%21 = load i32, i32* %3
%22 = sub nsw i32 %21, 1
store i32 %22, i32* %3
br label %8
23: ; preds = %16
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int()
%2 = tail call i32 (...) @__VERIFIER_nondet_int()
%3 = tail call i32 (...) @__VERIFIER_nondet_int()
ret i32 0
}
void dprint(int type, const char *str, ...) {}


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

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

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

LLVM IR (-O2):
define void @dprint(i32 %0, i8* nocapture %1, ...) {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ off_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ ftell(int /*<<< orphan*/ *);
off_t ftello(FILE *stream) { return (off_t)ftell(stream); }


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

x86 assembly (clang, -O2):
<ftello>:
jmp    1030 <ftell@plt>

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

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

/* Variables and functions */
int /*<<< orphan*/ *str_to_wchar_len(char const *, int /*<<< orphan*/);
wchar_t *str_to_wchar(const char *str) { return str_to_wchar_len(str, 0); }


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

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

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

LLVM IR (-O2):
define i32* @str_to_wchar(i8* %0) {
%2 = tail call i32* @str_to_wchar_len(i8* %0, i32 0)
ret i32* %2
}
int op_noop() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @op_noop() {
ret i32 0
}
char libc_to_hex(char code) {
  const char hex[] = "0123456789abcdef";
  return hex[code & 15];
}


x86 assembly (clang, -O0):
<libc_to_hex>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    0xeef(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xeec(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xeea(%rip),%al
mov    %al,-0x10(%rbp)
movsbl -0x1(%rbp),%eax
and    $0xf,%eax
cltq
movsbl -0x20(%rbp,%rax,1),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<libc_to_hex>:
and    $0xf,%edi
lea    0xef6(%rip),%rax
mov    (%rdi,%rax,1),%al
ret

LLVM IR (-O0):
@__const.libc_to_hex.hex = [17 x i8] c"0123456789abcdef\00"
define signext i8 @libc_to_hex(i8 signext %0) {
%2 = alloca i8
%3 = alloca [17 x i8]
store i8 %0, i8* %2
%4 = bitcast [17 x i8]* %3 to i8*
%5 = load i8, i8* %2
%6 = sext i8 %5 to i32
%7 = and i32 %6, 15
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds [17 x i8], [17 x i8]* %3, i64 0, i64 %8
%10 = load i8, i8* %9
ret i8 %10
}

LLVM IR (-O2):
@__const.libc_to_hex.hex = [17 x i8] c"0123456789abcdef\00"
define signext i8 @libc_to_hex(i8 signext %0) {
%2 = and i8 %0, 15
%3 = zext i8 %2 to i64
%4 = getelementptr inbounds [17 x i8], [17 x i8]* @__const.libc_to_hex.hex, i64 0, i64 %3
%5 = load i8, i8* %4
ret i8 %5
}
/* Variables and functions */
scalar_t__ wStackPopNumber();
int /*<<< orphan*/ wStackPushNumber(int);
void wBuiltinInt() { wStackPushNumber((int)wStackPopNumber()); }


x86 assembly (clang, -O0):
<wBuiltinInt>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <wStackPopNumber@plt>
mov    %eax,%edi
call   1040 <wStackPushNumber@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<wBuiltinInt>:
push   %rax
xor    %eax,%eax
call   1030 <wStackPopNumber@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <wStackPushNumber@plt>

LLVM IR (-O0):
define void @wBuiltinInt() {
%1 = call i64 (...) @wStackPopNumber()
%2 = trunc i64 %1 to i32
%3 = call i32 @wStackPushNumber(i32 %2)
ret void
}

LLVM IR (-O2):
define void @wBuiltinInt() {
%1 = tail call i64 (...) @wStackPopNumber()
%2 = trunc i64 %1 to i32
%3 = tail call i32 @wStackPushNumber(i32 %2)
ret void
}
short fun4() {}


x86 assembly (clang, -O0):
<fun4>:
push   %rbp
mov    %rsp,%rbp
movswl -0x2(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define signext i16 @fun4() {
%1 = alloca i16
%2 = load i16, i16* %1
ret i16 %2
}

LLVM IR (-O2):
define signext i16 @fun4() {
ret i16 undef
}
/* Variables and functions */
scalar_t__ isPrime(int);
int /*<<< orphan*/ printf(char *, int);
int main(void) {
  for (int i = 0; i < 500; i++)
    if (isPrime(i))
      printf("%d ", i);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x1f4,-0x8(%rbp)
jge    1177 <main+0x57>
mov    -0x8(%rbp),%edi
call   1040 <isPrime@plt>
cmp    $0x0,%rax
je     1164 <main+0x44>
mov    -0x8(%rbp),%esi
lea    0xea1(%rip),%rdi
call   1030 <printf@plt>
jmp    1169 <main+0x49>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1136 <main+0x16>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xor    %ebx,%ebx
lea    0xed3(%rip),%r14
jmp    113b <main+0x1b>
nop
add    $0x1,%ebx
cmp    $0x1f4,%ebx
je     1153 <main+0x33>
mov    %ebx,%edi
call   1040 <isPrime@plt>
test   %rax,%rax
je     1130 <main+0x10>
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
jmp    1130 <main+0x10>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d \00"
define i32 @main() {
br label %2
1: ; preds = %8
ret i32 0
2: ; preds = %0, %8
%3 = phi i32 [ 0, %0 ], [ %9, %8 ]
%4 = tail call i64 @isPrime(i32 %3)
%5 = icmp eq i64 %4, 0
br i1 %5, label %8, label %6
6: ; preds = %2
%7 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %3)
br label %8
8: ; preds = %2, %6
%9 = add nuw nsw i32 %3, 1
%10 = icmp eq i32 %9, 500
br i1 %10, label %1, label %2
}
unsigned int f42(unsigned int x, long int y) {
  return (x >> y) | (x << ((-y) & (8 * sizeof(unsigned int) - 1)));
}


x86 assembly (clang, -O0):
<f42>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x10(%rbp),%rcx
shr    %cl,%eax
mov    -0x4(%rbp),%edx
xor    %ecx,%ecx
sub    -0x10(%rbp),%rcx
and    $0x1f,%rcx
shl    %cl,%edx
mov    %edx,%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f42>:
mov    %rsi,%rcx
mov    %edi,%eax
ror    %cl,%eax
ret

LLVM IR (-O0):
define i32 @f42(i32 %0, i64 %1) {
%3 = alloca i32
%4 = alloca i64
store i32 %0, i32* %3
store i64 %1, i64* %4
%5 = load i32, i32* %3
%6 = load i64, i64* %4
%7 = trunc i64 %6 to i32
%8 = lshr i32 %5, %7
%9 = load i32, i32* %3
%10 = load i64, i64* %4
%11 = sub nsw i64 0, %10
%12 = and i64 %11, 31
%13 = trunc i64 %12 to i32
%14 = shl i32 %9, %13
%15 = or i32 %8, %14
ret i32 %15
}

LLVM IR (-O2):
define i32 @f42(i32 %0, i64 %1) {
%3 = trunc i64 %1 to i32
%4 = lshr i32 %0, %3
%5 = sub i32 0, %3
%6 = and i32 %5, 31
%7 = shl i32 %0, %6
%8 = or i32 %7, %4
ret i32 %8
}
const char *BTest() { return "This is B"; }


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

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

LLVM IR (-O0):
@.str = [10 x i8] c"This is B\00"
define i8* @BTest() {
ret i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [10 x i8] c"This is B\00"
define i8* @BTest() {
ret i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
bool SHAREMIND_MAP_KEY_COPY_voidptr(void **const dest, void *const src) {
  return (((*dest) = src), true);
}


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

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

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

LLVM IR (-O2):
define i32 @SHAREMIND_MAP_KEY_COPY_voidptr(i8** nocapture writeonly %0, i8* %1) {
store i8* %1, i8** %0
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ __VERIFIER_error();
int /*<<< orphan*/ f2(int);
void f(int n) {
  if (n < 3)
    return;
  n--;
  f2(n);
ERROR:
  __VERIFIER_error();
}


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x3,-0x4(%rbp)
jge    113a <f+0x1a>
jmp    1152 <f+0x32>
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <f2@plt>
mov    $0x0,%al
call   1040 <__VERIFIER_error@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f>:
cmp    $0x3,%edi
jge    1126 <f+0x6>
ret
push   %rax
add    $0xffffffff,%edi
call   1030 <f2@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <__VERIFIER_error@plt>

LLVM IR (-O0):
define void @f(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp slt i32 %3, 3
br i1 %4, label %5, label %6
5: ; preds = %1
br label %13
6: ; preds = %1
%7 = load i32, i32* %2
%8 = add nsw i32 %7, -1
store i32 %8, i32* %2
%9 = load i32, i32* %2
%10 = call i32 @f2(i32 %9)
br label %11
11: ; preds = %6
%12 = call i32 (...) @__VERIFIER_error()
br label %13
13: ; preds = %11, %5
ret void
}

LLVM IR (-O2):
define void @f(i32 %0) {
%2 = icmp slt i32 %0, 3
br i1 %2, label %7, label %3
3: ; preds = %1
%4 = add nsw i32 %0, -1
%5 = tail call i32 @f2(i32 %4)
%6 = tail call i32 (...) @__VERIFIER_error()
br label %7
7: ; preds = %1, %3
ret void
}
/* Variables and functions */
size_t argv_count(const char *const *argv) {
  size_t nr = 0;
  while (*argv) {
    ++nr;
    ++argv;
  }
  return nr;
}


x86 assembly (clang, -O0):
<argv_count>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmpq   $0x0,(%rax)
je     113b <argv_count+0x3b>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x8(%rbp)
jmp    1110 <argv_count+0x10>
mov    -0x10(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<argv_count>:
cmpq   $0x0,(%rdi)
je     1120 <argv_count+0x20>
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
lea    0x1(%rcx),%rax
cmpq   $0x0,0x8(%rdi,%rcx,8)
mov    %rax,%rcx
jne    1110 <argv_count+0x10>
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i64 @argv_count(i8** nocapture %0) {
%2 = load i8*, i8** %0
%3 = icmp eq i8* %2, null
br i1 %3, label %11, label %4
4: ; preds = %1, %4
%5 = phi i64 [ %7, %4 ], [ 0, %1 ]
%6 = phi i8** [ %8, %4 ], [ %0, %1 ]
%7 = add i64 %5, 1
%8 = getelementptr inbounds i8*, i8** %6, i64 1
%9 = load i8*, i8** %8
%10 = icmp eq i8* %9, null
br i1 %10, label %11, label %4
11: ; preds = %4, %1
%12 = phi i64 [ 0, %1 ], [ %7, %4 ]
ret i64 %12
}