xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void usage(void) {
  printf("Usage: %s [--version] [--help] [--checksum] [--crc16=poly]\n"
         "         [--crc8=poly] [--fuck-up] [--file=file] [--no-send]\n"
         "         [--delay-line=microseconds] [--delay-byte=microseconds]\n"
         "         [--print] [--size=size] [--tty=tty] [--pty [=alias]] "
         "[--width] [--pass]\n"
         "         [--read] [--write] [--timing-print] "
         "[--timing-delta=microseconds]\n"
         "         [--ascii] [--alias-separator=separator] [--byte-count]\n"
         "         [--append] [--append-separator=separator] [--control]\n"
         "         [--control-poll=microseconds] [--count=bytes] [--base] "
         "<file>\n",
         "jpnevulator");
}


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

x86 assembly (clang, -O2):
<usage>:
lea    0xee9(%rip),%rdi
lea    0x10fe(%rip),%rsi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [540 x i8] c"Usage: %s [--version] [--help] [--checksum] [--crc16=poly]\0A [--crc8=poly] [--fuck-up] [--file=file] [--no-send]\0A [--delay-line=microseconds] [--delay-byte=microseconds]\0A [--print] [--size=size] [--tty=tty] [--pty [=alias]] [--width] [--pass]\0A [--read] [--write] [--timing-print] [--timing-delta=microseconds]\0A [--ascii] [--alias-separator=separator] [--byte-count]\0A [--append] [--append-separator=separator] [--control]\0A [--control-poll=microseconds] [--count=bytes] [--base] <file>\0A\00"
@.str.1 = [12 x i8] c"jpnevulator\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([540 x i8], [540 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [540 x i8] c"Usage: %s [--version] [--help] [--checksum] [--crc16=poly]\0A [--crc8=poly] [--fuck-up] [--file=file] [--no-send]\0A [--delay-line=microseconds] [--delay-byte=microseconds]\0A [--print] [--size=size] [--tty=tty] [--pty [=alias]] [--width] [--pass]\0A [--read] [--write] [--timing-print] [--timing-delta=microseconds]\0A [--ascii] [--alias-separator=separator] [--byte-count]\0A [--append] [--append-separator=separator] [--control]\0A [--control-poll=microseconds] [--count=bytes] [--base] <file>\0A\00"
@.str.1 = [12 x i8] c"jpnevulator\00"
define void @usage() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([540 x i8], [540 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
ret void
}
float ANTweenTimingFunctionQuintIn(float time, float begin, float change,
                                   float duration) {
  time = time / duration - 1;
  return change * (time * time * time * time * time + 1) + begin;
}


x86 assembly (clang, -O0):
<ANTweenTimingFunctionQuintIn>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
movss  -0x4(%rbp),%xmm0
divss  -0x10(%rbp),%xmm0
movss  0xed6(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0xc(%rbp),%xmm0
movss  -0x4(%rbp),%xmm2
mulss  -0x4(%rbp),%xmm2
mulss  -0x4(%rbp),%xmm2
mulss  -0x4(%rbp),%xmm2
movss  -0x4(%rbp),%xmm1
mulss  %xmm1,%xmm2
movss  0xea3(%rip),%xmm1
addss  %xmm1,%xmm2
movss  -0x8(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<ANTweenTimingFunctionQuintIn>:
divss  %xmm3,%xmm0
addss  0xef4(%rip),%xmm0
movaps %xmm0,%xmm3
mulss  %xmm0,%xmm3
mulss  %xmm0,%xmm3
mulss  %xmm0,%xmm3
mulss  %xmm3,%xmm0
addss  0xedd(%rip),%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
ret

LLVM IR (-O0):
define float @ANTweenTimingFunctionQuintIn(float %0, float %1, float %2, float %3) {
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
store float %0, float* %5
store float %1, float* %6
store float %2, float* %7
store float %3, float* %8
%9 = load float, float* %5
%10 = load float, float* %8
%11 = fdiv float %9, %10
%12 = fsub float %11, 1.000000e+00
store float %12, float* %5
%13 = load float, float* %7
%14 = load float, float* %5
%15 = load float, float* %5
%16 = fmul float %14, %15
%17 = load float, float* %5
%18 = fmul float %16, %17
%19 = load float, float* %5
%20 = fmul float %18, %19
%21 = load float, float* %5
%22 = call float @llvm.fmuladd.f32(float %20, float %21, float 1.000000e+00)
%23 = load float, float* %6
%24 = call float @llvm.fmuladd.f32(float %13, float %22, float %23)
ret float %24
}

LLVM IR (-O2):
define float @ANTweenTimingFunctionQuintIn(float %0, float %1, float %2, float %3) {
%5 = fdiv float %0, %3
%6 = fadd float %5, -1.000000e+00
%7 = fmul float %6, %6
%8 = fmul float %6, %7
%9 = fmul float %6, %8
%10 = tail call float @llvm.fmuladd.f32(float %9, float %6, float 1.000000e+00)
%11 = tail call float @llvm.fmuladd.f32(float %2, float %10, float %1)
ret float %11
}
f(signed s, unsigned u) {
  (void)(s + u);
  (void)(s + 1u);
  (void)(u + 1);
  (void)(s == u);
  return 1 ? s : u;
}


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

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

LLVM IR (-O0):
define i32 @f(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = add i32 %5, %6
%8 = load i32, i32* %3
%9 = add i32 %8, 1
%10 = load i32, i32* %4
%11 = add i32 %10, 1
%12 = load i32, i32* %3
%13 = load i32, i32* %4
%14 = icmp eq i32 %12, %13
%15 = zext i1 %14 to i32
%16 = load i32, i32* %3
ret i32 %16
}

LLVM IR (-O2):
define i32 @f(i32 returned %0, i32 %1) {
ret i32 %0
}
/* Type definitions */
struct cec_msg {
  int /*<<< orphan*/ *msg;
};
typedef int /*<<< orphan*/ __u8;

/* Variables and functions */
void cec_ops_play(const struct cec_msg *msg, __u8 *play_mode) {
  *play_mode = msg->msg[2];
}


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

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

LLVM IR (-O0):
%struct.cec_msg = type { i32* }
define void @cec_ops_play(%struct.cec_msg* %0, i32* %1) {
%3 = alloca %struct.cec_msg*
%4 = alloca i32*
store %struct.cec_msg* %0, %struct.cec_msg** %3
store i32* %1, i32** %4
%5 = load %struct.cec_msg*, %struct.cec_msg** %3
%6 = getelementptr inbounds %struct.cec_msg, %struct.cec_msg* %5, i32 0, i32 0
%7 = load i32*, i32** %6
%8 = getelementptr inbounds i32, i32* %7, i64 2
%9 = load i32, i32* %8
%10 = load i32*, i32** %4
store i32 %9, i32* %10
ret void
}

LLVM IR (-O2):
%struct.cec_msg = type { i32* }
define void @cec_ops_play(%struct.cec_msg* nocapture %0, i32* nocapture writeonly %1) {
%3 = getelementptr inbounds %struct.cec_msg, %struct.cec_msg* %0, i64 0, i32 0
%4 = load i32*, i32** %3
%5 = getelementptr inbounds i32, i32* %4, i64 2
%6 = load i32, i32* %5
store i32 %6, i32* %1
ret void
}
void g_queue_foreach() {}


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

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

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

LLVM IR (-O2):
define void @g_queue_foreach() {
ret void
}
int cmd_cluster_stop(int fd, int argc, char *argv[]) { return 0; }


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

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

LLVM IR (-O0):
define i32 @cmd_cluster_stop(i32 %0, i32 %1, i8** %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8**
store i32 %0, i32* %4
store i32 %1, i32* %5
store i8** %2, i8*** %6
ret i32 0
}

LLVM IR (-O2):
define i32 @cmd_cluster_stop(i32 %0, i32 %1, i8** nocapture readnone %2) {
ret i32 0
}
int ti_fosc_start(double const *options) { return (int)options[0]; }


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

x86 assembly (clang, -O2):
<ti_fosc_start>:
cvttsd2si (%rdi),%eax
ret

LLVM IR (-O0):
define i32 @ti_fosc_start(double* %0) {
%2 = alloca double*
store double* %0, double** %2
%3 = load double*, double** %2
%4 = getelementptr inbounds double, double* %3, i64 0
%5 = load double, double* %4
%6 = fptosi double %5 to i32
ret i32 %6
}

LLVM IR (-O2):
define i32 @ti_fosc_start(double* nocapture %0) {
%2 = load double, double* %0
%3 = fptosi double %2 to i32
ret i32 %3
}
void addReplyBulkSds(void) {
  _serverPanic("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/CodisLabs/redis-port/refs/"
               "heads/redis-4.x-cgo/pkg/rdb/cgo_glue_meow.c",
               22, "Function '%s' is disabled.", __func__);
}


x86 assembly (clang, -O0):
<addReplyBulkSds>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x16,%esi
lea    0xf79(%rip),%rdx
lea    0xf8d(%rip),%rcx
mov    $0x0,%al
call   1030 <_serverPanic@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<addReplyBulkSds>:
lea    0xee9(%rip),%rdi
lea    0xf82(%rip),%rdx
lea    0xf96(%rip),%rcx
mov    $0x16,%esi
xor    %eax,%eax
jmp    1030 <_serverPanic@plt>

LLVM IR (-O0):
@.str = [160 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/CodisLabs/redis-port/refs/heads/redis-4.x-cgo/pkg/rdb/cgo_glue_meow.c\00"
@.str.1 = [27 x i8] c"Function '%s' is disabled.\00"
@__func__.addReplyBulkSds = [16 x i8] c"addReplyBulkSds\00"
define void @addReplyBulkSds() {
%1 = call i32 (i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @_serverPanic to i32 (i8*, i32, i8*, i8*, ...)*)(i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 22, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @__func__.addReplyBulkSds, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [160 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/CodisLabs/redis-port/refs/heads/redis-4.x-cgo/pkg/rdb/cgo_glue_meow.c\00"
@.str.1 = [27 x i8] c"Function '%s' is disabled.\00"
@__func__.addReplyBulkSds = [16 x i8] c"addReplyBulkSds\00"
define void @addReplyBulkSds() {
%1 = tail call i32 (i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @_serverPanic to i32 (i8*, i32, i8*, i8*, ...)*)(i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 22, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @__func__.addReplyBulkSds, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ puts(char *);
void separate() {
  puts("\n\n###################################################################"
       "############");
}


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

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

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

LLVM IR (-O2):
@.str = [82 x i8] c"\0A\0A###############################################################################\00"
define void @separate() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int _recvenet(char *, int);
int /*<<< orphan*/ monLock();
int /*<<< orphan*/ monUnlock();
int mon_recvenetpkt(char *pkt, int size) {
  int ret;
  monLock();
  ret = _recvenet(pkt, size);
  monUnlock();
  return (ret);
}


x86 assembly (clang, -O0):
<mon_recvenetpkt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    $0x0,%al
call   1040 <monLock@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1030 <_recvenet@plt>
mov    %eax,-0x10(%rbp)
mov    $0x0,%al
call   1050 <monUnlock@plt>
mov    -0x10(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mon_recvenetpkt>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
xor    %eax,%eax
call   1040 <monLock@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
call   1030 <_recvenet@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1050 <monUnlock@plt>
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @mon_recvenetpkt(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%6 = call i32 (...) @monLock()
%7 = load i8*, i8** %3
%8 = load i32, i32* %4
%9 = call i32 @_recvenet(i8* %7, i32 %8)
store i32 %9, i32* %5
%10 = call i32 (...) @monUnlock()
%11 = load i32, i32* %5
ret i32 %11
}

LLVM IR (-O2):
define i32 @mon_recvenetpkt(i8* %0, i32 %1) {
%3 = tail call i32 (...) @monLock()
%4 = tail call i32 @_recvenet(i8* %0, i32 %1)
%5 = tail call i32 (...) @monUnlock()
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int b() { printf("in b\n"); }


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

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

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

LLVM IR (-O2):
@str = [5 x i8] c"in b\00"
define i32 @b() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
/* Variables and functions */
int leftShift(int, int);
int encodeRFormat(int opcode, int rs, int rt, int rd, int function) {
  return leftShift(leftShift(leftShift(leftShift(opcode, 5) + rs, 5) + rt, 5) +
                       rd,
                   11) +
         function;
}


x86 assembly (clang, -O0):
<encodeRFormat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x5,%esi
call   1030 <leftShift@plt>
mov    %eax,%edi
add    -0x8(%rbp),%edi
mov    $0x5,%esi
call   1030 <leftShift@plt>
mov    %eax,%edi
add    -0xc(%rbp),%edi
mov    $0x5,%esi
call   1030 <leftShift@plt>
mov    %eax,%edi
add    -0x10(%rbp),%edi
mov    $0xb,%esi
call   1030 <leftShift@plt>
add    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<encodeRFormat>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %r8d,%r14d
mov    %ecx,%r15d
mov    %edx,%ebx
mov    %esi,%ebp
mov    $0x5,%esi
call   1030 <leftShift@plt>
add    %eax,%ebp
mov    %ebp,%edi
mov    $0x5,%esi
call   1030 <leftShift@plt>
add    %eax,%ebx
mov    %ebx,%edi
mov    $0x5,%esi
call   1030 <leftShift@plt>
add    %eax,%r15d
mov    %r15d,%edi
mov    $0xb,%esi
call   1030 <leftShift@plt>
add    %r14d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @encodeRFormat(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%11 = load i32, i32* %6
%12 = call i32 @leftShift(i32 %11, i32 5)
%13 = load i32, i32* %7
%14 = add nsw i32 %12, %13
%15 = call i32 @leftShift(i32 %14, i32 5)
%16 = load i32, i32* %8
%17 = add nsw i32 %15, %16
%18 = call i32 @leftShift(i32 %17, i32 5)
%19 = load i32, i32* %9
%20 = add nsw i32 %18, %19
%21 = call i32 @leftShift(i32 %20, i32 11)
%22 = load i32, i32* %10
%23 = add nsw i32 %21, %22
ret i32 %23
}

LLVM IR (-O2):
define i32 @encodeRFormat(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = tail call i32 @leftShift(i32 %0, i32 5)
%7 = add nsw i32 %6, %1
%8 = tail call i32 @leftShift(i32 %7, i32 5)
%9 = add nsw i32 %8, %2
%10 = tail call i32 @leftShift(i32 %9, i32 5)
%11 = add nsw i32 %10, %3
%12 = tail call i32 @leftShift(i32 %11, i32 11)
%13 = add nsw i32 %12, %4
ret i32 %13
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
struct jp2_remote {
  int dummy;
};

/* Variables and functions */
int jp2_receive(struct jp2_remote *, int /*<<< orphan*/ **);
int jp2_send(struct jp2_remote *, int /*<<< orphan*/ const *, int);
int jp2_command(struct jp2_remote *r, const uint8_t *txdata, int txlen,
                uint8_t **rxdata) {
  int rc;
  rc = jp2_send(r, txdata, txlen);
  if (rc < 0) {
    return rc;
  }
  return jp2_receive(r, rxdata);
}


x86 assembly (clang, -O0):
<jp2_command>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %rcx,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1030 <jp2_send@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
jge    115f <jp2_command+0x3f>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    116f <jp2_command+0x4f>
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1040 <jp2_receive@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<jp2_command>:
push   %r14
push   %rbx
push   %rax
mov    %rcx,%r14
mov    %rdi,%rbx
call   1030 <jp2_send@plt>
test   %eax,%eax
js     1145 <jp2_command+0x25>
mov    %rbx,%rdi
mov    %r14,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <jp2_receive@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.jp2_remote = type { i32 }
define i32 @jp2_command(%struct.jp2_remote* %0, i32* %1, i32 %2, i32** %3) {
%5 = alloca i32
%6 = alloca %struct.jp2_remote*
%7 = alloca i32*
%8 = alloca i32
%9 = alloca i32**
%10 = alloca i32
store %struct.jp2_remote* %0, %struct.jp2_remote** %6
store i32* %1, i32** %7
store i32 %2, i32* %8
store i32** %3, i32*** %9
%11 = load %struct.jp2_remote*, %struct.jp2_remote** %6
%12 = load i32*, i32** %7
%13 = load i32, i32* %8
%14 = call i32 @jp2_send(%struct.jp2_remote* %11, i32* %12, i32 %13)
store i32 %14, i32* %10
%15 = load i32, i32* %10
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %4
%18 = load i32, i32* %10
store i32 %18, i32* %5
br label %23
19: ; preds = %4
%20 = load %struct.jp2_remote*, %struct.jp2_remote** %6
%21 = load i32**, i32*** %9
%22 = call i32 @jp2_receive(%struct.jp2_remote* %20, i32** %21)
store i32 %22, i32* %5
br label %23
23: ; preds = %19, %17
%24 = load i32, i32* %5
ret i32 %24
}

LLVM IR (-O2):
%struct.jp2_remote = type { i32 }
define i32 @jp2_command(%struct.jp2_remote* %0, i32* %1, i32 %2, i32** %3) {
%5 = tail call i32 @jp2_send(%struct.jp2_remote* %0, i32* %1, i32 %2)
%6 = icmp slt i32 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %4
%8 = tail call i32 @jp2_receive(%struct.jp2_remote* %0, i32** %3)
br label %9
9: ; preds = %4, %7
%10 = phi i32 [ %8, %7 ], [ %5, %4 ]
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ f(int);
int main() {
  int e = 1;
  f(e);
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @f(i32 1)
ret i32 0
}
__attribute__((no)) int boo(double a, double b, double c, double d) {
  return c * b + a + b;
}


x86 assembly (clang, -O0):
<boo>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
movsd  -0x8(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0x10(%rbp),%xmm0
cvttsd2si %xmm0,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<boo>:
mulsd  %xmm1,%xmm2
addsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
cvttsd2si %xmm2,%eax
ret

LLVM IR (-O0):
define i32 @boo(double %0, double %1, double %2, double %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
store double %0, double* %5
store double %1, double* %6
store double %2, double* %7
store double %3, double* %8
%9 = load double, double* %7
%10 = load double, double* %6
%11 = load double, double* %5
%12 = call double @llvm.fmuladd.f64(double %9, double %10, double %11)
%13 = load double, double* %6
%14 = fadd double %12, %13
%15 = fptosi double %14 to i32
ret i32 %15
}

LLVM IR (-O2):
define i32 @boo(double %0, double %1, double %2, double %3) {
%5 = tail call double @llvm.fmuladd.f64(double %2, double %1, double %0)
%6 = fadd double %5, %1
%7 = fptosi double %6 to i32
ret i32 %7
}
int *square_cluster(int *graph) {}


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

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

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

LLVM IR (-O2):
define noalias i32* @square_cluster(i32* nocapture readnone %0) {
ret i32* undef
}
/* Type definitions */
struct termios {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ B9600;
int /*<<< orphan*/ cfsetispeed(struct termios *, int /*<<< orphan*/);
int /*<<< orphan*/ cfsetospeed(struct termios *, int /*<<< orphan*/);
void _baudrate_115200(struct termios *t) {
  cfsetispeed(t, B9600);
  cfsetospeed(t, B9600);
}


x86 assembly (clang, -O0):
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2eb1(%rip),%rax
mov    (%rax),%esi
call   1040 <cfsetispeed@plt>
mov    -0x8(%rbp),%rdi
mov    0x2e9f(%rip),%rax
mov    (%rax),%esi
call   1030 <cfsetospeed@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    0x2eba(%rip),%r14
mov    (%r14),%esi
call   1040 <cfsetispeed@plt>
mov    (%r14),%esi
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <cfsetospeed@plt>

LLVM IR (-O0):
%struct.termios = type { i32 }
@B9600 = global i32 0
define void @_baudrate_115200(%struct.termios* %0) {
%2 = alloca %struct.termios*
store %struct.termios* %0, %struct.termios** %2
%3 = load %struct.termios*, %struct.termios** %2
%4 = load i32, i32* @B9600
%5 = call i32 @cfsetispeed(%struct.termios* %3, i32 %4)
%6 = load %struct.termios*, %struct.termios** %2
%7 = load i32, i32* @B9600
%8 = call i32 @cfsetospeed(%struct.termios* %6, i32 %7)
ret void
}

LLVM IR (-O2):
%struct.termios = type { i32 }
@B9600 = global i32 0
define void @_baudrate_115200(%struct.termios* %0) {
%2 = load i32, i32* @B9600
%3 = tail call i32 @cfsetispeed(%struct.termios* %0, i32 %2)
%4 = load i32, i32* @B9600
%5 = tail call i32 @cfsetospeed(%struct.termios* %0, i32 %4)
ret void
}
/* Variables and functions */
long strtol(char const *, char **, int);
long int atol(const char *nptr) { return strtol(nptr, (char **)NULL, 10); }


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

x86 assembly (clang, -O2):
<atol>:
xor    %esi,%esi
mov    $0xa,%edx
jmp    1030 <strtol@plt>

LLVM IR (-O0):
define i64 @atol(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @strtol(i8* %3, i8** null, i32 10)
ret i64 %4
}

LLVM IR (-O2):
define i64 @atol(i8* nocapture %0) {
%2 = tail call i64 @strtol(i8* nocapture %0, i8** null, i32 10)
ret i64 %2
}
long long bit37() { return 0x0000002000000000LL; }


x86 assembly (clang, -O0):
<bit37>:
push   %rbp
mov    %rsp,%rbp
movabs $0x2000000000,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<bit37>:
movabs $0x2000000000,%rax
ret

LLVM IR (-O0):
define i64 @bit37() {
ret i64 137438953472
}

LLVM IR (-O2):
define i64 @bit37() {
ret i64 137438953472
}
/* Variables and functions */
int /*<<< orphan*/ add(char *);
void odprecede(void) {
  static int first = 1;
  if (first) {
    first = 0;
    add("\"%07.7_Ao\n\"");
    add("\"%07.7_ao  \"");
  } else
    add("\"         \"");
}


x86 assembly (clang, -O0):
<odprecede>:
push   %rbp
mov    %rsp,%rbp
cmpl   $0x0,0x2f0d(%rip)
je     1148 <odprecede+0x38>
movl   $0x0,0x2efd(%rip)
lea    0xece(%rip),%rdi
call   1030 <add@plt>
lea    0xece(%rip),%rdi
call   1030 <add@plt>
jmp    1154 <odprecede+0x44>
lea    0xeca(%rip),%rdi
call   1030 <add@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<odprecede>:
push   %rax
cmpb   $0x0,0x2f14(%rip)
je     1127 <odprecede+0x17>
lea    0xef8(%rip),%rdi
pop    %rax
jmp    1030 <add@plt>
movb   $0x1,0x2efe(%rip)
lea    0xecb(%rip),%rdi
call   1030 <add@plt>
lea    0xecb(%rip),%rdi
pop    %rax
jmp    1030 <add@plt>

LLVM IR (-O0):
@odprecede.first = internal global i32 1
@.str = [12 x i8] c"\22%07.7_Ao\0A\22\00"
@.str.1 = [13 x i8] c"\22%07.7_ao \22\00"
@.str.2 = [12 x i8] c"\22 \22\00"
define void @odprecede() {
%1 = load i32, i32* @odprecede.first
%2 = icmp ne i32 %1, 0
br i1 %2, label %3, label %6
3: ; preds = %0
store i32 0, i32* @odprecede.first
%4 = call i32 @add(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @add(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %8
6: ; preds = %0
%7 = call i32 @add(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
br label %8
8: ; preds = %6, %3
ret void
}

LLVM IR (-O2):
@odprecede.first = internal unnamed_addr global i1 false
@.str = [12 x i8] c"\22%07.7_Ao\0A\22\00"
@.str.1 = [13 x i8] c"\22%07.7_ao \22\00"
@.str.2 = [12 x i8] c"\22 \22\00"
define void @odprecede() {
%1 = load i1, i1* @odprecede.first
br i1 %1, label %4, label %2
2: ; preds = %0
store i1 true, i1* @odprecede.first
%3 = tail call i32 @add(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
br label %4
4: ; preds = %0, %2
%5 = phi i8* [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), %0 ]
%6 = tail call i32 @add(i8* %5)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ va_list;

/* Variables and functions */
int /*<<< orphan*/ print_tap_result(char *, unsigned long, char const *,
                                    int /*<<< orphan*/);
int /*<<< orphan*/ safe_printf(char *);
void tap_ok_skip_va(unsigned long testnum, const char *msg, va_list ap) {
  print_tap_result("ok", testnum, msg, ap);
  safe_printf(" # SKIP\n");
}


x86 assembly (clang, -O0):
<tap_ok_skip_va>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x14(%rbp),%ecx
lea    0xebb(%rip),%rdi
call   1040 <print_tap_result@plt>
lea    0xeb2(%rip),%rdi
call   1030 <safe_printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tap_ok_skip_va>:
push   %rax
mov    %edx,%ecx
mov    %rsi,%rdx
mov    %rdi,%rsi
lea    0xed0(%rip),%rdi
call   1040 <print_tap_result@plt>
lea    0xec7(%rip),%rdi
pop    %rax
jmp    1030 <safe_printf@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"ok\00"
@.str.1 = [9 x i8] c" # SKIP\0A\00"
define void @tap_ok_skip_va(i64 %0, i8* %1, i32 %2) {
%4 = alloca i64
%5 = alloca i8*
%6 = alloca i32
store i64 %0, i64* %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i64, i64* %4
%8 = load i8*, i8** %5
%9 = load i32, i32* %6
%10 = call i32 @print_tap_result(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i64 %7, i8* %8, i32 %9)
%11 = call i32 @safe_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"ok\00"
@.str.1 = [9 x i8] c" # SKIP\0A\00"
define void @tap_ok_skip_va(i64 %0, i8* %1, i32 %2) {
%4 = tail call i32 @print_tap_result(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i64 %0, i8* %1, i32 %2)
%5 = tail call i32 @safe_printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
ret void
}
two3(a, b) { nop(); }


x86 assembly (clang, -O0):
<two3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    $0x0,%al
call   1030 <nop@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @two3(i32 %0, i32 %1) {
%3 = tail call i32 (...) @nop()
ret i32 undef
}
float amax1(float a, float b) {
  if (a > b)
    return (a);
  else
    return (b);
}


x86 assembly (clang, -O0):
<amax1>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x8(%rbp)
movss  %xmm1,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    112c <amax1+0x2c>
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1136 <amax1+0x36>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<amax1>:
maxss  %xmm1,%xmm0
ret

LLVM IR (-O0):
define float @amax1(float %0, float %1) {
%3 = alloca float
%4 = alloca float
%5 = alloca float
store float %0, float* %4
store float %1, float* %5
%6 = load float, float* %4
%7 = load float, float* %5
%8 = fcmp ogt float %6, %7
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = load float, float* %4
store float %10, float* %3
br label %13
11: ; preds = %2
%12 = load float, float* %5
store float %12, float* %3
br label %13
13: ; preds = %11, %9
%14 = load float, float* %3
ret float %14
}

LLVM IR (-O2):
define float @amax1(float %0, float %1) {
%3 = fcmp ogt float %0, %1
%4 = select i1 %3, float %0, float %1
ret float %4
}
/* Variables and functions */
int /*<<< orphan*/ GPSVelocityHandle();
int /*<<< orphan*/ UAVObjUpdated(int /*<<< orphan*/);
void GPSVelocityUpdated() { UAVObjUpdated(GPSVelocityHandle()); }


x86 assembly (clang, -O0):
<GPSVelocityUpdated>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <GPSVelocityHandle@plt>
mov    %eax,%edi
call   1040 <UAVObjUpdated@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<GPSVelocityUpdated>:
push   %rax
xor    %eax,%eax
call   1030 <GPSVelocityHandle@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <UAVObjUpdated@plt>

LLVM IR (-O0):
define void @GPSVelocityUpdated() {
%1 = call i32 (...) @GPSVelocityHandle()
%2 = call i32 @UAVObjUpdated(i32 %1)
ret void
}

LLVM IR (-O2):
define void @GPSVelocityUpdated() {
%1 = tail call i32 (...) @GPSVelocityHandle()
%2 = tail call i32 @UAVObjUpdated(i32 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ error(char *);
void picture_temporal_scalable_extension() {
  error("temporal scalability not supported\n");
}


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

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

LLVM IR (-O0):
@.str = [36 x i8] c"temporal scalability not supported\0A\00"
define void @picture_temporal_scalable_extension() {
%1 = call i32 @error(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [36 x i8] c"temporal scalability not supported\0A\00"
define void @picture_temporal_scalable_extension() {
%1 = tail call i32 @error(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
scalar_t__ getTempOutFloatStore(int);
int *getTempOutIntStore(int alignmentBytes) {
  return (int *)getTempOutFloatStore(alignmentBytes);
}


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

x86 assembly (clang, -O2):
<getTempOutIntStore>:
jmp    1030 <getTempOutFloatStore@plt>

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

LLVM IR (-O2):
define i32* @getTempOutIntStore(i32 %0) {
%2 = tail call i64 @getTempOutFloatStore(i32 %0)
%3 = inttoptr i64 %2 to i32*
ret i32* %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void usage(void) {
  printf("Bad input: Please enter a vaild email address. \n");
  printf("Please use the format: student@rit.edu \n");
}


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

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0c(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [49 x i8] c"Bad input: Please enter a vaild email address. \0A\00"
@.str.1 = [41 x i8] c"Please use the format: student@rit.edu \0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [48 x i8] c"Bad input: Please enter a vaild email address. \00"
@str.2 = [40 x i8] c"Please use the format: student@rit.edu \00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.2, i64 0, i64 0))
ret void
}
/* Variables and functions */
float atof(char *);
int /*<<< orphan*/ scanf(char *, char *);
float scan2float() {
  char sss[200];
  float ff = 0;
  scanf("%s", sss);
  ff = atof(sss);
  return (ff);
}


x86 assembly (clang, -O0):
<scan2float>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
xorps  %xmm0,%xmm0
movss  %xmm0,-0xd4(%rbp)
ff
lea    -0xd0(%rbp),%rsi
lea    0xebc(%rip),%rdi
call   1040 <scanf@plt>
lea    -0xd0(%rbp),%rdi
call   1030 <atof@plt>
movss  %xmm0,-0xd4(%rbp)
ff
movss  -0xd4(%rbp),%xmm0
ff
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<scan2float>:
push   %rbx
sub    $0xd0,%rsp
lea    0xed1(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1040 <scanf@plt>
mov    %rbx,%rdi
call   1030 <atof@plt>
add    $0xd0,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
define float @scan2float() {
%1 = alloca [200 x i8]
%2 = alloca float
store float 0.000000e+00, float* %2
%3 = getelementptr inbounds [200 x i8], [200 x i8]* %1, i64 0, i64 0
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = getelementptr inbounds [200 x i8], [200 x i8]* %1, i64 0, i64 0
%6 = call float @atof(i8* %5)
store float %6, float* %2
%7 = load float, float* %2
ret float %7
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
define float @scan2float() {
%1 = alloca [200 x i8]
%2 = getelementptr inbounds [200 x i8], [200 x i8]* %1, i64 0, i64 0
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = call float @atof(i8* %2)
ret float %4
}
/* Variables and functions */
int /*<<< orphan*/ ot(char *);
defstorage() { ot(".space\t"); }


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

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

LLVM IR (-O0):
@.str = [8 x i8] c".space\09\00"
define i32 @defstorage() {
%1 = alloca i32
%2 = call i32 @ot(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@.str = [8 x i8] c".space\09\00"
define i32 @defstorage() {
%1 = tail call i32 @ot(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret i32 undef
}
/* Variables and functions */
size_t packet_size_2fsk_tx() { return (0x00 << 8) + 0x7C; }


x86 assembly (clang, -O0):
<packet_size_2fsk_tx>:
push   %rbp
mov    %rsp,%rbp
mov    $0x7c,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i64 @packet_size_2fsk_tx() {
ret i64 124
}

LLVM IR (-O2):
define i64 @packet_size_2fsk_tx() {
ret i64 124
}
/* Type definitions */
struct Person {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ assert(int /*<<< orphan*/);
int /*<<< orphan*/ free(struct Person *);
void Destroy_Person(struct Person *person) {
  assert(person != NULL);
  free(person);
}


x86 assembly (clang, -O0):
<Destroy_Person>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Destroy_Person>:
push   %rbx
mov    %rdi,%rbx
xor    %edi,%edi
test   %rbx,%rbx
setne  %dil
call   1040 <assert@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.Person = type { i32 }
define void @Destroy_Person(%struct.Person* %0) {
%2 = alloca %struct.Person*
store %struct.Person* %0, %struct.Person** %2
%3 = load %struct.Person*, %struct.Person** %2
%4 = icmp ne %struct.Person* %3, null
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 %5)
%7 = load %struct.Person*, %struct.Person** %2
%8 = call i32 @free(%struct.Person* %7)
ret void
}

LLVM IR (-O2):
%struct.Person = type { i32 }
define void @Destroy_Person(%struct.Person* %0) {
%2 = icmp ne %struct.Person* %0, null
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 %3)
%5 = tail call i32 @free(%struct.Person* %0)
ret void
}
/* Variables and functions */
unsigned long read_VmRSS();
unsigned long get_VmRSS(void) {
  unsigned long old, value;
  old = value = read_VmRSS();
  do {
    old = value;
    value = read_VmRSS();
  } while (old != value);
  return value;
}


x86 assembly (clang, -O0):
<get_VmRSS>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <read_VmRSS@plt>
mov    %rax,-0x10(%rbp)
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <read_VmRSS@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
jne    1127 <get_VmRSS+0x17>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_VmRSS>:
push   %rbx
xor    %eax,%eax
call   1030 <read_VmRSS@plt>
nopl   0x0(%rax,%rax,1)
mov    %rax,%rbx
xor    %eax,%eax
call   1030 <read_VmRSS@plt>
cmp    %rax,%rbx
jne    1120 <get_VmRSS+0x10>
mov    %rbx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
define i64 @get_VmRSS() {
%1 = tail call i64 (...) @read_VmRSS()
br label %2
2: ; preds = %2, %0
%3 = phi i64 [ %1, %0 ], [ %4, %2 ]
%4 = tail call i64 (...) @read_VmRSS()
%5 = icmp eq i64 %3, %4
br i1 %5, label %6, label %2
6: ; preds = %2
ret i64 %3
}
/* Type definitions */
typedef int /*<<< orphan*/ buf;

/* Variables and functions */
int /*<<< orphan*/ set_value(char const *, char const *, char const *, char *);
int /*<<< orphan*/ snprintf(char *, int, char *, int);
void set_number(const char *group, const char *name, const char *key,
                int value) {
  char buf[32];
  snprintf(buf, sizeof(buf), "%d", value);
  set_value(group, name, key, buf);
}


x86 assembly (clang, -O0):
<set_number>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
lea    -0x40(%rbp),%rdi
mov    -0x1c(%rbp),%ecx
mov    $0x20,%esi
lea    0xeb6(%rip),%rdx
call   1030 <snprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    -0x40(%rbp),%rcx
call   1040 <set_value@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_number>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
lea    0xec5(%rip),%rdx
mov    %rsp,%r12
mov    %r12,%rdi
mov    $0x20,%esi
call   1030 <snprintf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
mov    %r12,%rcx
call   1040 <set_value@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define void @set_number(i8* %0, i8* %1, i8* %2, i32 %3) {
%5 = alloca [32 x i8]
%6 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 0
%7 = call i32 @snprintf(i8* %6, i32 32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %3)
%8 = call i32 @set_value(i8* %0, i8* %1, i8* %2, i8* %6)
ret void
}
void print_inst_RD(char *mnemonic, int rd) { ; }


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

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

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

LLVM IR (-O2):
define void @print_inst_RD(i8* nocapture %0, i32 %1) {
ret void
}
/* Type definitions */
struct sudoku {
  int dummy;
};

/* Variables and functions */
int solve_one(struct sudoku *, int /*<<< orphan*/);
int sudoku_solve(struct sudoku *s) { return solve_one(s, 0); }


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

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

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

LLVM IR (-O2):
%struct.sudoku = type { i32 }
define i32 @sudoku_solve(%struct.sudoku* %0) {
%2 = tail call i32 @solve_one(%struct.sudoku* %0, i32 0)
ret i32 %2
}
/* Type definitions */
struct sigevent {
  int dummy;
};
struct aiocb {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ ENOSYS;
int /*<<< orphan*/ errno;
int lio_listio(int mode, struct aiocb *const list[], int nent,
               struct sigevent *sig) {
  errno = ENOSYS;
  return -1;
}


x86 assembly (clang, -O0):
<lio_listio>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    0x2ecf(%rip),%rax
mov    (%rax),%ecx
mov    0x2eb6(%rip),%rax
mov    %ecx,(%rax)
mov    $0xffffffff,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<lio_listio>:
mov    0x2ee1(%rip),%rax
mov    (%rax),%eax
mov    0x2ec8(%rip),%rcx
mov    %eax,(%rcx)
mov    $0xffffffff,%eax
ret

LLVM IR (-O0):
%struct.aiocb = type { i32 }
%struct.sigevent = type { i32 }
@ENOSYS = global i32 0
@errno = global i32 0
define i32 @lio_listio(i32 %0, %struct.aiocb** %1, i32 %2, %struct.sigevent* %3) {
%5 = alloca i32
%6 = alloca %struct.aiocb**
%7 = alloca i32
%8 = alloca %struct.sigevent*
store i32 %0, i32* %5
store %struct.aiocb** %1, %struct.aiocb*** %6
store i32 %2, i32* %7
store %struct.sigevent* %3, %struct.sigevent** %8
%9 = load i32, i32* @ENOSYS
store i32 %9, i32* @errno
ret i32 -1
}

LLVM IR (-O2):
%struct.aiocb = type { i32 }
%struct.sigevent = type { i32 }
@ENOSYS = global i32 0
@errno = global i32 0
define i32 @lio_listio(i32 %0, %struct.aiocb** nocapture readnone %1, i32 %2, %struct.sigevent* nocapture readnone %3) {
%5 = load i32, i32* @ENOSYS
store i32 %5, i32* @errno
ret i32 -1
}
void g(union U *p) {}


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

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

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

LLVM IR (-O2):
%union.U = type opaque
define void @g(%union.U* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ FixXY(int /*<<< orphan*/, int);
void Superx(void) { FixXY(0, 5); }


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

x86 assembly (clang, -O2):
<Superx>:
xor    %edi,%edi
mov    $0x5,%esi
jmp    1030 <FixXY@plt>

LLVM IR (-O0):
define void @Superx() {
%1 = call i32 @FixXY(i32 0, i32 5)
ret void
}

LLVM IR (-O2):
define void @Superx() {
%1 = tail call i32 @FixXY(i32 0, i32 5)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int /*<<< orphan*/, char *, int, char *);
int /*<<< orphan*/ isupper(int);
void t_isupper_0x42() {
  Assert_real((isupper(66)),
              "/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_isupper.c",
              335, ("isupper should be 1 for B"));
}


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

x86 assembly (clang, -O2):
<t_isupper_0x42>:
push   %rax
mov    $0x42,%edi
call   1030 <isupper@plt>
lea    0xece(%rip),%rsi
lea    0xf6f(%rip),%rcx
mov    %eax,%edi
mov    $0x14f,%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_isupper.c\00"
@.str.1 = [26 x i8] c"isupper should be 1 for B\00"
define void @t_isupper_0x42() {
%1 = call i32 @isupper(i32 66)
%2 = call i32 @Assert_real(i32 %1, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 335, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}

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