#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_stack_top_with_HL_test();
int /*<<< orphan*/ move_HL_to_SP_test();
int /*<<< orphan*/ pop_processor_status_word_test();
int /*<<< orphan*/ pop_register_pair_test();
int /*<<< orphan*/ pop_sp_test();
int /*<<< orphan*/ push_processor_status_word_test();
int /*<<< orphan*/ push_register_pair_test();
int /*<<< orphan*/ push_sp_test();
int main(int argc, const char *argv[]) {
  push_register_pair_test();
  push_sp_test();
  push_processor_status_word_test();
  pop_register_pair_test();
  pop_sp_test();
  pop_processor_status_word_test();
  exchange_stack_top_with_HL_test();
  move_HL_to_SP_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   1070 <push_register_pair_test@plt>
mov    $0x0,%al
call   1090 <push_sp_test@plt>
mov    $0x0,%al
call   1080 <push_processor_status_word_test@plt>
mov    $0x0,%al
call   1050 <pop_register_pair_test@plt>
mov    $0x0,%al
call   10a0 <pop_sp_test@plt>
mov    $0x0,%al
call   1060 <pop_processor_status_word_test@plt>
mov    $0x0,%al
call   1030 <exchange_stack_top_with_HL_test@plt>
mov    $0x0,%al
call   1040 <move_HL_to_SP_test@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1070 <push_register_pair_test@plt>
xor    %eax,%eax
call   1090 <push_sp_test@plt>
xor    %eax,%eax
call   1080 <push_processor_status_word_test@plt>
xor    %eax,%eax
call   1050 <pop_register_pair_test@plt>
xor    %eax,%eax
call   10a0 <pop_sp_test@plt>
xor    %eax,%eax
call   1060 <pop_processor_status_word_test@plt>
xor    %eax,%eax
call   1030 <exchange_stack_top_with_HL_test@plt>
xor    %eax,%eax
call   1040 <move_HL_to_SP_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 (...) @push_register_pair_test()
%7 = call i32 (...) @push_sp_test()
%8 = call i32 (...) @push_processor_status_word_test()
%9 = call i32 (...) @pop_register_pair_test()
%10 = call i32 (...) @pop_sp_test()
%11 = call i32 (...) @pop_processor_status_word_test()
%12 = call i32 (...) @exchange_stack_top_with_HL_test()
%13 = call i32 (...) @move_HL_to_SP_test()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @push_register_pair_test()
%4 = tail call i32 (...) @push_sp_test()
%5 = tail call i32 (...) @push_processor_status_word_test()
%6 = tail call i32 (...) @pop_register_pair_test()
%7 = tail call i32 (...) @pop_sp_test()
%8 = tail call i32 (...) @pop_processor_status_word_test()
%9 = tail call i32 (...) @exchange_stack_top_with_HL_test()
%10 = tail call i32 (...) @move_HL_to_SP_test()
ret i32 0
}