#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ test_add_imm();
int /*<<< orphan*/ test_call();
int /*<<< orphan*/ test_cmp_imm();
int /*<<< orphan*/ test_eflags_insn();
int /*<<< orphan*/ test_io();
int /*<<< orphan*/ test_jcc_near();
int /*<<< orphan*/ test_jcc_short();
int /*<<< orphan*/ test_long_jmp();
int /*<<< orphan*/ test_mov_imm();
int /*<<< orphan*/ test_null();
int /*<<< orphan*/ test_push_pop();
int /*<<< orphan*/ test_shld();
void realmode_start(void) {
  test_null();
  test_shld();
  test_push_pop();
  test_mov_imm();
  test_cmp_imm();
  test_add_imm();
  test_io();
  test_eflags_insn();
  test_jcc_short();
  test_jcc_near();
  test_call();
  test_long_jmp();
  exit(0);
}


x86 assembly (clang, -O0):
<realmode_start>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1090 <test_null@plt>
mov    $0x0,%al
call   1080 <test_shld@plt>
mov    $0x0,%al
call   1050 <test_push_pop@plt>
mov    $0x0,%al
call   1040 <test_mov_imm@plt>
mov    $0x0,%al
call   1060 <test_cmp_imm@plt>
mov    $0x0,%al
call   1030 <test_add_imm@plt>
mov    $0x0,%al
call   10d0 <test_io@plt>
mov    $0x0,%al
call   10f0 <test_eflags_insn@plt>
mov    $0x0,%al
call   10b0 <test_jcc_short@plt>
mov    $0x0,%al
call   1070 <test_jcc_near@plt>
mov    $0x0,%al
call   10c0 <test_call@plt>
mov    $0x0,%al
call   10a0 <test_long_jmp@plt>
xor    %edi,%edi
call   10e0 <exit@plt>

x86 assembly (clang, -O2):
<realmode_start>:
push   %rax
xor    %eax,%eax
call   1090 <test_null@plt>
xor    %eax,%eax
call   1080 <test_shld@plt>
xor    %eax,%eax
call   1050 <test_push_pop@plt>
xor    %eax,%eax
call   1040 <test_mov_imm@plt>
xor    %eax,%eax
call   1060 <test_cmp_imm@plt>
xor    %eax,%eax
call   1030 <test_add_imm@plt>
xor    %eax,%eax
call   10d0 <test_io@plt>
xor    %eax,%eax
call   10f0 <test_eflags_insn@plt>
xor    %eax,%eax
call   10b0 <test_jcc_short@plt>
xor    %eax,%eax
call   1070 <test_jcc_near@plt>
xor    %eax,%eax
call   10c0 <test_call@plt>
xor    %eax,%eax
call   10a0 <test_long_jmp@plt>
xor    %edi,%edi
call   10e0 <exit@plt>

LLVM IR (-O0):
define void @realmode_start() {
%1 = call i32 (...) @test_null()
%2 = call i32 (...) @test_shld()
%3 = call i32 (...) @test_push_pop()
%4 = call i32 (...) @test_mov_imm()
%5 = call i32 (...) @test_cmp_imm()
%6 = call i32 (...) @test_add_imm()
%7 = call i32 (...) @test_io()
%8 = call i32 (...) @test_eflags_insn()
%9 = call i32 (...) @test_jcc_short()
%10 = call i32 (...) @test_jcc_near()
%11 = call i32 (...) @test_call()
%12 = call i32 (...) @test_long_jmp()
%13 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
define void @realmode_start() {
%1 = tail call i32 (...) @test_null()
%2 = tail call i32 (...) @test_shld()
%3 = tail call i32 (...) @test_push_pop()
%4 = tail call i32 (...) @test_mov_imm()
%5 = tail call i32 (...) @test_cmp_imm()
%6 = tail call i32 (...) @test_add_imm()
%7 = tail call i32 (...) @test_io()
%8 = tail call i32 (...) @test_eflags_insn()
%9 = tail call i32 (...) @test_jcc_short()
%10 = tail call i32 (...) @test_jcc_near()
%11 = tail call i32 (...) @test_call()
%12 = tail call i32 (...) @test_long_jmp()
%13 = tail call i32 @exit(i32 0)
unreachable
}