xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ make_filename(long, char *, char *);
long umfpack_zi_save_numeric(void *, char *);
void umf4zsnum(void **Numeric, long *filenum, long *status) {
  char filename[200];
  make_filename(*filenum, "n", filename);
  *status = umfpack_zi_save_numeric(*Numeric, filename);
}


x86 assembly (clang, -O0):
<umf4zsnum>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    -0xe0(%rbp),%rdx
lea    0xeb4(%rip),%rsi
call   1040 <make_filename@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
lea    -0xe0(%rbp),%rsi
call   1030 <umfpack_zi_save_numeric@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<umf4zsnum>:
push   %r15
push   %r14
push   %rbx
sub    $0xd0,%rsp
mov    %rdx,%r14
mov    %rdi,%rbx
mov    (%rsi),%rdi
lea    0xec4(%rip),%rsi
mov    %rsp,%r15
mov    %r15,%rdx
call   1040 <make_filename@plt>
mov    (%rbx),%rdi
mov    %r15,%rsi
call   1030 <umfpack_zi_save_numeric@plt>
mov    %rax,(%r14)
add    $0xd0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [2 x i8] c"n\00"
define void @umf4zsnum(i8** %0, i64* %1, i64* %2) {
%4 = alloca i8**
%5 = alloca i64*
%6 = alloca i64*
%7 = alloca [200 x i8]
store i8** %0, i8*** %4
store i64* %1, i64** %5
store i64* %2, i64** %6
%8 = load i64*, i64** %5
%9 = load i64, i64* %8
%10 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%11 = call i32 @make_filename(i64 %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* %10)
%12 = load i8**, i8*** %4
%13 = load i8*, i8** %12
%14 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%15 = call i64 @umfpack_zi_save_numeric(i8* %13, i8* %14)
%16 = load i64*, i64** %6
store i64 %15, i64* %16
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"n\00"
define void @umf4zsnum(i8** nocapture %0, i64* nocapture %1, i64* nocapture writeonly %2) {
%4 = alloca [200 x i8]
%5 = getelementptr inbounds [200 x i8], [200 x i8]* %4, i64 0, i64 0
%6 = load i64, i64* %1
%7 = call i32 @make_filename(i64 %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* %5)
%8 = load i8*, i8** %0
%9 = call i64 @umfpack_zi_save_numeric(i8* %8, i8* %5)
store i64 %9, i64* %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void _fc_free(void *ptr, const char *name, int line) {
  ;
  ;
  free(ptr);
}


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

x86 assembly (clang, -O2):
<_fc_free>:
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @_fc_free(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i8*, i8** %4
%8 = call i32 @free(i8* %7)
ret void
}

LLVM IR (-O2):
define void @_fc_free(i8* nocapture %0, i8* nocapture readnone %1, i32 %2) {
%4 = tail call i32 @free(i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ AT_FDCWD;
int /*<<< orphan*/ AT_REMOVEDIR;
int INLINE_SYSCALL(int /*<<< orphan*/, int, int /*<<< orphan*/, char const *,
                   int /*<<< orphan*/);
int /*<<< orphan*/ unlinkat;
int __rmdir(const char *path) {
  return INLINE_SYSCALL(unlinkat, 3, AT_FDCWD, path, AT_REMOVEDIR);
}


x86 assembly (clang, -O0):
<__rmdir>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    0x2e9c(%rip),%rax
mov    (%rax),%edx
mov    -0x8(%rbp),%rcx
mov    0x2ea7(%rip),%rax
mov    (%rax),%r8d
mov    $0x3,%esi
call   1030 <INLINE_SYSCALL@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__rmdir>:
mov    %rdi,%rcx
mov    0x2eb6(%rip),%rax
mov    (%rax),%edi
mov    0x2ea5(%rip),%rax
mov    (%rax),%edx
mov    0x2eb4(%rip),%rax
mov    (%rax),%r8d
mov    $0x3,%esi
jmp    1030 <INLINE_SYSCALL@plt>

LLVM IR (-O0):
@unlinkat = global i32 0
@AT_FDCWD = global i32 0
@AT_REMOVEDIR = global i32 0
define i32 @__rmdir(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @unlinkat
%4 = load i32, i32* @AT_FDCWD
%5 = load i8*, i8** %2
%6 = load i32, i32* @AT_REMOVEDIR
%7 = call i32 @INLINE_SYSCALL(i32 %3, i32 3, i32 %4, i8* %5, i32 %6)
ret i32 %7
}

LLVM IR (-O2):
@unlinkat = global i32 0
@AT_FDCWD = global i32 0
@AT_REMOVEDIR = global i32 0
define i32 @__rmdir(i8* %0) {
%2 = load i32, i32* @unlinkat
%3 = load i32, i32* @AT_FDCWD
%4 = load i32, i32* @AT_REMOVEDIR
%5 = tail call i32 @INLINE_SYSCALL(i32 %2, i32 3, i32 %3, i8* %0, i32 %4)
ret i32 %5
}
/* Type definitions */
struct test {
  int dummy;
};

/* Variables and functions */
void priv_settimeofday_cleanup(int asroot, int injail, struct test *test) {}


x86 assembly (clang, -O0):
<priv_settimeofday_cleanup>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
pop    %rbp
ret

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

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

LLVM IR (-O2):
%struct.test = type { i32 }
define void @priv_settimeofday_cleanup(i32 %0, i32 %1, %struct.test* nocapture %2) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isdigit(int);
void t_isdigit_0x7e() {
  Assert_real((isdigit(126) == 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_isdigit.c",
              635, ("isdigit should be 0 for ~"));
}


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

x86 assembly (clang, -O2):
<t_isdigit_0x7e>:
push   %rax
mov    $0x7e,%edi
call   1030 <isdigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x27b,%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_isdigit.c\00"
@.str.1 = [26 x i8] c"isdigit should be 0 for ~\00"
define void @t_isdigit_0x7e() {
%1 = call i64 @isdigit(i32 126)
%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 635, 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_isdigit.c\00"
@.str.1 = [26 x i8] c"isdigit should be 0 for ~\00"
define void @t_isdigit_0x7e() {
%1 = tail call i64 @isdigit(i32 126)
%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 635, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ enter(char *);
char nextsymbol();
int /*<<< orphan*/ out();
int /*<<< orphan*/ pF();
int /*<<< orphan*/ ppast();
pT() {
  enter("pT");
  pF();
  while (nextsymbol() == '*') {
    ppast();
    pF();
  }
  out();
}


x86 assembly (clang, -O0):
<pT>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xea1(%rip),%rdi
call   1060 <enter@plt>
mov    $0x0,%al
call   1050 <pF@plt>
mov    $0x0,%al
call   1030 <nextsymbol@plt>
movsbl %al,%eax
cmp    $0x2a,%eax
jne    1191 <pT+0x41>
mov    $0x0,%al
call   1040 <ppast@plt>
mov    $0x0,%al
call   1050 <pF@plt>
jmp    116b <pT+0x1b>
mov    $0x0,%al
call   1070 <out@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pT>:
push   %rax
lea    0xea8(%rip),%rdi
call   1060 <enter@plt>
nopl   (%rax)
xor    %eax,%eax
call   1050 <pF@plt>
xor    %eax,%eax
call   1030 <nextsymbol@plt>
cmp    $0x2a,%al
jne    117b <pT+0x2b>
xor    %eax,%eax
call   1040 <ppast@plt>
jmp    1160 <pT+0x10>
xor    %eax,%eax
pop    %rcx
jmp    1070 <out@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"pT\00"
define i32 @pT() {
%1 = alloca i32
%2 = call i32 @enter(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @pF()
br label %4
4: ; preds = %8, %0
%5 = call signext i8 (...) @nextsymbol()
%6 = sext i8 %5 to i32
%7 = icmp eq i32 %6, 42
br i1 %7, label %8, label %11
8: ; preds = %4
%9 = call i32 (...) @ppast()
%10 = call i32 (...) @pF()
br label %4
11: ; preds = %4
%12 = call i32 (...) @out()
%13 = load i32, i32* %1
ret i32 %13
}

LLVM IR (-O2):
@.str = [3 x i8] c"pT\00"
define i32 @pT() {
%1 = tail call i32 @enter(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @pF()
%3 = tail call signext i8 (...) @nextsymbol()
%4 = icmp eq i8 %3, 42
br i1 %4, label %5, label %10
5: ; preds = %0, %5
%6 = tail call i32 (...) @ppast()
%7 = tail call i32 (...) @pF()
%8 = tail call signext i8 (...) @nextsymbol()
%9 = icmp eq i8 %8, 42
br i1 %9, label %5, label %10
10: ; preds = %5, %0
%11 = tail call i32 (...) @out()
ret i32 undef
}
int MQTTPacket_len(int rem_len) {
  rem_len += 1;
  if (rem_len < 128)
    rem_len += 1;
  else if (rem_len < 16384)
    rem_len += 2;
  else if (rem_len < 2097151)
    rem_len += 3;
  else
    rem_len += 4;
  return rem_len;
}


x86 assembly (clang, -O0):
<MQTTPacket_len>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
cmpl   $0x80,-0x4(%rbp)
jge    112b <MQTTPacket_len+0x2b>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1174 <MQTTPacket_len+0x74>
cmpl   $0x4000,-0x4(%rbp)
jge    1146 <MQTTPacket_len+0x46>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
jmp    116f <MQTTPacket_len+0x6f>
cmpl   $0x1fffff,-0x4(%rbp)
jge    1161 <MQTTPacket_len+0x61>
mov    -0x4(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x4(%rbp)
jmp    116a <MQTTPacket_len+0x6a>
mov    -0x4(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x4(%rbp)
jmp    116f <MQTTPacket_len+0x6f>
jmp    1174 <MQTTPacket_len+0x74>
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<MQTTPacket_len>:
mov    $0x2,%eax
cmp    $0x7f,%edi
jl     1125 <MQTTPacket_len+0x25>
mov    $0x3,%eax
cmp    $0x3fff,%edi
jb     1125 <MQTTPacket_len+0x25>
cmp    $0x1ffffe,%edi
mov    $0x5,%eax
sbb    $0x0,%eax
add    %edi,%eax
ret

LLVM IR (-O0):
define i32 @MQTTPacket_len(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = add nsw i32 %3, 1
store i32 %4, i32* %2
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, 128
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, i32* %2
%9 = add nsw i32 %8, 1
store i32 %9, i32* %2
br label %27
10: ; preds = %1
%11 = load i32, i32* %2
%12 = icmp slt i32 %11, 16384
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = load i32, i32* %2
%15 = add nsw i32 %14, 2
store i32 %15, i32* %2
br label %26
16: ; preds = %10
%17 = load i32, i32* %2
%18 = icmp slt i32 %17, 2097151
br i1 %18, label %19, label %22
19: ; preds = %16
%20 = load i32, i32* %2
%21 = add nsw i32 %20, 3
store i32 %21, i32* %2
br label %25
22: ; preds = %16
%23 = load i32, i32* %2
%24 = add nsw i32 %23, 4
store i32 %24, i32* %2
br label %25
25: ; preds = %22, %19
br label %26
26: ; preds = %25, %13
br label %27
27: ; preds = %26, %7
%28 = load i32, i32* %2
ret i32 %28
}

LLVM IR (-O2):
define i32 @MQTTPacket_len(i32 %0) {
%2 = icmp slt i32 %0, 127
br i1 %2, label %8, label %3
3: ; preds = %1
%4 = icmp ult i32 %0, 16383
br i1 %4, label %8, label %5
5: ; preds = %3
%6 = icmp ult i32 %0, 2097150
%7 = select i1 %6, i32 4, i32 5
br label %8
8: ; preds = %5, %3, %1
%9 = phi i32 [ 2, %1 ], [ 3, %3 ], [ %7, %5 ]
%10 = add nsw i32 %9, %0
ret i32 %10
}
/* Variables and functions */
char *concat(char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  char *a = "Hello";
  char *b = "_World";
  char *c = concat(a, b);
  if (c) {
    printf("%s\n", c);
  } else {
    printf("Couldn't Concatenate Strings.");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    0xec5(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1040 <concat@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     1178 <main+0x58>
mov    -0x20(%rbp),%rsi
lea    0xea1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1186 <main+0x66>
lea    0xe92(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0xec7(%rip),%rsi
call   1050 <concat@plt>
test   %rax,%rax
je     1153 <main+0x23>
mov    %rax,%rdi
call   1030 <puts@plt>
jmp    1161 <main+0x31>
lea    0xeb3(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"Hello\00"
@.str.1 = [7 x i8] c"_World\00"
@.str.2 = [4 x i8] c"%s\0A\00"
@.str.3 = [30 x i8] c"Couldn't Concatenate Strings.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
store i32 0, i32* %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %2
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8** %3
%5 = load i8*, i8** %2
%6 = load i8*, i8** %3
%7 = call i8* @concat(i8* %5, i8* %6)
store i8* %7, i8** %4
%8 = load i8*, i8** %4
%9 = icmp ne i8* %8, null
br i1 %9, label %10, label %13
10: ; preds = %0
%11 = load i8*, i8** %4
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %11)
br label %15
13: ; preds = %0
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
br label %15
15: ; preds = %13, %10
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"Hello\00"
@.str.1 = [7 x i8] c"_World\00"
@.str.3 = [30 x i8] c"Couldn't Concatenate Strings.\00"
define i32 @main() {
%1 = tail call i8* @concat(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%2 = icmp eq i8* %1, null
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 @puts(i8* %1)
br label %7
5: ; preds = %0
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
br label %7
7: ; preds = %5, %3
ret i32 0
}
void efx_fini_debugfs_netdev(struct net_device *net_dev) {}


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

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

LLVM IR (-O0):
%struct.net_device = type opaque
define void @efx_fini_debugfs_netdev(%struct.net_device* %0) {
%2 = alloca %struct.net_device*
store %struct.net_device* %0, %struct.net_device** %2
ret void
}

LLVM IR (-O2):
%struct.net_device = type opaque
define void @efx_fini_debugfs_netdev(%struct.net_device* nocapture %0) {
ret void
}
/* Variables and functions */
int mkdir(char const *, int);
int file_mkdir(const char *pathname) { return mkdir(pathname, 0766); }


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

x86 assembly (clang, -O2):
<file_mkdir>:
mov    $0x1f6,%esi
jmp    1030 <mkdir@plt>

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

LLVM IR (-O2):
define i32 @file_mkdir(i8* nocapture %0) {
%2 = tail call i32 @mkdir(i8* %0, i32 502)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void bcc_procutils_free(const char *ptr) { free((void *)ptr); }


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

x86 assembly (clang, -O2):
<bcc_procutils_free>:
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @bcc_procutils_free(i8* nocapture %0) {
%2 = tail call i32 @free(i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void cursordown(int arg) {
  printf("\x1b["
         "%dB",
         arg);
}


x86 assembly (clang, -O0):
<cursordown>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xedb(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cursordown>:
mov    %edi,%esi
lea    0xee7(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"\1B[%dB\00"
define void @cursordown(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %3)
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"\1B[%dB\00"
define void @cursordown(i32 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %0)
ret void
}
void genc_sf_d() {}


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

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

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

LLVM IR (-O2):
define void @genc_sf_d() {
ret void
}
void bad_if_alias(int *x, int *y) {
  char a[1];
  if (x == y) {
    a[1] = 'A';
  }
}


x86 assembly (clang, -O0):
<bad_if_alias>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
jne    111e <bad_if_alias+0x1e>
movb   $0x41,-0x10(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @bad_if_alias(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca [1 x i8]
store i32* %0, i32** %3
store i32* %1, i32** %4
%6 = load i32*, i32** %3
%7 = load i32*, i32** %4
%8 = icmp eq i32* %6, %7
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 1
store i8 65, i8* %10
br label %11
11: ; preds = %9, %2
ret void
}

LLVM IR (-O2):
define void @bad_if_alias(i32* nocapture %0, i32* nocapture %1) {
ret void
}
int execute_rt_sigreturn() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @execute_rt_sigreturn() {
ret i32 0
}
unsigned char f7(unsigned char x, int y) {
  return (x << y) | (x >> ((-y) & (8 - 1)));
}


x86 assembly (clang, -O0):
<f7>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %esi,-0x8(%rbp)
movzbl -0x1(%rbp),%eax
mov    -0x8(%rbp),%ecx
shl    %cl,%eax
movzbl -0x1(%rbp),%edx
xor    %ecx,%ecx
sub    -0x8(%rbp),%ecx
and    $0x7,%ecx
sar    %cl,%edx
mov    %edx,%ecx
or     %ecx,%eax
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f7>:
mov    %esi,%ecx
mov    %edi,%eax
shl    %cl,%eax
neg    %cl
and    $0x7,%cl
shr    %cl,%edi
or     %edi,%eax
ret

LLVM IR (-O0):
define zeroext i8 @f7(i8 zeroext %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 = zext i8 %5 to i32
%7 = load i32, i32* %4
%8 = shl i32 %6, %7
%9 = load i8, i8* %3
%10 = zext i8 %9 to i32
%11 = load i32, i32* %4
%12 = sub nsw i32 0, %11
%13 = and i32 %12, 7
%14 = ashr i32 %10, %13
%15 = or i32 %8, %14
%16 = trunc i32 %15 to i8
ret i8 %16
}

LLVM IR (-O2):
define zeroext i8 @f7(i8 zeroext %0, i32 %1) {
%3 = zext i8 %0 to i32
%4 = shl i32 %3, %1
%5 = sub nsw i32 0, %1
%6 = and i32 %5, 7
%7 = lshr i32 %3, %6
%8 = or i32 %7, %4
%9 = trunc i32 %8 to i8
ret i8 %9
}
int Operand_br16_encode(unsigned int *valp) {
  int error;
  error = (*valp & ~(0 << 4)) != 0;
  *valp = *valp >> 4;
  return error;
}


x86 assembly (clang, -O0):
<Operand_br16_encode>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
and    $0xffffffff,%eax
cmp    $0x0,%eax
setne  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
shr    $0x4,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<Operand_br16_encode>:
mov    (%rdi),%ecx
xor    %eax,%eax
test   %ecx,%ecx
setne  %al
shr    $0x4,%ecx
mov    %ecx,(%rdi)
ret

LLVM IR (-O0):
define i32 @Operand_br16_encode(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
store i32* %0, i32** %2
%4 = load i32*, i32** %2
%5 = load i32, i32* %4
%6 = and i32 %5, -1
%7 = icmp ne i32 %6, 0
%8 = zext i1 %7 to i32
store i32 %8, i32* %3
%9 = load i32*, i32** %2
%10 = load i32, i32* %9
%11 = lshr i32 %10, 4
%12 = load i32*, i32** %2
store i32 %11, i32* %12
%13 = load i32, i32* %3
ret i32 %13
}

LLVM IR (-O2):
define i32 @Operand_br16_encode(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = icmp ne i32 %2, 0
%4 = zext i1 %3 to i32
%5 = lshr i32 %2, 4
store i32 %5, i32* %0
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ find_one(char *);
void find_one_noindex_medium_test() {
  find_one("benchmarks"
           ".single.medium");
}


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

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

LLVM IR (-O0):
@.str = [25 x i8] c"benchmarks.single.medium\00"
define void @find_one_noindex_medium_test() {
%1 = call i32 @find_one(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [25 x i8] c"benchmarks.single.medium\00"
define void @find_one_noindex_medium_test() {
%1 = tail call i32 @find_one(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ rm_end_space(char *);
char *rm_space(char *);
char *clean_line(char *s) {
  rm_end_space(s);
  return rm_space(s);
}


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

x86 assembly (clang, -O2):
<clean_line>:
push   %rbx
mov    %rdi,%rbx
call   1030 <rm_end_space@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <rm_space@plt>

LLVM IR (-O0):
define i8* @clean_line(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @rm_end_space(i8* %3)
%5 = load i8*, i8** %2
%6 = call i8* @rm_space(i8* %5)
ret i8* %6
}

LLVM IR (-O2):
define i8* @clean_line(i8* %0) {
%2 = tail call i32 @rm_end_space(i8* %0)
%3 = tail call i8* @rm_space(i8* %0)
ret i8* %3
}
/* Variables and functions */
unsigned char fs_bit_mask_get(long);
short fs_bit_array_get(unsigned char *p, long i) {
  return p[i / 8] & fs_bit_mask_get(i % 8) ? 1 : 0;
}


x86 assembly (clang, -O0):
<fs_bit_array_get>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    $0x8,%ecx
cqto
idiv   %rcx
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
movzbl (%rax,%rcx,1),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    $0x8,%ecx
cqto
idiv   %rcx
mov    %rdx,%rdi
call   1030 <fs_bit_mask_get@plt>
mov    -0x14(%rbp),%edx
movzbl %al,%eax
and    %eax,%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
cwtl
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fs_bit_array_get>:
push   %rbx
lea    0x7(%rsi),%rax
test   %rsi,%rsi
cmovns %rsi,%rax
mov    %rax,%rcx
sar    $0x3,%rcx
mov    (%rdi,%rcx,1),%bl
and    $0xfffffffffffffff8,%rax
sub    %rax,%rsi
mov    %rsi,%rdi
call   1030 <fs_bit_mask_get@plt>
xor    %ecx,%ecx
test   %bl,%al
setne  %cl
mov    %ecx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define signext i16 @fs_bit_array_get(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %3
store i64 %1, i64* %4
%5 = load i8*, i8** %3
%6 = load i64, i64* %4
%7 = sdiv i64 %6, 8
%8 = getelementptr inbounds i8, i8* %5, i64 %7
%9 = load i8, i8* %8
%10 = zext i8 %9 to i32
%11 = load i64, i64* %4
%12 = srem i64 %11, 8
%13 = call zeroext i8 @fs_bit_mask_get(i64 %12)
%14 = zext i8 %13 to i32
%15 = and i32 %10, %14
%16 = icmp ne i32 %15, 0
%17 = zext i1 %16 to i64
%18 = select i1 %16, i32 1, i32 0
%19 = trunc i32 %18 to i16
ret i16 %19
}

LLVM IR (-O2):
define signext i16 @fs_bit_array_get(i8* nocapture %0, i64 %1) {
%3 = sdiv i64 %1, 8
%4 = getelementptr inbounds i8, i8* %0, i64 %3
%5 = load i8, i8* %4
%6 = srem i64 %1, 8
%7 = tail call zeroext i8 @fs_bit_mask_get(i64 %6)
%8 = and i8 %7, %5
%9 = icmp ne i8 %8, 0
%10 = zext i1 %9 to i16
ret i16 %10
}
/* Variables and functions */
int GetUtfMode(const unsigned char *graph, size_t length) {
  return length > 0 && graph[length - 1] < 0x80;
}


x86 assembly (clang, -O0):
<GetUtfMode>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
cmpq   $0x0,-0x10(%rbp)
mov    %al,-0x11(%rbp)
jbe    1137 <GetUtfMode+0x37>
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movzbl (%rax,%rcx,1),%eax
cmp    $0x80,%eax
setl   %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<GetUtfMode>:
test   %rsi,%rsi
je     1112 <GetUtfMode+0x12>
mov    -0x1(%rsi,%rdi,1),%al
not    %al
shr    $0x7,%al
movzbl %al,%eax
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @GetUtfMode(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %3
store i64 %1, i64* %4
%5 = load i64, i64* %4
%6 = icmp ugt i64 %5, 0
br i1 %6, label %7, label %15
7: ; preds = %2
%8 = load i8*, i8** %3
%9 = load i64, i64* %4
%10 = sub i64 %9, 1
%11 = getelementptr inbounds i8, i8* %8, i64 %10
%12 = load i8, i8* %11
%13 = zext i8 %12 to i32
%14 = icmp slt i32 %13, 128
br label %15
15: ; preds = %7, %2
%16 = phi i1 [ false, %2 ], [ %14, %7 ]
%17 = zext i1 %16 to i32
ret i32 %17
}

LLVM IR (-O2):
define i32 @GetUtfMode(i8* nocapture %0, i64 %1) {
%3 = icmp eq i64 %1, 0
br i1 %3, label %11, label %4
4: ; preds = %2
%5 = add i64 %1, -1
%6 = getelementptr inbounds i8, i8* %0, i64 %5
%7 = load i8, i8* %6
%8 = xor i8 %7, -1
%9 = lshr i8 %8, 7
%10 = zext i8 %9 to i32
br label %11
11: ; preds = %4, %2
%12 = phi i32 [ 0, %2 ], [ %10, %4 ]
ret i32 %12
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ islower(int);
void t_islower_0xc9() {
  Assert_real((islower(201) == 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_islower.c",
              1010, ("islower should be 0 for 0xc9"));
}


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

x86 assembly (clang, -O2):
<t_islower_0xc9>:
push   %rax
mov    $0xc9,%edi
call   1030 <islower@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x3f2,%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_islower.c\00"
@.str.1 = [29 x i8] c"islower should be 0 for 0xc9\00"
define void @t_islower_0xc9() {
%1 = call i64 @islower(i32 201)
%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 1010, 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_islower.c\00"
@.str.1 = [29 x i8] c"islower should be 0 for 0xc9\00"
define void @t_islower_0xc9() {
%1 = tail call i64 @islower(i32 201)
%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 1010, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
void global_filetable_print_warning_once(void) {}


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

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

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

LLVM IR (-O2):
define void @global_filetable_print_warning_once() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_memblockq_flush_read() {
  printf("NOT IMPLEMENTED:"
         "pa_memblockq_flush_read"
         "\n");
}


x86 assembly (clang, -O0):
<pa_memblockq_flush_read>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
@str = [40 x i8] c"NOT IMPLEMENTED:pa_memblockq_flush_read\00"
define i32 @pa_memblockq_flush_read() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ ulloptest2(unsigned long long, unsigned long long);
void ulloptest(unsigned long long a, unsigned long long b) {
  ulloptest2(a, b);
  ulloptest2(b, a);
}


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

x86 assembly (clang, -O2):
<ulloptest>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
call   1030 <ulloptest2@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <ulloptest2@plt>

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

LLVM IR (-O2):
define void @ulloptest(i64 %0, i64 %1) {
%3 = tail call i32 @ulloptest2(i64 %0, i64 %1)
%4 = tail call i32 @ulloptest2(i64 %1, i64 %0)
ret void
}
int security_sb_statfs(struct super_block *sb) { return 0; }


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

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

LLVM IR (-O0):
%struct.super_block = type opaque
define i32 @security_sb_statfs(%struct.super_block* %0) {
%2 = alloca %struct.super_block*
store %struct.super_block* %0, %struct.super_block** %2
ret i32 0
}

LLVM IR (-O2):
%struct.super_block = type opaque
define i32 @security_sb_statfs(%struct.super_block* nocapture readnone %0) {
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ pid_t;

/* Variables and functions */
int /*<<< orphan*/ SYS_getppid;
int /*<<< orphan*/ syscall_0(int /*<<< orphan*/);
pid_t getppid(void) { return (pid_t)syscall_0(SYS_getppid); }


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

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

LLVM IR (-O0):
@SYS_getppid = global i32 0
define i32 @getppid() {
%1 = load i32, i32* @SYS_getppid
%2 = call i32 @syscall_0(i32 %1)
ret i32 %2
}

LLVM IR (-O2):
@SYS_getppid = global i32 0
define i32 @getppid() {
%1 = load i32, i32* @SYS_getppid
%2 = tail call i32 @syscall_0(i32 %1)
ret i32 %2
}
char *nalloc(p, nbytes)
register char *p;
unsigned nbytes;
{
  register char *q, *r;
  q = r = malloc(nbytes);
  if (q == 0)
    return (0);
  while (nbytes--)
    *q++ = *p++;
  return (r);
}


x86 assembly (clang, -O0):
<nalloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,%edi
call   1030 <malloc@plt>
mov    %rax,-0x28(%rbp)
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1149 <nalloc+0x39>
movq   $0x0,-0x8(%rbp)
jmp    1191 <nalloc+0x81>
jmp    114e <nalloc+0x3e>
mov    -0x14(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x14(%rbp)
cmp    $0x0,%eax
je     1189 <nalloc+0x79>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
mov    (%rax),%cl
mov    -0x20(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x20(%rbp)
mov    %cl,(%rax)
jmp    114e <nalloc+0x3e>
mov    -0x28(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nalloc>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%r14
mov    %esi,%r15d
mov    %r15,%rdi
call   1040 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
je     1151 <nalloc+0x31>
test   %ebp,%ebp
je     1151 <nalloc+0x31>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1030 <memcpy@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define noalias i8* @nalloc(i8* nocapture %0, i32 %1) {
%3 = zext i32 %1 to i64
%4 = tail call i8* @malloc(i64 %3)
%5 = icmp eq i8* %4, null
%6 = icmp eq i32 %1, 0
%7 = or i1 %5, %6
br i1 %7, label %9, label %8
8: ; preds = %2
br label %9
9: ; preds = %8, %2
ret i8* %4
}
/* Variables and functions */
int /*<<< orphan*/ mq_unlink(char *);
int main(void) {
  mq_unlink("");
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @mq_unlink(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
define i32 @main() {
%1 = tail call i32 @mq_unlink(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
void cpystr(char *pss, char *pds) {
  while ((*pss = *pds) != '\0') {
    pds++;
    pss++;
  }
}


x86 assembly (clang, -O0):
<cpystr>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%al
mov    -0x8(%rbp),%rcx
mov    %al,(%rcx)
movsbl %al,%eax
cmp    $0x0,%eax
je     1141 <cpystr+0x41>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    110c <cpystr+0xc>
pop    %rbp
ret

x86 assembly (clang, -O2):
<cpystr>:
mov    (%rsi),%al
mov    %al,(%rdi)
test   %al,%al
je     111f <cpystr+0x1f>
mov    $0x1,%eax
nopl   (%rax)
movzbl (%rsi,%rax,1),%ecx
mov    %cl,(%rdi,%rax,1)
add    $0x1,%rax
test   %cl,%cl
jne    1110 <cpystr+0x10>
ret

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

LLVM IR (-O2):
define void @cpystr(i8* nocapture writeonly %0, i8* nocapture %1) {
%3 = load i8, i8* %1
store i8 %3, i8* %0
%4 = icmp eq i8 %3, 0
br i1 %4, label %12, label %5
5: ; preds = %2, %5
%6 = phi i8* [ %8, %5 ], [ %1, %2 ]
%7 = phi i8* [ %9, %5 ], [ %0, %2 ]
%8 = getelementptr inbounds i8, i8* %6, i64 1
%9 = getelementptr inbounds i8, i8* %7, i64 1
%10 = load i8, i8* %8
store i8 %10, i8* %9
%11 = icmp eq i8 %10, 0
br i1 %11, label %12, label %5
12: ; preds = %5, %2
ret void
}
/* Variables and functions */
int fibonacci(int);
int /*<<< orphan*/ printf(char *, int, int);
int main(void) {
  for (int n = 0; n < 38; n++)
    printf("%d %d\n", n, fibonacci(n));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x26,-0x8(%rbp)
jge    116d <main+0x4d>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <fibonacci@plt>
mov    -0xc(%rbp),%esi
mov    %eax,%edx
lea    0xea6(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1136 <main+0x16>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xor    %ebx,%ebx
lea    0xed3(%rip),%r14
nopl   (%rax)
mov    %ebx,%edi
call   1040 <fibonacci@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    %eax,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x26,%ebx
jne    1130 <main+0x10>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [7 x i8] c"%d %d\0A\00"
define i32 @main() {
br label %2
1: ; preds = %2
ret i32 0
2: ; preds = %0, %2
%3 = phi i32 [ 0, %0 ], [ %6, %2 ]
%4 = tail call i32 @fibonacci(i32 %3)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %3, i32 %4)
%6 = add nuw nsw i32 %3, 1
%7 = icmp eq i32 %6, 38
br i1 %7, label %1, label %2
}
void memcpy_fromio(void *dst, const volatile void *src, int count) {
  memcpy(dst, (void *)src, count);
}


x86 assembly (clang, -O0):
<memcpy_fromio>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
movslq -0x14(%rbp),%rdx
call   1030 <memcpy@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<memcpy_fromio>:
movslq %edx,%rdx
jmp    1030 <memcpy@plt>

LLVM IR (-O0):
define void @memcpy_fromio(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i8*, i8** %4
%8 = load i8*, i8** %5
%9 = load i32, i32* %6
%10 = sext i32 %9 to i64
ret void
}

LLVM IR (-O2):
define void @memcpy_fromio(i8* nocapture writeonly %0, i8* nocapture %1, i32 %2) {
%4 = sext i32 %2 to i64
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 %0, i8* align 1 %1, i64 %4, i1 false)
ret void
}
/* Variables and functions */
scalar_t__ shim_enosys(int /*<<< orphan*/, int);
int shim_sysfs(int option, ...) { return (int)shim_enosys(0, option); }


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

x86 assembly (clang, -O2):
<shim_sysfs>:
mov    %edi,%esi
xor    %edi,%edi
jmp    1030 <shim_enosys@plt>

LLVM IR (-O0):
define i32 @shim_sysfs(i32 %0, ...) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i64 @shim_enosys(i32 0, i32 %3)
%5 = trunc i64 %4 to i32
ret i32 %5
}

LLVM IR (-O2):
define i32 @shim_sysfs(i32 %0, ...) {
%2 = tail call i64 @shim_enosys(i32 0, i32 %0)
%3 = trunc i64 %2 to i32
ret i32 %3
}
/* Variables and functions */
scalar_t__ sm_file_part_nonconst(char *);
const char *sm_file_part_const(const char *filename) {
  return (const char *)sm_file_part_nonconst((char *)filename);
}


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

x86 assembly (clang, -O2):
<sm_file_part_const>:
jmp    1030 <sm_file_part_nonconst@plt>

LLVM IR (-O0):
define i8* @sm_file_part_const(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @sm_file_part_nonconst(i8* %3)
%5 = inttoptr i64 %4 to i8*
ret i8* %5
}

LLVM IR (-O2):
define i8* @sm_file_part_const(i8* %0) {
%2 = tail call i64 @sm_file_part_nonconst(i8* %0)
%3 = inttoptr i64 %2 to i8*
ret i8* %3
}
/* Type definitions */
typedef int /*<<< orphan*/ SHA512_CTX;

/* Variables and functions */
int SHA512_Final(unsigned char *, int /*<<< orphan*/ *);
int SHA384_Final(unsigned char *md, SHA512_CTX *c) {
  return SHA512_Final(md, c);
}


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

x86 assembly (clang, -O2):
<SHA384_Final>:
jmp    1030 <SHA512_Final@plt>

LLVM IR (-O0):
define i32 @SHA384_Final(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 = call i32 @SHA512_Final(i8* %5, i32* %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @SHA384_Final(i8* %0, i32* %1) {
%3 = tail call i32 @SHA512_Final(i8* %0, i32* %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ lox_output_string_provider(char *);
void puts(char *msg) { lox_output_string_provider(msg); }


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

x86 assembly (clang, -O2):
<puts>:
jmp    1030 <lox_output_string_provider@plt>

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

LLVM IR (-O2):
define void @puts(i8* %0) {
%2 = tail call i32 @lox_output_string_provider(i8* %0)
ret void
}
/* Variables and functions */
scalar_t__ listen(int, int);
unsigned int Listen(int m_hSocket, int nConnectionBacklog) {
  if (listen(m_hSocket, nConnectionBacklog) != 0) {
    return 0;
  }
  return 1;
}


x86 assembly (clang, -O0):
<Listen>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <listen@plt>
cmp    $0x0,%rax
je     113f <Listen+0x2f>
movl   $0x0,-0x4(%rbp)
jmp    1146 <Listen+0x36>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Listen>:
push   %rax
call   1030 <listen@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @Listen(i32 %0, i32 %1) {
%3 = tail call i64 @listen(i32 %0, i32 %1)
%4 = icmp eq i64 %3, 0
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ atmel_atmega8_PB5_clear__E();
void test44_BlinkEnvPin_pollen__reset__E() { atmel_atmega8_PB5_clear__E(); }


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

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

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

LLVM IR (-O2):
define void @test44_BlinkEnvPin_pollen__reset__E() {
%1 = tail call i32 (...) @atmel_atmega8_PB5_clear__E()
ret void
}
void f(int **s, int *i) { *s = i; }


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

x86 assembly (clang, -O2):
<f>:
mov    %rsi,(%rdi)
ret

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

LLVM IR (-O2):
define void @f(i32** nocapture writeonly %0, i32* %1) {
store i32* %1, i32** %0
ret void
}