xunge/DecIR huggingface dataset:
gcall(sname) char *sname;
{
  ot("jsr\t");
  if (*sname == '^')
    outstr(++sname);
  else {
    prefix();
    outstr(sname);
  }
  nl();
}


x86 assembly (clang, -O0):
<gcall>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
lea    0xead(%rip),%rdi
mov    $0x0,%al
call   1050 <ot@plt>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5e,%eax
jne    1182 <gcall+0x42>
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
mov    %rdi,-0x10(%rbp)
mov    $0x0,%al
call   1040 <outstr@plt>
jmp    1194 <gcall+0x54>
mov    $0x0,%al
call   1060 <prefix@plt>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1040 <outstr@plt>
mov    $0x0,%al
call   1030 <nl@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gcall>:
push   %rbx
mov    %rdi,%rbx
lea    0xeb5(%rip),%rdi
xor    %eax,%eax
call   1050 <ot@plt>
cmpb   $0x5e,(%rbx)
jne    115d <gcall+0x1d>
add    $0x1,%rbx
jmp    1164 <gcall+0x24>
xor    %eax,%eax
call   1060 <prefix@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <outstr@plt>
xor    %eax,%eax
pop    %rbx
jmp    1030 <nl@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"jsr\09\00"
define i32 @gcall(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = call i32 (i8*, ...) bitcast (i32 (...)* @ot to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%5 = load i8*, i8** %3
%6 = load i8, i8* %5
%7 = sext i8 %6 to i32
%8 = icmp eq i32 %7, 94
br i1 %8, label %9, label %13
9: ; preds = %1
%10 = load i8*, i8** %3
%11 = getelementptr inbounds i8, i8* %10, i32 1
store i8* %11, i8** %3
%12 = call i32 (i8*, ...) bitcast (i32 (...)* @outstr to i32 (i8*, ...)*)(i8* %11)
br label %17
13: ; preds = %1
%14 = call i32 (...) @prefix()
%15 = load i8*, i8** %3
%16 = call i32 (i8*, ...) bitcast (i32 (...)* @outstr to i32 (i8*, ...)*)(i8* %15)
br label %17
17: ; preds = %13, %9
%18 = call i32 (...) @nl()
%19 = load i32, i32* %2
ret i32 %19
}

LLVM IR (-O2):
@.str = [5 x i8] c"jsr\09\00"
define i32 @gcall(i8* %0) {
%2 = tail call i32 (i8*, ...) bitcast (i32 (...)* @ot to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%3 = load i8, i8* %0
%4 = icmp eq i8 %3, 94
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = getelementptr inbounds i8, i8* %0, i64 1
br label %9
7: ; preds = %1
%8 = tail call i32 (...) @prefix()
br label %9
9: ; preds = %7, %5
%10 = phi i8* [ %0, %7 ], [ %6, %5 ]
%11 = tail call i32 (i8*, ...) bitcast (i32 (...)* @outstr to i32 (i8*, ...)*)(i8* %10)
%12 = tail call i32 (...) @nl()
ret i32 undef
}
/* Type definitions */
typedef int pid_t;

/* Variables and functions */
int /*<<< orphan*/ kill(int, int);
void esh_signal_kill_pgrp(pid_t pgrp, int sig) {
  do {
  } while (0);
  kill(-1 * pgrp, sig);
}


x86 assembly (clang, -O0):
<esh_signal_kill_pgrp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
jmp    1123 <esh_signal_kill_pgrp+0x13>
imul   $0xffffffff,-0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <kill@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<esh_signal_kill_pgrp>:
neg    %edi
jmp    1030 <kill@plt>

LLVM IR (-O0):
define void @esh_signal_kill_pgrp(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
br label %5
5: ; preds = %2
br label %6
6: ; preds = %5
%7 = load i32, i32* %3
%8 = mul nsw i32 -1, %7
%9 = load i32, i32* %4
%10 = call i32 @kill(i32 %8, i32 %9)
ret void
}

LLVM IR (-O2):
define void @esh_signal_kill_pgrp(i32 %0, i32 %1) {
%3 = sub nsw i32 0, %0
%4 = tail call i32 @kill(i32 %3, i32 %1)
ret void
}
/* Forward declarations */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  int /*<<< orphan*/ window;
  scalar_t__ send_event;
};
typedef TYPE_1__ XUnmapEvent;
typedef int /*<<< orphan*/ XEvent;

/* Variables and functions */
int /*<<< orphan*/ redirect(int /*<<< orphan*/ *, int /*<<< orphan*/);
void unmapnotify(XUnmapEvent *e) {
  if (e->send_event)
    redirect((XEvent *)e, e->window);
}


x86 assembly (clang, -O0):
<unmapnotify>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmpq   $0x0,0x8(%rax)
je     113a <unmapnotify+0x2a>
mov    -0x8(%rbp),%rdi
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
call   1030 <redirect@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<unmapnotify>:
cmpq   $0x0,0x8(%rdi)
je     111e <unmapnotify+0xe>
mov    (%rdi),%esi
jmp    1030 <redirect@plt>
ret

LLVM IR (-O0):
%struct.TYPE_3__ = type { i32, i64 }
define void @unmapnotify(%struct.TYPE_3__* %0) {
%2 = alloca %struct.TYPE_3__*
store %struct.TYPE_3__* %0, %struct.TYPE_3__** %2
%3 = load %struct.TYPE_3__*, %struct.TYPE_3__** %2
%4 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %3, i32 0, i32 1
%5 = load i64, i64* %4
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %14
7: ; preds = %1
%8 = load %struct.TYPE_3__*, %struct.TYPE_3__** %2
%9 = bitcast %struct.TYPE_3__* %8 to i32*
%10 = load %struct.TYPE_3__*, %struct.TYPE_3__** %2
%11 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %10, i32 0, i32 0
%12 = load i32, i32* %11
%13 = call i32 @redirect(i32* %9, i32 %12)
br label %14
14: ; preds = %7, %1
ret void
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i32, i64 }
define void @unmapnotify(%struct.TYPE_3__* %0) {
%2 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 1
%3 = load i64, i64* %2
%4 = icmp eq i64 %3, 0
br i1 %4, label %9, label %5
5: ; preds = %1
%6 = getelementptr %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 0
%7 = load i32, i32* %6
%8 = tail call i32 @redirect(i32* %6, i32 %7)
br label %9
9: ; preds = %5, %1
ret void
}
void ff_hevc_put_hevc_uni_w_qpel_hv24_12_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_uni_w_qpel_hv24_12_sse4() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ print_goodbye();
int /*<<< orphan*/ print_hello();
int /*<<< orphan*/ print_howitisgoing();
int main(void) {
  print_hello();
  print_howitisgoing();
  print_goodbye();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @print_hello()
%2 = tail call i32 (...) @print_howitisgoing()
%3 = tail call i32 (...) @print_goodbye()
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int EOF;
int fgetc(int /*<<< orphan*/ *);
int safe_fgetc(FILE *stream) {
  int c;
  do
    c = fgetc(stream);
  while (c == EOF);
  return c;
}


x86 assembly (clang, -O0):
<safe_fgetc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <fgetc@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    0x2eb6(%rip),%rcx
cmp    (%rcx),%eax
je     111c <safe_fgetc+0xc>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<safe_fgetc>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    0x2eca(%rip),%r14
xchg   %ax,%ax
mov    %rbx,%rdi
call   1030 <fgetc@plt>
cmp    (%r14),%eax
je     1120 <safe_fgetc+0x10>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@EOF = global i32 0
define i32 @safe_fgetc(i32* nocapture %0) {
br label %2
2: ; preds = %2, %1
%3 = tail call i32 @fgetc(i32* %0)
%4 = load i32, i32* @EOF
%5 = icmp eq i32 %3, %4
br i1 %5, label %2, label %6
6: ; preds = %2
ret i32 %3
}
/* Type definitions */
struct conn {
  int dummy;
};
typedef int ssize_t;

/* Variables and functions */
ssize_t conn_process_write(struct conn *c) {
  (void)c;
  return -1;
}


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

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

LLVM IR (-O0):
%struct.conn = type { i32 }
define i32 @conn_process_write(%struct.conn* %0) {
%2 = alloca %struct.conn*
store %struct.conn* %0, %struct.conn** %2
%3 = load %struct.conn*, %struct.conn** %2
ret i32 -1
}

LLVM IR (-O2):
%struct.conn = type { i32 }
define i32 @conn_process_write(%struct.conn* nocapture readnone %0) {
ret i32 -1
}
/* Variables and functions */
int /*<<< orphan*/ perror(char *);
int write(int, char const *, int);
int file_write(int fd, const char *str, int len) {
  int ret_len = write(fd, str, len);
  if (ret_len < 0) {
    perror("libsoc-file-debug");
    return -1;
  }
  return ret_len;
}


x86 assembly (clang, -O0):
<file_write>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <write@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jge    1166 <file_write+0x46>
lea    0xeab(%rip),%rdi
call   1040 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    116c <file_write+0x4c>
mov    -0x18(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<file_write>:
push   %rax
call   1030 <write@plt>
test   %eax,%eax
js     112c <file_write+0xc>
pop    %rcx
ret
lea    0xecd(%rip),%rdi
call   1040 <perror@plt>
mov    $0xffffffff,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [18 x i8] c"libsoc-file-debug\00"
define i32 @file_write(i32 %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i8* %1, i8** %6
store i32 %2, i32* %7
%9 = load i32, i32* %5
%10 = load i8*, i8** %6
%11 = load i32, i32* %7
%12 = call i32 @write(i32 %9, i8* %10, i32 %11)
store i32 %12, i32* %8
%13 = load i32, i32* %8
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %3
%16 = call i32 @perror(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
store i32 -1, i32* %4
br label %19
17: ; preds = %3
%18 = load i32, i32* %8
store i32 %18, i32* %4
br label %19
19: ; preds = %17, %15
%20 = load i32, i32* %4
ret i32 %20
}

LLVM IR (-O2):
@.str = [18 x i8] c"libsoc-file-debug\00"
define i32 @file_write(i32 %0, i8* nocapture %1, i32 %2) {
%4 = tail call i32 @write(i32 %0, i8* %1, i32 %2)
%5 = icmp slt i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %3
%7 = tail call i32 @perror(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %3, %6
%9 = phi i32 [ -1, %6 ], [ %4, %3 ]
ret i32 %9
}
void ff_hevc_put_hevc_bi_qpel_hv32_10_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_bi_qpel_hv32_10_sse4() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void set_interface_usage() { printf("Usage: set interface { mtu | ... } \n"); }


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

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

LLVM IR (-O0):
@.str = [37 x i8] c"Usage: set interface { mtu | ... } \0A\00"
define void @set_interface_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [36 x i8] c"Usage: set interface { mtu | ... } \00"
define void @set_interface_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
double factorial(long double);
long double e(void) {
  long double i, e, eTemp;
  e = 0;
  while (eTemp != e) {
    eTemp = e;
    e += 1.0 / factorial(i);
    i++;
  }
  return e;
}


x86 assembly (clang, -O0):
<e>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
fldz
fstpt  -0x20(%rbp)
fldt   -0x30(%rbp)
fldt   -0x20(%rbp)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jne    113a <e+0x2a>
jp     113a <e+0x2a>
jmp    117b <e+0x6b>
fldt   -0x20(%rbp)
fstpt  -0x30(%rbp)
fldt   -0x10(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1030 <factorial@plt>
movaps %xmm0,%xmm1
movsd  0xea8(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
fldl   -0x38(%rbp)
fldt   -0x20(%rbp)
faddp  %st,%st(1)
fstpt  -0x20(%rbp)
fldt   -0x10(%rbp)
fld1
faddp  %st,%st(1)
fstpt  -0x10(%rbp)
jmp    111d <e+0xd>
fldt   -0x20(%rbp)
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
LLVM IR (-O0):
define x86_fp80 @e() {
%1 = alloca x86_fp80
%2 = alloca x86_fp80
%3 = alloca x86_fp80
store x86_fp80 0xK00000000000000000000, x86_fp80* %2
br label %4
4: ; preds = %8, %0
%5 = load x86_fp80, x86_fp80* %3
%6 = load x86_fp80, x86_fp80* %2
%7 = fcmp une x86_fp80 %5, %6
br i1 %7, label %8, label %18
8: ; preds = %4
%9 = load x86_fp80, x86_fp80* %2
store x86_fp80 %9, x86_fp80* %3
%10 = load x86_fp80, x86_fp80* %1
%11 = call double @factorial(x86_fp80 %10)
%12 = fdiv double 1.000000e+00, %11
%13 = fpext double %12 to x86_fp80
%14 = load x86_fp80, x86_fp80* %2
%15 = fadd x86_fp80 %14, %13
store x86_fp80 %15, x86_fp80* %2
%16 = load x86_fp80, x86_fp80* %1
%17 = fadd x86_fp80 %16, 0xK3FFF8000000000000000
store x86_fp80 %17, x86_fp80* %1
br label %4
18: ; preds = %4
%19 = load x86_fp80, x86_fp80* %2
ret x86_fp80 %19
}

LLVM IR (-O2):
/* Variables and functions */
int double_chars(double);
scalar_t__ malloc(int);
int /*<<< orphan*/ sprintf(char *, char *, int, int, double);
char *dtos(double d, int precision) {
  int sz;
  char *s;
  sz = double_chars(d);
  s = (char *)malloc(sz + precision + 2);
  sprintf(s, "%*.*f", sz, precision, d);
  return s;
}


x86 assembly (clang, -O0):
<dtos>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %edi,-0xc(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <double_chars@plt>
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%edi
add    -0xc(%rbp),%edi
add    $0x2,%edi
call   1040 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%edx
mov    -0xc(%rbp),%ecx
movsd  -0x8(%rbp),%xmm0
lea    0xe8b(%rip),%rsi
call   1050 <sprintf@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dtos>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %edi,%r14d
movsd  %xmm0,0x8(%rsp)
call   1030 <double_chars@plt>
mov    %eax,%r15d
lea    (%r14,%r15,1),%edi
add    $0x2,%edi
call   1040 <malloc@plt>
mov    %rax,%rbx
lea    0xea0(%rip),%rsi
mov    %rax,%rdi
mov    %r15d,%edx
mov    %r14d,%ecx
movsd  0x8(%rsp),%xmm0
call   1050 <sprintf@plt>
mov    %rbx,%rax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%*.*f\00"
define i8* @dtos(double %0, i32 %1) {
%3 = alloca double
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8*
store double %0, double* %3
store i32 %1, i32* %4
%7 = load double, double* %3
%8 = call i32 @double_chars(double %7)
store i32 %8, i32* %5
%9 = load i32, i32* %5
%10 = load i32, i32* %4
%11 = add nsw i32 %9, %10
%12 = add nsw i32 %11, 2
%13 = call i64 @malloc(i32 %12)
%14 = inttoptr i64 %13 to i8*
store i8* %14, i8** %6
%15 = load i8*, i8** %6
%16 = load i32, i32* %5
%17 = load i32, i32* %4
%18 = load double, double* %3
%19 = call i32 @sprintf(i8* %15, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %16, i32 %17, double %18)
%20 = load i8*, i8** %6
ret i8* %20
}

LLVM IR (-O2):
@.str = [6 x i8] c"%*.*f\00"
define i8* @dtos(double %0, i32 %1) {
%3 = tail call i32 @double_chars(double %0)
%4 = add i32 %1, 2
%5 = add i32 %4, %3
%6 = tail call i64 @malloc(i32 %5)
%7 = inttoptr i64 %6 to i8*
%8 = tail call i32 @sprintf(i8* dereferenceable(1) %7, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %3, i32 %1, double %0)
ret i8* %7
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *);
void Exit() {
  printf("Error! Couldn't allocate memory.\n");
  exit(1);
}


x86 assembly (clang, -O0):
<Exit>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<Exit>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [34 x i8] c"Error! Couldn't allocate memory.\0A\00"
define void @Exit() {
%1 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@str = [33 x i8] c"Error! Couldn't allocate memory.\00"
define void @Exit() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ hal_io_apic_write32(int, int /*<<< orphan*/);
void hal_io_irq_send_eoi() {
  hal_io_apic_write32(0x000000B0, 0);
  return;
}


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

x86 assembly (clang, -O2):
<hal_io_irq_send_eoi>:
mov    $0xb0,%edi
xor    %esi,%esi
jmp    1030 <hal_io_apic_write32@plt>

LLVM IR (-O0):
define void @hal_io_irq_send_eoi() {
%1 = call i32 @hal_io_apic_write32(i32 176, i32 0)
ret void
}

LLVM IR (-O2):
define void @hal_io_irq_send_eoi() {
%1 = tail call i32 @hal_io_apic_write32(i32 176, i32 0)
ret void
}
int cable_get_usb_id_level(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @cable_get_usb_id_level() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ if_else(int, int, int, int);
int /*<<< orphan*/ if_i_j(int, int, int, int);
void ft_button(int i, int j, int k) {
  int n1;
  int n2;
  int n3;
  int mid;
  n1 = i;
  n2 = j;
  n3 = k;
  if (n1 > n2) {
    if_i_j(n1, n2, n3, mid);
  } else {
    if_else(n1, n2, n3, mid);
  }
}


x86 assembly (clang, -O0):
<ft_button>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x14(%rbp),%eax
jle    1165 <ft_button+0x45>
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%ecx
call   1030 <if_i_j@plt>
jmp    1176 <ft_button+0x56>
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%ecx
call   1040 <if_else@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_button>:
cmp    %esi,%edi
jle    1129 <ft_button+0x9>
jmp    1030 <if_i_j@plt>
jmp    1040 <if_else@plt>

LLVM IR (-O0):
define void @ft_button(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%11 = load i32, i32* %4
store i32 %11, i32* %7
%12 = load i32, i32* %5
store i32 %12, i32* %8
%13 = load i32, i32* %6
store i32 %13, i32* %9
%14 = load i32, i32* %7
%15 = load i32, i32* %8
%16 = icmp sgt i32 %14, %15
br i1 %16, label %17, label %23
17: ; preds = %3
%18 = load i32, i32* %7
%19 = load i32, i32* %8
%20 = load i32, i32* %9
%21 = load i32, i32* %10
%22 = call i32 @if_i_j(i32 %18, i32 %19, i32 %20, i32 %21)
br label %29
23: ; preds = %3
%24 = load i32, i32* %7
%25 = load i32, i32* %8
%26 = load i32, i32* %9
%27 = load i32, i32* %10
%28 = call i32 @if_else(i32 %24, i32 %25, i32 %26, i32 %27)
br label %29
29: ; preds = %23, %17
ret void
}

LLVM IR (-O2):
define void @ft_button(i32 %0, i32 %1, i32 %2) {
%4 = icmp sgt i32 %0, %1
br i1 %4, label %5, label %7
5: ; preds = %3
%6 = tail call i32 @if_i_j(i32 %0, i32 %1, i32 %2, i32 undef)
br label %9
7: ; preds = %3
%8 = tail call i32 @if_else(i32 %0, i32 %1, i32 %2, i32 undef)
br label %9
9: ; preds = %7, %5
ret void
}
int test(int a, int b, char flags[], int g1, int g2) {
  int ret;
  __asm__ __volatile__("mov %3, %%edx\n\t"
                       "mov %4, %%eax\n\t"
                       "mov %5, %%ecx\n\t"
                       "movb %b1, %%al\n\t"
                       "movb %b2, %%cl\n\t"
                       "subb %%cl, %%al\n\t"
                       "seto (%%edx)\n\t"
                       "sets 1(%%edx)\n\t"
                       "setz 2(%%edx)\n\t"
                       "setp 3(%%edx)\n\t"
                       "setc 4(%%edx)\n\t"
                       "movzbl %%al, %%eax\n\t"
                       "mov %%eax, %0\n\t"
                       : "=m"(ret)
                       : "m"(a), "m"(b), "m"(flags), "m"(g1), "m"(g2)
                       : "eax", "ecx", "edx", "memory");
  return ret;
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%eax
mov    -0x18(%rbp),%ecx
mov    -0x4(%rbp),%al
mov    -0x8(%rbp),%cl
sub    %cl,%al
seto   (%edx)
sets   0x1(%edx)
sete   0x2(%edx)
setp   0x3(%edx)
setb   0x4(%edx)
movzbl %al,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
mov    %edi,-0xc(%rsp)
mov    %esi,-0x10(%rsp)
mov    %rdx,-0x8(%rsp)
mov    %ecx,-0x14(%rsp)
mov    %r8d,-0x18(%rsp)
mov    -0x8(%rsp),%edx
mov    -0x14(%rsp),%eax
mov    -0x18(%rsp),%ecx
mov    -0xc(%rsp),%al
mov    -0x10(%rsp),%cl
sub    %cl,%al
seto   (%edx)
sets   0x1(%edx)
sete   0x2(%edx)
setp   0x3(%edx)
setb   0x4(%edx)
movzbl %al,%eax
mov    %eax,-0x1c(%rsp)
mov    -0x1c(%rsp),%eax
ret

LLVM IR (-O0):
define i32 @test(i32 %0, i32 %1, i8* %2, i32 %3, i32 %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32 %0, i32* %6
store i32 %1, i32* %7
store i8* %2, i8** %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%12 = load i32, i32* %11
ret i32 %12
}

LLVM IR (-O2):
define i32 @test(i32 %0, i32 %1, i8* %2, i32 %3, i32 %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32 %0, i32* %6
store i32 %1, i32* %7
store i8* %2, i8** %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%12 = bitcast i32* %11 to i8*
%13 = load i32, i32* %11
ret i32 %13
}
/* Variables and functions */
int /*<<< orphan*/ test_init(int, char **);
int /*<<< orphan*/ test_msg(char *, char *, int);
int main(int argc, char **argv) {
  test_init(argc, argv);
  test_msg("SKIP: %s:%d: "
           "Inotify not supported."
           "\n",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/KKoukiou/criu-remote/refs/heads/master/"
           "test/zdtm/static/inotify_system.c",
           388);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <test_init@plt>
lea    0xeb7(%rip),%rdi
lea    0xed5(%rip),%rsi
mov    $0x184,%edx
call   1040 <test_msg@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
call   1030 <test_init@plt>
lea    0xed3(%rip),%rdi
lea    0xef1(%rip),%rsi
mov    $0x184,%edx
call   1040 <test_msg@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [37 x i8] c"SKIP: %s:%d: Inotify not supported.\0A\00"
@.str.1 = [163 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/KKoukiou/criu-remote/refs/heads/master/test/zdtm/static/inotify_system.c\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = load i8**, i8*** %5
%8 = call i32 @test_init(i32 %6, i8** %7)
%9 = call i32 @test_msg(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.1, i64 0, i64 0), i32 388)
ret i32 0
}

LLVM IR (-O2):
@.str = [37 x i8] c"SKIP: %s:%d: Inotify not supported.\0A\00"
@.str.1 = [163 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/KKoukiou/criu-remote/refs/heads/master/test/zdtm/static/inotify_system.c\00"
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 @test_init(i32 %0, i8** %1)
%4 = tail call i32 @test_msg(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.1, i64 0, i64 0), i32 388)
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;
typedef int /*<<< orphan*/ size;

/* Variables and functions */
int /*<<< orphan*/ STDIN_FILENO;
int /*<<< orphan*/ read(int /*<<< orphan*/, int /*<<< orphan*/ *, int);
uint32_t read_size() {
  uint32_t size = 0;
  read(STDIN_FILENO, &size, sizeof(size));
  return size;
}


x86 assembly (clang, -O0):
<read_size>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2eba(%rip),%rax
mov    (%rax),%edi
lea    -0x4(%rbp),%rsi
mov    $0x4,%edx
call   1030 <read@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_size>:
push   %rax
movl   $0x0,0x4(%rsp)
mov    0x2ec0(%rip),%rax
mov    (%rax),%edi
lea    0x4(%rsp),%rsi
mov    $0x4,%edx
call   1030 <read@plt>
mov    0x4(%rsp),%eax
pop    %rcx
ret

LLVM IR (-O0):
@STDIN_FILENO = global i32 0
define i32 @read_size() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @STDIN_FILENO
%3 = call i32 @read(i32 %2, i32* %1, i32 4)
%4 = load i32, i32* %1
ret i32 %4
}

LLVM IR (-O2):
@STDIN_FILENO = global i32 0
define i32 @read_size() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%3 = load i32, i32* @STDIN_FILENO
%4 = call i32 @read(i32 %3, i32* %1, i32 4)
%5 = load i32, i32* %1
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ memcpy(int *, int /*<<< orphan*/, int);
int /*<<< orphan*/ set_key(unsigned int const *, int);
void TWOFISH_set_key(unsigned char *key, int keysize, int *twofish_key) {
  memcpy(twofish_key, set_key((const unsigned int *)key, keysize), (40 * 4));
}


x86 assembly (clang, -O0):
<TWOFISH_set_key>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1030 <set_key@plt>
mov    -0x20(%rbp),%rdi
mov    %eax,%esi
mov    $0xa0,%edx
call   1040 <memcpy@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TWOFISH_set_key>:
push   %rbx
mov    %rdx,%rbx
call   1030 <set_key@plt>
mov    %rbx,%rdi
mov    %eax,%esi
mov    $0xa0,%edx
pop    %rbx
jmp    1040 <memcpy@plt>

LLVM IR (-O0):
define void @TWOFISH_set_key(i8* %0, i32 %1, i32* %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32*
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32* %2, i32** %6
%7 = load i32*, i32** %6
%8 = load i8*, i8** %4
%9 = bitcast i8* %8 to i32*
%10 = load i32, i32* %5
%11 = call i32 @set_key(i32* %9, i32 %10)
%12 = call i32 @memcpy(i32* %7, i32 %11, i32 160)
ret void
}

LLVM IR (-O2):
define void @TWOFISH_set_key(i8* %0, i32 %1, i32* %2) {
%4 = bitcast i8* %0 to i32*
%5 = tail call i32 @set_key(i32* %4, i32 %1)
%6 = tail call i32 @memcpy(i32* %2, i32 %5, i32 160)
ret void
}
int test_imm_70int16_mem(short *val) {
  return ((*val) & (0x70 << 0)) ? -20 : -40;
}


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

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

LLVM IR (-O0):
define i32 @test_imm_70int16_mem(i16* %0) {
%2 = alloca i16*
store i16* %0, i16** %2
%3 = load i16*, i16** %2
%4 = load i16, i16* %3
%5 = sext i16 %4 to i32
%6 = and i32 %5, 112
%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_70int16_mem(i16* nocapture %0) {
%2 = load i16, i16* %0
%3 = and i16 %2, 112
%4 = icmp eq i16 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
print_data_blck_mismatch_error(int bnum, int e_bnum) {
  printf("Data packet of block number %d received, %d expected\n", bnum,
         e_bnum);
}


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

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

LLVM IR (-O0):
@.str = [54 x i8] c"Data packet of block number %d received, %d expected\0A\00"
define i32 @print_data_blck_mismatch_error(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 i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i32 %6, i32 %7)
%9 = load i32, i32* %3
ret i32 %9
}

LLVM IR (-O2):
@.str = [54 x i8] c"Data packet of block number %d received, %d expected\0A\00"
define i32 @print_data_blck_mismatch_error(i32 %0, i32 %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %1)
ret i32 undef
}
/* Variables and functions */
scalar_t__ empty_string(char const *);
bool emptynull_string(char const *s) {
  return ((s == NULL) || empty_string(s));
}


x86 assembly (clang, -O0):
<emptynull_string>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x1,%al
cmpq   $0x0,-0x8(%rbp)
mov    %al,-0x9(%rbp)
je     113f <emptynull_string+0x2f>
mov    -0x8(%rbp),%rdi
call   1030 <empty_string@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<emptynull_string>:
test   %rdi,%rdi
je     112b <emptynull_string+0x1b>
push   %rax
call   1030 <empty_string@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
setne  %al
add    $0x8,%rsp
ret
mov    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @emptynull_string(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp eq i8* %3, null
br i1 %4, label %9, label %5
5: ; preds = %1
%6 = load i8*, i8** %2
%7 = call i64 @empty_string(i8* %6)
%8 = icmp ne i64 %7, 0
br label %9
9: ; preds = %5, %1
%10 = phi i1 [ true, %1 ], [ %8, %5 ]
%11 = zext i1 %10 to i32
ret i32 %11
}

LLVM IR (-O2):
define i32 @emptynull_string(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %7, label %3
3: ; preds = %1
%4 = tail call i64 @empty_string(i8* %0)
%5 = icmp ne i64 %4, 0
%6 = zext i1 %5 to i32
br label %7
7: ; preds = %3, %1
%8 = phi i32 [ 1, %1 ], [ %6, %3 ]
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ Error(char *);
int /*<<< orphan*/ SkipUntilSep();
void NoIdent(void) {
  Error("Argument of .IDENT is not a valid identifier");
  SkipUntilSep();
}


x86 assembly (clang, -O0):
<NoIdent>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <Error@plt>
mov    $0x0,%al
call   1040 <SkipUntilSep@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<NoIdent>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <Error@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <SkipUntilSep@plt>

LLVM IR (-O0):
@.str = [45 x i8] c"Argument of .IDENT is not a valid identifier\00"
define void @NoIdent() {
%1 = call i32 @Error(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @SkipUntilSep()
ret void
}

LLVM IR (-O2):
@.str = [45 x i8] c"Argument of .IDENT is not a valid identifier\00"
define void @NoIdent() {
%1 = tail call i32 @Error(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @SkipUntilSep()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ ack(char *);
int /*<<< orphan*/ perror_reply(int, char *);
scalar_t__ rename(char *, char *);
void renamecmd(char *from, char *to) {
  if (rename(from, to) < 0)
    perror_reply(550, "rename");
  else
    ack("RNTO");
}


x86 assembly (clang, -O0):
<renamecmd>:
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   1040 <rename@plt>
cmp    $0x0,%rax
jge    116d <renamecmd+0x3d>
mov    $0x226,%edi
lea    0xe9d(%rip),%rsi
call   1050 <perror_reply@plt>
jmp    1179 <renamecmd+0x49>
lea    0xe93(%rip),%rdi
call   1030 <ack@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<renamecmd>:
push   %rax
call   1040 <rename@plt>
test   %rax,%rax
js     1148 <renamecmd+0x18>
lea    0xec5(%rip),%rdi
pop    %rax
jmp    1030 <ack@plt>
lea    0xeb1(%rip),%rsi
mov    $0x226,%edi
pop    %rax
jmp    1050 <perror_reply@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"rename\00"
@.str.1 = [5 x i8] c"RNTO\00"
define void @renamecmd(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = load i8*, i8** %4
%7 = call i64 @rename(i8* %5, i8* %6)
%8 = icmp slt i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @perror_reply(i32 550, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
br label %13
11: ; preds = %2
%12 = call i32 @ack(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %13
13: ; preds = %11, %9
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"rename\00"
@.str.1 = [5 x i8] c"RNTO\00"
define void @renamecmd(i8* nocapture %0, i8* nocapture %1) {
%3 = tail call i64 @rename(i8* %0, i8* %1)
%4 = icmp slt i64 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @perror_reply(i32 550, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
br label %9
7: ; preds = %2
%8 = tail call i32 @ack(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %9
9: ; preds = %7, %5
ret void
}
void up_set_status(char *str) {}


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

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

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

LLVM IR (-O2):
define void @up_set_status(i8* nocapture %0) {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ reqbuf;

/* Variables and functions */
int ph_rpc(char *);
int /*<<< orphan*/ snprintf(char *, int, char *, int);
int phResumeCall(int cid) {
  char reqbuf[64];
  snprintf(reqbuf, sizeof(reqbuf), "RESUME CID=%d", cid);
  return ph_rpc(reqbuf);
}


x86 assembly (clang, -O0):
<phResumeCall>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
lea    -0x50(%rbp),%rdi
mov    -0x4(%rbp),%ecx
mov    $0x40,%esi
lea    0xec2(%rip),%rdx
call   1030 <snprintf@plt>
lea    -0x50(%rbp),%rdi
call   1040 <ph_rpc@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<phResumeCall>:
push   %rbx
sub    $0x40,%rsp
mov    %edi,%ecx
lea    0xed2(%rip),%rdx
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x40,%esi
call   1030 <snprintf@plt>
mov    %rbx,%rdi
call   1040 <ph_rpc@plt>
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [14 x i8] c"RESUME CID=%d\00"
define i32 @phResumeCall(i32 %0) {
%2 = alloca i32
%3 = alloca [64 x i8]
store i32 %0, i32* %2
%4 = getelementptr inbounds [64 x i8], [64 x i8]* %3, i64 0, i64 0
%5 = load i32, i32* %2
%6 = call i32 @snprintf(i8* %4, i32 64, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = getelementptr inbounds [64 x i8], [64 x i8]* %3, i64 0, i64 0
%8 = call i32 @ph_rpc(i8* %7)
ret i32 %8
}

LLVM IR (-O2):
@.str = [14 x i8] c"RESUME CID=%d\00"
define i32 @phResumeCall(i32 %0) {
%2 = alloca [64 x i8]
%3 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%4 = call i32 @snprintf(i8* %3, i32 64, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %0)
%5 = call i32 @ph_rpc(i8* %3)
ret i32 %5
}
void GLUE_PUSH_VAL_AT_PX_TO_FPSTACK(void *b, int wv) {
  *(unsigned int *)b = 0xed900b00 + (wv << 16);
}


x86 assembly (clang, -O0):
<GLUE_PUSH_VAL_AT_PX_TO_FPSTACK>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%ecx
shl    $0x10,%ecx
add    $0xed900b00,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<GLUE_PUSH_VAL_AT_PX_TO_FPSTACK>:
shl    $0x10,%esi
add    $0xed900b00,%esi
mov    %esi,(%rdi)
ret

LLVM IR (-O0):
define void @GLUE_PUSH_VAL_AT_PX_TO_FPSTACK(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = shl i32 %5, 16
%7 = add i32 -309327104, %6
%8 = load i8*, i8** %3
%9 = bitcast i8* %8 to i32*
store i32 %7, i32* %9
ret void
}

LLVM IR (-O2):
define void @GLUE_PUSH_VAL_AT_PX_TO_FPSTACK(i8* nocapture writeonly %0, i32 %1) {
%3 = shl i32 %1, 16
%4 = add i32 %3, -309327104
%5 = bitcast i8* %0 to i32*
store i32 %4, i32* %5
ret void
}
/* Variables and functions */
int /*<<< orphan*/ execute_word(char *, void *);
scalar_t__ init_forth();
int /*<<< orphan*/ tx(char);
main() {
  void *up;
  tx('C');
  up = (void *)init_forth();
  execute_word("quit", up);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x43,%edi
call   1050 <tx@plt>
mov    $0x0,%al
call   1040 <init_forth@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xea8(%rip),%rdi
call   1030 <execute_word@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x43,%edi
call   1050 <tx@plt>
xor    %eax,%eax
call   1040 <init_forth@plt>
lea    0xeb7(%rip),%rdi
mov    %rax,%rsi
call   1030 <execute_word@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"quit\00"
define i32 @main() {
%1 = alloca i8*
%2 = call i32 @tx(i8 signext 67)
%3 = call i64 (...) @init_forth()
%4 = inttoptr i64 %3 to i8*
store i8* %4, i8** %1
%5 = load i8*, i8** %1
%6 = call i32 @execute_word(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %5)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"quit\00"
define i32 @main() {
%1 = tail call i32 @tx(i8 signext 67)
%2 = tail call i64 (...) @init_forth()
%3 = inttoptr i64 %2 to i8*
%4 = tail call i32 @execute_word(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %3)
ret i32 0
}
/* Variables and functions */
void *memset(void *, int, unsigned int);
void *sys_memset(void *pPtr, int iVal, unsigned int uiOffset) {
  return memset(pPtr, iVal, uiOffset);
}


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

x86 assembly (clang, -O2):
<sys_memset>:
jmp    1030 <memset@plt>

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

LLVM IR (-O2):
define i8* @sys_memset(i8* %0, i32 %1, i32 %2) {
%4 = tail call i8* @memset(i8* %0, i32 %1, i32 %2)
ret i8* %4
}
/* Variables and functions */
int /*<<< orphan*/ PWM4_3_DriverIRQHandler();
__attribute__((weak)) void PWM4_3_IRQHandler(void) {
  PWM4_3_DriverIRQHandler();
}


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

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

LLVM IR (-O0):
define weak void @PWM4_3_IRQHandler() {
%1 = call i32 (...) @PWM4_3_DriverIRQHandler()
ret void
}

LLVM IR (-O2):
define weak void @PWM4_3_IRQHandler() {
%1 = tail call i32 (...) @PWM4_3_DriverIRQHandler()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stdout;
void stdout_hook(char *line, void *data) {
  fprintf(stdout, line);
  fflush(stdout);
}


x86 assembly (clang, -O0):
<stdout_hook>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2ea9(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1030 <fprintf@plt>
mov    0x2e97(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stdout_hook>:
push   %rbx
mov    %rdi,%rsi
mov    0x2eb5(%rip),%rbx
mov    (%rbx),%edi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
pop    %rbx
jmp    1040 <fflush@plt>

LLVM IR (-O0):
@stdout = global i32 0
define void @stdout_hook(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i32, i32* @stdout
%6 = load i8*, i8** %3
%7 = call i32 @fprintf(i32 %5, i8* %6)
%8 = load i32, i32* @stdout
%9 = call i32 @fflush(i32 %8)
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
define void @stdout_hook(i8* %0, i8* nocapture readnone %1) {
%3 = load i32, i32* @stdout
%4 = tail call i32 @fprintf(i32 %3, i8* %0)
%5 = load i32, i32* @stdout
%6 = tail call i32 @fflush(i32 %5)
ret void
}
long oadd(t1, t2) const long t1;
const long t2;
{
  register long t;
  t = t1 + t2;
  if (t2 > 0 && t <= t1 || t2 < 0 && t >= t1) {
    error("time overflow");
    (void)exit(1);
  }
  return t;
}


x86 assembly (clang, -O0):
<oadd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
add    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
jle    1155 <oadd+0x35>
mov    -0x18(%rbp),%rax
cmp    -0x8(%rbp),%rax
jle    116e <oadd+0x4e>
cmpq   $0x0,-0x10(%rbp)
jge    1186 <oadd+0x66>
mov    -0x18(%rbp),%rax
cmp    -0x8(%rbp),%rax
jl     1186 <oadd+0x66>
lea    0xe8b(%rip),%rdi
mov    $0x0,%al
call   1030 <error@plt>
mov    $0x1,%edi
call   1040 <exit@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [14 x i8] c"time overflow\00"
define i64 @oadd(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%6 = load i64, i64* %3
%7 = load i64, i64* %4
%8 = add nsw i64 %6, %7
store i64 %8, i64* %5
%9 = load i64, i64* %4
%10 = icmp sgt i64 %9, 0
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = load i64, i64* %5
%13 = load i64, i64* %3
%14 = icmp sle i64 %12, %13
br i1 %14, label %22, label %15
15: ; preds = %11, %2
%16 = load i64, i64* %4
%17 = icmp slt i64 %16, 0
br i1 %17, label %18, label %24
18: ; preds = %15
%19 = load i64, i64* %5
%20 = load i64, i64* %3
%21 = icmp sge i64 %19, %20
br i1 %21, label %22, label %24
22: ; preds = %18, %11
%23 = call i32 (i8*, ...) bitcast (i32 (...)* @error to i32 (i8*, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
unreachable
24: ; preds = %18, %15
%25 = load i64, i64* %5
ret i64 %25
}

LLVM IR (-O2):
define i64 @oadd(i64 %0, i64 %1) {
%3 = add nsw i64 %1, %0
ret i64 %3
}
void SceneManager_pause() {}


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

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

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

LLVM IR (-O2):
define void @SceneManager_pause() {
ret void
}
void voice_chat_start_recording(void) {}


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

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

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

LLVM IR (-O2):
define void @voice_chat_start_recording() {
ret void
}
void ff_hevc_put_hevc_uni_epel_v6_12_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_uni_epel_v6_12_sse4() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ int32_t;

/* Variables and functions */
int /*<<< orphan*/ cos_t(int);
int32_t sin_t(int x) { return cos_t(x - 512); }


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

x86 assembly (clang, -O2):
<sin_t>:
add    $0xfffffe00,%edi
jmp    1030 <cos_t@plt>

LLVM IR (-O0):
define i32 @sin_t(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = sub nsw i32 %3, 512
%5 = call i32 @cos_t(i32 %4)
ret i32 %5
}

LLVM IR (-O2):
define i32 @sin_t(i32 %0) {
%2 = add nsw i32 %0, -512
%3 = tail call i32 @cos_t(i32 %2)
ret i32 %3
}