xunge/DecIR huggingface dataset:
int todHasCome(long int target, long int current) {
  if (target > current) {
    return 0;
  }
  if (target + 3 < current) {
    return 2;
  }
  return 1;
}


x86 assembly (clang, -O0):
<todHasCome>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
cmp    -0x18(%rbp),%rax
jle    1126 <todHasCome+0x26>
movl   $0x0,-0x4(%rbp)
jmp    114b <todHasCome+0x4b>
mov    -0x10(%rbp),%rax
add    $0x3,%rax
cmp    -0x18(%rbp),%rax
jge    1144 <todHasCome+0x44>
movl   $0x2,-0x4(%rbp)
jmp    114b <todHasCome+0x4b>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<todHasCome>:
lea    0x3(%rdi),%rax
xor    %ecx,%ecx
cmp    %rsi,%rax
setl   %cl
add    $0x1,%ecx
xor    %eax,%eax
cmp    %rsi,%rdi
cmovle %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @todHasCome(i64 %0, i64 %1) {
%3 = icmp sgt i64 %0, %1
%4 = add nsw i64 %0, 3
%5 = icmp slt i64 %4, %1
%6 = select i1 %5, i32 2, i32 1
%7 = select i1 %3, i32 0, i32 %6
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ free(int *);
int /*<<< orphan*/ populate(int, int *);
int /*<<< orphan*/ print_it(int, int *);
int rand();
void not_buggy(int size, int *b) {
  int z = rand() % 10;
  if (z == 5) {
    free(b);
    b = NULL;
  }
  populate(20, b);
  print_it(20, b);
}


x86 assembly (clang, -O0):
<not_buggy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1060 <rand@plt>
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x14(%rbp)
cmpl   $0x5,-0x14(%rbp)
jne    117c <not_buggy+0x3c>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
movq   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
mov    $0x14,%edi
call   1050 <populate@plt>
mov    -0x10(%rbp),%rsi
mov    $0x14,%edi
call   1040 <print_it@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<not_buggy>:
push   %rbx
mov    %rsi,%rbx
xor    %eax,%eax
call   1060 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
cmp    $0x5,%eax
jne    1177 <not_buggy+0x37>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %ebx,%ebx
mov    $0x14,%edi
mov    %rbx,%rsi
call   1050 <populate@plt>
mov    $0x14,%edi
mov    %rbx,%rsi
pop    %rbx
jmp    1040 <print_it@plt>

LLVM IR (-O0):
define void @not_buggy(i32 %0, i32* %1) {
%3 = alloca i32
%4 = alloca i32*
%5 = alloca i32
store i32 %0, i32* %3
store i32* %1, i32** %4
%6 = call i32 (...) @rand()
%7 = srem i32 %6, 10
store i32 %7, i32* %5
%8 = load i32, i32* %5
%9 = icmp eq i32 %8, 5
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = load i32*, i32** %4
%12 = call i32 @free(i32* %11)
store i32* null, i32** %4
br label %13
13: ; preds = %10, %2
%14 = load i32*, i32** %4
%15 = call i32 @populate(i32 20, i32* %14)
%16 = load i32*, i32** %4
%17 = call i32 @print_it(i32 20, i32* %16)
ret void
}

LLVM IR (-O2):
define void @not_buggy(i32 %0, i32* %1) {
%3 = tail call i32 (...) @rand()
%4 = srem i32 %3, 10
%5 = icmp eq i32 %4, 5
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = tail call i32 @free(i32* %1)
br label %8
8: ; preds = %6, %2
%9 = phi i32* [ null, %6 ], [ %1, %2 ]
%10 = tail call i32 @populate(i32 20, i32* %9)
%11 = tail call i32 @print_it(i32 20, i32* %9)
ret void
}
void fn2() {}


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

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

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

LLVM IR (-O2):
define void @fn2() {
ret void
}
void omp_set_dynamic(int dynamic_threads) {}


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

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

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

LLVM IR (-O2):
define void @omp_set_dynamic(i32 %0) {
ret void
}
/* Variables and functions */
int rand();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int np_random(int max) {
  srand(time(NULL));
  return rand() % max;
}


x86 assembly (clang, -O0):
<np_random>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1040 <time@plt>
mov    %eax,%edi
call   1030 <srand@plt>
mov    $0x0,%al
call   1050 <rand@plt>
cltd
idivl  -0x4(%rbp)
mov    %edx,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<np_random>:
push   %rbx
mov    %edi,%ebx
xor    %edi,%edi
call   1040 <time@plt>
mov    %eax,%edi
call   1030 <srand@plt>
xor    %eax,%eax
call   1050 <rand@plt>
cltd
idiv   %ebx
mov    %edx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @np_random(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @time(i32* null)
%4 = call i32 @srand(i32 %3)
%5 = call i32 (...) @rand()
%6 = load i32, i32* %2
%7 = srem i32 %5, %6
ret i32 %7
}

LLVM IR (-O2):
define i32 @np_random(i32 %0) {
%2 = tail call i32 @time(i32* null)
%3 = tail call i32 @srand(i32 %2)
%4 = tail call i32 (...) @rand()
%5 = srem i32 %4, %0
ret i32 %5
}
/* Variables and functions */
char const *file_generic(char *);
const char *file_rc(void) { return file_generic("rc"); }


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

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

LLVM IR (-O0):
@.str = [3 x i8] c"rc\00"
define i8* @file_rc() {
%1 = call i8* @file_generic(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}

LLVM IR (-O2):
@.str = [3 x i8] c"rc\00"
define i8* @file_rc() {
%1 = tail call i8* @file_generic(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}
fatal(str, a, b, c, d, e, f, g, h, i) char *str;
{
  warn(str, a, b, c, d, e, f, g, h, i);
  exit(1);
}


x86 assembly (clang, -O0):
<fatal>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x48,%rsp
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    %r9d,-0x24(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    -0x24(%rbp),%r9d
mov    0x10(%rbp),%ebx
mov    0x18(%rbp),%r11d
mov    0x20(%rbp),%r10d
mov    0x28(%rbp),%eax
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
mov    $0x0,%al
call   1030 <warn@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<fatal>:
push   %r14
push   %rbx
push   %rax
mov    0x20(%rsp),%r10d
mov    0x28(%rsp),%r11d
mov    0x30(%rsp),%r14d
mov    0x38(%rsp),%ebx
xor    %eax,%eax
push   %rbx
push   %r14
push   %r11
push   %r10
call   1030 <warn@plt>
add    $0x20,%rsp
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
define i32 @fatal(i8* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9) {
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
store i8* %0, i8** %11
store i32 %1, i32* %12
store i32 %2, i32* %13
store i32 %3, i32* %14
store i32 %4, i32* %15
store i32 %5, i32* %16
store i32 %6, i32* %17
store i32 %7, i32* %18
store i32 %8, i32* %19
store i32 %9, i32* %20
%21 = load i8*, i8** %11
%22 = load i32, i32* %12
%23 = load i32, i32* %13
%24 = load i32, i32* %14
%25 = load i32, i32* %15
%26 = load i32, i32* %16
%27 = load i32, i32* %17
%28 = load i32, i32* %18
%29 = load i32, i32* %19
%30 = load i32, i32* %20
%31 = call i32 (i8*, i32, i32, i32, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @warn to i32 (i8*, i32, i32, i32, i32, i32, i32, i32, i32, i32, ...)*)(i8* %21, i32 %22, i32 %23, i32 %24, i32 %25, i32 %26, i32 %27, i32 %28, i32 %29, i32 %30)
unreachable
}

LLVM IR (-O2):
define i32 @fatal(i8* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9) {
%11 = tail call i32 (i8*, i32, i32, i32, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @warn to i32 (i8*, i32, i32, i32, i32, i32, i32, i32, i32, i32, ...)*)(i8* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9)
tail call void @exit(i32 1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ rcc_printf(char *);
void emit_trap() { rcc_printf("  int3\n"); }


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

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

LLVM IR (-O0):
@.str = [8 x i8] c" int3\0A\00"
define void @emit_trap() {
%1 = call i32 @rcc_printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c" int3\0A\00"
define void @emit_trap() {
%1 = tail call i32 @rcc_printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Type definitions */
struct list {
  int dummy;
};

/* Variables and functions */
void *list_delete(struct list *, int /*<<< orphan*/);
void *list_pop_front(struct list *self) { return list_delete(self, 0); }


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

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

LLVM IR (-O0):
%struct.list = type { i32 }
define i8* @list_pop_front(%struct.list* %0) {
%2 = alloca %struct.list*
store %struct.list* %0, %struct.list** %2
%3 = load %struct.list*, %struct.list** %2
%4 = call i8* @list_delete(%struct.list* %3, i32 0)
ret i8* %4
}

LLVM IR (-O2):
%struct.list = type { i32 }
define i8* @list_pop_front(%struct.list* %0) {
%2 = tail call i8* @list_delete(%struct.list* %0, i32 0)
ret i8* %2
}
/* Variables and functions */
double sin(double);
double toy(double lat, double lon) {
  return (sin(lat * (3.14159265 / 180.0f)));
}


x86 assembly (clang, -O0):
<toy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  0xed6(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1030 <sin@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<toy>:
mulsd  0xee8(%rip),%xmm0
jmp    1030 <sin@plt>

LLVM IR (-O0):
define double @toy(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = load double, double* %3
%6 = fmul double %5, 0x3F91DF46A1FAE712
%7 = call double @sin(double %6)
ret double %7
}

LLVM IR (-O2):
define double @toy(double %0, double %1) {
%3 = fmul double %0, 0x3F91DF46A1FAE712
%4 = tail call double @sin(double %3)
ret double %4
}
/* Type definitions */
typedef int /*<<< orphan*/ pid_t;

/* Variables and functions */
int /*<<< orphan*/ getpid();
__attribute__((__weak__, __always___)) pid_t softboundcets_getpid(void) {
  return getpid();
}


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

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

LLVM IR (-O0):
define weak i32 @softboundcets_getpid() {
%1 = call i32 (...) @getpid()
ret i32 %1
}

LLVM IR (-O2):
define weak i32 @softboundcets_getpid() {
%1 = tail call i32 (...) @getpid()
ret i32 %1
}
/* Variables and functions */
char *malloc(int);
int /*<<< orphan*/ mtrace();
int main() {
  mtrace();
  char *c = malloc(42);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <mtrace@plt>
mov    $0x2a,%edi
call   1030 <malloc@plt>
mov    %rax,-0x10(%rbp)
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
store i32 0, i32* %1
%3 = call i32 (...) @mtrace()
%4 = call i8* @malloc(i32 42)
store i8* %4, i8** %2
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @mtrace()
ret i32 0
}
/* Type definitions */
struct stat {
  int dummy;
};

/* Variables and functions */
int stat(char const *, struct stat *);
int file_exists(const char *file_name) {
  struct stat st;
  if (stat(file_name, &st) == -1)
    return 0;
  return 1;
}


x86 assembly (clang, -O0):
<file_exists>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1030 <stat@plt>
cmp    $0xffffffff,%eax
jne    113e <file_exists+0x2e>
movl   $0x0,-0x4(%rbp)
jmp    1145 <file_exists+0x35>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<file_exists>:
push   %rax
mov    %rsp,%rsi
call   1030 <stat@plt>
xor    %ecx,%ecx
cmp    $0xffffffff,%eax
setne  %cl
mov    %ecx,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
%struct.stat = type { i32 }
define i32 @file_exists(i8* nocapture %0) {
%2 = alloca %struct.stat
%3 = bitcast %struct.stat* %2 to i8*
%4 = call i32 @stat(i8* %0, %struct.stat* %2)
%5 = icmp ne i32 %4, -1
%6 = zext i1 %5 to i32
ret i32 %6
}
void foo() {
  int i = 0;
  return;
}


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

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

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

LLVM IR (-O2):
define void @foo() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ InstallFromDir(char *, char *, char *);
void AutoInstallProtocol(char *settingsFile, char *protocol) {
  InstallFromDir("/usr/local/share/games/plugins", protocol, settingsFile);
  InstallFromDir("/usr/share/games/plugins", protocol, settingsFile);
}


x86 assembly (clang, -O0):
<AutoInstallProtocol>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x8(%rbp),%rdx
lea    0xed1(%rip),%rdi
call   1030 <InstallFromDir@plt>
mov    -0x10(%rbp),%rsi
mov    -0x8(%rbp),%rdx
lea    0xedc(%rip),%rdi
call   1030 <InstallFromDir@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<AutoInstallProtocol>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
lea    0xedf(%rip),%rdi
mov    %r14,%rdx
call   1030 <InstallFromDir@plt>
lea    0xeef(%rip),%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <InstallFromDir@plt>

LLVM IR (-O0):
@.str = [31 x i8] c"/usr/local/share/games/plugins\00"
@.str.1 = [25 x i8] c"/usr/share/games/plugins\00"
define void @AutoInstallProtocol(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = load i8*, i8** %3
%7 = call i32 @InstallFromDir(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i8* %5, i8* %6)
%8 = load i8*, i8** %4
%9 = load i8*, i8** %3
%10 = call i32 @InstallFromDir(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* %8, i8* %9)
ret void
}

LLVM IR (-O2):
@.str = [31 x i8] c"/usr/local/share/games/plugins\00"
@.str.1 = [25 x i8] c"/usr/share/games/plugins\00"
define void @AutoInstallProtocol(i8* %0, i8* %1) {
%3 = tail call i32 @InstallFromDir(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i8* %1, i8* %0)
%4 = tail call i32 @InstallFromDir(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* %1, i8* %0)
ret void
}
fn5(event) struct _XEvent *event;
{ fn3(0, 0, 0); }


x86 assembly (clang, -O0):
<fn5>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
xor    %edx,%edx
mov    %edx,%edi
mov    %edx,%esi
mov    $0x0,%al
call   1030 <fn3@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fn5>:
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %eax,%eax
jmp    1030 <fn3@plt>

LLVM IR (-O0):
%struct._XEvent = type opaque
define i32 @fn5(%struct._XEvent* %0) {
%2 = alloca i32
%3 = alloca %struct._XEvent*
store %struct._XEvent* %0, %struct._XEvent** %3
%4 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @fn3 to i32 (i32, i32, i32, ...)*)(i32 0, i32 0, i32 0)
%5 = load i32, i32* %2
ret i32 %5
}

LLVM IR (-O2):
%struct._XEvent = type opaque
define i32 @fn5(%struct._XEvent* nocapture readnone %0) {
%2 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @fn3 to i32 (i32, i32, i32, ...)*)(i32 0, i32 0, i32 0)
ret i32 undef
}
/* Type definitions */
struct BuffList {
  int dummy;
};
struct Buff {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ BuffList_Apply_Speed(struct BuffList *, int, int);
void ZhuiYingQuan_Buff_Start(struct Buff *self, struct BuffList *list) {
  BuffList_Apply_Speed(list, 100, 1);
}


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

x86 assembly (clang, -O2):
<ZhuiYingQuan_Buff_Start>:
mov    %rsi,%rdi
mov    $0x64,%esi
mov    $0x1,%edx
jmp    1030 <BuffList_Apply_Speed@plt>

LLVM IR (-O0):
%struct.Buff = type { i32 }
%struct.BuffList = type { i32 }
define void @ZhuiYingQuan_Buff_Start(%struct.Buff* %0, %struct.BuffList* %1) {
%3 = alloca %struct.Buff*
%4 = alloca %struct.BuffList*
store %struct.Buff* %0, %struct.Buff** %3
store %struct.BuffList* %1, %struct.BuffList** %4
%5 = load %struct.BuffList*, %struct.BuffList** %4
%6 = call i32 @BuffList_Apply_Speed(%struct.BuffList* %5, i32 100, i32 1)
ret void
}

LLVM IR (-O2):
%struct.Buff = type { i32 }
%struct.BuffList = type { i32 }
define void @ZhuiYingQuan_Buff_Start(%struct.Buff* nocapture readnone %0, %struct.BuffList* %1) {
%3 = tail call i32 @BuffList_Apply_Speed(%struct.BuffList* %1, i32 100, i32 1)
ret void
}
/* Variables and functions */
unsigned int bitClear(unsigned int, unsigned int);
unsigned int bitSet(unsigned int, unsigned int);
unsigned int bitWrite(unsigned int value, unsigned int bit,
                      unsigned int bitvalue) {
  return (bitvalue ? bitSet(value, bit) : bitClear(value, bit));
}


x86 assembly (clang, -O0):
<bitWrite>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     114e <bitWrite+0x2e>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <bitSet@plt>
mov    %eax,-0x10(%rbp)
jmp    115c <bitWrite+0x3c>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1040 <bitClear@plt>
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bitWrite>:
test   %edx,%edx
je     1129 <bitWrite+0x9>
jmp    1030 <bitSet@plt>
jmp    1040 <bitClear@plt>

LLVM IR (-O0):
define i32 @bitWrite(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* %6
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %3
%10 = load i32, i32* %4
%11 = load i32, i32* %5
%12 = call i32 @bitSet(i32 %10, i32 %11)
br label %17
13: ; preds = %3
%14 = load i32, i32* %4
%15 = load i32, i32* %5
%16 = call i32 @bitClear(i32 %14, i32 %15)
br label %17
17: ; preds = %13, %9
%18 = phi i32 [ %12, %9 ], [ %16, %13 ]
ret i32 %18
}

LLVM IR (-O2):
define i32 @bitWrite(i32 %0, i32 %1, i32 %2) {
%4 = icmp eq i32 %2, 0
br i1 %4, label %7, label %5
5: ; preds = %3
%6 = tail call i32 @bitSet(i32 %0, i32 %1)
br label %9
7: ; preds = %3
%8 = tail call i32 @bitClear(i32 %0, i32 %1)
br label %9
9: ; preds = %7, %5
%10 = phi i32 [ %6, %5 ], [ %8, %7 ]
ret i32 %10
}
/* Variables and functions */
char *malloc(int);
int rand();
char *realloc(char *, int);
int /*<<< orphan*/ strcpy(char *, char *);
char *fn77() {
  char *result;
  result = malloc(20 + rand() % 20);
  result = realloc(result, 30 + rand() % 20);
  strcpy((char *)result, "fn77");
  return result;
}


x86 assembly (clang, -O0):
<fn77>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1060 <rand@plt>
mov    $0x14,%ecx
cltd
idiv   %ecx
mov    %edx,%edi
add    $0x14,%edi
call   1040 <malloc@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    $0x0,%al
call   1060 <rand@plt>
mov    -0x10(%rbp),%rdi
mov    $0x14,%ecx
cltd
idiv   %ecx
mov    %edx,%esi
add    $0x1e,%esi
call   1050 <realloc@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe67(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fn77>:
push   %rbx
xor    %eax,%eax
call   1060 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x23,%rcx
add    %edx,%ecx
shl    $0x2,%ecx
lea    (%rcx,%rcx,4),%ecx
neg    %ecx
lea    (%rax,%rcx,1),%edi
add    $0x14,%edi
call   1040 <malloc@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   1060 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x23,%rcx
add    %edx,%ecx
shl    $0x2,%ecx
lea    (%rcx,%rcx,4),%ecx
neg    %ecx
lea    (%rax,%rcx,1),%esi
add    $0x1e,%esi
mov    %rbx,%rdi
call   1050 <realloc@plt>
mov    %rax,%rbx
lea    0xe4f(%rip),%rsi
mov    %rax,%rdi
call   1030 <strcpy@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"fn77\00"
define i8* @fn77() {
%1 = alloca i8*
%2 = call i32 (...) @rand()
%3 = srem i32 %2, 20
%4 = add nsw i32 20, %3
%5 = call i8* @malloc(i32 %4)
store i8* %5, i8** %1
%6 = load i8*, i8** %1
%7 = call i32 (...) @rand()
%8 = srem i32 %7, 20
%9 = add nsw i32 30, %8
%10 = call i8* @realloc(i8* %6, i32 %9)
store i8* %10, i8** %1
%11 = load i8*, i8** %1
%12 = call i32 @strcpy(i8* %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%13 = load i8*, i8** %1
ret i8* %13
}

LLVM IR (-O2):
@.str = [5 x i8] c"fn77\00"
define i8* @fn77() {
%1 = tail call i32 (...) @rand()
%2 = srem i32 %1, 20
%3 = add nsw i32 %2, 20
%4 = tail call i8* @malloc(i32 %3)
%5 = tail call i32 (...) @rand()
%6 = srem i32 %5, 20
%7 = add nsw i32 %6, 30
%8 = tail call i8* @realloc(i8* %4, i32 %7)
%9 = tail call i32 @strcpy(i8* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
ret i8* %8
}
/* Variables and functions */
int /*<<< orphan*/ three();
void two(void) { three(); }


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

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

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

LLVM IR (-O2):
define void @two() {
%1 = tail call i32 (...) @three()
ret void
}
/* Variables and functions */
void *malloc(size_t);
int /*<<< orphan*/ nc_error(char *);
void *MYmalloc(size_t size) {
  void *m;
  if (!(m = malloc(size)))
    nc_error("memory allocation rejected!");
  return m;
}


x86 assembly (clang, -O0):
<MYmalloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <malloc@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
jne    114f <MYmalloc+0x2f>
lea    0xeb6(%rip),%rdi
call   1040 <nc_error@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MYmalloc>:
push   %rbx
call   1030 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    113a <MYmalloc+0x1a>
lea    0xecb(%rip),%rdi
call   1040 <nc_error@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [28 x i8] c"memory allocation rejected!\00"
define i8* @MYmalloc(i64 %0) {
%2 = alloca i64
%3 = alloca i8*
store i64 %0, i64* %2
%4 = load i64, i64* %2
%5 = call i8* @malloc(i64 %4)
store i8* %5, i8** %3
%6 = icmp ne i8* %5, null
br i1 %6, label %9, label %7
7: ; preds = %1
%8 = call i32 @nc_error(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
br label %9
9: ; preds = %7, %1
%10 = load i8*, i8** %3
ret i8* %10
}

LLVM IR (-O2):
@.str = [28 x i8] c"memory allocation rejected!\00"
define noalias i8* @MYmalloc(i64 %0) {
%2 = tail call i8* @malloc(i64 %0)
%3 = icmp eq i8* %2, null
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 @nc_error(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
br label %6
6: ; preds = %4, %1
ret i8* %2
}
int test_imm_56int8_mem(signed char *val) {
  return ((*val) & (-0x56 << 0)) ? -20 : -40;
}


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

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

LLVM IR (-O0):
define i32 @test_imm_56int8_mem(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
%6 = and i32 %5, -86
%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_56int8_mem(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = and i8 %2, -86
%4 = icmp eq i8 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage() {
  fprintf(stderr, "Usage: ./make_threads <no_threads> <sum_up_to>\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    0xee0(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [48 x i8] c"Usage: ./make_threads <no_threads> <sum_up_to>\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [48 x i8] c"Usage: ./make_threads <no_threads> <sum_up_to>\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
size_t strlen(char const *);
scalar_t__ strncmp(char const *, char const *, size_t);
int xargmatch(const char *context, const char *arg) {
  size_t ctx_len = strlen(context);
  return (strlen(arg) == ctx_len && strncmp(arg, context, ctx_len) == 0);
}


x86 assembly (clang, -O0):
<xargmatch>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    -0x18(%rbp),%rcx
mov    %al,-0x19(%rbp)
jne    1173 <xargmatch+0x53>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
sete   %al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xargmatch>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%r15
call   1040 <strlen@plt>
mov    %rax,%rbx
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rbx,%rcx
jne    115e <xargmatch+0x3e>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
call   1030 <strncmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
sete   %al
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @xargmatch(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i64
store i8* %0, i8** %3
store i8* %1, i8** %4
%6 = load i8*, i8** %3
%7 = call i64 @strlen(i8* %6)
store i64 %7, i64* %5
%8 = load i8*, i8** %4
%9 = call i64 @strlen(i8* %8)
%10 = load i64, i64* %5
%11 = icmp eq i64 %9, %10
br i1 %11, label %12, label %18
12: ; preds = %2
%13 = load i8*, i8** %4
%14 = load i8*, i8** %3
%15 = load i64, i64* %5
%16 = call i64 @strncmp(i8* %13, i8* %14, i64 %15)
%17 = icmp eq i64 %16, 0
br label %18
18: ; preds = %12, %2
%19 = phi i1 [ false, %2 ], [ %17, %12 ]
%20 = zext i1 %19 to i32
ret i32 %20
}

LLVM IR (-O2):
define i32 @xargmatch(i8* %0, i8* %1) {
%3 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%4 = tail call i64 @strlen(i8* dereferenceable(1) %1)
%5 = icmp eq i64 %4, %3
br i1 %5, label %6, label %10
6: ; preds = %2
%7 = tail call i64 @strncmp(i8* %1, i8* %0, i64 %3)
%8 = icmp eq i64 %7, 0
%9 = zext i1 %8 to i32
br label %10
10: ; preds = %6, %2
%11 = phi i32 [ 0, %2 ], [ %9, %6 ]
ret i32 %11
}
/* Variables and functions */
unsigned long sm4Lt(unsigned long);
unsigned long sm4F(unsigned long x0, unsigned long x1, unsigned long x2,
                   unsigned long x3, unsigned long rk) {
  return (x0 ^ sm4Lt(x1 ^ x2 ^ x3 ^ rk));
}


x86 assembly (clang, -O0):
<sm4F>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
xor    -0x18(%rbp),%rdi
xor    -0x20(%rbp),%rdi
xor    -0x28(%rbp),%rdi
call   1030 <sm4Lt@plt>
mov    %rax,%rcx
mov    -0x30(%rbp),%rax
xor    %rcx,%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sm4F>:
push   %rbx
mov    %rdi,%rbx
xor    %rdx,%rsi
xor    %r8,%rcx
xor    %rsi,%rcx
mov    %rcx,%rdi
call   1030 <sm4Lt@plt>
xor    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i64 @sm4F(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4) {
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
store i64 %0, i64* %6
store i64 %1, i64* %7
store i64 %2, i64* %8
store i64 %3, i64* %9
store i64 %4, i64* %10
%11 = load i64, i64* %6
%12 = load i64, i64* %7
%13 = load i64, i64* %8
%14 = xor i64 %12, %13
%15 = load i64, i64* %9
%16 = xor i64 %14, %15
%17 = load i64, i64* %10
%18 = xor i64 %16, %17
%19 = call i64 @sm4Lt(i64 %18)
%20 = xor i64 %11, %19
ret i64 %20
}

LLVM IR (-O2):
define i64 @sm4F(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4) {
%6 = xor i64 %2, %1
%7 = xor i64 %6, %3
%8 = xor i64 %7, %4
%9 = tail call i64 @sm4Lt(i64 %8)
%10 = xor i64 %9, %0
ret i64 %10
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isalnum(int);
void t_isalnum_0xcc() {
  Assert_real((isalnum(204) == 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_isalnum.c",
              1025, ("isalnum should be 0 for 0xcc"));
}


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

x86 assembly (clang, -O2):
<t_isalnum_0xcc>:
push   %rax
mov    $0xcc,%edi
call   1030 <isalnum@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x401,%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_isalnum.c\00"
@.str.1 = [29 x i8] c"isalnum should be 0 for 0xcc\00"
define void @t_isalnum_0xcc() {
%1 = call i64 @isalnum(i32 204)
%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 1025, 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_isalnum.c\00"
@.str.1 = [29 x i8] c"isalnum should be 0 for 0xcc\00"
define void @t_isalnum_0xcc() {
%1 = tail call i64 @isalnum(i32 204)
%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 1025, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main(void) {
  printf("27 C a F = %f\n", (27 * 1.8) + 32);
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [15 x i8] c"27 C a F = %f\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 80)
ret i32 0
}

LLVM IR (-O2):
@.str = [15 x i8] c"27 C a F = %f\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 80)
ret i32 0
}
void XSetWindowBorderWidth() {}


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

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

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

LLVM IR (-O2):
define void @XSetWindowBorderWidth() {
ret void
}
void XFreeColors() {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ free(struct DictIterator *);
void dict_iter_free(struct DictIterator *it) { free(it); }


x86 assembly (clang, -O0):
<dict_iter_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):
<dict_iter_free>:
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.DictIterator = type { i32 }
define void @dict_iter_free(%struct.DictIterator* %0) {
%2 = alloca %struct.DictIterator*
store %struct.DictIterator* %0, %struct.DictIterator** %2
%3 = load %struct.DictIterator*, %struct.DictIterator** %2
%4 = call i32 @free(%struct.DictIterator* %3)
ret void
}

LLVM IR (-O2):
%struct.DictIterator = type { i32 }
define void @dict_iter_free(%struct.DictIterator* nocapture %0) {
%2 = tail call i32 @free(%struct.DictIterator* %0)
ret void
}
/* Variables and functions */
const char *base(const char *p) {
  const char *last;
  const char *s;
  last = NULL;
  for (s = p; *s != '\0'; ++s) {
    if (((*s) == '/'))
      last = s + 1;
  }
  return last != NULL ? last : p;
}


x86 assembly (clang, -O0):
<base>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     115a <base+0x5a>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2f,%eax
jne    1144 <base+0x44>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1149 <base+0x49>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1118 <base+0x18>
cmpq   $0x0,-0x10(%rbp)
je     1172 <base+0x72>
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
jmp    117a <base+0x7a>
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<base>:
mov    %rdi,%rax
lea    0x1(%rdi),%rdx
xor    %esi,%esi
jmp    1117 <base+0x17>
nopl   0x0(%rax,%rax,1)
mov    %rdx,%rsi
add    $0x1,%rdx
movzbl -0x1(%rdx),%ecx
cmp    $0x2f,%cl
je     1110 <base+0x10>
test   %cl,%cl
jne    1113 <base+0x13>
test   %rsi,%rsi
cmovne %rsi,%rax
ret

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

LLVM IR (-O2):
define i8* @base(i8* %0) {
br label %2
2: ; preds = %8, %1
%3 = phi i8* [ null, %1 ], [ %9, %8 ]
%4 = phi i8* [ %0, %1 ], [ %10, %8 ]
%5 = load i8, i8* %4
switch i8 %5, label %8 [
i8 0, label %11
i8 47, label %6
]
6: ; preds = %2
%7 = getelementptr inbounds i8, i8* %4, i64 1
br label %8
8: ; preds = %2, %6
%9 = phi i8* [ %7, %6 ], [ %3, %2 ]
%10 = getelementptr inbounds i8, i8* %4, i64 1
br label %2
11: ; preds = %2
%12 = icmp eq i8* %3, null
%13 = select i1 %12, i8* %0, i8* %3
ret i8* %13
}
/* Variables and functions */
long long __real___divdi3(long long, long long);
long long __wrap___divdi3(long long a, long long b) {
  return __real___divdi3(a, b);
}


x86 assembly (clang, -O0):
<__wrap___divdi3>:
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 <__real___divdi3@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__wrap___divdi3>:
jmp    1030 <__real___divdi3@plt>

LLVM IR (-O0):
define i64 @__wrap___divdi3(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 i64 @__real___divdi3(i64 %5, i64 %6)
ret i64 %7
}

LLVM IR (-O2):
define i64 @__wrap___divdi3(i64 %0, i64 %1) {
%3 = tail call i64 @__real___divdi3(i64 %0, i64 %1)
ret i64 %3
}
/* Variables and functions */
int /*<<< orphan*/ TCSBRK;
int ioctl(int, int /*<<< orphan*/, int *);
int tcsendbreak(int fd, int duration) { return (ioctl(fd, TCSBRK, &duration)); }


x86 assembly (clang, -O0):
<tcsendbreak>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    0x2ec8(%rip),%rax
mov    (%rax),%esi
lea    -0x8(%rbp),%rdx
call   1030 <ioctl@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tcsendbreak>:
push   %rax
mov    %esi,0x4(%rsp)
mov    0x2ed4(%rip),%rax
mov    (%rax),%esi
lea    0x4(%rsp),%rdx
call   1030 <ioctl@plt>
pop    %rcx
ret

LLVM IR (-O0):
@TCSBRK = global i32 0
define i32 @tcsendbreak(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* @TCSBRK
%7 = call i32 @ioctl(i32 %5, i32 %6, i32* %4)
ret i32 %7
}

LLVM IR (-O2):
@TCSBRK = global i32 0
define i32 @tcsendbreak(i32 %0, i32 %1) {
%3 = alloca i32
store i32 %1, i32* %3
%4 = load i32, i32* @TCSBRK
%5 = call i32 @ioctl(i32 %0, i32 %4, i32* %3)
ret i32 %5
}
void copy_str2(char *str_dst, const char *str_src) {
  for (; (*str_dst = *str_src) != '\0'; str_dst++, str_src++)
    ;
}


x86 assembly (clang, -O0):
<copy_str2>:
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     1146 <copy_str2+0x46>
jmp    1129 <copy_str2+0x29>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    110c <copy_str2+0xc>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @copy_str2(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 = %12, %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 %17
11: ; preds = %5
br label %12
12: ; preds = %11
%13 = load i8*, i8** %3
%14 = getelementptr inbounds i8, i8* %13, i32 1
store i8* %14, i8** %3
%15 = load i8*, i8** %4
%16 = getelementptr inbounds i8, i8* %15, i32 1
store i8* %16, i8** %4
br label %5
17: ; preds = %5
ret void
}

LLVM IR (-O2):
define void @copy_str2(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* [ %9, %5 ], [ %1, %2 ]
%7 = phi i8* [ %8, %5 ], [ %0, %2 ]
%8 = getelementptr inbounds i8, i8* %7, i64 1
%9 = getelementptr inbounds i8, i8* %6, i64 1
%10 = load i8, i8* %9
store i8 %10, i8* %8
%11 = icmp eq i8 %10, 0
br i1 %11, label %12, label %5
12: ; preds = %5, %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ foo(void *);
int gintplus(int x, int y) {
  x += y;
  if (!x)
    foo((void *)0);
  return x;
}


x86 assembly (clang, -O0):
<gintplus>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    113a <gintplus+0x2a>
xor    %eax,%eax
mov    %eax,%edi
call   1030 <foo@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gintplus>:
push   %rbx
mov    %edi,%ebx
add    %esi,%ebx
jne    111e <gintplus+0xe>
xor    %edi,%edi
call   1030 <foo@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @gintplus(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
%7 = add nsw i32 %6, %5
store i32 %7, i32* %3
%8 = load i32, i32* %3
%9 = icmp ne i32 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %2
%11 = call i32 @foo(i8* null)
br label %12
12: ; preds = %10, %2
%13 = load i32, i32* %3
ret i32 %13
}

LLVM IR (-O2):
define i32 @gintplus(i32 %0, i32 %1) {
%3 = add nsw i32 %1, %0
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @foo(i8* null)
br label %7
7: ; preds = %5, %2
ret i32 %3
}
long next_heptagonal_num(void) {
  static long last_index = 0;
  static long last_num = 0;
  last_num += 5 * last_index + 1;
  last_index++;
  return last_num;
}


x86 assembly (clang, -O0):
<next_heptagonal_num>:
push   %rbp
mov    %rsp,%rbp
imul   $0x5,0x2f1c(%rip),%rax
05
add    $0x1,%rax
add    0x2f19(%rip),%rax
mov    %rax,0x2f12(%rip)
mov    0x2f03(%rip),%rax
add    $0x1,%rax
mov    %rax,0x2ef8(%rip)
mov    0x2ef9(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<next_heptagonal_num>:
mov    0x2f21(%rip),%rcx
lea    (%rcx,%rcx,4),%rax
mov    0x2f1e(%rip),%rdx
add    %rdx,%rax
add    $0x1,%rax
mov    %rax,0x2f10(%rip)
add    $0x1,%rcx
mov    %rcx,0x2efd(%rip)
ret

LLVM IR (-O0):
@next_heptagonal_num.last_index = internal global i64 0
@next_heptagonal_num.last_num = internal global i64 0
define i64 @next_heptagonal_num() {
%1 = load i64, i64* @next_heptagonal_num.last_index
%2 = mul nsw i64 5, %1
%3 = add nsw i64 %2, 1
%4 = load i64, i64* @next_heptagonal_num.last_num
%5 = add nsw i64 %4, %3
store i64 %5, i64* @next_heptagonal_num.last_num
%6 = load i64, i64* @next_heptagonal_num.last_index
%7 = add nsw i64 %6, 1
store i64 %7, i64* @next_heptagonal_num.last_index
%8 = load i64, i64* @next_heptagonal_num.last_num
ret i64 %8
}

LLVM IR (-O2):
@next_heptagonal_num.last_index = internal unnamed_addr global i64 0
@next_heptagonal_num.last_num = internal unnamed_addr global i64 0
define i64 @next_heptagonal_num() {
%1 = load i64, i64* @next_heptagonal_num.last_index
%2 = mul nsw i64 %1, 5
%3 = add nsw i64 %2, 1
%4 = load i64, i64* @next_heptagonal_num.last_num
%5 = add nsw i64 %3, %4
store i64 %5, i64* @next_heptagonal_num.last_num
%6 = add nsw i64 %1, 1
store i64 %6, i64* @next_heptagonal_num.last_index
ret i64 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ print_128(char const *, int /*<<< orphan*/ const *, char *);
void println_128(const char m[], const uint8_t a[16]) { print_128(m, a, "\n"); }


x86 assembly (clang, -O0):
<println_128>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xed1(%rip),%rdx
call   1030 <print_128@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<println_128>:
lea    0xee9(%rip),%rdx
jmp    1030 <print_128@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
define void @println_128(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 @print_128(i8* %5, i32* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"\0A\00"
define void @println_128(i8* %0, i32* %1) {
%3 = tail call i32 @print_128(i8* %0, i32* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret void
}