#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ exchange_HL_DE_test();
int /*<<< orphan*/ load_HL_direct_test();
int /*<<< orphan*/ load_accumulator_direct_test();
int /*<<< orphan*/ load_accumulator_indirect_test();
int /*<<< orphan*/ load_register_pair_immediate_test();
int /*<<< orphan*/ move_from_memory_test();
int /*<<< orphan*/ move_immediate_test();
int /*<<< orphan*/ move_register_test();
int /*<<< orphan*/ move_to_memory_immediate_test();
int /*<<< orphan*/ move_to_memory_test();
int /*<<< orphan*/ store_HL_direct_test();
int /*<<< orphan*/ store_accumulator_direct_test();
int /*<<< orphan*/ store_accumulator_indirect_test();
int main(int argc, const char *argv[]) {
  move_register_test();
  move_from_memory_test();
  move_to_memory_test();
  move_immediate_test();
  move_to_memory_immediate_test();
  load_register_pair_immediate_test();
  load_accumulator_direct_test();
  store_accumulator_direct_test();
  load_HL_direct_test();
  store_HL_direct_test();
  load_accumulator_indirect_test();
  store_accumulator_indirect_test();
  exchange_HL_DE_test();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1060 <move_register_test@plt>
mov    $0x0,%al
call   10b0 <move_from_memory_test@plt>
mov    $0x0,%al
call   1030 <move_to_memory_test@plt>
mov    $0x0,%al
call   1050 <move_immediate_test@plt>
mov    $0x0,%al
call   1090 <move_to_memory_immediate_test@plt>
mov    $0x0,%al
call   1070 <load_register_pair_immediate_test@plt>
mov    $0x0,%al
call   10a0 <load_accumulator_direct_test@plt>
mov    $0x0,%al
call   1080 <store_accumulator_direct_test@plt>
mov    $0x0,%al
call   10e0 <load_HL_direct_test@plt>
mov    $0x0,%al
call   10d0 <store_HL_direct_test@plt>
mov    $0x0,%al
call   10f0 <load_accumulator_indirect_test@plt>
mov    $0x0,%al
call   10c0 <store_accumulator_indirect_test@plt>
mov    $0x0,%al
call   1040 <exchange_HL_DE_test@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1060 <move_register_test@plt>
xor    %eax,%eax
call   10b0 <move_from_memory_test@plt>
xor    %eax,%eax
call   1030 <move_to_memory_test@plt>
xor    %eax,%eax
call   1050 <move_immediate_test@plt>
xor    %eax,%eax
call   1090 <move_to_memory_immediate_test@plt>
xor    %eax,%eax
call   1070 <load_register_pair_immediate_test@plt>
xor    %eax,%eax
call   10a0 <load_accumulator_direct_test@plt>
xor    %eax,%eax
call   1080 <store_accumulator_direct_test@plt>
xor    %eax,%eax
call   10e0 <load_HL_direct_test@plt>
xor    %eax,%eax
call   10d0 <store_HL_direct_test@plt>
xor    %eax,%eax
call   10f0 <load_accumulator_indirect_test@plt>
xor    %eax,%eax
call   10c0 <store_accumulator_indirect_test@plt>
xor    %eax,%eax
call   1040 <exchange_HL_DE_test@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (...) @move_register_test()
%7 = call i32 (...) @move_from_memory_test()
%8 = call i32 (...) @move_to_memory_test()
%9 = call i32 (...) @move_immediate_test()
%10 = call i32 (...) @move_to_memory_immediate_test()
%11 = call i32 (...) @load_register_pair_immediate_test()
%12 = call i32 (...) @load_accumulator_direct_test()
%13 = call i32 (...) @store_accumulator_direct_test()
%14 = call i32 (...) @load_HL_direct_test()
%15 = call i32 (...) @store_HL_direct_test()
%16 = call i32 (...) @load_accumulator_indirect_test()
%17 = call i32 (...) @store_accumulator_indirect_test()
%18 = call i32 (...) @exchange_HL_DE_test()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @move_register_test()
%4 = tail call i32 (...) @move_from_memory_test()
%5 = tail call i32 (...) @move_to_memory_test()
%6 = tail call i32 (...) @move_immediate_test()
%7 = tail call i32 (...) @move_to_memory_immediate_test()
%8 = tail call i32 (...) @load_register_pair_immediate_test()
%9 = tail call i32 (...) @load_accumulator_direct_test()
%10 = tail call i32 (...) @store_accumulator_direct_test()
%11 = tail call i32 (...) @load_HL_direct_test()
%12 = tail call i32 (...) @store_HL_direct_test()
%13 = tail call i32 (...) @load_accumulator_indirect_test()
%14 = tail call i32 (...) @store_accumulator_indirect_test()
%15 = tail call i32 (...) @exchange_HL_DE_test()
ret i32 0
}