xunge/DecIR huggingface dataset:
/* Type definitions */
typedef int /*<<< orphan*/ RSA;

/* Variables and functions */
int /*<<< orphan*/ RSA_F_RSA_NULL;
int /*<<< orphan*/ RSA_R_RSA_OPERATIONS_NOT_SUPPORTED;
int /*<<< orphan*/ RSAerr(int /*<<< orphan*/, int /*<<< orphan*/);
int RSA_null_public_encrypt(int flen, unsigned char *from, unsigned char *to,
                            RSA *rsa, int padding) {
  RSAerr(RSA_F_RSA_NULL, RSA_R_RSA_OPERATIONS_NOT_SUPPORTED);
  return -1;
}


x86 assembly (clang, -O0):
<RSA_null_public_encrypt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    0x2ea6(%rip),%rax
mov    (%rax),%edi
mov    0x2ea5(%rip),%rax
mov    (%rax),%esi
call   1030 <RSAerr@plt>
mov    $0xffffffff,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<RSA_null_public_encrypt>:
push   %rax
mov    0x2ec0(%rip),%rax
mov    (%rax),%edi
mov    0x2ebf(%rip),%rax
mov    (%rax),%esi
call   1030 <RSAerr@plt>
mov    $0xffffffff,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@RSA_F_RSA_NULL = global i32 0
@RSA_R_RSA_OPERATIONS_NOT_SUPPORTED = global i32 0
define i32 @RSA_null_public_encrypt(i32 %0, i8* nocapture readnone %1, i8* nocapture readnone %2, i32* nocapture readnone %3, i32 %4) {
%6 = load i32, i32* @RSA_F_RSA_NULL
%7 = load i32, i32* @RSA_R_RSA_OPERATIONS_NOT_SUPPORTED
%8 = tail call i32 @RSAerr(i32 %6, i32 %7)
ret i32 -1
}
/* Variables and functions */
int /*<<< orphan*/ setled(int, int);
void setchannel(int newchannel) {
  static int lastchannel = -1;
  if (lastchannel != -1)
    setled(lastchannel, false);
  lastchannel = newchannel;
  setled(newchannel, true);
}


x86 assembly (clang, -O0):
<setchannel>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0xffffffff,0x2f06(%rip)
je     1135 <setchannel+0x25>
mov    0x2efa(%rip),%edi
xor    %esi,%esi
call   1030 <setled@plt>
mov    -0x4(%rbp),%eax
mov    %eax,0x2eea(%rip)
mov    -0x4(%rbp),%edi
mov    $0x1,%esi
call   1030 <setled@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<setchannel>:
push   %rbx
mov    %edi,%ebx
mov    0x2f0f(%rip),%edi
cmp    $0xffffffff,%edi
je     1125 <setchannel+0x15>
xor    %esi,%esi
call   1030 <setled@plt>
mov    %ebx,0x2efd(%rip)
mov    %ebx,%edi
mov    $0x1,%esi
pop    %rbx
jmp    1030 <setled@plt>

LLVM IR (-O0):
@setchannel.lastchannel = internal global i32 -1
define void @setchannel(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* @setchannel.lastchannel
%4 = icmp ne i32 %3, -1
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* @setchannel.lastchannel
%7 = call i32 @setled(i32 %6, i32 0)
br label %8
8: ; preds = %5, %1
%9 = load i32, i32* %2
store i32 %9, i32* @setchannel.lastchannel
%10 = load i32, i32* %2
%11 = call i32 @setled(i32 %10, i32 1)
ret void
}

LLVM IR (-O2):
@setchannel.lastchannel = internal unnamed_addr global i32 -1
define void @setchannel(i32 %0) {
%2 = load i32, i32* @setchannel.lastchannel
%3 = icmp eq i32 %2, -1
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @setled(i32 %2, i32 0)
br label %6
6: ; preds = %4, %1
store i32 %0, i32* @setchannel.lastchannel
%7 = tail call i32 @setled(i32 %0, i32 1)
ret void
}
unsigned int zext16(p)
unsigned short *p;
{ return *p; }


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

x86 assembly (clang, -O2):
<zext16>:
movzwl (%rdi),%eax
ret

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

LLVM IR (-O2):
define i32 @zext16(i16* nocapture %0) {
%2 = load i16, i16* %0
%3 = zext i16 %2 to i32
ret i32 %3
}
unsigned LE32(unsigned _val) { return _val; }


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

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

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

LLVM IR (-O2):
define i32 @LE32(i32 returned %0) {
ret i32 %0
}
void av_add_q() {}


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

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

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

LLVM IR (-O2):
define void @av_add_q() {
ret void
}
void test19_BlinkMilli2_pollen__reset__E() {}


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

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

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

LLVM IR (-O2):
define void @test19_BlinkMilli2_pollen__reset__E() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ err_msg_out_of_memory2();
int /*<<< orphan*/ error_print();
void err_msg_out_of_memory(void) {
  error_print();
  err_msg_out_of_memory2();
}


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

x86 assembly (clang, -O2):
<err_msg_out_of_memory>:
push   %rax
xor    %eax,%eax
call   1040 <error_print@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <err_msg_out_of_memory2@plt>

LLVM IR (-O0):
define void @err_msg_out_of_memory() {
%1 = call i32 (...) @error_print()
%2 = call i32 (...) @err_msg_out_of_memory2()
ret void
}

LLVM IR (-O2):
define void @err_msg_out_of_memory() {
%1 = tail call i32 (...) @error_print()
%2 = tail call i32 (...) @err_msg_out_of_memory2()
ret void
}
double opr_stdP(struct lifo *stack) { return 101325; }


x86 assembly (clang, -O0):
<opr_stdP>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movsd  0xef0(%rip),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<opr_stdP>:
movsd  0xef8(%rip),%xmm0
ret

LLVM IR (-O0):
%struct.lifo = type opaque
define double @opr_stdP(%struct.lifo* %0) {
%2 = alloca %struct.lifo*
store %struct.lifo* %0, %struct.lifo** %2
ret double 1.013250e+05
}

LLVM IR (-O2):
%struct.lifo = type opaque
define double @opr_stdP(%struct.lifo* nocapture readnone %0) {
ret double 1.013250e+05
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int uart_init(uint32_t base_address) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @uart_init(i32 %0) {
ret i32 0
}
int command_hash(const char *p) {
  int hash_val = 0;
  while (*p) {
    hash_val += ((int)(*p) & 0xDF);
    p++;
  }
  return (hash_val % 16);
}


x86 assembly (clang, -O0):
<command_hash>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     113f <command_hash+0x3f>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
and    $0xdf,%eax
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    110f <command_hash+0xf>
mov    -0xc(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<command_hash>:
mov    (%rdi),%cl
test   %cl,%cl
je     1127 <command_hash+0x27>
add    $0x1,%rdi
xor    %eax,%eax
nopl   0x0(%rax)
and    $0xdf,%cl
movzbl %cl,%ecx
add    %ecx,%eax
movzbl (%rdi),%ecx
add    $0x1,%rdi
test   %cl,%cl
jne    1110 <command_hash+0x10>
and    $0xf,%eax
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @command_hash(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %16, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %12, %4 ], [ %2, %1 ]
%6 = phi i32 [ %10, %4 ], [ 0, %1 ]
%7 = phi i8* [ %11, %4 ], [ %0, %1 ]
%8 = and i8 %5, -33
%9 = zext i8 %8 to i32
%10 = add nuw nsw i32 %6, %9
%11 = getelementptr inbounds i8, i8* %7, i64 1
%12 = load i8, i8* %11
%13 = icmp eq i8 %12, 0
br i1 %13, label %14, label %4
14: ; preds = %4
%15 = and i32 %10, 15
br label %16
16: ; preds = %14, %1
%17 = phi i32 [ 0, %1 ], [ %15, %14 ]
ret i32 %17
}
void parallel_init() {}


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

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

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

LLVM IR (-O2):
define void @parallel_init() {
ret void
}
const char *pathconN_nm5_name_in(int i) {
  switch (i) {
  case 0:
    return "i0";
  default:
    return 0;
  }
}


x86 assembly (clang, -O0):
<pathconN_nm5_name_in>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
test   %eax,%eax
jne    1127 <pathconN_nm5_name_in+0x27>
jmp    1117 <pathconN_nm5_name_in+0x17>
lea    0xee2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    112f <pathconN_nm5_name_in+0x2f>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<pathconN_nm5_name_in>:
xor    %eax,%eax
test   %edi,%edi
lea    0xef5(%rip),%rcx
cmove  %rcx,%rax
ret

LLVM IR (-O0):
@.str = [3 x i8] c"i0\00"
define i8* @pathconN_nm5_name_in(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %6 [
i32 0, label %5
]
5: ; preds = %1
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8** %2
br label %7
6: ; preds = %1
store i8* null, i8** %2
br label %7
7: ; preds = %6, %5
%8 = load i8*, i8** %2
ret i8* %8
}

LLVM IR (-O2):
@.str = [3 x i8] c"i0\00"
define i8* @pathconN_nm5_name_in(i32 %0) {
%2 = icmp eq i32 %0, 0
%3 = select i1 %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* null
ret i8* %3
}
void doSegmentFault() { *(int *)0 = 0; }


x86 assembly (clang, -O0):
<doSegmentFault>:
push   %rbp
mov    %rsp,%rbp
xor    %eax,%eax
movl   $0x0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
LLVM IR (-O0):
define void @doSegmentFault() {
store i32 0, i32* null
ret void
}

LLVM IR (-O2):
/* Variables and functions */
int f(int);
int h(int);
int g(int y) {
  int z, u;
  z = f(y);
  u = h(3);
  return z + 3;
}


x86 assembly (clang, -O0):
<g>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <f@plt>
mov    %eax,-0x8(%rbp)
mov    $0x3,%edi
call   1030 <h@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    $0x3,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<g>:
push   %rbx
call   1040 <f@plt>
mov    %eax,%ebx
mov    $0x3,%edi
call   1030 <h@plt>
add    $0x3,%ebx
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @g(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %2
%5 = load i32, i32* %2
%6 = call i32 @f(i32 %5)
store i32 %6, i32* %3
%7 = call i32 @h(i32 3)
store i32 %7, i32* %4
%8 = load i32, i32* %3
%9 = add nsw i32 %8, 3
ret i32 %9
}

LLVM IR (-O2):
define i32 @g(i32 %0) {
%2 = tail call i32 @f(i32 %0)
%3 = tail call i32 @h(i32 3)
%4 = add nsw i32 %2, 3
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_socket_server_new_unix() {
  printf("NOT IMPLEMENTED:"
         "pa_socket_server_new_unix"
         "\n");
}


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

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

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

LLVM IR (-O2):
@str = [42 x i8] c"NOT IMPLEMENTED:pa_socket_server_new_unix\00"
define i32 @pa_socket_server_new_unix() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
void d2i_NETSCAPE_SPKAC(void) {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ ASN1_item_free(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int /*<<< orphan*/ OCSP_SERVICELOC_it;
void OCSP_SERVICELOC_free(OCSP_SERVICELOC *a) {
  ASN1_item_free((ASN1_VALUE *)a, &OCSP_SERVICELOC_it);
}


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

x86 assembly (clang, -O2):
<OCSP_SERVICELOC_free>:
mov    0x2ec9(%rip),%rsi
jmp    1030 <ASN1_item_free@plt>

LLVM IR (-O0):
@OCSP_SERVICELOC_it = global i32 0
define void @OCSP_SERVICELOC_free(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @ASN1_item_free(i32* %3, i32* @OCSP_SERVICELOC_it)
ret void
}

LLVM IR (-O2):
@OCSP_SERVICELOC_it = global i32 0
define void @OCSP_SERVICELOC_free(i32* %0) {
%2 = tail call i32 @ASN1_item_free(i32* %0, i32* @OCSP_SERVICELOC_it)
ret void
}
/* Type definitions */
struct firmata_conn {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ firmata_send_code(struct firmata_conn *, int);
void firmata_capability_query(struct firmata_conn *c) {
  firmata_send_code(c, 0x6B);
}


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

x86 assembly (clang, -O2):
<firmata_capability_query>:
mov    $0x6b,%esi
jmp    1030 <firmata_send_code@plt>

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

LLVM IR (-O2):
%struct.firmata_conn = type { i32 }
define void @firmata_capability_query(%struct.firmata_conn* %0) {
%2 = tail call i32 @firmata_send_code(%struct.firmata_conn* %0, i32 107)
ret void
}
/* Variables and functions */
int double_ne(double, double);
int isnan(double n) { return double_ne(n, n); }


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

x86 assembly (clang, -O2):
<isnan>:
movaps %xmm0,%xmm1
jmp    1030 <double_ne@plt>

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

LLVM IR (-O2):
define i32 @isnan(double %0) {
%2 = tail call i32 @double_ne(double %0, double %0)
ret i32 %2
}
/* Type definitions */
struct ship {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ Write(int, struct ship *, long, int /*<<< orphan*/,
                         int /*<<< orphan*/, int /*<<< orphan*/);
void send_rig4(struct ship *ship, long a) { Write(36, ship, a, 0, 0, 0); }


x86 assembly (clang, -O0):
<send_rig4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    $0x24,%edi
xor    %r9d,%r9d
mov    %r9d,%ecx
mov    %r9d,%r8d
call   1030 <Write@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<send_rig4>:
mov    %rsi,%rdx
mov    %rdi,%rsi
mov    $0x24,%edi
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
jmp    1030 <Write@plt>

LLVM IR (-O0):
%struct.ship = type { i32 }
define void @send_rig4(%struct.ship* %0, i64 %1) {
%3 = alloca %struct.ship*
%4 = alloca i64
store %struct.ship* %0, %struct.ship** %3
store i64 %1, i64* %4
%5 = load %struct.ship*, %struct.ship** %3
%6 = load i64, i64* %4
%7 = call i32 @Write(i32 36, %struct.ship* %5, i64 %6, i32 0, i32 0, i32 0)
ret void
}

LLVM IR (-O2):
%struct.ship = type { i32 }
define void @send_rig4(%struct.ship* %0, i64 %1) {
%3 = tail call i32 @Write(i32 36, %struct.ship* %0, i64 %1, i32 0, i32 0, i32 0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isxdigit(int);
void t_isxdigit_0xd0() {
  Assert_real((isxdigit(208) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isxdigit.c",
              1045, ("isxdigit should be 0 for 0xd0"));
}


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

x86 assembly (clang, -O2):
<t_isxdigit_0xd0>:
push   %rax
mov    $0xd0,%edi
call   1030 <isxdigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf67(%rip),%rcx
mov    $0x415,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [169 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_isxdigit.c\00"
@.str.1 = [30 x i8] c"isxdigit should be 0 for 0xd0\00"
define void @t_isxdigit_0xd0() {
%1 = call i64 @isxdigit(i32 208)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 1045, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [169 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_isxdigit.c\00"
@.str.1 = [30 x i8] c"isxdigit should be 0 for 0xd0\00"
define void @t_isxdigit_0xd0() {
%1 = tail call i64 @isxdigit(i32 208)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 1045, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Type definitions */
struct katcp_dispatch {
  int dummy;
};

/* Variables and functions */
int trigger_time_katcp(struct katcp_dispatch *, void *, int);
int trigger_every_time_katcp(struct katcp_dispatch *d, void *data) {
  return trigger_time_katcp(d, data, 1);
}


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

x86 assembly (clang, -O2):
<trigger_every_time_katcp>:
mov    $0x1,%edx
jmp    1030 <trigger_time_katcp@plt>

LLVM IR (-O0):
%struct.katcp_dispatch = type { i32 }
define i32 @trigger_every_time_katcp(%struct.katcp_dispatch* %0, i8* %1) {
%3 = alloca %struct.katcp_dispatch*
%4 = alloca i8*
store %struct.katcp_dispatch* %0, %struct.katcp_dispatch** %3
store i8* %1, i8** %4
%5 = load %struct.katcp_dispatch*, %struct.katcp_dispatch** %3
%6 = load i8*, i8** %4
%7 = call i32 @trigger_time_katcp(%struct.katcp_dispatch* %5, i8* %6, i32 1)
ret i32 %7
}

LLVM IR (-O2):
%struct.katcp_dispatch = type { i32 }
define i32 @trigger_every_time_katcp(%struct.katcp_dispatch* %0, i8* %1) {
%3 = tail call i32 @trigger_time_katcp(%struct.katcp_dispatch* %0, i8* %1, i32 1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ gc();
int /*<<< orphan*/ gc_selfdestroy();
void final_clean_up() {
  gc();
  gc_selfdestroy();
}


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

x86 assembly (clang, -O2):
<final_clean_up>:
push   %rax
xor    %eax,%eax
call   1030 <gc@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <gc_selfdestroy@plt>

LLVM IR (-O0):
define void @final_clean_up() {
%1 = call i32 (...) @gc()
%2 = call i32 (...) @gc_selfdestroy()
ret void
}

LLVM IR (-O2):
define void @final_clean_up() {
%1 = tail call i32 (...) @gc()
%2 = tail call i32 (...) @gc_selfdestroy()
ret void
}
/* Type definitions */
struct mtl_buffer {
  int dummy;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
scalar_t__ wf_parse_vector(double *, int, int /*<<< orphan*/ *);
int parse_scalar(void *field, struct mtl_buffer *buffer, FILE *fp) {
  double val;
  (void)buffer;
  if (wf_parse_vector(&val, 1, fp)) {
    return -1;
  }
  *((float *)field) = val;
  return 0;
}


x86 assembly (clang, -O0):
<parse_scalar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x20(%rbp),%rdx
lea    -0x28(%rbp),%rdi
mov    $0x1,%esi
call   1030 <wf_parse_vector@plt>
cmp    $0x0,%rax
je     114c <parse_scalar+0x3c>
movl   $0xffffffff,-0x4(%rbp)
jmp    1164 <parse_scalar+0x54>
movsd  -0x28(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_scalar>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
lea    0x8(%rsp),%rdi
mov    $0x1,%esi
call   1030 <wf_parse_vector@plt>
mov    %rax,%rcx
mov    $0xffffffff,%eax
test   %rcx,%rcx
jne    1144 <parse_scalar+0x34>
movsd  0x8(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,(%rbx)
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.mtl_buffer = type { i32 }
define i32 @parse_scalar(i8* %0, %struct.mtl_buffer* %1, i32* %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca %struct.mtl_buffer*
%7 = alloca i32*
%8 = alloca double
store i8* %0, i8** %5
store %struct.mtl_buffer* %1, %struct.mtl_buffer** %6
store i32* %2, i32** %7
%9 = load %struct.mtl_buffer*, %struct.mtl_buffer** %6
%10 = load i32*, i32** %7
%11 = call i64 @wf_parse_vector(double* %8, i32 1, i32* %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %3
store i32 -1, i32* %4
br label %19
14: ; preds = %3
%15 = load double, double* %8
%16 = fptrunc double %15 to float
%17 = load i8*, i8** %5
%18 = bitcast i8* %17 to float*
store float %16, float* %18
store i32 0, i32* %4
br label %19
19: ; preds = %14, %13
%20 = load i32, i32* %4
ret i32 %20
}

LLVM IR (-O2):
%struct.mtl_buffer = type { i32 }
define i32 @parse_scalar(i8* nocapture writeonly %0, %struct.mtl_buffer* nocapture readnone %1, i32* %2) {
%4 = alloca double
%5 = bitcast double* %4 to i8*
%6 = call i64 @wf_parse_vector(double* %4, i32 1, i32* %2)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %12
8: ; preds = %3
%9 = load double, double* %4
%10 = fptrunc double %9 to float
%11 = bitcast i8* %0 to float*
store float %10, float* %11
br label %12
12: ; preds = %3, %8
%13 = phi i32 [ 0, %8 ], [ -1, %3 ]
ret i32 %13
}
/* Variables and functions */
int /*<<< orphan*/ printf_c(int /*<<< orphan*/);
void printf_s(char *s) {
  while (*s)
    printf_c(*(s++));
}


x86 assembly (clang, -O0):
<printf_s>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     1145 <printf_s+0x35>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movsbl (%rax),%edi
call   1030 <printf_c@plt>
jmp    111c <printf_s+0xc>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printf_s>:
push   %rbx
mov    (%rdi),%al
test   %al,%al
je     1133 <printf_s+0x23>
mov    %rdi,%rbx
add    $0x1,%rbx
xchg   %ax,%ax
movsbl %al,%edi
call   1030 <printf_c@plt>
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1120 <printf_s+0x10>
pop    %rbx
ret

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

LLVM IR (-O2):
define void @printf_s(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %12, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %10, %4 ], [ %2, %1 ]
%6 = phi i8* [ %7, %4 ], [ %0, %1 ]
%7 = getelementptr inbounds i8, i8* %6, i64 1
%8 = sext i8 %5 to i32
%9 = tail call i32 @printf_c(i32 %8)
%10 = load i8, i8* %7
%11 = icmp eq i8 %10, 0
br i1 %11, label %12, label %4
12: ; preds = %4, %1
ret void
}
/* Variables and functions */
int U_WMRCORENONE_get(char *);
int U_WMR8E_get(void) { return U_WMRCORENONE_get("U_WMR8E"); }


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

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

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

LLVM IR (-O2):
@.str = [8 x i8] c"U_WMR8E\00"
define i32 @U_WMR8E_get() {
%1 = tail call i32 @U_WMRCORENONE_get(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret i32 %1
}
int test(long long a, long long b) { return a * b; }


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

x86 assembly (clang, -O2):
<test>:
mov    %rsi,%rax
imul   %edi,%eax
ret

LLVM IR (-O0):
define i32 @test(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %3
%6 = load i64, i64* %4
%7 = mul nsw i64 %5, %6
%8 = trunc i64 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @test(i64 %0, i64 %1) {
%3 = mul nsw i64 %1, %0
%4 = trunc i64 %3 to i32
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;
struct nlmsg {
  int dummy;
};
typedef int /*<<< orphan*/ data;

/* Variables and functions */
int nla_put(struct nlmsg *, int, int /*<<< orphan*/ *, int);
int nla_put_u32(struct nlmsg *msg, int type, uint32_t data) {
  return nla_put(msg, type, &data, sizeof(data));
}


x86 assembly (clang, -O0):
<nla_put_u32>:
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
lea    -0x10(%rbp),%rdx
mov    $0x4,%ecx
call   1030 <nla_put@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nla_put_u32>:
push   %rax
mov    %edx,0x4(%rsp)
lea    0x4(%rsp),%rdx
mov    $0x4,%ecx
call   1030 <nla_put@plt>
pop    %rcx
ret

LLVM IR (-O0):
%struct.nlmsg = type { i32 }
define i32 @nla_put_u32(%struct.nlmsg* %0, i32 %1, i32 %2) {
%4 = alloca %struct.nlmsg*
%5 = alloca i32
%6 = alloca i32
store %struct.nlmsg* %0, %struct.nlmsg** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load %struct.nlmsg*, %struct.nlmsg** %4
%8 = load i32, i32* %5
%9 = call i32 @nla_put(%struct.nlmsg* %7, i32 %8, i32* %6, i32 4)
ret i32 %9
}

LLVM IR (-O2):
%struct.nlmsg = type { i32 }
define i32 @nla_put_u32(%struct.nlmsg* %0, i32 %1, i32 %2) {
%4 = alloca i32
store i32 %2, i32* %4
%5 = call i32 @nla_put(%struct.nlmsg* %0, i32 %1, i32* %4, i32 4)
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ add_alias(char *, char *, int);
void c_add_alias(char *v1, char *v2, void *t) { add_alias(v1, v2, *(int *)t); }


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

x86 assembly (clang, -O2):
<c_add_alias>:
mov    (%rdx),%edx
jmp    1030 <add_alias@plt>

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

LLVM IR (-O2):
define void @c_add_alias(i8* %0, i8* %1, i8* nocapture %2) {
%4 = bitcast i8* %2 to i32*
%5 = load i32, i32* %4
%6 = tail call i32 @add_alias(i8* %0, i8* %1, i32 %5)
ret void
}
void xerbla_(char *srname, int *info) { ; }


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

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

LLVM IR (-O0):
define void @xerbla_(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 @xerbla_(i8* nocapture %0, i32* nocapture %1) {
ret void
}
/* Variables and functions */
char *str_alloc_debug(scalar_t__, char *, int);
int /*<<< orphan*/ strcpy(char *, char const *);
scalar_t__ strlen(char const *);
char *str_dup_debug(const char *str, char *file, int line) {
  char *retval;
  retval = str_alloc_debug(strlen(str) + 1, file, line);
  strcpy(retval, str);
  return retval;
}


x86 assembly (clang, -O0):
<str_dup_debug>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,%rdi
add    $0x1,%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1050 <str_alloc_debug@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x20(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<str_dup_debug>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %rsi,%rbx
mov    %rdi,%rbp
call   1040 <strlen@plt>
lea    0x1(%rax),%rdi
mov    %rbx,%rsi
mov    %r14d,%edx
call   1050 <str_alloc_debug@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %rbp,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i8* @str_dup_debug(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%8 = load i8*, i8** %4
%9 = call i64 @strlen(i8* %8)
%10 = add nsw i64 %9, 1
%11 = load i8*, i8** %5
%12 = load i32, i32* %6
%13 = call i8* @str_alloc_debug(i64 %10, i8* %11, i32 %12)
store i8* %13, i8** %7
%14 = load i8*, i8** %7
%15 = load i8*, i8** %4
%16 = call i32 @strcpy(i8* %14, i8* %15)
%17 = load i8*, i8** %7
ret i8* %17
}

LLVM IR (-O2):
define i8* @str_dup_debug(i8* %0, i8* %1, i32 %2) {
%4 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%5 = add nsw i64 %4, 1
%6 = tail call i8* @str_alloc_debug(i64 %5, i8* %1, i32 %2)
%7 = tail call i32 @strcpy(i8* %6, i8* %0)
ret i8* %6
}
void g_mem_profile() {}


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

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

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

LLVM IR (-O2):
define void @g_mem_profile() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ LZ5_compressBound(int);
int LZ5_compress_default(char const *, char *, int, int /*<<< orphan*/);
int LZ5_compress(const char *source, char *dest, int inputSize) {
  return LZ5_compress_default(source, dest, inputSize,
                              LZ5_compressBound(inputSize));
}


x86 assembly (clang, -O0):
<LZ5_compress>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%edi
call   1040 <LZ5_compressBound@plt>
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x18(%rbp),%edx
mov    %eax,%ecx
call   1030 <LZ5_compress_default@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<LZ5_compress>:
push   %r15
push   %r14
push   %rbx
mov    %edx,%ebx
mov    %rsi,%r14
mov    %rdi,%r15
mov    %edx,%edi
call   1040 <LZ5_compressBound@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebx,%edx
mov    %eax,%ecx
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <LZ5_compress_default@plt>

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

LLVM IR (-O2):
define i32 @LZ5_compress(i8* %0, i8* %1, i32 %2) {
%4 = tail call i32 @LZ5_compressBound(i32 %2)
%5 = tail call i32 @LZ5_compress_default(i8* %0, i8* %1, i32 %2, i32 %4)
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isascii(int);
void t_isascii_0xd9() {
  Assert_real((isascii(217) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isascii.c",
              1090, ("isascii should be 0 for 0xd9"));
}


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

x86 assembly (clang, -O2):
<t_isascii_0xd9>:
push   %rax
mov    $0xd9,%edi
call   1030 <isascii@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x442,%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_isascii.c\00"
@.str.1 = [29 x i8] c"isascii should be 0 for 0xd9\00"
define void @t_isascii_0xd9() {
%1 = call i64 @isascii(i32 217)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 1090, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isascii.c\00"
@.str.1 = [29 x i8] c"isascii should be 0 for 0xd9\00"
define void @t_isascii_0xd9() {
%1 = tail call i64 @isascii(i32 217)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 1090, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
scalar_t__ is_qualifier(char *);
scalar_t__ is_specifier(char *);
scalar_t__ is_storage_class(char *);
int is_reserved(char *token) {
  return is_specifier(token) || is_qualifier(token) || is_storage_class(token);
}


x86 assembly (clang, -O0):
<is_reserved>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <is_specifier@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
jne    1185 <is_reserved+0x55>
mov    -0x8(%rbp),%rdi
call   1040 <is_qualifier@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
jne    1185 <is_reserved+0x55>
mov    -0x8(%rbp),%rdi
call   1050 <is_storage_class@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):
<is_reserved>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1030 <is_specifier@plt>
mov    $0x1,%ebp
test   %rax,%rax
jne    1163 <is_reserved+0x33>
mov    %rbx,%rdi
call   1040 <is_qualifier@plt>
test   %rax,%rax
jne    1163 <is_reserved+0x33>
mov    %rbx,%rdi
call   1050 <is_storage_class@plt>
xor    %ebp,%ebp
test   %rax,%rax
setne  %bpl
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @is_reserved(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @is_specifier(i8* %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %14, label %6
6: ; preds = %1
%7 = load i8*, i8** %2
%8 = call i64 @is_qualifier(i8* %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %14, label %10
10: ; preds = %6
%11 = load i8*, i8** %2
%12 = call i64 @is_storage_class(i8* %11)
%13 = icmp ne i64 %12, 0
br label %14
14: ; preds = %10, %6, %1
%15 = phi i1 [ true, %6 ], [ true, %1 ], [ %13, %10 ]
%16 = zext i1 %15 to i32
ret i32 %16
}

LLVM IR (-O2):
define i32 @is_reserved(i8* %0) {
%2 = tail call i64 @is_specifier(i8* %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %11
4: ; preds = %1
%5 = tail call i64 @is_qualifier(i8* %0)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %4
%8 = tail call i64 @is_storage_class(i8* %0)
%9 = icmp ne i64 %8, 0
%10 = zext i1 %9 to i32
br label %11
11: ; preds = %7, %4, %1
%12 = phi i32 [ 1, %4 ], [ 1, %1 ], [ %10, %7 ]
ret i32 %12
}
int test005_rtpv6(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @test005_rtpv6() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void bad(void) {
  fprintf(stderr, "lbzmerge: data error in bz2 file\n");
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<bad>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e98(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<bad>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [34 x i8] c"lbzmerge: data error in bz2 file\0A\00"
@EXIT_FAILURE = global i32 0
define void @bad() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @EXIT_FAILURE
%4 = call i32 @exit(i32 %3)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [34 x i8] c"lbzmerge: data error in bz2 file\0A\00"
@EXIT_FAILURE = global i32 0
define void @bad() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @EXIT_FAILURE
%4 = tail call i32 @exit(i32 %3)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ strlen(char const *);
scalar_t__ strncmp(char const *, char const *, int /*<<< orphan*/);
int str_match(const char *a, const char *b) {
  return strncmp(a, b, strlen(b)) == 0;
}


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

x86 assembly (clang, -O2):
<str_match>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
call   1040 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1030 <strncmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
mov    %ecx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @str_match(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 = load i8*, i8** %4
%8 = call i32 @strlen(i8* %7)
%9 = call i64 @strncmp(i8* %5, i8* %6, i32 %8)
%10 = icmp eq i64 %9, 0
%11 = zext i1 %10 to i32
ret i32 %11
}

LLVM IR (-O2):
define i32 @str_match(i8* %0, i8* %1) {
%3 = tail call i32 @strlen(i8* %1)
%4 = tail call i64 @strncmp(i8* %0, i8* %1, i32 %3)
%5 = icmp eq i64 %4, 0
%6 = zext i1 %5 to i32
ret i32 %6
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ outb(int /*<<< orphan*/, int);
int send_ec_data_nowait(uint8_t data) {
  outb(data, 0x62);
  return 0;
}


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

x86 assembly (clang, -O2):
<send_ec_data_nowait>:
push   %rax
mov    $0x62,%esi
call   1030 <outb@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @send_ec_data_nowait(i32 %0) {
%2 = tail call i32 @outb(i32 %0, i32 98)
ret i32 0
}
void g_key_file_new() {}


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

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

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

LLVM IR (-O2):
define void @g_key_file_new() {
ret void
}
/* Variables and functions */
double ighmm_rand_get_xPHIless1();
double ighmm_rand_get_philen() { return ighmm_rand_get_xPHIless1() / 0.001; }


x86 assembly (clang, -O0):
<ighmm_rand_get_philen>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <ighmm_rand_get_xPHIless1@plt>
movsd  0xedd(%rip),%xmm1
divsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<ighmm_rand_get_philen>:
push   %rax
xor    %eax,%eax
call   1030 <ighmm_rand_get_xPHIless1@plt>
divsd  0xee0(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @ighmm_rand_get_philen() {
%1 = call double (...) @ighmm_rand_get_xPHIless1()
%2 = fdiv double %1, 1.000000e-03
ret double %2
}

LLVM IR (-O2):
define double @ighmm_rand_get_philen() {
%1 = tail call double (...) @ighmm_rand_get_xPHIless1()
%2 = fdiv double %1, 1.000000e-03
ret double %2
}
char ListHistoryItem_helper_function_default_compare(void *item_1,
                                                     void *item_2) {
  if (item_1 == item_2)
    return (0);
  else
    return (1);
}


x86 assembly (clang, -O0):
<ListHistoryItem_helper_function_default_compare>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
cmp    -0x18(%rbp),%rax
jne    1123 <ListHistoryItem_helper_function_default_compare+0x23>
movb   $0x0,-0x1(%rbp)
jmp    1127 <ListHistoryItem_helper_function_default_compare+0x27>
movb   $0x1,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ListHistoryItem_helper_function_default_compare>:
cmp    %rsi,%rdi
setne  %al
ret

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

LLVM IR (-O2):
define signext i8 @ListHistoryItem_helper_function_default_compare(i8* readnone %0, i8* readnone %1) {
%3 = icmp ne i8* %0, %1
%4 = zext i1 %3 to i8
ret i8 %4
}
/* Variables and functions */
int /*<<< orphan*/ HandleAnimation(int);
void StopAnimation() { HandleAnimation(2); }


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

x86 assembly (clang, -O2):
<StopAnimation>:
mov    $0x2,%edi
jmp    1030 <HandleAnimation@plt>

LLVM IR (-O0):
define void @StopAnimation() {
%1 = call i32 @HandleAnimation(i32 2)
ret void
}

LLVM IR (-O2):
define void @StopAnimation() {
%1 = tail call i32 @HandleAnimation(i32 2)
ret void
}