xunge/DecIR huggingface dataset:
/* Type definitions */
struct dirent {
  int dummy;
};
typedef int /*<<< orphan*/ DIR;

/* Variables and functions */
int /*<<< orphan*/ ENOSYS;
int /*<<< orphan*/ __set_errno(int /*<<< orphan*/);
struct dirent *__readdir(DIR *dirp) {
  __set_errno(ENOSYS);
  return NULL;
}


x86 assembly (clang, -O0):
<__readdir>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
call   1030 <__set_errno@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__readdir>:
push   %rax
mov    0x2ed0(%rip),%rax
mov    (%rax),%edi
call   1030 <__set_errno@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.dirent = type { i32 }
@ENOSYS = global i32 0
define %struct.dirent* @__readdir(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32, i32* @ENOSYS
%4 = call i32 @__set_errno(i32 %3)
ret %struct.dirent* null
}

LLVM IR (-O2):
%struct.dirent = type { i32 }
@ENOSYS = global i32 0
define noalias %struct.dirent* @__readdir(i32* nocapture readnone %0) {
%2 = load i32, i32* @ENOSYS
%3 = tail call i32 @__set_errno(i32 %2)
ret %struct.dirent* null
}
/* Variables and functions */
int day_of_year(int, int);
scalar_t__ is_leap_year(int);
int day_of_year_specific(int day, int month, int year) {
  int d;
  d = day_of_year(day, month);
  if (is_leap_year(year) && month >= 3) {
    d++;
  }
  return d;
}


x86 assembly (clang, -O0):
<day_of_year_specific>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1040 <day_of_year@plt>
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <is_leap_year@plt>
cmp    $0x0,%rax
je     1164 <day_of_year_specific+0x44>
cmpl   $0x3,-0x8(%rbp)
jl     1164 <day_of_year_specific+0x44>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<day_of_year_specific>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%ebx
mov    %esi,%ebp
call   1040 <day_of_year@plt>
mov    %eax,%r14d
mov    %ebx,%edi
call   1030 <is_leap_year@plt>
test   %rax,%rax
setne  %al
cmp    $0x3,%ebp
setge  %cl
and    %al,%cl
movzbl %cl,%eax
add    %r14d,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @day_of_year_specific(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%8 = load i32, i32* %4
%9 = load i32, i32* %5
%10 = call i32 @day_of_year(i32 %8, i32 %9)
store i32 %10, i32* %7
%11 = load i32, i32* %6
%12 = call i64 @is_leap_year(i32 %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %20
14: ; preds = %3
%15 = load i32, i32* %5
%16 = icmp sge i32 %15, 3
br i1 %16, label %17, label %20
17: ; preds = %14
%18 = load i32, i32* %7
%19 = add nsw i32 %18, 1
store i32 %19, i32* %7
br label %20
20: ; preds = %17, %14, %3
%21 = load i32, i32* %7
ret i32 %21
}

LLVM IR (-O2):
define i32 @day_of_year_specific(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @day_of_year(i32 %0, i32 %1)
%5 = tail call i64 @is_leap_year(i32 %2)
%6 = icmp ne i64 %5, 0
%7 = icmp sgt i32 %1, 2
%8 = and i1 %7, %6
%9 = zext i1 %8 to i32
%10 = add nsw i32 %4, %9
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
long next_heptagonal_num();
void next_heptagonal_num_test(void) {
  long num = 0;
  for (size_t i = 0; i < 10; i++)
    num = next_heptagonal_num();
  assert(num == 235);
}


x86 assembly (clang, -O0):
<next_heptagonal_num_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movq   $0x0,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
cmpq   $0xa,-0x10(%rbp)
jae    115f <next_heptagonal_num_test+0x3f>
mov    $0x0,%al
call   1040 <next_heptagonal_num@plt>
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1138 <next_heptagonal_num_test+0x18>
cmpq   $0xeb,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<next_heptagonal_num_test>:
push   %rax
xor    %eax,%eax
call   1040 <next_heptagonal_num@plt>
xor    %eax,%eax
call   1040 <next_heptagonal_num@plt>
xor    %eax,%eax
call   1040 <next_heptagonal_num@plt>
xor    %eax,%eax
call   1040 <next_heptagonal_num@plt>
xor    %eax,%eax
call   1040 <next_heptagonal_num@plt>
xor    %eax,%eax
call   1040 <next_heptagonal_num@plt>
xor    %eax,%eax
call   1040 <next_heptagonal_num@plt>
xor    %eax,%eax
call   1040 <next_heptagonal_num@plt>
xor    %eax,%eax
call   1040 <next_heptagonal_num@plt>
xor    %eax,%eax
call   1040 <next_heptagonal_num@plt>
xor    %edi,%edi
cmp    $0xeb,%rax
sete   %dil
pop    %rax
jmp    1030 <assert@plt>

LLVM IR (-O0):
define void @next_heptagonal_num_test() {
%1 = alloca i64
%2 = alloca i64
store i64 0, i64* %1
store i64 0, i64* %2
br label %3
3: ; preds = %8, %0
%4 = load i64, i64* %2
%5 = icmp ult i64 %4, 10
br i1 %5, label %6, label %11
6: ; preds = %3
%7 = call i64 (...) @next_heptagonal_num()
store i64 %7, i64* %1
br label %8
8: ; preds = %6
%9 = load i64, i64* %2
%10 = add i64 %9, 1
store i64 %10, i64* %2
br label %3
11: ; preds = %3
%12 = load i64, i64* %1
%13 = icmp eq i64 %12, 235
%14 = zext i1 %13 to i32
%15 = call i32 @assert(i32 %14)
ret void
}

LLVM IR (-O2):
define void @next_heptagonal_num_test() {
%1 = tail call i64 (...) @next_heptagonal_num()
%2 = tail call i64 (...) @next_heptagonal_num()
%3 = tail call i64 (...) @next_heptagonal_num()
%4 = tail call i64 (...) @next_heptagonal_num()
%5 = tail call i64 (...) @next_heptagonal_num()
%6 = tail call i64 (...) @next_heptagonal_num()
%7 = tail call i64 (...) @next_heptagonal_num()
%8 = tail call i64 (...) @next_heptagonal_num()
%9 = tail call i64 (...) @next_heptagonal_num()
%10 = tail call i64 (...) @next_heptagonal_num()
%11 = icmp eq i64 %10, 235
%12 = zext i1 %11 to i32
%13 = tail call i32 @assert(i32 %12)
ret void
}
void gtk_accel_group_unlock() {}


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

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

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

LLVM IR (-O2):
define void @gtk_accel_group_unlock() {
ret void
}
/* Variables and functions */
char *p_bindtextdomain(char const *, char const *);
int /*<<< orphan*/ setup();
char *g_libintl_bindtextdomain(const char *domainname, const char *dirname) {
  setup();
  return p_bindtextdomain(domainname, dirname);
}


x86 assembly (clang, -O0):
<g_libintl_bindtextdomain>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1040 <setup@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <p_bindtextdomain@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<g_libintl_bindtextdomain>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
xor    %eax,%eax
call   1040 <setup@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <p_bindtextdomain@plt>

LLVM IR (-O0):
define i8* @g_libintl_bindtextdomain(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = call i32 (...) @setup()
%6 = load i8*, i8** %3
%7 = load i8*, i8** %4
%8 = call i8* @p_bindtextdomain(i8* %6, i8* %7)
ret i8* %8
}

LLVM IR (-O2):
define i8* @g_libintl_bindtextdomain(i8* %0, i8* %1) {
%3 = tail call i32 (...) @setup()
%4 = tail call i8* @p_bindtextdomain(i8* %0, i8* %1)
ret i8* %4
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
char *getprogname();
int /*<<< orphan*/ stderr;
void usage(void) {
  (void)fprintf(stderr,
                "Usage: %s [-u <user>] [-p <password>]"
                "[-h <hostname>] [-c <cmd>]\n",
                getprogname());
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2ea1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1030 <getprogname@plt>
mov    -0x4(%rbp),%edi
mov    %rax,%rdx
lea    0xea8(%rip),%rsi
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    0x2ea8(%rip),%rax
mov    (%rax),%ebx
xor    %eax,%eax
call   1030 <getprogname@plt>
lea    0xeb8(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [65 x i8] c"Usage: %s [-u <user>] [-p <password>][-h <hostname>] [-c <cmd>]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i8* (...) @getprogname()
%3 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [65 x i8] c"Usage: %s [-u <user>] [-p <password>][-h <hostname>] [-c <cmd>]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i8* (...) @getprogname()
%3 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = tail call i32 @exit(i32 1)
unreachable
}
int ex_bif() { return ((3 * (8) + 5 * (11))); }


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

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

LLVM IR (-O0):
define i32 @ex_bif() {
ret i32 79
}

LLVM IR (-O2):
define i32 @ex_bif() {
ret i32 79
}
/* Variables and functions */
int /*<<< orphan*/ acos(int);
int glmComputeVectorLength4f(float const *);
float glmDegf(int /*<<< orphan*/);
int glmDotProduct4f(float const *, float const *);
float glmComputeVectorAngle4fDeg(const float v1[4], const float v2[4]) {
  return glmDegf(
      acos(glmDotProduct4f(v1, v2) /
           (glmComputeVectorLength4f(v1) * glmComputeVectorLength4f(v2))));
}


x86 assembly (clang, -O0):
<glmComputeVectorAngle4fDeg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <glmDotProduct4f@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <glmComputeVectorLength4f@plt>
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1050 <glmComputeVectorLength4f@plt>
mov    -0x18(%rbp),%ecx
mov    %eax,%edx
mov    -0x14(%rbp),%eax
imul   %edx,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
call   1040 <acos@plt>
mov    %eax,%edi
call   1060 <glmDegf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<glmComputeVectorAngle4fDeg>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%rbx
call   1030 <glmDotProduct4f@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1050 <glmComputeVectorLength4f@plt>
mov    %eax,%ebx
mov    %r14,%rdi
call   1050 <glmComputeVectorLength4f@plt>
mov    %eax,%ecx
imul   %ebx,%ecx
mov    %ebp,%eax
cltd
idiv   %ecx
mov    %eax,%edi
call   1040 <acos@plt>
mov    %eax,%edi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1060 <glmDegf@plt>

LLVM IR (-O0):
define float @glmComputeVectorAngle4fDeg(float* %0, float* %1) {
%3 = alloca float*
%4 = alloca float*
store float* %0, float** %3
store float* %1, float** %4
%5 = load float*, float** %3
%6 = load float*, float** %4
%7 = call i32 @glmDotProduct4f(float* %5, float* %6)
%8 = load float*, float** %3
%9 = call i32 @glmComputeVectorLength4f(float* %8)
%10 = load float*, float** %4
%11 = call i32 @glmComputeVectorLength4f(float* %10)
%12 = mul nsw i32 %9, %11
%13 = sdiv i32 %7, %12
%14 = call i32 @acos(i32 %13)
%15 = call float @glmDegf(i32 %14)
ret float %15
}

LLVM IR (-O2):
define float @glmComputeVectorAngle4fDeg(float* %0, float* %1) {
%3 = tail call i32 @glmDotProduct4f(float* %0, float* %1)
%4 = tail call i32 @glmComputeVectorLength4f(float* %0)
%5 = tail call i32 @glmComputeVectorLength4f(float* %1)
%6 = mul nsw i32 %5, %4
%7 = sdiv i32 %3, %6
%8 = tail call i32 @acos(i32 %7)
%9 = tail call float @glmDegf(i32 %8)
ret float %9
}
/* Variables and functions */
scalar_t__ EPERM;
scalar_t__ errno;
int initgroups(char *, int /*<<< orphan*/);
int main(void) {
  if (initgroups("root", 0) == -1 && errno != EPERM)
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
xor    %esi,%esi
call   1030 <initgroups@plt>
cmp    $0xffffffff,%eax
jne    115c <main+0x4c>
mov    0x2ea3(%rip),%rax
mov    (%rax),%rax
mov    0x2e89(%rip),%rcx
cmp    (%rcx),%rax
je     115c <main+0x4c>
movl   $0x1,-0x4(%rbp)
jmp    1163 <main+0x53>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
xor    %esi,%esi
call   1030 <initgroups@plt>
cmp    $0xffffffff,%eax
jne    113f <main+0x2f>
mov    0x2eb5(%rip),%rax
mov    (%rax),%rcx
mov    0x2e9b(%rip),%rdx
mov    $0x1,%eax
cmp    (%rdx),%rcx
jne    1141 <main+0x31>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"root\00"
@errno = global i64 0
@EPERM = global i64 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @initgroups(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 0)
%3 = icmp eq i32 %2, -1
br i1 %3, label %4, label %9
4: ; preds = %0
%5 = load i64, i64* @errno
%6 = load i64, i64* @EPERM
%7 = icmp ne i64 %5, %6
br i1 %7, label %8, label %9
8: ; preds = %4
store i32 1, i32* %1
br label %10
9: ; preds = %4, %0
store i32 0, i32* %1
br label %10
10: ; preds = %9, %8
%11 = load i32, i32* %1
ret i32 %11
}

LLVM IR (-O2):
@.str = [5 x i8] c"root\00"
@errno = global i64 0
@EPERM = global i64 0
define i32 @main() {
%1 = tail call i32 @initgroups(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 0)
%2 = icmp eq i32 %1, -1
br i1 %2, label %3, label %7
3: ; preds = %0
%4 = load i64, i64* @errno
%5 = load i64, i64* @EPERM
%6 = icmp eq i64 %4, %5
br i1 %6, label %7, label %8
7: ; preds = %3, %0
br label %8
8: ; preds = %3, %7
%9 = phi i32 [ 0, %7 ], [ 1, %3 ]
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ __buf_size_arg_constraint(char *, int);
void test_buf_size_concrete() {
  char buf[3];
  __buf_size_arg_constraint(buf, 4);
}


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

x86 assembly (clang, -O2):
<test_buf_size_concrete>:
push   %rax
lea    0x5(%rsp),%rdi
mov    $0x4,%esi
call   1030 <__buf_size_arg_constraint@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @test_buf_size_concrete() {
%1 = alloca [3 x i8]
%2 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
%3 = call i32 @__buf_size_arg_constraint(i8* %2, i32 4)
ret void
}

LLVM IR (-O2):
define void @test_buf_size_concrete() {
%1 = alloca [3 x i8]
%2 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
%3 = call i32 @__buf_size_arg_constraint(i8* %2, i32 4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void print_libco_opts(void) {
  printf("PPC32 ");
  printf("FP ");
  printf("\n");
}


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

x86 assembly (clang, -O2):
<print_libco_opts>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <printf@plt>
lea    0xed3(%rip),%rdi
call   1040 <printf@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"PPC32 \00"
@.str.1 = [4 x i8] c"FP \00"
@.str.2 = [2 x i8] c"\0A\00"
define void @print_libco_opts() {
%1 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"PPC32 \00"
@.str.1 = [4 x i8] c"FP \00"
define void @print_libco_opts() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @putchar(i32 10)
ret void
}
/* Type definitions */
typedef scalar_t__ uint8_t;

/* Variables and functions */
unsigned int __VERIFIER_nondet_uint() {
  unsigned int initialValue;
  int byteOffset = 0;
  uint8_t *initialValueAsByte = (uint8_t *)&initialValue;
  for (; byteOffset < sizeof(unsigned int); ++byteOffset) {
    initialValueAsByte[byteOffset] = 0;
  }
  return initialValue;
}


x86 assembly (clang, -O0):
<__VERIFIER_nondet_uint>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x8(%rbp)
lea    -0x4(%rbp),%rax
mov    %rax,-0x10(%rbp)
movslq -0x8(%rbp),%rax
cmp    $0x4,%rax
jae    113f <__VERIFIER_nondet_uint+0x3f>
mov    -0x10(%rbp),%rax
movslq -0x8(%rbp),%rcx
movq   $0x0,(%rax,%rcx,8)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1113 <__VERIFIER_nondet_uint+0x13>
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @__VERIFIER_nondet_uint() {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, long);
int main(void) {
  long sum = 101 * 50 * 101 * 50;
  long i;
  for (i = 1; i <= 100; i++)
    sum -= i * i;
  printf("%ld\n", sum);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x1852324,-0x10(%rbp)
01
movq   $0x1,-0x18(%rbp)
cmpq   $0x64,-0x18(%rbp)
jg     115f <main+0x4f>
mov    -0x18(%rbp),%rcx
imul   -0x18(%rbp),%rcx
mov    -0x10(%rbp),%rax
sub    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    112f <main+0x1f>
mov    -0x10(%rbp),%rsi
lea    0xe96(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
@.str = [5 x i8] c"%ld\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 25164150)
ret i32 0
}
void BN_nist_mod_192(void) {}


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

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

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

LLVM IR (-O2):
define void @BN_nist_mod_192() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ __quick_sort(void *, size_t, size_t, char *,
                                int (*)(void const *, void const *));
int /*<<< orphan*/ assert(int /*<<< orphan*/);
scalar_t__ calloc(int, size_t);
int /*<<< orphan*/ free(char *);
void quick_sort(void *base, size_t nmemb, size_t size,
                int (*cmp)(const void *, const void *)) {
  char *buf = (char *)calloc(1, size);
  assert(buf != NULL);
  __quick_sort(base, nmemb, size, buf, cmp);
  free(buf);
}


x86 assembly (clang, -O0):
<quick_sort>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x18(%rbp),%rsi
mov    $0x1,%edi
call   1050 <calloc@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    -0x20(%rbp),%r8
call   1040 <__quick_sort@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<quick_sort>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rcx,%r14
mov    %rdx,%r13
mov    %rsi,%r15
mov    %rdi,%r12
mov    $0x1,%edi
mov    %rdx,%rsi
call   1050 <calloc@plt>
mov    %rax,%rbx
xor    %edi,%edi
test   %rax,%rax
setne  %dil
call   1060 <assert@plt>
mov    %r12,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
mov    %rbx,%rcx
mov    %r14,%r8
call   1040 <__quick_sort@plt>
mov    %rbx,%rdi
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @quick_sort(i8* %0, i64 %1, i64 %2, i32 (i8*, i8*)* %3) {
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i64
%8 = alloca i32 (i8*, i8*)*
%9 = alloca i8*
store i8* %0, i8** %5
store i64 %1, i64* %6
store i64 %2, i64* %7
store i32 (i8*, i8*)* %3, i32 (i8*, i8*)** %8
%10 = load i64, i64* %7
%11 = call i64 @calloc(i32 1, i64 %10)
%12 = inttoptr i64 %11 to i8*
store i8* %12, i8** %9
%13 = load i8*, i8** %9
%14 = icmp ne i8* %13, null
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 %15)
%17 = load i8*, i8** %5
%18 = load i64, i64* %6
%19 = load i64, i64* %7
%20 = load i8*, i8** %9
%21 = load i32 (i8*, i8*)*, i32 (i8*, i8*)** %8
%22 = call i32 @__quick_sort(i8* %17, i64 %18, i64 %19, i8* %20, i32 (i8*, i8*)* %21)
%23 = load i8*, i8** %9
%24 = call i32 @free(i8* %23)
ret void
}

LLVM IR (-O2):
define void @quick_sort(i8* %0, i64 %1, i64 %2, i32 (i8*, i8*)* %3) {
%5 = tail call i64 @calloc(i32 1, i64 %2)
%6 = inttoptr i64 %5 to i8*
%7 = icmp ne i64 %5, 0
%8 = zext i1 %7 to i32
%9 = tail call i32 @assert(i32 %8)
%10 = tail call i32 @__quick_sort(i8* %0, i64 %1, i64 %2, i8* %6, i32 (i8*, i8*)* %3)
%11 = tail call i32 @free(i8* %6)
ret void
}
/* Variables and functions */
int getc(int /*<<< orphan*/);
int /*<<< orphan*/ stdin;
int key() { return (getc(stdin)); }


x86 assembly (clang, -O0):
<key>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ecd(%rip),%rax
mov    (%rax),%edi
call   1030 <getc@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<key>:
mov    0x2ed1(%rip),%rax
mov    (%rax),%edi
jmp    1030 <getc@plt>

LLVM IR (-O0):
@stdin = global i32 0
define i32 @key() {
%1 = load i32, i32* @stdin
%2 = call i32 @getc(i32 %1)
ret i32 %2
}

LLVM IR (-O2):
@stdin = global i32 0
define i32 @key() {
%1 = load i32, i32* @stdin
%2 = tail call i32 @getc(i32 %1)
ret i32 %2
}
unsigned xrop3_165_1_0(unsigned char s, unsigned char t) {
  unsigned D = 0x00ff;
  unsigned S = ((unsigned)s << 8) | s;
  unsigned T = ((unsigned)t << 8) | t;
  unsigned stk1;
  stk1 = T ^ D;
  stk1 = ~stk1;
  return (stk1 & (~S)) | (D & S);
}


x86 assembly (clang, -O0):
<xrop3_165_1_0>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movl   $0xff,-0x8(%rbp)
movzbl -0x1(%rbp),%eax
shl    $0x8,%eax
movzbl -0x1(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0xc(%rbp)
movzbl -0x2(%rbp),%eax
shl    $0x8,%eax
movzbl -0x2(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
xor    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
xor    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    -0xc(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
mov    -0x8(%rbp),%ecx
and    -0xc(%rbp),%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xrop3_165_1_0>:
mov    %edi,%eax
shl    $0x8,%eax
or     %edi,%eax
mov    %esi,%ecx
shl    $0x8,%ecx
or     %esi,%ecx
xor    $0xffffff00,%ecx
not    %eax
and    %ecx,%eax
or     %edi,%eax
ret

LLVM IR (-O0):
define i32 @xrop3_165_1_0(i8 zeroext %0, i8 zeroext %1) {
%3 = alloca i8
%4 = alloca i8
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i8 %0, i8* %3
store i8 %1, i8* %4
store i32 255, i32* %5
%9 = load i8, i8* %3
%10 = zext i8 %9 to i32
%11 = shl i32 %10, 8
%12 = load i8, i8* %3
%13 = zext i8 %12 to i32
%14 = or i32 %11, %13
store i32 %14, i32* %6
%15 = load i8, i8* %4
%16 = zext i8 %15 to i32
%17 = shl i32 %16, 8
%18 = load i8, i8* %4
%19 = zext i8 %18 to i32
%20 = or i32 %17, %19
store i32 %20, i32* %7
%21 = load i32, i32* %7
%22 = load i32, i32* %5
%23 = xor i32 %21, %22
store i32 %23, i32* %8
%24 = load i32, i32* %8
%25 = xor i32 %24, -1
store i32 %25, i32* %8
%26 = load i32, i32* %8
%27 = load i32, i32* %6
%28 = xor i32 %27, -1
%29 = and i32 %26, %28
%30 = load i32, i32* %5
%31 = load i32, i32* %6
%32 = and i32 %30, %31
%33 = or i32 %29, %32
ret i32 %33
}

LLVM IR (-O2):
define i32 @xrop3_165_1_0(i8 zeroext %0, i8 zeroext %1) {
%3 = zext i8 %0 to i32
%4 = mul nuw nsw i32 %3, 257
%5 = zext i8 %1 to i32
%6 = mul nuw nsw i32 %5, 257
%7 = xor i32 %6, -256
%8 = xor i32 %4, -1
%9 = and i32 %7, %8
%10 = or i32 %9, %3
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ P();
int Rt(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int T() {
  printf("T->PRt\n");
  return Rt(P());
}


x86 assembly (clang, -O0):
<T>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <P@plt>
mov    %eax,%edi
call   1050 <Rt@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<T>:
push   %rax
lea    0xec8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <P@plt>
mov    %eax,%edi
pop    %rax
jmp    1050 <Rt@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"T->PRt\0A\00"
define i32 @T() {
%1 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @P()
%3 = call i32 @Rt(i32 %2)
ret i32 %3
}

LLVM IR (-O2):
@str = [7 x i8] c"T->PRt\00"
define i32 @T() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (...) @P()
%3 = tail call i32 @Rt(i32 %2)
ret i32 %3
}
/* Type definitions */
struct feature_pair {
  int dummy;
};
struct CovariateAnalysis {
  int dummy;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
void _emitJSONUniFeatureClassR(const struct feature_pair *pair,
                               const struct CovariateAnalysis *covan,
                               FILE *fp) {}


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

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

LLVM IR (-O0):
%struct.feature_pair = type { i32 }
%struct.CovariateAnalysis = type { i32 }
define void @_emitJSONUniFeatureClassR(%struct.feature_pair* %0, %struct.CovariateAnalysis* %1, i32* %2) {
%4 = alloca %struct.feature_pair*
%5 = alloca %struct.CovariateAnalysis*
%6 = alloca i32*
store %struct.feature_pair* %0, %struct.feature_pair** %4
store %struct.CovariateAnalysis* %1, %struct.CovariateAnalysis** %5
store i32* %2, i32** %6
ret void
}

LLVM IR (-O2):
%struct.feature_pair = type { i32 }
%struct.CovariateAnalysis = type { i32 }
define void @_emitJSONUniFeatureClassR(%struct.feature_pair* nocapture %0, %struct.CovariateAnalysis* nocapture %1, i32* nocapture %2) {
ret void
}
I0A1(r0, r1, x0, x1, p0, p1) double r0, r1;
double *p0, *p1;
{
  if (22 <= (*((double *)11111111)))
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<I0A1>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
mov    %edi,-0x1c(%rbp)
mov    %esi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
mov    $0xa98ac7,%eax
movsd  (%rax),%xmm0
movsd  0xed3(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1143 <I0A1+0x43>
movl   $0x1,-0x4(%rbp)
jmp    114a <I0A1+0x4a>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<I0A1>:
movsd  0xa98ac7,%xmm0
xor    %eax,%eax
ucomisd 0xeed(%rip),%xmm0
setae  %al
ret

LLVM IR (-O0):
define i32 @I0A1(double %0, double %1, i32 %2, i32 %3, double* %4, double* %5) {
%7 = alloca i32
%8 = alloca double
%9 = alloca double
%10 = alloca i32
%11 = alloca i32
%12 = alloca double*
%13 = alloca double*
store double %0, double* %8
store double %1, double* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store double* %4, double** %12
store double* %5, double** %13
%14 = load double, double* inttoptr (i64 11111111 to double*)
%15 = fcmp ole double 2.200000e+01, %14
br i1 %15, label %16, label %17
16: ; preds = %6
store i32 1, i32* %7
br label %18
17: ; preds = %6
store i32 0, i32* %7
br label %18
18: ; preds = %17, %16
%19 = load i32, i32* %7
ret i32 %19
}

LLVM IR (-O2):
define i32 @I0A1(double %0, double %1, i32 %2, i32 %3, double* nocapture readnone %4, double* nocapture readnone %5) {
%7 = load double, double* inttoptr (i64 11111111 to double*)
%8 = fcmp oge double %7, 2.200000e+01
%9 = zext i1 %8 to i32
ret i32 %9
}
/* Type definitions */
typedef int /*<<< orphan*/ int8_t;

/* Variables and functions */
int /*<<< orphan*/ memcpy(char *, int /*<<< orphan*/ *, int);
void copy_int1(char **pointer, int8_t value) {
  memcpy(*pointer, &value, 1);
  *pointer += 1;
}


x86 assembly (clang, -O0):
<copy_int1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x1,%edx
call   1030 <memcpy@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<copy_int1>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
mov    %esi,0xc(%rsp)
mov    (%rdi),%rdi
lea    0xc(%rsp),%rsi
mov    $0x1,%edx
call   1030 <memcpy@plt>
addq   $0x1,(%rbx)
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @copy_int1(i8** %0, i32 %1) {
%3 = alloca i8**
%4 = alloca i32
store i8** %0, i8*** %3
store i32 %1, i32* %4
%5 = load i8**, i8*** %3
%6 = load i8*, i8** %5
%7 = call i32 @memcpy(i8* %6, i32* %4, i32 1)
%8 = load i8**, i8*** %3
%9 = load i8*, i8** %8
%10 = getelementptr inbounds i8, i8* %9, i64 1
store i8* %10, i8** %8
ret void
}

LLVM IR (-O2):
define void @copy_int1(i8** nocapture %0, i32 %1) {
%3 = alloca i32
store i32 %1, i32* %3
%4 = load i8*, i8** %0
%5 = call i32 @memcpy(i8* %4, i32* %3, i32 1)
%6 = load i8*, i8** %0
%7 = getelementptr inbounds i8, i8* %6, i64 1
store i8* %7, i8** %0
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ int32_t;

/* Variables and functions */
int32_t funge_nop_space(int32_t funge_char) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @funge_nop_space(i32 %0) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ bbm_write(void *, int, int);
int fc8150_reset(void *hDevice) {
  bbm_write(hDevice, 0x0001, 0x7f);
  bbm_write(hDevice, 0x0001, 0xff);
  return 0;
}


x86 assembly (clang, -O0):
<fc8150_reset>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x1,%esi
mov    $0x7f,%edx
call   1030 <bbm_write@plt>
mov    -0x8(%rbp),%rdi
mov    $0x1,%esi
mov    $0xff,%edx
call   1030 <bbm_write@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fc8150_reset>:
push   %rbx
mov    %rdi,%rbx
mov    $0x1,%esi
mov    $0x7f,%edx
call   1030 <bbm_write@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0xff,%edx
call   1030 <bbm_write@plt>
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @fc8150_reset(i8* %0) {
%2 = tail call i32 @bbm_write(i8* %0, i32 1, i32 127)
%3 = tail call i32 @bbm_write(i8* %0, i32 1, i32 255)
ret i32 0
}
void CheckMemory() {}


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

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

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

LLVM IR (-O2):
define void @CheckMemory() {
ret void
}
/* Variables and functions */
scalar_t__ strlen(char *);
scalar_t__ strspn(char *, char *);
int valid_dataline(char *s) {
  return strspn(s, "0123456789eEdE.+- \r\n\t") == strlen(s);
}


x86 assembly (clang, -O0):
<valid_dataline>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xec9(%rip),%rsi
call   1040 <strspn@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<valid_dataline>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xed2(%rip),%rsi
call   1040 <strspn@plt>
mov    %rax,%r14
mov    %rbx,%rdi
call   1030 <strlen@plt>
xor    %ecx,%ecx
cmp    %rax,%r14
sete   %cl
mov    %ecx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [22 x i8] c"0123456789eEdE.+- \0D\0A\09\00"
define i32 @valid_dataline(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @strspn(i8* %3, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%5 = load i8*, i8** %2
%6 = call i64 @strlen(i8* %5)
%7 = icmp eq i64 %4, %6
%8 = zext i1 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
@.str = [22 x i8] c"0123456789eEdE.+- \0D\0A\09\00"
define i32 @valid_dataline(i8* nocapture %0) {
%2 = tail call i64 @strspn(i8* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%3 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%4 = icmp eq i64 %2, %3
%5 = zext i1 %4 to i32
ret i32 %5
}
void ktsan_report_disable(void) {}


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

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

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

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

/* Variables and functions */
int stat(char const *, struct stat *);
int fileStat(const char *zPath, struct stat *pStatBuf) {
  return stat(zPath, pStatBuf);
}


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

x86 assembly (clang, -O2):
<fileStat>:
jmp    1030 <stat@plt>

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

LLVM IR (-O2):
%struct.stat = type { i32 }
define i32 @fileStat(i8* nocapture %0, %struct.stat* nocapture %1) {
%3 = tail call i32 @stat(i8* %0, %struct.stat* %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ register_diom_function_list();
void diom_init() { register_diom_function_list(); }


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

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

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

LLVM IR (-O2):
define void @diom_init() {
%1 = tail call i32 (...) @register_diom_function_list()
ret void
}
void g_async_queue_try_pop() {}


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

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

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

LLVM IR (-O2):
define void @g_async_queue_try_pop() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ gfp(int *);
void callee(int *p) { gfp(p); }


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

x86 assembly (clang, -O2):
<callee>:
jmp    1030 <gfp@plt>

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

LLVM IR (-O2):
define void @callee(i32* %0) {
%2 = tail call i32 @gfp(i32* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ lt_fatal(char *, int, char *);
scalar_t__ malloc(size_t);
void *xmalloc(size_t num) {
  void *p = (void *)malloc(num);
  if (!p)
    lt_fatal("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/filip-be/ImageComparer/refs/heads/"
             "master/exiv2/expat/examples/.libs/lt-outline.c",
             311, "memory exhausted");
  return p;
}


x86 assembly (clang, -O0):
<xmalloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <malloc@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    115c <xmalloc+0x3c>
lea    0xeb5(%rip),%rdi
mov    $0x137,%esi
lea    0xf54(%rip),%rdx
call   1030 <lt_fatal@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xmalloc>:
push   %rbx
call   1040 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1146 <xmalloc+0x26>
lea    0xecb(%rip),%rdi
lea    0xf6f(%rip),%rdx
mov    $0x137,%esi
call   1030 <lt_fatal@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [171 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/filip-be/ImageComparer/refs/heads/master/exiv2/expat/examples/.libs/lt-outline.c\00"
@.str.1 = [17 x i8] c"memory exhausted\00"
define i8* @xmalloc(i64 %0) {
%2 = alloca i64
%3 = alloca i8*
store i64 %0, i64* %2
%4 = load i64, i64* %2
%5 = call i64 @malloc(i64 %4)
%6 = inttoptr i64 %5 to i8*
store i8* %6, i8** %3
%7 = load i8*, i8** %3
%8 = icmp ne i8* %7, null
br i1 %8, label %11, label %9
9: ; preds = %1
%10 = call i32 @lt_fatal(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 311, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
br label %11
11: ; preds = %9, %1
%12 = load i8*, i8** %3
ret i8* %12
}

LLVM IR (-O2):
@.str = [171 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/filip-be/ImageComparer/refs/heads/master/exiv2/expat/examples/.libs/lt-outline.c\00"
@.str.1 = [17 x i8] c"memory exhausted\00"
define i8* @xmalloc(i64 %0) {
%2 = tail call i64 @malloc(i64 %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 @lt_fatal(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 311, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
br label %6
6: ; preds = %4, %1
%7 = inttoptr i64 %2 to i8*
ret i8* %7
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, unsigned int);
int /*<<< orphan*/ pthread_exit(void *);
scalar_t__ pthread_self();
void *thr_fn2(void *arg) {
  printf("thread 2: ID is 0x%8x\n", (unsigned int)pthread_self());
  pthread_exit((void *)0);
}


x86 assembly (clang, -O0):
<thr_fn2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    $0x0,%al
call   1050 <pthread_self@plt>
mov    %eax,%esi
lea    0xeb4(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1040 <pthread_exit@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<thr_fn2>:
push   %rax
xor    %eax,%eax
call   1050 <pthread_self@plt>
lea    0xec1(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %edi,%edi
pop    %rax
jmp    1040 <pthread_exit@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"thread 2: ID is 0x%8x\0A\00"
define i8* @thr_fn2(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %3
%4 = call i64 (...) @pthread_self()
%5 = trunc i64 %4 to i32
%6 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = call i32 @pthread_exit(i8* null)
%8 = load i8*, i8** %2
ret i8* %8
}

LLVM IR (-O2):
@.str = [23 x i8] c"thread 2: ID is 0x%8x\0A\00"
define noalias i8* @thr_fn2(i8* nocapture readnone %0) {
%2 = tail call i64 (...) @pthread_self()
%3 = trunc i64 %2 to i32
%4 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = tail call i32 @pthread_exit(i8* null)
ret i8* undef
}
int main(void) {
  0 || 0.4;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ abort();
void *malloc(size_t);
int /*<<< orphan*/ perror(char *);
void *MallocOrDie(size_t nbytes) {
  void *result;
  result = malloc(nbytes);
  if (result == NULL) {
    perror("Malloc Or Die");
    abort();
  }
  return result;
}


x86 assembly (clang, -O0):
<MallocOrDie>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <malloc@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1167 <MallocOrDie+0x37>
lea    0xea5(%rip),%rdi
call   1050 <perror@plt>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MallocOrDie>:
push   %rax
call   1040 <malloc@plt>
test   %rax,%rax
je     113d <MallocOrDie+0xd>
pop    %rcx
ret
lea    0xebc(%rip),%rdi
call   1050 <perror@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"Malloc Or Die\00"
define i8* @MallocOrDie(i64 %0) {
%2 = alloca i64
%3 = alloca i8*
store i64 %0, i64* %2
%4 = load i64, i64* %2
%5 = call i8* @malloc(i64 %4)
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = icmp eq i8* %6, null
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = call i32 @perror(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%10 = call i32 (...) @abort()
unreachable
11: ; preds = %1
%12 = load i8*, i8** %3
ret i8* %12
}

LLVM IR (-O2):
@.str = [14 x i8] c"Malloc Or Die\00"
define noalias i8* @MallocOrDie(i64 %0) {
%2 = tail call i8* @malloc(i64 %0)
%3 = icmp eq i8* %2, null
br i1 %3, label %4, label %7
4: ; preds = %1
%5 = tail call i32 @perror(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 (...) @abort()
unreachable
7: ; preds = %1
ret i8* %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void other() {
  struct foobar {
    float d;
  } ff;
  ff.d = 20;
  printf("%f\n", ff.d);
}


x86 assembly (clang, -O0):
<other>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  0xee0(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
cvttss2si -0x8(%rbp),%esi
lea    0xed3(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<other>:
lea    0xee9(%rip),%rdi
mov    $0x14,%esi
jmp    1030 <printf@plt>

LLVM IR (-O0):
%struct.foobar = type { float }
@.str = [4 x i8] c"%f\0A\00"
define void @other() {
%1 = alloca %struct.foobar
%2 = getelementptr inbounds %struct.foobar, %struct.foobar* %1, i32 0, i32 0
store float 2.000000e+01, float* %2
%3 = getelementptr inbounds %struct.foobar, %struct.foobar* %1, i32 0, i32 0
%4 = load float, float* %3
%5 = fptosi float %4 to i32
%6 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %5)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"%f\0A\00"
define void @other() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 20)
ret void
}
/* Variables and functions */
char *strchr(const char *s, char c) {
  while (*s != '\0') {
    if (*s == c) {
      return (char *)s;
    }
    s++;
  }
  return 0;
}


x86 assembly (clang, -O0):
<strchr>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %rdi,-0x10(%rbp)
mov    %al,-0x11(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     114f <strchr+0x4f>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
movsbl -0x11(%rbp),%ecx
cmp    %ecx,%eax
jne    113e <strchr+0x3e>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1157 <strchr+0x57>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    110e <strchr+0xe>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strchr>:
mov    (%rdi),%cl
test   %cl,%cl
je     1121 <strchr+0x21>
mov    %rdi,%rax
nopl   0x0(%rax)
cmp    %sil,%cl
je     1123 <strchr+0x23>
movzbl 0x1(%rax),%ecx
add    $0x1,%rax
test   %cl,%cl
jne    1110 <strchr+0x10>
xor    %eax,%eax
ret

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

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


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

x86 assembly (clang, -O2):
<func1>:
mov    (%rdi),%eax
ret

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

LLVM IR (-O2):
define i32 @func1(i32* nocapture %0) {
%2 = load i32, i32* %0
ret i32 %2
}