xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void print_bus_labels() {
  printf("Nr boczny | Linia | PESEL kierowcy | Nazwisko i imie kierowcy |\n");
}


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

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

LLVM IR (-O0):
@.str = [65 x i8] c"Nr boczny | Linia | PESEL kierowcy | Nazwisko i imie kierowcy |\0A\00"
define void @print_bus_labels() {
%1 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [64 x i8] c"Nr boczny | Linia | PESEL kierowcy | Nazwisko i imie kierowcy |\00"
define void @print_bus_labels() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int __isinf(long double);
int __isinfl(long double a1) { return __isinf(a1); }


x86 assembly (clang, -O0):
<__isinfl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fldt   -0x10(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1030 <__isinf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__isinfl>:
jmp    1030 <__isinf@plt>

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

LLVM IR (-O2):
define i32 @__isinfl(x86_fp80 %0) {
%2 = tail call i32 @__isinf(x86_fp80 %0)
ret i32 %2
}
/* Type definitions */
typedef int /*<<< orphan*/ sigset_t;

/* Variables and functions */
int /*<<< orphan*/ SIGSEGV;
int /*<<< orphan*/ SIGTRAP;
int /*<<< orphan*/ sigdelset(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ sigfillset(int /*<<< orphan*/ *);
int /*<<< orphan*/ sigprocmask(int, int /*<<< orphan*/ *, int /*<<< orphan*/ *);
void block_signals(int how) {
  sigset_t sigs;
  sigfillset(&sigs);
  sigdelset(&sigs, SIGTRAP);
  sigdelset(&sigs, SIGSEGV);
  sigprocmask(how, &sigs, (sigset_t *)0);
}


x86 assembly (clang, -O0):
<block_signals>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    -0x8(%rbp),%rdi
call   1040 <sigfillset@plt>
mov    0x2e8d(%rip),%rax
mov    (%rax),%esi
lea    -0x8(%rbp),%rdi
call   1050 <sigdelset@plt>
mov    0x2e8b(%rip),%rax
mov    (%rax),%esi
lea    -0x8(%rbp),%rdi
call   1050 <sigdelset@plt>
mov    -0x4(%rbp),%edi
lea    -0x8(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1030 <sigprocmask@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<block_signals>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebp
lea    0x4(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <sigfillset@plt>
mov    0x2e8f(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1050 <sigdelset@plt>
mov    0x2e8e(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1050 <sigdelset@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
xor    %edx,%edx
call   1030 <sigprocmask@plt>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@SIGTRAP = global i32 0
@SIGSEGV = global i32 0
define void @block_signals(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = call i32 @sigfillset(i32* %3)
%5 = load i32, i32* @SIGTRAP
%6 = call i32 @sigdelset(i32* %3, i32 %5)
%7 = load i32, i32* @SIGSEGV
%8 = call i32 @sigdelset(i32* %3, i32 %7)
%9 = load i32, i32* %2
%10 = call i32 @sigprocmask(i32 %9, i32* %3, i32* null)
ret void
}

LLVM IR (-O2):
@SIGTRAP = global i32 0
@SIGSEGV = global i32 0
define void @block_signals(i32 %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
%4 = call i32 @sigfillset(i32* %2)
%5 = load i32, i32* @SIGTRAP
%6 = call i32 @sigdelset(i32* %2, i32 %5)
%7 = load i32, i32* @SIGSEGV
%8 = call i32 @sigdelset(i32* %2, i32 %7)
%9 = call i32 @sigprocmask(i32 %0, i32* %2, i32* null)
ret void
}
int mystrcmp(char *a, char *b, int len) {
  int i;
  for (i = 0; i < len; i++) {
    if (a[i] != b[i]) {
      return 1;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<mystrcmp>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1161 <mystrcmp+0x61>
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
mov    -0x18(%rbp),%rcx
movslq -0x20(%rbp),%rdx
movsbl (%rcx,%rdx,1),%ecx
cmp    %ecx,%eax
je     114e <mystrcmp+0x4e>
movl   $0x1,-0x4(%rbp)
jmp    1168 <mystrcmp+0x68>
jmp    1153 <mystrcmp+0x53>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1116 <mystrcmp+0x16>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<mystrcmp>:
test   %edx,%edx
jle    1122 <mystrcmp+0x22>
mov    %edx,%eax
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
movzbl (%rdi,%rcx,1),%edx
cmp    (%rsi,%rcx,1),%dl
jne    1125 <mystrcmp+0x25>
add    $0x1,%rcx
cmp    %rcx,%rax
jne    1110 <mystrcmp+0x10>
xor    %eax,%eax
ret
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @mystrcmp(i8* nocapture %0, i8* nocapture %1, i32 %2) {
%4 = icmp sgt i32 %2, 0
br i1 %4, label %5, label %17
5: ; preds = %3
%6 = zext i32 %2 to i64
br label %9
7: ; preds = %9
%8 = icmp eq i64 %16, %6
br i1 %8, label %17, label %9
9: ; preds = %5, %7
%10 = phi i64 [ 0, %5 ], [ %16, %7 ]
%11 = getelementptr inbounds i8, i8* %0, i64 %10
%12 = load i8, i8* %11
%13 = getelementptr inbounds i8, i8* %1, i64 %10
%14 = load i8, i8* %13
%15 = icmp eq i8 %12, %14
%16 = add nuw nsw i64 %10, 1
br i1 %15, label %7, label %17
17: ; preds = %9, %7, %3
%18 = phi i32 [ 0, %3 ], [ 0, %7 ], [ 1, %9 ]
ret i32 %18
}
int f3(int t, int v) {
  int a = t + 1;
  int b = a * v;
  return b - v;
}


x86 assembly (clang, -O0):
<f3>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
imul   -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
sub    -0x8(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @f3(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%7 = load i32, i32* %3
%8 = add nsw i32 %7, 1
store i32 %8, i32* %5
%9 = load i32, i32* %5
%10 = load i32, i32* %4
%11 = mul nsw i32 %9, %10
store i32 %11, i32* %6
%12 = load i32, i32* %6
%13 = load i32, i32* %4
%14 = sub nsw i32 %12, %13
ret i32 %14
}

LLVM IR (-O2):
define i32 @f3(i32 %0, i32 %1) {
%3 = mul i32 %1, %0
ret i32 %3
}
/* Type definitions */
typedef int int32_t;

/* Variables and functions */
int n32(const void *s) { return *(int32_t *)s; }


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

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

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

LLVM IR (-O2):
define i32 @n32(i8* nocapture %0) {
%2 = bitcast i8* %0 to i32*
%3 = load i32, i32* %2
ret i32 %3
}
/* Variables and functions */
intptr_t zig_addw_isize(intptr_t lhs, intptr_t rhs, intptr_t min,
                        intptr_t max) {
  return (intptr_t)(((uintptr_t)lhs) + ((uintptr_t)rhs));
}


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

x86 assembly (clang, -O2):
<zig_addw_isize>:
lea    (%rdi,%rsi,1),%rax
ret

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

LLVM IR (-O2):
define i64 @zig_addw_isize(i64 %0, i64 %1, i64 %2, i64 %3) {
%5 = add i64 %1, %0
ret i64 %5
}
/* Variables and functions */
int /*<<< orphan*/ Christmas_Tree(int);
int main() {
  int rows;
  rows = 4;
  Christmas_Tree(rows);
  rows = 7;
  Christmas_Tree(rows);
  rows = 11;
  Christmas_Tree(rows);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x4,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <Christmas_Tree@plt>
movl   $0x7,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <Christmas_Tree@plt>
movl   $0xb,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <Christmas_Tree@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x4,%edi
call   1030 <Christmas_Tree@plt>
mov    $0x7,%edi
call   1030 <Christmas_Tree@plt>
mov    $0xb,%edi
call   1030 <Christmas_Tree@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @Christmas_Tree(i32 4)
%2 = tail call i32 @Christmas_Tree(i32 7)
%3 = tail call i32 @Christmas_Tree(i32 11)
ret i32 0
}
/* Variables and functions */
int getpagesize();
int /*<<< orphan*/ printf(char *, int);
int main(void) {
  printf("%d\n", getpagesize());
  return 0;
}


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

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

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = tail call i32 (...) @getpagesize()
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 0
}
void wlan_hdd_tdls_implicit_send_discovery_request(void *pHddTdlsCtx) {}


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

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

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

LLVM IR (-O2):
define void @wlan_hdd_tdls_implicit_send_discovery_request(i8* nocapture %0) {
ret void
}
int RANK_FLIP(int y) { return 15 - y; }


x86 assembly (clang, -O0):
<RANK_FLIP>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    $0xf,%eax
sub    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<RANK_FLIP>:
mov    $0xf,%eax
sub    %edi,%eax
ret

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

LLVM IR (-O2):
define i32 @RANK_FLIP(i32 %0) {
%2 = sub nsw i32 15, %0
ret i32 %2
}
void opcode_d3() {}


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

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

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

LLVM IR (-O2):
define void @opcode_d3() {
ret void
}
/* Variables and functions */
int count_zero(unsigned long);
unsigned long fac(int);
int /*<<< orphan*/ printf(char *, int, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int num;
  long unsigned int temp;
  scanf("%d", &num);
  temp = fac(num);
  printf("%d!=%ld\n", num, temp);
  printf("%d\n", count_zero(temp));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1060 <scanf@plt>
mov    -0x8(%rbp),%edi
call   1040 <fac@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%rdx
lea    0xe8a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1030 <count_zero@plt>
mov    %eax,%esi
lea    0xe7a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xeb4(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1060 <scanf@plt>
mov    0xc(%rsp),%edi
call   1040 <fac@plt>
mov    %rax,%rbx
mov    0xc(%rsp),%esi
lea    0xe96(%rip),%rdi
mov    %rax,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1030 <count_zero@plt>
lea    0xe86(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [9 x i8] c"%d!=%ld\0A\00"
@.str.2 = [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 = call i64 @fac(i32 %4)
%6 = load i32, i32* %1
%7 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %6, i64 %5)
%8 = call i32 @count_zero(i64 %5)
%9 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %8)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ __NR_tgkill;
int syscall(int /*<<< orphan*/, int, int, int);
int tgkill(int tgid, int tid, int sig) {
  return syscall(__NR_tgkill, tgid, tid, sig);
}


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

x86 assembly (clang, -O2):
<tgkill>:
mov    %edx,%ecx
mov    %esi,%edx
mov    %edi,%esi
mov    0x2ec3(%rip),%rax
mov    (%rax),%edi
jmp    1030 <syscall@plt>

LLVM IR (-O0):
@__NR_tgkill = global i32 0
define i32 @tgkill(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* @__NR_tgkill
%8 = load i32, i32* %4
%9 = load i32, i32* %5
%10 = load i32, i32* %6
%11 = call i32 @syscall(i32 %7, i32 %8, i32 %9, i32 %10)
ret i32 %11
}

LLVM IR (-O2):
@__NR_tgkill = global i32 0
define i32 @tgkill(i32 %0, i32 %1, i32 %2) {
%4 = load i32, i32* @__NR_tgkill
%5 = tail call i32 @syscall(i32 %4, i32 %0, i32 %1, i32 %2)
ret i32 %5
}
/* Variables and functions */
scalar_t__ FLT_EPSILON;
scalar_t__ fabsf(float);
bool floats_differ_enough(float a, float b) {
  return fabsf(a - b) >= FLT_EPSILON;
}


x86 assembly (clang, -O0):
<floats_differ_enough>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
subss  -0x8(%rbp),%xmm0
call   1030 <fabsf@plt>
mov    0x2ea8(%rip),%rcx
cmp    (%rcx),%rax
setge  %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<floats_differ_enough>:
push   %rax
subss  %xmm1,%xmm0
call   1030 <fabsf@plt>
mov    0x2ebf(%rip),%rdx
xor    %ecx,%ecx
cmp    (%rdx),%rax
setge  %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
@FLT_EPSILON = global i64 0
define i32 @floats_differ_enough(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 = fsub float %5, %6
%8 = call i64 @fabsf(float %7)
%9 = load i64, i64* @FLT_EPSILON
%10 = icmp sge i64 %8, %9
%11 = zext i1 %10 to i32
ret i32 %11
}

LLVM IR (-O2):
@FLT_EPSILON = global i64 0
define i32 @floats_differ_enough(float %0, float %1) {
%3 = fsub float %0, %1
%4 = tail call i64 @fabsf(float %3)
%5 = load i64, i64* @FLT_EPSILON
%6 = icmp sge i64 %4, %5
%7 = zext i1 %6 to i32
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ _X3D_makeShortCommand(unsigned char);
void X3D_shutdown() { _X3D_makeShortCommand('U'); }


x86 assembly (clang, -O0):
<X3D_shutdown>:
push   %rbp
mov    %rsp,%rbp
mov    $0x55,%edi
call   1030 <_X3D_makeShortCommand@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<X3D_shutdown>:
mov    $0x55,%edi
jmp    1030 <_X3D_makeShortCommand@plt>

LLVM IR (-O0):
define void @X3D_shutdown() {
%1 = call i32 @_X3D_makeShortCommand(i8 zeroext 85)
ret void
}

LLVM IR (-O2):
define void @X3D_shutdown() {
%1 = tail call i32 @_X3D_makeShortCommand(i8 zeroext 85)
ret void
}
/* Variables and functions */
double sqrt(double);
double distance(double x, double y, double z, double xc, double yc, double zc) {
  return sqrt((x - xc) * (x - xc) + (y - yc) * (y - yc) + (z - zc) * (z - zc));
}


x86 assembly (clang, -O0):
<distance>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm1
subsd  -0x20(%rbp),%xmm1
movsd  -0x8(%rbp),%xmm2
subsd  -0x20(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm3
subsd  -0x28(%rbp),%xmm3
mulsd  %xmm3,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
subsd  -0x30(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <sqrt@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<distance>:
subsd  %xmm3,%xmm0
subsd  %xmm4,%xmm1
mulsd  %xmm1,%xmm1
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
subsd  %xmm5,%xmm2
mulsd  %xmm2,%xmm2
addsd  %xmm0,%xmm2
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm2
jb     1142 <distance+0x32>
xorps  %xmm0,%xmm0
sqrtsd %xmm2,%xmm0
ret
movapd %xmm2,%xmm0
jmp    1030 <sqrt@plt>

LLVM IR (-O0):
define double @distance(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
store double %0, double* %7
store double %1, double* %8
store double %2, double* %9
store double %3, double* %10
store double %4, double* %11
store double %5, double* %12
%13 = load double, double* %7
%14 = load double, double* %10
%15 = fsub double %13, %14
%16 = load double, double* %7
%17 = load double, double* %10
%18 = fsub double %16, %17
%19 = load double, double* %8
%20 = load double, double* %11
%21 = fsub double %19, %20
%22 = load double, double* %8
%23 = load double, double* %11
%24 = fsub double %22, %23
%25 = fmul double %21, %24
%26 = call double @llvm.fmuladd.f64(double %15, double %18, double %25)
%27 = load double, double* %9
%28 = load double, double* %12
%29 = fsub double %27, %28
%30 = load double, double* %9
%31 = load double, double* %12
%32 = fsub double %30, %31
%33 = call double @llvm.fmuladd.f64(double %29, double %32, double %26)
%34 = call double @sqrt(double %33)
ret double %34
}

LLVM IR (-O2):
define double @distance(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = fsub double %0, %3
%8 = fsub double %1, %4
%9 = fmul double %8, %8
%10 = tail call double @llvm.fmuladd.f64(double %7, double %7, double %9)
%11 = fsub double %2, %5
%12 = tail call double @llvm.fmuladd.f64(double %11, double %11, double %10)
%13 = tail call double @sqrt(double %12)
ret double %13
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
void cleanup_charp(char **__p) {
  if (*__p)
    free(*__p);
}


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

x86 assembly (clang, -O2):
<cleanup_charp>:
mov    (%rdi),%rdi
test   %rdi,%rdi
je     111d <cleanup_charp+0xd>
jmp    1030 <free@plt>
ret

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

LLVM IR (-O2):
define void @cleanup_charp(i8** nocapture %0) {
%2 = load i8*, i8** %0
%3 = icmp eq i8* %2, null
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @free(i8* %2)
br label %6
6: ; preds = %4, %1
ret void
}
int myStrlen(char a[]) {
  int len = 0;
  while (a[len] != 0)
    len++;
  return len;
}


x86 assembly (clang, -O0):
<myStrlen>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     1132 <myStrlen+0x32>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <myStrlen+0xf>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<myStrlen>:
mov    $0xffffffff,%eax
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%eax
cmpb   $0x0,(%rdi)
lea    0x1(%rdi),%rdi
jne    1110 <myStrlen+0x10>
ret

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

LLVM IR (-O2):
define i32 @myStrlen(i8* nocapture %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i64 [ %7, %2 ], [ 0, %1 ]
%4 = getelementptr inbounds i8, i8* %0, i64 %3
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 0
%7 = add nuw i64 %3, 1
br i1 %6, label %8, label %2
8: ; preds = %2
%9 = trunc i64 %3 to i32
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ memcpy(char *, char const *, size_t);
size_t strlen(char const *);
size_t strlcpy(char *dest, const char *src, size_t count) {
  size_t ret;
  size_t len;
  ret = strlen(src);
  len = ret >= count ? count - 1 : ret;
  memcpy(dest, src, len);
  dest[len] = '\0';
  return ret;
}


x86 assembly (clang, -O0):
<strlcpy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x18(%rbp),%rax
jb     1160 <strlcpy+0x40>
mov    -0x18(%rbp),%rax
sub    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1168 <strlcpy+0x48>
mov    -0x20(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1040 <memcpy@plt>
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strlcpy>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rdx,%r12
mov    %rsi,%r14
mov    %rdi,%r15
mov    %rsi,%rdi
call   1030 <strlen@plt>
mov    %rax,%r13
lea    -0x1(%r12),%rbx
cmp    %r12,%rax
cmovb  %rax,%rbx
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1040 <memcpy@plt>
movb   $0x0,(%r15,%rbx,1)
mov    %r13,%rax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i64 @strlcpy(i8* %0, i8* %1, i64 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
store i8* %0, i8** %4
store i8* %1, i8** %5
store i64 %2, i64* %6
%9 = load i8*, i8** %5
%10 = call i64 @strlen(i8* %9)
store i64 %10, i64* %7
%11 = load i64, i64* %7
%12 = load i64, i64* %6
%13 = icmp uge i64 %11, %12
br i1 %13, label %14, label %17
14: ; preds = %3
%15 = load i64, i64* %6
%16 = sub i64 %15, 1
br label %19
17: ; preds = %3
%18 = load i64, i64* %7
br label %19
19: ; preds = %17, %14
%20 = phi i64 [ %16, %14 ], [ %18, %17 ]
store i64 %20, i64* %8
%21 = load i8*, i8** %4
%22 = load i8*, i8** %5
%23 = load i64, i64* %8
%24 = call i32 @memcpy(i8* %21, i8* %22, i64 %23)
%25 = load i8*, i8** %4
%26 = load i64, i64* %8
%27 = getelementptr inbounds i8, i8* %25, i64 %26
store i8 0, i8* %27
%28 = load i64, i64* %7
ret i64 %28
}

LLVM IR (-O2):
define i64 @strlcpy(i8* %0, i8* %1, i64 %2) {
%4 = tail call i64 @strlen(i8* dereferenceable(1) %1)
%5 = icmp ult i64 %4, %2
%6 = add i64 %2, -1
%7 = select i1 %5, i64 %4, i64 %6
%8 = tail call i32 @memcpy(i8* %0, i8* %1, i64 %7)
%9 = getelementptr inbounds i8, i8* %0, i64 %7
store i8 0, i8* %9
ret i64 %4
}
/* Variables and functions */
char const *_k_sym_intern(char const *, int /*<<< orphan*/);
const char *k_syminflx(const char *string) { return _k_sym_intern(string, 0); }


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

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

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

LLVM IR (-O2):
define i8* @k_syminflx(i8* %0) {
%2 = tail call i8* @_k_sym_intern(i8* %0, i32 0)
ret i8* %2
}
char strings_char_at(char *string, unsigned int index) {
  assert(string);
  unsigned int length = strings_length(string);
  assert(index < length);
  return string[index];
}


x86 assembly (clang, -O0):
<strings_char_at>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1040 <assert@plt>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1030 <strings_length@plt>
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
setb   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1040 <assert@plt>
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
movsbl (%rax,%rcx,1),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strings_char_at>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
xor    %eax,%eax
call   1040 <assert@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <strings_length@plt>
xor    %edi,%edi
cmp    %ebp,%eax
seta   %dil
xor    %eax,%eax
call   1040 <assert@plt>
mov    %ebp,%eax
mov    (%rbx,%rax,1),%al
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define signext i8 @strings_char_at(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%6 = load i8*, i8** %3
%7 = call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %6)
%8 = load i8*, i8** %3
%9 = call i32 (i8*, ...) bitcast (i32 (...)* @strings_length to i32 (i8*, ...)*)(i8* %8)
store i32 %9, i32* %5
%10 = load i32, i32* %4
%11 = load i32, i32* %5
%12 = icmp ult i32 %10, %11
%13 = zext i1 %12 to i32
%14 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %13)
%15 = load i8*, i8** %3
%16 = load i32, i32* %4
%17 = zext i32 %16 to i64
%18 = getelementptr inbounds i8, i8* %15, i64 %17
%19 = load i8, i8* %18
ret i8 %19
}

LLVM IR (-O2):
define signext i8 @strings_char_at(i8* %0, i32 %1) {
%3 = tail call i32 (i8*, ...) bitcast (i32 (...)* @assert to i32 (i8*, ...)*)(i8* %0)
%4 = tail call i32 (i8*, ...) bitcast (i32 (...)* @strings_length to i32 (i8*, ...)*)(i8* %0)
%5 = icmp ugt i32 %4, %1
%6 = zext i1 %5 to i32
%7 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %6)
%8 = zext i32 %1 to i64
%9 = getelementptr inbounds i8, i8* %0, i64 %8
%10 = load i8, i8* %9
ret i8 %10
}
struct A {
  struct A *(*f)(int);
} * ret_me(int i, int j) {
  static struct A a;
  static int init;
  if (!init) {
    init = 1;
    a.f = ret_me;
  }
  printf("%d\n", i);
  return &a;
}


x86 assembly (clang, -O0):
<ret_me>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cmpl   $0x0,0x2f13(%rip)
jne    1143 <ret_me+0x33>
movl   $0x1,0x2f03(%rip)
mov    0x2eac(%rip),%rax
mov    %rax,0x2eed(%rip)
mov    -0x4(%rbp),%esi
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x2ed5(%rip),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ret_me>:
push   %rax
mov    %edi,%esi
cmpb   $0x0,0x2f1e(%rip)
jne    1131 <ret_me+0x21>
movb   $0x1,0x2f15(%rip)
mov    0x2ebe(%rip),%rax
mov    %rax,0x2eff(%rip)
lea    0xec8(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x2eea(%rip),%rax
pop    %rcx
ret

LLVM IR (-O0):
%struct.A = type { %struct.A* (i32)* }
@ret_me.a = internal global %struct.A zeroinitializer
@ret_me.init = internal global i32 0
@.str = [4 x i8] c"%d\0A\00"
define %struct.A* @ret_me(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* @ret_me.init
%6 = icmp ne i32 %5, 0
br i1 %6, label %8, label %7
7: ; preds = %2
store i32 1, i32* @ret_me.init
store %struct.A* (i32)* bitcast (%struct.A* (i32, i32)* @ret_me to %struct.A* (i32)*), %struct.A* (i32)** getelementptr inbounds (%struct.A, %struct.A* @ret_me.a, i32 0, i32 0)
br label %8
8: ; preds = %7, %2
%9 = load i32, i32* %3
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %9)
ret %struct.A* @ret_me.a
}

LLVM IR (-O2):
%struct.A = type { %struct.A* (i32)* }
@ret_me.a = internal global %struct.A zeroinitializer
@ret_me.init = internal unnamed_addr global i1 false
@.str = [4 x i8] c"%d\0A\00"
define %struct.A* @ret_me(i32 %0, i32 %1) {
%3 = load i1, i1* @ret_me.init
br i1 %3, label %5, label %4
4: ; preds = %2
store i1 true, i1* @ret_me.init
store %struct.A* (i32)* bitcast (%struct.A* (i32, i32)* @ret_me to %struct.A* (i32)*), %struct.A* (i32)** getelementptr inbounds (%struct.A, %struct.A* @ret_me.a, i64 0, i32 0)
br label %5
5: ; preds = %4, %2
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %0)
ret %struct.A* @ret_me.a
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isspace(int);
void t_isspace_0xac() {
  Assert_real((isspace(172) == 0),
              "/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_isspace.c",
              865, ("isspace should be 0 for 0xac"));
}


x86 assembly (clang, -O0):
<t_isspace_0xac>:
push   %rbp
mov    %rsp,%rbp
mov    $0xac,%edi
call   1030 <isspace@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xebf(%rip),%rsi
mov    $0x361,%edx
lea    0xf5b(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_isspace_0xac>:
push   %rax
mov    $0xac,%edi
call   1030 <isspace@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x361,%edx
pop    %rax
jmp    1040 <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_isspace.c\00"
@.str.1 = [29 x i8] c"isspace should be 0 for 0xac\00"
define void @t_isspace_0xac() {
%1 = call i64 @isspace(i32 172)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 865, i8* getelementptr inbounds ([29 x i8], [29 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_isspace.c\00"
@.str.1 = [29 x i8] c"isspace should be 0 for 0xac\00"
define void @t_isspace_0xac() {
%1 = tail call i64 @isspace(i32 172)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 865, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
int logLevelColorCode(int level) {
  static const int logLevelColors[] = {39, 37, 33, 31, 31};
  return logLevelColors[level - 1];
}


x86 assembly (clang, -O0):
<logLevelColorCode>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
movslq %eax,%rcx
lea    0xee9(%rip),%rax
mov    (%rax,%rcx,4),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<logLevelColorCode>:
movslq %edi,%rax
lea    0xef6(%rip),%rcx
mov    -0x4(%rcx,%rax,4),%eax
ret

LLVM IR (-O0):
@logLevelColorCode.logLevelColors = internal constant [5 x i32] [i32 39, i32 37, i32 33, i32 31, i32 31]
define i32 @logLevelColorCode(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = sub nsw i32 %3, 1
%5 = sext i32 %4 to i64
%6 = getelementptr inbounds [5 x i32], [5 x i32]* @logLevelColorCode.logLevelColors, i64 0, i64 %5
%7 = load i32, i32* %6
ret i32 %7
}

LLVM IR (-O2):
@logLevelColorCode.logLevelColors = internal unnamed_addr constant [5 x i32] [i32 39, i32 37, i32 33, i32 31, i32 31]
define i32 @logLevelColorCode(i32 %0) {
%2 = add nsw i32 %0, -1
%3 = sext i32 %2 to i64
%4 = getelementptr inbounds [5 x i32], [5 x i32]* @logLevelColorCode.logLevelColors, i64 0, i64 %3
%5 = load i32, i32* %4
ret i32 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ uint;
struct timeval {
  int dummy;
};

/* Variables and functions */
scalar_t__ syscall(int, int /*<<< orphan*/, int /*<<< orphan*/,
                   int /*<<< orphan*/);
int gettimeofday(struct timeval *__restrict tv, void *__restrict tz) {
  return (int)syscall(78, (uint)tv, (uint)tz, 0);
}


x86 assembly (clang, -O0):
<gettimeofday>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %eax,%esi
mov    -0x10(%rbp),%rax
mov    %eax,%edx
mov    $0x4e,%edi
xor    %ecx,%ecx
call   1030 <syscall@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gettimeofday>:
mov    %rsi,%rdx
mov    %rdi,%rsi
mov    $0x4e,%edi
xor    %ecx,%ecx
jmp    1030 <syscall@plt>

LLVM IR (-O0):
%struct.timeval = type { i32 }
define i32 @gettimeofday(%struct.timeval* noalias %0, i8* noalias %1) {
%3 = alloca %struct.timeval*
%4 = alloca i8*
store %struct.timeval* %0, %struct.timeval** %3
store i8* %1, i8** %4
%5 = load %struct.timeval*, %struct.timeval** %3
%6 = ptrtoint %struct.timeval* %5 to i32
%7 = load i8*, i8** %4
%8 = ptrtoint i8* %7 to i32
%9 = call i64 @syscall(i32 78, i32 %6, i32 %8, i32 0)
%10 = trunc i64 %9 to i32
ret i32 %10
}

LLVM IR (-O2):
%struct.timeval = type { i32 }
define i32 @gettimeofday(%struct.timeval* noalias %0, i8* noalias %1) {
%3 = ptrtoint %struct.timeval* %0 to i64
%4 = trunc i64 %3 to i32
%5 = ptrtoint i8* %1 to i64
%6 = trunc i64 %5 to i32
%7 = tail call i64 @syscall(i32 78, i32 %4, i32 %6, i32 0)
%8 = trunc i64 %7 to i32
ret i32 %8
}
/* Variables and functions */
int strncasecmp(char const *, char const *, int);
int strcasecmp(const char *a, const char *b) {
  return strncasecmp(a, b, 0xFFFFFFF);
}


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

x86 assembly (clang, -O2):
<strcasecmp>:
mov    $0xfffffff,%edx
jmp    1030 <strncasecmp@plt>

LLVM IR (-O0):
define i32 @strcasecmp(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 = load i8*, i8** %4
%7 = call i32 @strncasecmp(i8* %5, i8* %6, i32 268435455)
ret i32 %7
}

LLVM IR (-O2):
define i32 @strcasecmp(i8* nocapture %0, i8* nocapture %1) {
%3 = tail call i32 @strncasecmp(i8* %0, i8* %1, i32 268435455)
ret i32 %3
}
/* Type definitions */
struct jit_state {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ emit1(struct jit_state *, int);
int /*<<< orphan*/ emit_basic_rex(struct jit_state *, int /*<<< orphan*/, int,
                                  int);
int /*<<< orphan*/ emit_modrm_reg2reg(struct jit_state *, int, int);
void emit_alu32(struct jit_state *state, int op, int src, int dst) {
  emit_basic_rex(state, 0, src, dst);
  emit1(state, op);
  emit_modrm_reg2reg(state, src, dst);
}


x86 assembly (clang, -O0):
<emit_alu32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
xor    %esi,%esi
call   1050 <emit_basic_rex@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1030 <emit1@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%esi
mov    -0x14(%rbp),%edx
call   1040 <emit_modrm_reg2reg@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<emit_alu32>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %ecx,%r15d
mov    %edx,%ebp
mov    %esi,%r14d
mov    %rdi,%rbx
xor    %esi,%esi
call   1050 <emit_basic_rex@plt>
mov    %rbx,%rdi
mov    %r14d,%esi
call   1030 <emit1@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r15d,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <emit_modrm_reg2reg@plt>

LLVM IR (-O0):
%struct.jit_state = type { i32 }
define void @emit_alu32(%struct.jit_state* %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca %struct.jit_state*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store %struct.jit_state* %0, %struct.jit_state** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load %struct.jit_state*, %struct.jit_state** %5
%10 = load i32, i32* %7
%11 = load i32, i32* %8
%12 = call i32 @emit_basic_rex(%struct.jit_state* %9, i32 0, i32 %10, i32 %11)
%13 = load %struct.jit_state*, %struct.jit_state** %5
%14 = load i32, i32* %6
%15 = call i32 @emit1(%struct.jit_state* %13, i32 %14)
%16 = load %struct.jit_state*, %struct.jit_state** %5
%17 = load i32, i32* %7
%18 = load i32, i32* %8
%19 = call i32 @emit_modrm_reg2reg(%struct.jit_state* %16, i32 %17, i32 %18)
ret void
}

LLVM IR (-O2):
%struct.jit_state = type { i32 }
define void @emit_alu32(%struct.jit_state* %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i32 @emit_basic_rex(%struct.jit_state* %0, i32 0, i32 %2, i32 %3)
%6 = tail call i32 @emit1(%struct.jit_state* %0, i32 %1)
%7 = tail call i32 @emit_modrm_reg2reg(%struct.jit_state* %0, i32 %2, i32 %3)
ret void
}
/* Type definitions */
struct lwan_request {
  int dummy;
};

/* Variables and functions */
int lwan_response_websocket_read_hint(struct lwan_request *, int);
int lwan_response_websocket_read(struct lwan_request *request) {
  return lwan_response_websocket_read_hint(request, 1024);
}


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

x86 assembly (clang, -O2):
<lwan_response_websocket_read>:
mov    $0x400,%esi
jmp    1030 <lwan_response_websocket_read_hint@plt>

LLVM IR (-O0):
%struct.lwan_request = type { i32 }
define i32 @lwan_response_websocket_read(%struct.lwan_request* %0) {
%2 = alloca %struct.lwan_request*
store %struct.lwan_request* %0, %struct.lwan_request** %2
%3 = load %struct.lwan_request*, %struct.lwan_request** %2
%4 = call i32 @lwan_response_websocket_read_hint(%struct.lwan_request* %3, i32 1024)
ret i32 %4
}

LLVM IR (-O2):
%struct.lwan_request = type { i32 }
define i32 @lwan_response_websocket_read(%struct.lwan_request* %0) {
%2 = tail call i32 @lwan_response_websocket_read_hint(%struct.lwan_request* %0, i32 1024)
ret i32 %2
}
int test_imm_7Buint8_mem(unsigned char *val) {
  return ((*val) & (-0x7B << 0)) ? -20 : -40;
}


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

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

LLVM IR (-O0):
define i32 @test_imm_7Buint8_mem(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8, i8* %3
%5 = zext i8 %4 to i32
%6 = and i32 %5, -123
%7 = icmp ne i32 %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_7Buint8_mem(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = and i8 %2, -123
%4 = icmp eq i8 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Variables and functions */
int _fdt_node_end_offset(void *, int);
int /*<<< orphan*/ _fdt_nop_region(int /*<<< orphan*/, int);
int /*<<< orphan*/ fdt_offset_ptr_w(void *, int, int /*<<< orphan*/);
int fdt_nop_node(void *fdt, int nodeoffset) {
  int endoffset;
  endoffset = _fdt_node_end_offset(fdt, nodeoffset);
  if (endoffset < 0)
    return endoffset;
  _fdt_nop_region(fdt_offset_ptr_w(fdt, nodeoffset, 0), endoffset - nodeoffset);
  return 0;
}


x86 assembly (clang, -O0):
<fdt_nop_node>:
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 <_fdt_node_end_offset@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jge    1163 <fdt_nop_node+0x33>
mov    -0x18(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1185 <fdt_nop_node+0x55>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
xor    %edx,%edx
call   1040 <fdt_offset_ptr_w@plt>
mov    %eax,%edi
mov    -0x18(%rbp),%esi
sub    -0x14(%rbp),%esi
call   1050 <_fdt_nop_region@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fdt_nop_node>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%ebp
mov    %rdi,%r14
call   1030 <_fdt_node_end_offset@plt>
mov    %eax,%ebx
test   %eax,%eax
js     115d <fdt_nop_node+0x2d>
mov    %r14,%rdi
mov    %ebp,%esi
xor    %edx,%edx
call   1040 <fdt_offset_ptr_w@plt>
sub    %ebp,%ebx
mov    %eax,%edi
mov    %ebx,%esi
call   1050 <_fdt_nop_region@plt>
xor    %ebx,%ebx
mov    %ebx,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @fdt_nop_node(i8* %0, i32 %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
%7 = load i8*, i8** %4
%8 = load i32, i32* %5
%9 = call i32 @_fdt_node_end_offset(i8* %7, i32 %8)
store i32 %9, i32* %6
%10 = load i32, i32* %6
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = load i32, i32* %6
store i32 %13, i32* %3
br label %22
14: ; preds = %2
%15 = load i8*, i8** %4
%16 = load i32, i32* %5
%17 = call i32 @fdt_offset_ptr_w(i8* %15, i32 %16, i32 0)
%18 = load i32, i32* %6
%19 = load i32, i32* %5
%20 = sub nsw i32 %18, %19
%21 = call i32 @_fdt_nop_region(i32 %17, i32 %20)
store i32 0, i32* %3
br label %22
22: ; preds = %14, %12
%23 = load i32, i32* %3
ret i32 %23
}

LLVM IR (-O2):
define i32 @fdt_nop_node(i8* %0, i32 %1) {
%3 = tail call i32 @_fdt_node_end_offset(i8* %0, i32 %1)
%4 = icmp slt i32 %3, 0
br i1 %4, label %9, label %5
5: ; preds = %2
%6 = tail call i32 @fdt_offset_ptr_w(i8* %0, i32 %1, i32 0)
%7 = sub nsw i32 %3, %1
%8 = tail call i32 @_fdt_nop_region(i32 %6, i32 %7)
br label %9
9: ; preds = %2, %5
%10 = phi i32 [ 0, %5 ], [ %3, %2 ]
ret i32 %10
}
/* Variables and functions */
double fabs(double);
__attribute__((__weak__, __always___)) double softboundmpx_fabs(double x) {
  return fabs(x);
}


x86 assembly (clang, -O0):
<softboundmpx_fabs>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movaps 0xeeb(%rip),%xmm1
pand   %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<softboundmpx_fabs>:
andps  0xef9(%rip),%xmm0
ret

LLVM IR (-O0):
define weak double @softboundmpx_fabs(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = call double @llvm.fabs.f64(double %3)
ret double %4
}

LLVM IR (-O2):
define weak double @softboundmpx_fabs(double %0) {
%2 = tail call double @llvm.fabs.f64(double %0)
ret double %2
}