xunge/DecIR huggingface dataset:
/* Type definitions */
struct pq {
  int dummy;
};
struct packet {
  int dummy;
};

/* Variables and functions */
struct packet *deq_impl(struct pq *, int);
struct packet *waitdeq(struct pq *pq) {
  return deq_impl(pq, 1);
}


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

x86 assembly (clang, -O2):
<waitdeq>:
mov    $0x1,%esi
jmp    1030 <deq_impl@plt>

LLVM IR (-O0):
%struct.packet = type { i32 }
%struct.pq = type { i32 }
define %struct.packet* @waitdeq(%struct.pq* %0) {
%2 = alloca %struct.pq*
store %struct.pq* %0, %struct.pq** %2
%3 = load %struct.pq*, %struct.pq** %2
%4 = call %struct.packet* @deq_impl(%struct.pq* %3, i32 1)
ret %struct.packet* %4
}

LLVM IR (-O2):
%struct.packet = type { i32 }
%struct.pq = type { i32 }
define %struct.packet* @waitdeq(%struct.pq* %0) {
%2 = tail call %struct.packet* @deq_impl(%struct.pq* %0, i32 1)
ret %struct.packet* %2
}
/* Type definitions */
typedef scalar_t__ uint64_t;

/* Variables and functions */
uint64_t mp_mod_384(uint64_t r[6], uint64_t a[12]) {
  r[0] = a[1] + a[2];
  return 0;
}


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

x86 assembly (clang, -O2):
<mp_mod_384>:
mov    0x10(%rsi),%rax
add    0x8(%rsi),%rax
mov    %rax,(%rdi)
xor    %eax,%eax
ret

LLVM IR (-O0):
define i64 @mp_mod_384(i64* %0, i64* %1) {
%3 = alloca i64*
%4 = alloca i64*
store i64* %0, i64** %3
store i64* %1, i64** %4
%5 = load i64*, i64** %4
%6 = getelementptr inbounds i64, i64* %5, i64 1
%7 = load i64, i64* %6
%8 = load i64*, i64** %4
%9 = getelementptr inbounds i64, i64* %8, i64 2
%10 = load i64, i64* %9
%11 = add nsw i64 %7, %10
%12 = load i64*, i64** %3
%13 = getelementptr inbounds i64, i64* %12, i64 0
store i64 %11, i64* %13
ret i64 0
}

LLVM IR (-O2):
define i64 @mp_mod_384(i64* nocapture writeonly %0, i64* nocapture %1) {
%3 = getelementptr inbounds i64, i64* %1, i64 1
%4 = load i64, i64* %3
%5 = getelementptr inbounds i64, i64* %1, i64 2
%6 = load i64, i64* %5
%7 = add nsw i64 %6, %4
store i64 %7, i64* %0
ret i64 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void exit(int status) {
  printf("exit(%d) called\n", status);
  while (1)
    ;
}


x86 assembly (clang, -O0):
<exit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xedb(%rip),%rdi
call   1030 <printf@plt>
jmp    112a <exit+0x1a>

x86 assembly (clang, -O2):
<exit>:
push   %rax
mov    %edi,%esi
lea    0xee6(%rip),%rdi
call   1030 <printf@plt>
nop
jmp    1120 <exit+0x10>

LLVM IR (-O0):
@.str = [17 x i8] c"exit(%d) called\0A\00"
define void @exit(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %3)
br label %5
5: ; preds = %1, %5
br label %5
}

LLVM IR (-O2):
@.str = [17 x i8] c"exit(%d) called\0A\00"
define void @exit(i32 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %0)
br label %3
3: ; preds = %1, %3
br label %3
}
/* Variables and functions */
int /*<<< orphan*/ scs(int /*<<< orphan*/, char);
void scs_normal(void) { scs(0, 'B'); }


x86 assembly (clang, -O0):
<scs_normal>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
mov    $0x42,%esi
call   1030 <scs@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<scs_normal>:
xor    %edi,%edi
mov    $0x42,%esi
jmp    1030 <scs@plt>

LLVM IR (-O0):
define void @scs_normal() {
%1 = call i32 @scs(i32 0, i8 signext 66)
ret void
}

LLVM IR (-O2):
define void @scs_normal() {
%1 = tail call i32 @scs(i32 0, i8 signext 66)
ret void
}
void udbg_shutdown_ps3gelic(void) {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ free(struct fat16_file_struct *);
void fat16_close_file(struct fat16_file_struct *fd) {
  if (fd)
    free(fd);
}


x86 assembly (clang, -O0):
<fat16_close_file>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1130 <fat16_close_file+0x20>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fat16_close_file>:
test   %rdi,%rdi
je     111a <fat16_close_file+0xa>
jmp    1030 <free@plt>
ret

LLVM IR (-O0):
%struct.fat16_file_struct = type { i32 }
define void @fat16_close_file(%struct.fat16_file_struct* %0) {
%2 = alloca %struct.fat16_file_struct*
store %struct.fat16_file_struct* %0, %struct.fat16_file_struct** %2
%3 = load %struct.fat16_file_struct*, %struct.fat16_file_struct** %2
%4 = icmp ne %struct.fat16_file_struct* %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load %struct.fat16_file_struct*, %struct.fat16_file_struct** %2
%7 = call i32 @free(%struct.fat16_file_struct* %6)
br label %8
8: ; preds = %5, %1
ret void
}

LLVM IR (-O2):
%struct.fat16_file_struct = type { i32 }
define void @fat16_close_file(%struct.fat16_file_struct* %0) {
%2 = icmp eq %struct.fat16_file_struct* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @free(%struct.fat16_file_struct* %0)
br label %5
5: ; preds = %3, %1
ret void
}
/* Variables and functions */
int partition(int *, int, int);
void quicksort(int a[], int low, int high) {
  if (low < high) {
    int pivot_location = partition(a, low, high);
    quicksort(a, low, pivot_location - 1);
    quicksort(a, pivot_location + 1, high);
  }
}


x86 assembly (clang, -O0):
<quicksort>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1174 <quicksort+0x54>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1030 <partition@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x14(%rbp),%edx
sub    $0x1,%edx
call   1040 <quicksort@plt>
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%esi
add    $0x1,%esi
mov    -0x10(%rbp),%edx
call   1040 <quicksort@plt>
add    $0x20,%rsp
pop    %rbp
ret

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

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

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

/* Variables and functions */
int /*<<< orphan*/ putchar(char);
void ascii_advance(struct termp *p, size_t len) {
  size_t i;
  for (i = 0; i < len; i++)
    putchar(' ');
}


x86 assembly (clang, -O0):
<ascii_advance>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmp    -0x10(%rbp),%rax
jae    1151 <ascii_advance+0x41>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1128 <ascii_advance+0x18>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ascii_advance>:
push   %rbx
test   %rsi,%rsi
je     1130 <ascii_advance+0x20>
mov    %rsi,%rbx
nopl   0x0(%rax)
mov    $0x20,%edi
call   1030 <putchar@plt>
add    $0xffffffffffffffff,%rbx
jne    1120 <ascii_advance+0x10>
pop    %rbx
ret

LLVM IR (-O0):
%struct.termp = type { i32 }
define void @ascii_advance(%struct.termp* %0, i64 %1) {
%3 = alloca %struct.termp*
%4 = alloca i64
%5 = alloca i64
store %struct.termp* %0, %struct.termp** %3
store i64 %1, i64* %4
store i64 0, i64* %5
br label %6
6: ; preds = %12, %2
%7 = load i64, i64* %5
%8 = load i64, i64* %4
%9 = icmp ult i64 %7, %8
br i1 %9, label %10, label %15
10: ; preds = %6
%11 = call i32 @putchar(i8 signext 32)
br label %12
12: ; preds = %10
%13 = load i64, i64* %5
%14 = add i64 %13, 1
store i64 %14, i64* %5
br label %6
15: ; preds = %6
ret void
}

LLVM IR (-O2):
%struct.termp = type { i32 }
define void @ascii_advance(%struct.termp* nocapture readnone %0, i64 %1) {
%3 = icmp eq i64 %1, 0
br i1 %3, label %9, label %4
4: ; preds = %2, %4
%5 = phi i64 [ %7, %4 ], [ 0, %2 ]
%6 = tail call i32 @putchar(i8 signext 32)
%7 = add nuw i64 %5, 1
%8 = icmp eq i64 %7, %1
br i1 %8, label %9, label %4
9: ; preds = %4, %2
ret void
}
void ARGBUnattenuate() {}


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

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

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

LLVM IR (-O2):
define void @ARGBUnattenuate() {
ret void
}
/* Variables and functions */
int main_sub();
int main() { return main_sub(); }


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @main_sub()
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ init(char *);
int ok();
int /*<<< orphan*/ test();
int main() {
  init("array");
  test();
  return ok();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
call   1040 <init@plt>
mov    $0x0,%al
call   1050 <test@plt>
mov    $0x0,%al
call   1030 <ok@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <init@plt>
xor    %eax,%eax
call   1050 <test@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <ok@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"array\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @init(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @test()
%4 = call i32 (...) @ok()
ret i32 %4
}

LLVM IR (-O2):
@.str = [6 x i8] c"array\00"
define i32 @main() {
%1 = tail call i32 @init(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @test()
%3 = tail call i32 (...) @ok()
ret i32 %3
}
/* Variables and functions */
scalar_t__ malloc(unsigned long);
int strlen(char const *);
int /*<<< orphan*/ strncpy(char *, char const *, unsigned long);
char *strrchr(char const *, char);
char *get_path_to_file(const char *file) {
  char *file_name = strrchr(file, '/');
  unsigned long size = strlen(file) - strlen(file_name) + 1;
  char *file_path = (char *)malloc(size * sizeof(char));
  strncpy(file_path, file, size);
  return file_path;
}


x86 assembly (clang, -O0):
<get_path_to_file>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x2f,%esi
call   1050 <strrchr@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x24(%rbp),%eax
sub    %ecx,%eax
add    $0x1,%eax
cltq
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
shl    $0x0,%rdi
call   1060 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <strncpy@plt>
mov    -0x20(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_path_to_file>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r15
mov    $0x2f,%esi
call   1050 <strrchr@plt>
mov    %rax,%r14
mov    %r15,%rdi
call   1040 <strlen@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <strlen@plt>
sub    %eax,%ebp
add    $0x1,%ebp
movslq %ebp,%rbp
mov    %rbp,%rdi
call   1060 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
call   1030 <strncpy@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i8* @get_path_to_file(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i8*
store i8* %0, i8** %2
%6 = load i8*, i8** %2
%7 = call i8* @strrchr(i8* %6, i8 signext 47)
store i8* %7, i8** %3
%8 = load i8*, i8** %2
%9 = call i32 @strlen(i8* %8)
%10 = load i8*, i8** %3
%11 = call i32 @strlen(i8* %10)
%12 = sub nsw i32 %9, %11
%13 = add nsw i32 %12, 1
%14 = sext i32 %13 to i64
store i64 %14, i64* %4
%15 = load i64, i64* %4
%16 = mul i64 %15, 1
%17 = call i64 @malloc(i64 %16)
%18 = inttoptr i64 %17 to i8*
store i8* %18, i8** %5
%19 = load i8*, i8** %5
%20 = load i8*, i8** %2
%21 = load i64, i64* %4
%22 = call i32 @strncpy(i8* %19, i8* %20, i64 %21)
%23 = load i8*, i8** %5
ret i8* %23
}

LLVM IR (-O2):
define i8* @get_path_to_file(i8* %0) {
%2 = tail call i8* @strrchr(i8* dereferenceable(1) %0, i8 signext 47)
%3 = tail call i32 @strlen(i8* %0)
%4 = tail call i32 @strlen(i8* %2)
%5 = add i32 %3, 1
%6 = sub i32 %5, %4
%7 = sext i32 %6 to i64
%8 = tail call i64 @malloc(i64 %7)
%9 = inttoptr i64 %8 to i8*
%10 = tail call i32 @strncpy(i8* %9, i8* %0, i64 %7)
ret i8* %9
}
/* Variables and functions */
int accept(int, int /*<<< orphan*/ *, int /*<<< orphan*/);
int errno;
int os_accept_connection(int fd) {
  int new;
  new = accept(fd, NULL, 0);
  if (new < 0)
    return -errno;
  return new;
}


x86 assembly (clang, -O0):
<os_accept_connection>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   1030 <accept@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jge    1149 <os_accept_connection+0x39>
xor    %eax,%eax
mov    0x2ea1(%rip),%rcx
sub    (%rcx),%eax
mov    %eax,-0x4(%rbp)
jmp    114f <os_accept_connection+0x3f>
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<os_accept_connection>:
push   %rbx
xor    %ebx,%ebx
xor    %esi,%esi
xor    %edx,%edx
call   1030 <accept@plt>
mov    0x2ebd(%rip),%rcx
sub    (%rcx),%ebx
test   %eax,%eax
cmovs  %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@errno = global i32 0
define i32 @os_accept_connection(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
%5 = load i32, i32* %3
%6 = call i32 @accept(i32 %5, i32* null, i32 0)
store i32 %6, i32* %4
%7 = load i32, i32* %4
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %1
%10 = load i32, i32* @errno
%11 = sub nsw i32 0, %10
store i32 %11, i32* %2
br label %14
12: ; preds = %1
%13 = load i32, i32* %4
store i32 %13, i32* %2
br label %14
14: ; preds = %12, %9
%15 = load i32, i32* %2
ret i32 %15
}

LLVM IR (-O2):
@errno = global i32 0
define i32 @os_accept_connection(i32 %0) {
%2 = tail call i32 @accept(i32 %0, i32* null, i32 0)
%3 = icmp slt i32 %2, 0
%4 = load i32, i32* @errno
%5 = sub nsw i32 0, %4
%6 = select i1 %3, i32 %5, i32 %2
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ err(int, char *);
int /*<<< orphan*/ execvp(char *, char **);
int main(int argc, char *argv[]) {
  argv++;
  execvp(*argv, argv);
  err(1, "exec failed");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <execvp@plt>
mov    $0x1,%edi
lea    0xea9(%rip),%rsi
call   1030 <err@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x8(%rsi),%rdi
add    $0x8,%rsi
call   1040 <execvp@plt>
lea    0xecb(%rip),%rsi
mov    $0x1,%edi
call   1030 <err@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [12 x i8] c"exec failed\00"
define i32 @main(i32 %0, i8** %1) {
%3 = getelementptr inbounds i8*, i8** %1, i64 1
%4 = load i8*, i8** %3
%5 = tail call i32 @execvp(i8* %4, i8** %3)
%6 = tail call i32 @err(i32 1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
float avrElms(int nums[]) {
  int i, total = 0;
  float mean;
  for (i = 0; i < 10; i++) {
    total += nums[i];
  }
  mean = ((float)total / 10);
  return mean;
}


x86 assembly (clang, -O0):
<avrElms>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jge    113f <avrElms+0x3f>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
add    -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1116 <avrElms+0x16>
cvtsi2ssl -0x10(%rbp),%xmm0
movss  0xeb4(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<avrElms>:
movdqu 0x8(%rdi),%xmm0
movdqu 0x18(%rdi),%xmm1
paddd  %xmm0,%xmm1
pshufd $0xee,%xmm1,%xmm0
paddd  %xmm1,%xmm0
pshufd $0x55,%xmm0,%xmm1
paddd  %xmm0,%xmm1
movd   %xmm1,%eax
add    0x4(%rdi),%eax
add    (%rdi),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
divss  0xec8(%rip),%xmm0
ret

LLVM IR (-O0):
define float @avrElms(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32
%5 = alloca float
store i32* %0, i32** %2
store i32 0, i32* %4
store i32 0, i32* %3
br label %6
6: ; preds = %17, %1
%7 = load i32, i32* %3
%8 = icmp slt i32 %7, 10
br i1 %8, label %9, label %20
9: ; preds = %6
%10 = load i32*, i32** %2
%11 = load i32, i32* %3
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, i32* %10, i64 %12
%14 = load i32, i32* %13
%15 = load i32, i32* %4
%16 = add nsw i32 %15, %14
store i32 %16, i32* %4
br label %17
17: ; preds = %9
%18 = load i32, i32* %3
%19 = add nsw i32 %18, 1
store i32 %19, i32* %3
br label %6
20: ; preds = %6
%21 = load i32, i32* %4
%22 = sitofp i32 %21 to float
%23 = fdiv float %22, 1.000000e+01
store float %23, float* %5
%24 = load float, float* %5
ret float %24
}

LLVM IR (-O2):
define float @avrElms(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = getelementptr inbounds i32, i32* %0, i64 1
%4 = load i32, i32* %3
%5 = getelementptr inbounds i32, i32* %0, i64 2
%6 = bitcast i32* %5 to <8 x i32>*
%7 = load <8 x i32>, <8 x i32>* %6
%8 = call i32 @llvm.vector.reduce.add.v8i32(<8 x i32> %7)
%9 = add nsw i32 %8, %4
%10 = add nsw i32 %9, %2
%11 = sitofp i32 %10 to float
%12 = fdiv float %11, 1.000000e+01
ret float %12
}
/* Type definitions */
typedef char *strchr;

/* Variables and functions */
char *(index)(const char *string, int c) { return (strchr)(string, c); }


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

x86 assembly (clang, -O2):
<index>:
movslq %esi,%rax
ret

LLVM IR (-O0):
define i8* @index(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 i32, i32* %4
%7 = sext i32 %6 to i64
%8 = inttoptr i64 %7 to i8*
ret i8* %8
}

LLVM IR (-O2):
define i8* @index(i8* nocapture readnone %0, i32 %1) {
%3 = sext i32 %1 to i64
%4 = inttoptr i64 %3 to i8*
ret i8* %4
}
void adds(p, s) struct h8_opcode *p;
char *s;
{ printf("%s;\n", s); }


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

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

LLVM IR (-O0):
%struct.h8_opcode = type opaque
@.str = [5 x i8] c"%s;\0A\00"
define void @adds(%struct.h8_opcode* %0, i8* %1) {
%3 = alloca %struct.h8_opcode*
%4 = alloca i8*
store %struct.h8_opcode* %0, %struct.h8_opcode** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %5)
ret void
}

LLVM IR (-O2):
%struct.h8_opcode = type opaque
@.str = [5 x i8] c"%s;\0A\00"
define void @adds(%struct.h8_opcode* nocapture readnone %0, i8* %1) {
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %1)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/
__softboundmpx_propagate_metadata_shadow_stack_from(int, int /*<<< orphan*/);
char *fgets(char *, int, int /*<<< orphan*/ *);
__attribute__((__weak__, __always___)) char *
softboundmpx_fgets(char *s, int size, FILE *stream) {
  char *ret_ptr = fgets(s, size, stream);
  __softboundmpx_propagate_metadata_shadow_stack_from(1, 0);
  return ret_ptr;
}


x86 assembly (clang, -O0):
<softboundmpx_fgets>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rdx
call   1040 <fgets@plt>
mov    %rax,-0x20(%rbp)
mov    $0x1,%edi
xor    %esi,%esi
call   1030 <__softboundmpx_propagate_metadata_shadow_stack_from@plt>
mov    -0x20(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<softboundmpx_fgets>:
push   %rbx
call   1040 <fgets@plt>
mov    %rax,%rbx
mov    $0x1,%edi
xor    %esi,%esi
call   1030 <__softboundmpx_propagate_metadata_shadow_stack_from@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define weak i8* @softboundmpx_fgets(i8* %0, i32 %1, i32* %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32*
%7 = alloca i8*
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32* %2, i32** %6
%8 = load i8*, i8** %4
%9 = load i32, i32* %5
%10 = load i32*, i32** %6
%11 = call i8* @fgets(i8* %8, i32 %9, i32* %10)
store i8* %11, i8** %7
%12 = call i32 @__softboundmpx_propagate_metadata_shadow_stack_from(i32 1, i32 0)
%13 = load i8*, i8** %7
ret i8* %13
}

LLVM IR (-O2):
define weak i8* @softboundmpx_fgets(i8* %0, i32 %1, i32* %2) {
%4 = tail call i8* @fgets(i8* %0, i32 %1, i32* %2)
%5 = tail call i32 @__softboundmpx_propagate_metadata_shadow_stack_from(i32 1, i32 0)
ret i8* %4
}
int isminus(char c) { return c == '-'; }


x86 assembly (clang, -O0):
<isminus>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0x2d,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isminus>:
xor    %eax,%eax
cmp    $0x2d,%dil
sete   %al
ret

LLVM IR (-O0):
define i32 @isminus(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = icmp eq i32 %4, 45
%6 = zext i1 %5 to i32
ret i32 %6
}

LLVM IR (-O2):
define i32 @isminus(i8 signext %0) {
%2 = icmp eq i8 %0, 45
%3 = zext i1 %2 to i32
ret i32 %3
}
/* Variables and functions */
int malloc_size(void *);
int mallocSize(void *p) { return malloc_size(p); }


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

x86 assembly (clang, -O2):
<mallocSize>:
jmp    1030 <malloc_size@plt>

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

LLVM IR (-O2):
define i32 @mallocSize(i8* %0) {
%2 = tail call i32 @malloc_size(i8* %0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ fatal_error(int /*<<< orphan*/, char *, char *, char *, int);
int gmx_rx_probe(int nodeid) {
  fatal_error(0, "Routine %s called in %s, %d", "gmx_rx_probe",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/Chadi-akel/cere/refs/heads/master/"
              "tests/test_07/network.c",
              148);
  return 0;
}


x86 assembly (clang, -O0):
<gmx_rx_probe>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
xor    %edi,%edi
lea    0xedc(%rip),%rsi
lea    0xef1(%rip),%rdx
lea    0xef7(%rip),%rcx
mov    $0x94,%r8d
call   1030 <fatal_error@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gmx_rx_probe>:
push   %rax
lea    0xee8(%rip),%rsi
lea    0xefd(%rip),%rdx
lea    0xf03(%rip),%rcx
xor    %edi,%edi
mov    $0x94,%r8d
call   1030 <fatal_error@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [28 x i8] c"Routine %s called in %s, %d\00"
@.str.1 = [13 x i8] c"gmx_rx_probe\00"
@.str.2 = [148 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Chadi-akel/cere/refs/heads/master/tests/test_07/network.c\00"
define i32 @gmx_rx_probe(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @fatal_error(i32 0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 148)
ret i32 0
}

LLVM IR (-O2):
@.str = [28 x i8] c"Routine %s called in %s, %d\00"
@.str.1 = [13 x i8] c"gmx_rx_probe\00"
@.str.2 = [148 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Chadi-akel/cere/refs/heads/master/tests/test_07/network.c\00"
define i32 @gmx_rx_probe(i32 %0) {
%2 = tail call i32 @fatal_error(i32 0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str.2, i64 0, i64 0), i32 148)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int n;
  int b;
  int t;
  scanf("%d", &n);
  b = n * n;
  t = n * n * n;
  printf("%d\n", b);
  printf("%d", t);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
imul   -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
imul   -0x8(%rbp),%eax
imul   -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%esi
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%esi
lea    0xe90(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
lea    0xed6(%rip),%rbx
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    0x4(%rsp),%ebp
mov    %ebp,%esi
imul   %ebp,%esi
imul   %esi,%ebp
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%6 = load i32, i32* %2
%7 = load i32, i32* %2
%8 = mul nsw i32 %6, %7
store i32 %8, i32* %3
%9 = load i32, i32* %2
%10 = load i32, i32* %2
%11 = mul nsw i32 %9, %10
%12 = load i32, i32* %2
%13 = mul nsw i32 %11, %12
store i32 %13, i32* %4
%14 = load i32, i32* %3
%15 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %14)
%16 = load i32, i32* %4
%17 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %16)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = mul nsw i32 %4, %4
%6 = mul nsw i32 %5, %4
%7 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %5)
%8 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %6)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int /*<<< orphan*/, char *, int, char *);
int /*<<< orphan*/ isgraph(int);
void t_isgraph_0x50() {
  Assert_real((isgraph(80)),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isgraph.c",
              405, ("isgraph should be 1 for P"));
}


x86 assembly (clang, -O0):
<t_isgraph_0x50>:
push   %rbp
mov    %rsp,%rbp
mov    $0x50,%edi
call   1040 <isgraph@plt>
mov    %eax,%edi
lea    0xec9(%rip),%rsi
mov    $0x195,%edx
lea    0xf65(%rip),%rcx
call   1030 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_isgraph_0x50>:
push   %rax
mov    $0x50,%edi
call   1040 <isgraph@plt>
lea    0xece(%rip),%rsi
lea    0xf6f(%rip),%rcx
mov    %eax,%edi
mov    $0x195,%edx
pop    %rax
jmp    1030 <Assert_real@plt>

LLVM IR (-O0):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isgraph.c\00"
@.str.1 = [26 x i8] c"isgraph should be 1 for P\00"
define void @t_isgraph_0x50() {
%1 = call i32 @isgraph(i32 80)
%2 = call i32 @Assert_real(i32 %1, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 405, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isgraph.c\00"
@.str.1 = [26 x i8] c"isgraph should be 1 for P\00"
define void @t_isgraph_0x50() {
%1 = tail call i32 @isgraph(i32 80)
%2 = tail call i32 @Assert_real(i32 %1, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 405, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
scalar_t__ islower(int);
int toupper(int c) {
  if (islower(c))
    c &= ~0x20;
  return c;
}


x86 assembly (clang, -O0):
<toupper>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <islower@plt>
cmp    $0x0,%rax
je     1136 <toupper+0x26>
mov    -0x4(%rbp),%eax
and    $0xffffffdf,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<toupper>:
push   %rbx
mov    %edi,%ebx
call   1030 <islower@plt>
mov    %ebx,%ecx
and    $0xffffffdf,%ecx
test   %rax,%rax
cmove  %ebx,%ecx
mov    %ecx,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @toupper(i32 %0) {
%2 = tail call i64 @islower(i32 %0)
%3 = icmp eq i64 %2, 0
%4 = and i32 %0, -33
%5 = select i1 %3, i32 %0, i32 %4
ret i32 %5
}
/* Variables and functions */
int printf(char *, char *, char *);
int main(int argc, char **argv) {
  return printf(
      "%s\n\n\t\t\t\t%s\n",
      "\n                  ___\n           __    /__/\n      _  _ ||   |/    _ "
      "       __  _  _\n    |/ \\/_\\||_  ||__ /_\\   _  / _\\/_\\/_\\\n    || "
      "||_ ||_\\ ||_/|/   __\\\\ || || ||_\n    || ||_\\||   ||  || //  || || "
      "|| ||_\\\n    || ||_ |\\___||  || \\\\  || || || ||_\n    \\| "
      "|\\_/||__/\\|  \\|  \\\\//\\\\|/ |/ |\\_/\n",
      "netframe");
}


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    0xed3(%rip),%rdi
lea    0xed8(%rip),%rsi
lea    0xff2(%rip),%rdx
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
lea    0xee9(%rip),%rdi
lea    0xeee(%rip),%rsi
lea    0x1008(%rip),%rdx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"%s\0A\0A\09\09\09\09%s\0A\00"
@.str.1 = [289 x i8] c"\0A ___\0A __ /__/\0A _ _ || |/ _ __ _ _\0A |/ \\/_\\||_ ||__ /_\\ _ / _\\/_\\/_\\\0A || ||_ ||_\\ ||_/|/ __\\\\ || || ||_\0A || ||_\\|| || || // || || || ||_\\\0A || ||_ |\\___|| || \\\\ || || || ||_\0A \\| |\\_/||__/\\| \\| \\\\//\\\\|/ |/ |\\_/\0A\00"
@.str.2 = [9 x i8] c"netframe\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 ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([289 x i8], [289 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
ret i32 %6
}

LLVM IR (-O2):
@.str = [12 x i8] c"%s\0A\0A\09\09\09\09%s\0A\00"
@.str.1 = [289 x i8] c"\0A ___\0A __ /__/\0A _ _ || |/ _ __ _ _\0A |/ \\/_\\||_ ||__ /_\\ _ / _\\/_\\/_\\\0A || ||_ ||_\\ ||_/|/ __\\\\ || || ||_\0A || ||_\\|| || || // || || || ||_\\\0A || ||_ |\\___|| || \\\\ || || || ||_\0A \\| |\\_/||__/\\| \\| \\\\//\\\\|/ |/ |\\_/\0A\00"
@.str.2 = [9 x i8] c"netframe\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([289 x i8], [289 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
ret i32 %3
}
/* Type definitions */
typedef int uint16_t;

/* Variables and functions */
uint16_t reorder16(uint16_t n) {
  return ((n & 0xff) << 8) | ((n & 0xff00) >> 8);
}


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

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

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

LLVM IR (-O2):
define i32 @reorder16(i32 %0) {
%2 = trunc i32 %0 to i16
%3 = tail call i16 @llvm.bswap.i16(i16 %2)
%4 = zext i16 %3 to i32
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ __CPROVER_assume(int);
int /*<<< orphan*/ assert(int);
int g(int x) {
  float y, z;
  __CPROVER_assume(x >= -10 && x <= 10);
  y = x * x - 4.f;
  assert(y != 0.f);
  z = 1.f / y;
  return 0;
}


x86 assembly (clang, -O0):
<g>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
xor    %eax,%eax
cmpl   $0xfffffff6,-0x4(%rbp)
mov    %al,-0xd(%rbp)
jl     1144 <g+0x24>
cmpl   $0xa,-0x4(%rbp)
setle  %al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__CPROVER_assume@plt>
mov    -0x4(%rbp),%eax
imul   -0x4(%rbp),%eax
cvtsi2ss %eax,%xmm0
movss  0xea0(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
setne  %al
setp   %cl
or     %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
movss  0xe6e(%rip),%xmm0
divss  -0x8(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<g>:
push   %rbx
mov    %edi,%ebx
lea    0xa(%rbx),%eax
xor    %edi,%edi
cmp    $0x15,%eax
setb   %dil
call   1030 <__CPROVER_assume@plt>
imul   %ebx,%ebx
cvtsi2ss %ebx,%xmm0
addss  0xebd(%rip),%xmm0
xorps  %xmm1,%xmm1
cmpneqss %xmm0,%xmm1
movd   %xmm1,%edi
and    $0x1,%edi
call   1040 <assert@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @g(i32 %0) {
%2 = alloca i32
%3 = alloca float
%4 = alloca float
store i32 %0, i32* %2
%5 = load i32, i32* %2
%6 = icmp sge i32 %5, -10
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, i32* %2
%9 = icmp sle i32 %8, 10
br label %10
10: ; preds = %7, %1
%11 = phi i1 [ false, %1 ], [ %9, %7 ]
%12 = zext i1 %11 to i32
%13 = call i32 @__CPROVER_assume(i32 %12)
%14 = load i32, i32* %2
%15 = load i32, i32* %2
%16 = mul nsw i32 %14, %15
%17 = sitofp i32 %16 to float
%18 = fsub float %17, 4.000000e+00
store float %18, float* %3
%19 = load float, float* %3
%20 = fcmp une float %19, 0.000000e+00
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 %21)
%23 = load float, float* %3
%24 = fdiv float 1.000000e+00, %23
store float %24, float* %4
ret i32 0
}

LLVM IR (-O2):
define i32 @g(i32 %0) {
%2 = add i32 %0, 10
%3 = icmp ult i32 %2, 21
%4 = zext i1 %3 to i32
%5 = tail call i32 @__CPROVER_assume(i32 %4)
%6 = mul nsw i32 %0, %0
%7 = sitofp i32 %6 to float
%8 = fadd float %7, -4.000000e+00
%9 = fcmp une float %8, 0.000000e+00
%10 = zext i1 %9 to i32
%11 = tail call i32 @assert(i32 %10)
ret i32 0
}
void end_line() {}


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

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

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

LLVM IR (-O2):
define void @end_line() {
ret void
}
int fixed_point_multiply_mixed(int x, int n) { return x * n; }


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

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

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

LLVM IR (-O2):
define i32 @fixed_point_multiply_mixed(i32 %0, i32 %1) {
%3 = mul nsw i32 %1, %0
ret i32 %3
}
struct s10 {
  union {};
  float f;
} f10(void) {
  while (1) {
  }
}


x86 assembly (clang, -O0):
<f10>:
push   %rbp
mov    %rsp,%rbp
jmp    1109 <f10+0x9>
jmp    1109 <f10+0x9>

x86 assembly (clang, -O2):
<f10>:
jmp    1100 <f10>

LLVM IR (-O0):
define float @f10() {
br label %1
1: ; preds = %0, %1
br label %1
}

LLVM IR (-O2):
define float @f10() {
br label %1
1: ; preds = %0, %1
br label %1
}
double vde_chain_nm4_sq(double x) { return x * x; }


x86 assembly (clang, -O0):
<vde_chain_nm4_sq>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<vde_chain_nm4_sq>:
mulsd  %xmm0,%xmm0
ret

LLVM IR (-O0):
define double @vde_chain_nm4_sq(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = load double, double* %2
%5 = fmul double %3, %4
ret double %5
}

LLVM IR (-O2):
define double @vde_chain_nm4_sq(double %0) {
%2 = fmul double %0, %0
ret double %2
}
int less_than(const void *a, const void *b) {
  return *(double *)a < *(double *)b;
}


x86 assembly (clang, -O0):
<less_than>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
ucomisd %xmm1,%xmm0
seta   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<less_than>:
movsd  (%rsi),%xmm0
xor    %eax,%eax
ucomisd (%rdi),%xmm0
seta   %al
ret

LLVM IR (-O0):
define i32 @less_than(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = bitcast i8* %5 to double*
%7 = load double, double* %6
%8 = load i8*, i8** %4
%9 = bitcast i8* %8 to double*
%10 = load double, double* %9
%11 = fcmp olt double %7, %10
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
define i32 @less_than(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to double*
%4 = load double, double* %3
%5 = bitcast i8* %1 to double*
%6 = load double, double* %5
%7 = fcmp olt double %4, %6
%8 = zext i1 %7 to i32
ret i32 %8
}
void gtk_drag_source_get_target_list() {}


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

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

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

LLVM IR (-O2):
define void @gtk_drag_source_get_target_list() {
ret void
}
/* Variables and functions */
int sqrt(int);
float Circ__easeIn(float t, float b, float c, float d, float p0, float p1) {
  return -c * (sqrt(1 - (t /= d) * t) - 1) + b;
}


x86 assembly (clang, -O0):
<Circ__easeIn>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
movss  %xmm4,-0x14(%rbp)
movss  %xmm5,-0x18(%rbp)
movss  -0xc(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x10(%rbp),%xmm1
movss  -0x4(%rbp),%xmm0
divss  %xmm1,%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm1
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm1,%xmm0
movss  0xe82(%rip),%xmm1
addss  %xmm1,%xmm0
cvttss2si %xmm0,%edi
call   1030 <sqrt@plt>
movss  -0x1c(%rbp),%xmm0
sub    $0x1,%eax
cvtsi2ss %eax,%xmm2
movss  -0x8(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Circ__easeIn>:
push   %rax
movss  %xmm2,(%rsp)
movss  %xmm1,0x4(%rsp)
divss  %xmm3,%xmm0
mulss  %xmm0,%xmm0
movss  0xed4(%rip),%xmm1
subss  %xmm0,%xmm1
cvttss2si %xmm1,%edi
call   1030 <sqrt@plt>
add    $0xffffffff,%eax
xorps  %xmm1,%xmm1
cvtsi2ss %eax,%xmm1
mulss  (%rsp),%xmm1
movss  0x4(%rsp),%xmm0
subss  %xmm1,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @Circ__easeIn(float %0, float %1, float %2, float %3, float %4, float %5) {
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
store float %0, float* %7
store float %1, float* %8
store float %2, float* %9
store float %3, float* %10
store float %4, float* %11
store float %5, float* %12
%13 = load float, float* %9
%14 = fneg float %13
%15 = load float, float* %10
%16 = load float, float* %7
%17 = fdiv float %16, %15
store float %17, float* %7
%18 = load float, float* %7
%19 = fneg float %17
%20 = call float @llvm.fmuladd.f32(float %19, float %18, float 1.000000e+00)
%21 = fptosi float %20 to i32
%22 = call i32 @sqrt(i32 %21)
%23 = sub nsw i32 %22, 1
%24 = sitofp i32 %23 to float
%25 = load float, float* %8
%26 = call float @llvm.fmuladd.f32(float %14, float %24, float %25)
ret float %26
}

LLVM IR (-O2):
define float @Circ__easeIn(float %0, float %1, float %2, float %3, float %4, float %5) {
%7 = fneg float %2
%8 = fdiv float %0, %3
%9 = fneg float %8
%10 = tail call float @llvm.fmuladd.f32(float %9, float %8, float 1.000000e+00)
%11 = fptosi float %10 to i32
%12 = tail call i32 @sqrt(i32 %11)
%13 = add nsw i32 %12, -1
%14 = sitofp i32 %13 to float
%15 = tail call float @llvm.fmuladd.f32(float %7, float %14, float %1)
ret float %15
}
int test_imm_DDint64_highword_mem(long long *val) {
  return ((*val >> 32) & (0xDD << 0)) ? -20 : -40;
}


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

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

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

LLVM IR (-O2):
define i32 @test_imm_DDint64_highword_mem(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = and i64 %2, 949187772416
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Type definitions */
struct drm_device {
  int dummy;
};

/* Variables and functions */
scalar_t__ drm_alloc_resource(struct drm_device *, unsigned int);
unsigned long drm_get_resource_len(struct drm_device *dev,
                                   unsigned int resource) {
  if (drm_alloc_resource(dev, resource) != 0)
    return 0;
}


x86 assembly (clang, -O0):
<drm_get_resource_len>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1030 <drm_alloc_resource@plt>
cmp    $0x0,%rax
je     113d <drm_get_resource_len+0x2d>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.drm_device = type { i32 }
define i64 @drm_get_resource_len(%struct.drm_device* %0, i32 %1) {
%3 = alloca i64
%4 = alloca %struct.drm_device*
%5 = alloca i32
store %struct.drm_device* %0, %struct.drm_device** %4
store i32 %1, i32* %5
%6 = load %struct.drm_device*, %struct.drm_device** %4
%7 = load i32, i32* %5
%8 = call i64 @drm_alloc_resource(%struct.drm_device* %6, i32 %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %2
store i64 0, i64* %3
br label %11
11: ; preds = %10, %2
%12 = load i64, i64* %3
ret i64 %12
}

LLVM IR (-O2):
%struct.drm_device = type { i32 }
define i64 @drm_get_resource_len(%struct.drm_device* %0, i32 %1) {
%3 = tail call i64 @drm_alloc_resource(%struct.drm_device* %0, i32 %1)
ret i64 0
}