#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*/ printf(char *);
int /*<<< orphan*/ sleep(int);
scalar_t__ tc_pre();
scalar_t__ tc_xi_arrays();
scalar_t__ tc_xi_base64();
scalar_t__ tc_xi_clock();
scalar_t__ tc_xi_ctype();
scalar_t__ tc_xi_dso();
scalar_t__ tc_xi_env();
scalar_t__ tc_xi_file_dop();
scalar_t__ tc_xi_file_fop();
scalar_t__ tc_xi_hashtb();
scalar_t__ tc_xi_log();
scalar_t__ tc_xi_mem();
scalar_t__ tc_xi_poll_echosrv();
scalar_t__ tc_xi_proc();
scalar_t__ tc_xi_select_echosrv();
scalar_t__ tc_xi_socket_basic();
scalar_t__ tc_xi_socket_mcast();
scalar_t__ tc_xi_sysinfo();
scalar_t__ tc_xi_thread_basic();
scalar_t__ tc_xi_thread_java();
scalar_t__ tc_xi_thread_stress();
int main(int argc, char **argv) {
  (void)(argc);
  (void)(argv);
  printf("\n\n");
  printf("==============================================================\n");
  printf("\n");
  printf("   #    #      #             #####  ######   ####    #####\n");
  printf("    #  #       #               #    #       #          #  \n");
  printf("     ##        #    #####      #    #####    ####      #  \n");
  printf("     ##        #               #    #            #     #  \n");
  printf("    #  #       #               #    #       #    #     #  \n");
  printf("   #    #      #               #    ######   ####      #  \n");
  printf("\n");
  printf("==============================================================\n");
  printf("\n\n");
  printf("--------------------------------------------------------------\n");
  printf("1) Prerequisite Test\n");
  printf("--------------------------------------------------------------\n");
  do {
    if (tc_pre() < 0)
      printf("!!!!!!!!!!!!!!!!!!!!!!!\n");
  } while (0);
  printf("\n\n");
  printf("--------------------------------------------------------------\n");
  printf("2) XI Test\n");
  printf("--------------------------------------------------------------\n");
  do {
    if (tc_xi_log() < 0)
      printf("!!!!!!!!!!!!!!!!!!!!!!!\n");
  } while (0);
  do {
    if (tc_xi_mem() < 0)
      printf("!!!!!!!!!!!!!!!!!!!!!!!\n");
  } while (0);
  do {
    if (tc_xi_hashtb() < 0)
      printf("!!!!!!!!!!!!!!!!!!!!!!!\n");
  } while (0);
  do {
    if (tc_xi_clock() < 0)
      printf("!!!!!!!!!!!!!!!!!!!!!!!\n");
  } while (0);
  do {
    if (tc_xi_thread_basic() < 0)
      printf("!!!!!!!!!!!!!!!!!!!!!!!\n");
  } while (0);
  do {
    if (tc_xi_thread_java() < 0)
      printf("!!!!!!!!!!!!!!!!!!!!!!!\n");
  } while (0);
  do {
    if (tc_xi_thread_stress() < 0)
      printf("!!!!!!!!!!!!!!!!!!!!!!!\n");
  } while (0);
  do {
    if (tc_xi_dso() < 0)
      printf("!!!!!!!!!!!!!!!!!!!!!!!\n");
  } while (0);
  do {
    if (tc_xi_file_fop() < 0)
      printf("!!!!!!!!!!!!!!!!!!!!!!!\n");
  } while (0);
  do {
    if (tc_xi_file_dop() < 0)
      printf("!!!!!!!!!!!!!!!!!!!!!!!\n");
  } while (0);
  do {
    if (tc_xi_socket_basic() < 0)
      printf("!!!!!!!!!!!!!!!!!!!!!!!\n");
  } while (0);
  do {
    if (tc_xi_socket_mcast() < 0)
      printf("!!!!!!!!!!!!!!!!!!!!!!!\n");
  } while (0);
  do {
    if (tc_xi_poll_echosrv() < 0)
      printf("!!!!!!!!!!!!!!!!!!!!!!!\n");
  } while (0);
  do {
    if (tc_xi_select_echosrv() < 0)
      printf("!!!!!!!!!!!!!!!!!!!!!!!\n");
  } while (0);
  do {
    if (tc_xi_arrays() < 0)
      printf("!!!!!!!!!!!!!!!!!!!!!!!\n");
  } while (0);
  do {
    if (tc_xi_base64() < 0)
      printf("!!!!!!!!!!!!!!!!!!!!!!!\n");
  } while (0);
  do {
    if (tc_xi_sysinfo() < 0)
      printf("!!!!!!!!!!!!!!!!!!!!!!!\n");
  } while (0);
  do {
    if (tc_xi_env() < 0)
      printf("!!!!!!!!!!!!!!!!!!!!!!!\n");
  } while (0);
  do {
    if (tc_xi_ctype() < 0)
      printf("!!!!!!!!!!!!!!!!!!!!!!!\n");
  } while (0);
  do {
    if (tc_xi_proc() < 0)
      printf("!!!!!!!!!!!!!!!!!!!!!!!\n");
  } while (0);
  printf("\n\n");
  while (1) {
    sleep(1);
    printf("Test Alive!!!!\n");
  }
  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)
lea    0xd73(%rip),%rdi
call   1080 <printf@plt>
lea    0xd6a(%rip),%rdi
call   1080 <printf@plt>
lea    0xd5c(%rip),%rdi
call   1080 <printf@plt>
lea    0xd92(%rip),%rdi
call   1080 <printf@plt>
lea    0xdc2(%rip),%rdi
call   1080 <printf@plt>
lea    0xdf2(%rip),%rdi
call   1080 <printf@plt>
lea    0xe22(%rip),%rdi
call   1080 <printf@plt>
lea    0xe52(%rip),%rdi
call   1080 <printf@plt>
lea    0xe82(%rip),%rdi
call   1080 <printf@plt>
lea    0xd08(%rip),%rdi
call   1080 <printf@plt>
lea    0xcfe(%rip),%rdi
call   1080 <printf@plt>
lea    0xcef(%rip),%rdi
call   1080 <printf@plt>
lea    0xe8e(%rip),%rdi
call   1080 <printf@plt>
lea    0xec2(%rip),%rdi
call   1080 <printf@plt>
lea    0xe76(%rip),%rdi
call   1080 <printf@plt>
mov    $0x0,%al
call   1140 <tc_pre@plt>
cmp    $0x0,%rax
jge    1357 <main+0xe7>
lea    0xeaf(%rip),%rdi
call   1080 <printf@plt>
jmp    135c <main+0xec>
lea    0xc9d(%rip),%rdi
call   1080 <printf@plt>
lea    0xe3c(%rip),%rdi
call   1080 <printf@plt>
lea    0xe9f(%rip),%rdi
call   1080 <printf@plt>
lea    0xe24(%rip),%rdi
call   1080 <printf@plt>
mov    $0x0,%al
call   10b0 <tc_xi_log@plt>
cmp    $0x0,%rax
jge    13a9 <main+0x139>
lea    0xe5d(%rip),%rdi
call   1080 <printf@plt>
jmp    13ae <main+0x13e>
jmp    13b3 <main+0x143>
mov    $0x0,%al
call   1040 <tc_xi_mem@plt>
cmp    $0x0,%rax
jge    13d0 <main+0x160>
lea    0xe36(%rip),%rdi
call   1080 <printf@plt>
jmp    13d5 <main+0x165>
jmp    13da <main+0x16a>
mov    $0x0,%al
call   10f0 <tc_xi_hashtb@plt>
cmp    $0x0,%rax
jge    13f7 <main+0x187>
lea    0xe0f(%rip),%rdi
call   1080 <printf@plt>
jmp    13fc <main+0x18c>
jmp    1401 <main+0x191>
mov    $0x0,%al
call   10d0 <tc_xi_clock@plt>
cmp    $0x0,%rax
jge    141e <main+0x1ae>
lea    0xde8(%rip),%rdi
call   1080 <printf@plt>
jmp    1423 <main+0x1b3>
jmp    1428 <main+0x1b8>
mov    $0x0,%al
call   10c0 <tc_xi_thread_basic@plt>
cmp    $0x0,%rax
jge    1445 <main+0x1d5>
lea    0xdc1(%rip),%rdi
call   1080 <printf@plt>
jmp    144a <main+0x1da>
jmp    144f <main+0x1df>
mov    $0x0,%al
call   1030 <tc_xi_thread_java@plt>
cmp    $0x0,%rax
jge    146c <main+0x1fc>
lea    0xd9a(%rip),%rdi
call   1080 <printf@plt>
jmp    1471 <main+0x201>
jmp    1476 <main+0x206>
mov    $0x0,%al
call   1060 <tc_xi_thread_stress@plt>
cmp    $0x0,%rax
jge    1493 <main+0x223>
lea    0xd73(%rip),%rdi
call   1080 <printf@plt>
jmp    1498 <main+0x228>
jmp    149d <main+0x22d>
mov    $0x0,%al
call   1120 <tc_xi_dso@plt>
cmp    $0x0,%rax
jge    14ba <main+0x24a>
lea    0xd4c(%rip),%rdi
call   1080 <printf@plt>
jmp    14bf <main+0x24f>
jmp    14c4 <main+0x254>
mov    $0x0,%al
call   1150 <tc_xi_file_fop@plt>
cmp    $0x0,%rax
jge    14e1 <main+0x271>
lea    0xd25(%rip),%rdi
call   1080 <printf@plt>
jmp    14e6 <main+0x276>
jmp    14eb <main+0x27b>
mov    $0x0,%al
call   1070 <tc_xi_file_dop@plt>
cmp    $0x0,%rax
jge    1508 <main+0x298>
lea    0xcfe(%rip),%rdi
call   1080 <printf@plt>
jmp    150d <main+0x29d>
jmp    1512 <main+0x2a2>
mov    $0x0,%al
call   1130 <tc_xi_socket_basic@plt>
cmp    $0x0,%rax
jge    152f <main+0x2bf>
lea    0xcd7(%rip),%rdi
call   1080 <printf@plt>
jmp    1534 <main+0x2c4>
jmp    1539 <main+0x2c9>
mov    $0x0,%al
call   1180 <tc_xi_socket_mcast@plt>
cmp    $0x0,%rax
jge    1556 <main+0x2e6>
lea    0xcb0(%rip),%rdi
call   1080 <printf@plt>
jmp    155b <main+0x2eb>
jmp    1560 <main+0x2f0>
mov    $0x0,%al
call   1190 <tc_xi_poll_echosrv@plt>
cmp    $0x0,%rax
jge    157d <main+0x30d>
lea    0xc89(%rip),%rdi
call   1080 <printf@plt>
jmp    1582 <main+0x312>
jmp    1587 <main+0x317>
mov    $0x0,%al
call   10e0 <tc_xi_select_echosrv@plt>
cmp    $0x0,%rax
jge    15a4 <main+0x334>
lea    0xc62(%rip),%rdi
call   1080 <printf@plt>
jmp    15a9 <main+0x339>
jmp    15ae <main+0x33e>
mov    $0x0,%al
call   1090 <tc_xi_arrays@plt>
cmp    $0x0,%rax
jge    15cb <main+0x35b>
lea    0xc3b(%rip),%rdi
call   1080 <printf@plt>
jmp    15d0 <main+0x360>
jmp    15d5 <main+0x365>
mov    $0x0,%al
call   10a0 <tc_xi_base64@plt>
cmp    $0x0,%rax
jge    15f2 <main+0x382>
lea    0xc14(%rip),%rdi
call   1080 <printf@plt>
jmp    15f7 <main+0x387>
jmp    15fc <main+0x38c>
mov    $0x0,%al
call   1160 <tc_xi_sysinfo@plt>
cmp    $0x0,%rax
jge    1619 <main+0x3a9>
lea    0xbed(%rip),%rdi
call   1080 <printf@plt>
jmp    161e <main+0x3ae>
jmp    1623 <main+0x3b3>
mov    $0x0,%al
call   1100 <tc_xi_env@plt>
cmp    $0x0,%rax
jge    1640 <main+0x3d0>
lea    0xbc6(%rip),%rdi
call   1080 <printf@plt>
jmp    1645 <main+0x3d5>
jmp    164a <main+0x3da>
mov    $0x0,%al
call   1050 <tc_xi_ctype@plt>
cmp    $0x0,%rax
jge    1667 <main+0x3f7>
lea    0xb9f(%rip),%rdi
call   1080 <printf@plt>
jmp    166c <main+0x3fc>
jmp    1671 <main+0x401>
mov    $0x0,%al
call   1110 <tc_xi_proc@plt>
cmp    $0x0,%rax
jge    168e <main+0x41e>
lea    0xb78(%rip),%rdi
call   1080 <printf@plt>
jmp    1693 <main+0x423>
lea    0x966(%rip),%rdi
call   1080 <printf@plt>
mov    $0x1,%edi
call   1170 <sleep@plt>
lea    0xb76(%rip),%rdi
call   1080 <printf@plt>
jmp    169f <main+0x42f>

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xf75(%rip),%r14
mov    %r14,%rdi
call   1070 <puts@plt>
lea    0xec8(%rip),%rbx
mov    %rbx,%rdi
call   1070 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xd4d(%rip),%rdi
call   1070 <puts@plt>
lea    0xd7c(%rip),%rdi
call   1070 <puts@plt>
lea    0xdab(%rip),%rdi
call   1070 <puts@plt>
lea    0xdda(%rip),%rdi
call   1070 <puts@plt>
lea    0xe09(%rip),%rdi
call   1070 <puts@plt>
lea    0xe38(%rip),%rdi
call   1070 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %rbx,%rdi
call   1070 <puts@plt>
mov    %r14,%rdi
call   1070 <puts@plt>
lea    0xeac(%rip),%rbx
mov    %rbx,%rdi
call   1070 <puts@plt>
lea    0xe7d(%rip),%rdi
call   1070 <puts@plt>
mov    %rbx,%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1150 <tc_pre@plt>
test   %rax,%rax
jns    1349 <main+0xc9>
lea    0xecd(%rip),%rdi
call   1070 <puts@plt>
lea    0xeb0(%rip),%rdi
call   1070 <puts@plt>
lea    0xe65(%rip),%rbx
mov    %rbx,%rdi
call   1070 <puts@plt>
lea    0xe4b(%rip),%rdi
call   1070 <puts@plt>
mov    %rbx,%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   10c0 <tc_xi_log@plt>
test   %rax,%rax
jns    1390 <main+0x110>
lea    0xe86(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1050 <tc_xi_mem@plt>
test   %rax,%rax
jns    13a8 <main+0x128>
lea    0xe6e(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1100 <tc_xi_hashtb@plt>
test   %rax,%rax
jns    13c0 <main+0x140>
lea    0xe56(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   10e0 <tc_xi_clock@plt>
test   %rax,%rax
jns    13d8 <main+0x158>
lea    0xe3e(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   10d0 <tc_xi_thread_basic@plt>
test   %rax,%rax
jns    13f0 <main+0x170>
lea    0xe26(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1040 <tc_xi_thread_java@plt>
test   %rax,%rax
jns    1408 <main+0x188>
lea    0xe0e(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1080 <tc_xi_thread_stress@plt>
test   %rax,%rax
jns    1420 <main+0x1a0>
lea    0xdf6(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1130 <tc_xi_dso@plt>
test   %rax,%rax
jns    1438 <main+0x1b8>
lea    0xdde(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1160 <tc_xi_file_fop@plt>
test   %rax,%rax
jns    1450 <main+0x1d0>
lea    0xdc6(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1090 <tc_xi_file_dop@plt>
test   %rax,%rax
jns    1468 <main+0x1e8>
lea    0xdae(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1140 <tc_xi_socket_basic@plt>
test   %rax,%rax
jns    1480 <main+0x200>
lea    0xd96(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1190 <tc_xi_socket_mcast@plt>
test   %rax,%rax
jns    1498 <main+0x218>
lea    0xd7e(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   11a0 <tc_xi_poll_echosrv@plt>
test   %rax,%rax
jns    14b0 <main+0x230>
lea    0xd66(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   10f0 <tc_xi_select_echosrv@plt>
test   %rax,%rax
jns    14c8 <main+0x248>
lea    0xd4e(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   10a0 <tc_xi_arrays@plt>
test   %rax,%rax
jns    14e0 <main+0x260>
lea    0xd36(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   10b0 <tc_xi_base64@plt>
test   %rax,%rax
jns    14f8 <main+0x278>
lea    0xd1e(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1170 <tc_xi_sysinfo@plt>
test   %rax,%rax
jns    1510 <main+0x290>
lea    0xd06(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1110 <tc_xi_env@plt>
test   %rax,%rax
jns    1528 <main+0x2a8>
lea    0xcee(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1060 <tc_xi_ctype@plt>
test   %rax,%rax
jns    1540 <main+0x2c0>
lea    0xcd6(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1120 <tc_xi_proc@plt>
test   %rax,%rax
jns    1558 <main+0x2d8>
lea    0xcbe(%rip),%rdi
call   1070 <puts@plt>
lea    0xca1(%rip),%rdi
call   1070 <puts@plt>
lea    0xc97(%rip),%rbx
nopl   0x0(%rax,%rax,1)
mov    $0x1,%edi
call   1180 <sleep@plt>
mov    %rbx,%rdi
call   1070 <puts@plt>
jmp    1570 <main+0x2f0>

LLVM IR (-O0):
@.str = [3 x i8] c"\0A\0A\00"
@.str.1 = [64 x i8] c"==============================================================\0A\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [60 x i8] c" # # # ##### ###### #### #####\0A\00"
@.str.4 = [60 x i8] c" # # # # # # # \0A\00"
@.str.5 = [60 x i8] c" ## # ##### # ##### #### # \0A\00"
@.str.6 = [60 x i8] c" ## # # # # # \0A\00"
@.str.7 = [60 x i8] c" # # # # # # # # \0A\00"
@.str.8 = [60 x i8] c" # # # # ###### #### # \0A\00"
@.str.9 = [64 x i8] c"--------------------------------------------------------------\0A\00"
@.str.10 = [22 x i8] c"1) Prerequisite Test\0A\00"
@.str.11 = [25 x i8] c"!!!!!!!!!!!!!!!!!!!!!!!\0A\00"
@.str.12 = [12 x i8] c"2) XI Test\0A\00"
@.str.13 = [16 x i8] c"Test Alive!!!!\0A\00"
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 = load i32, i32* %4
%7 = load i8**, i8*** %5
%8 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.5, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.6, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.7, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.8, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.1, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.9, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.9, i64 0, i64 0))
br label %23
23: ; preds = %2
%24 = call i64 (...) @tc_pre()
%25 = icmp slt i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
br label %28
28: ; preds = %26, %23
br label %29
29: ; preds = %28
%30 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%31 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.9, i64 0, i64 0))
%32 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
%33 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.9, i64 0, i64 0))
br label %34
34: ; preds = %29
%35 = call i64 (...) @tc_xi_log()
%36 = icmp slt i64 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
br label %39
39: ; preds = %37, %34
br label %40
40: ; preds = %39
br label %41
41: ; preds = %40
%42 = call i64 (...) @tc_xi_mem()
%43 = icmp slt i64 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %41
%45 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
br label %46
46: ; preds = %44, %41
br label %47
47: ; preds = %46
br label %48
48: ; preds = %47
%49 = call i64 (...) @tc_xi_hashtb()
%50 = icmp slt i64 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
br label %53
53: ; preds = %51, %48
br label %54
54: ; preds = %53
br label %55
55: ; preds = %54
%56 = call i64 (...) @tc_xi_clock()
%57 = icmp slt i64 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
br label %60
60: ; preds = %58, %55
br label %61
61: ; preds = %60
br label %62
62: ; preds = %61
%63 = call i64 (...) @tc_xi_thread_basic()
%64 = icmp slt i64 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %62
%66 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
br label %67
67: ; preds = %65, %62
br label %68
68: ; preds = %67
br label %69
69: ; preds = %68
%70 = call i64 (...) @tc_xi_thread_java()
%71 = icmp slt i64 %70, 0
br i1 %71, label %72, label %74
72: ; preds = %69
%73 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
br label %74
74: ; preds = %72, %69
br label %75
75: ; preds = %74
br label %76
76: ; preds = %75
%77 = call i64 (...) @tc_xi_thread_stress()
%78 = icmp slt i64 %77, 0
br i1 %78, label %79, label %81
79: ; preds = %76
%80 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
br label %81
81: ; preds = %79, %76
br label %82
82: ; preds = %81
br label %83
83: ; preds = %82
%84 = call i64 (...) @tc_xi_dso()
%85 = icmp slt i64 %84, 0
br i1 %85, label %86, label %88
86: ; preds = %83
%87 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
br label %88
88: ; preds = %86, %83
br label %89
89: ; preds = %88
br label %90
90: ; preds = %89
%91 = call i64 (...) @tc_xi_file_fop()
%92 = icmp slt i64 %91, 0
br i1 %92, label %93, label %95
93: ; preds = %90
%94 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
br label %95
95: ; preds = %93, %90
br label %96
96: ; preds = %95
br label %97
97: ; preds = %96
%98 = call i64 (...) @tc_xi_file_dop()
%99 = icmp slt i64 %98, 0
br i1 %99, label %100, label %102
100: ; preds = %97
%101 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
br label %102
102: ; preds = %100, %97
br label %103
103: ; preds = %102
br label %104
104: ; preds = %103
%105 = call i64 (...) @tc_xi_socket_basic()
%106 = icmp slt i64 %105, 0
br i1 %106, label %107, label %109
107: ; preds = %104
%108 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
br label %109
109: ; preds = %107, %104
br label %110
110: ; preds = %109
br label %111
111: ; preds = %110
%112 = call i64 (...) @tc_xi_socket_mcast()
%113 = icmp slt i64 %112, 0
br i1 %113, label %114, label %116
114: ; preds = %111
%115 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
br label %116
116: ; preds = %114, %111
br label %117
117: ; preds = %116
br label %118
118: ; preds = %117
%119 = call i64 (...) @tc_xi_poll_echosrv()
%120 = icmp slt i64 %119, 0
br i1 %120, label %121, label %123
121: ; preds = %118
%122 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
br label %123
123: ; preds = %121, %118
br label %124
124: ; preds = %123
br label %125
125: ; preds = %124
%126 = call i64 (...) @tc_xi_select_echosrv()
%127 = icmp slt i64 %126, 0
br i1 %127, label %128, label %130
128: ; preds = %125
%129 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
br label %130
130: ; preds = %128, %125
br label %131
131: ; preds = %130
br label %132
132: ; preds = %131
%133 = call i64 (...) @tc_xi_arrays()
%134 = icmp slt i64 %133, 0
br i1 %134, label %135, label %137
135: ; preds = %132
%136 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
br label %137
137: ; preds = %135, %132
br label %138
138: ; preds = %137
br label %139
139: ; preds = %138
%140 = call i64 (...) @tc_xi_base64()
%141 = icmp slt i64 %140, 0
br i1 %141, label %142, label %144
142: ; preds = %139
%143 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
br label %144
144: ; preds = %142, %139
br label %145
145: ; preds = %144
br label %146
146: ; preds = %145
%147 = call i64 (...) @tc_xi_sysinfo()
%148 = icmp slt i64 %147, 0
br i1 %148, label %149, label %151
149: ; preds = %146
%150 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
br label %151
151: ; preds = %149, %146
br label %152
152: ; preds = %151
br label %153
153: ; preds = %152
%154 = call i64 (...) @tc_xi_env()
%155 = icmp slt i64 %154, 0
br i1 %155, label %156, label %158
156: ; preds = %153
%157 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
br label %158
158: ; preds = %156, %153
br label %159
159: ; preds = %158
br label %160
160: ; preds = %159
%161 = call i64 (...) @tc_xi_ctype()
%162 = icmp slt i64 %161, 0
br i1 %162, label %163, label %165
163: ; preds = %160
%164 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
br label %165
165: ; preds = %163, %160
br label %166
166: ; preds = %165
br label %167
167: ; preds = %166
%168 = call i64 (...) @tc_xi_proc()
%169 = icmp slt i64 %168, 0
br i1 %169, label %170, label %172
170: ; preds = %167
%171 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
br label %172
172: ; preds = %170, %167
br label %173
173: ; preds = %172
%174 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
br label %175
175: ; preds = %173, %175
%176 = call i32 @sleep(i32 1)
%177 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0))
br label %175
}

LLVM IR (-O2):
@str.15 = [59 x i8] c" # # # ##### ###### #### #####\00"
@str.16 = [59 x i8] c" # # # # # # # \00"
@str.17 = [59 x i8] c" ## # ##### # ##### #### # \00"
@str.18 = [59 x i8] c" ## # # # # # \00"
@str.19 = [59 x i8] c" # # # # # # # # \00"
@str.20 = [59 x i8] c" # # # # ###### #### # \00"
@str.21 = [63 x i8] c"==============================================================\00"
@str.24 = [21 x i8] c"1) Prerequisite Test\00"
@str.28 = [11 x i8] c"2) XI Test\00"
@str.29 = [63 x i8] c"--------------------------------------------------------------\00"
@str.30 = [2 x i8] c"\0A\00"
@str.31 = [15 x i8] c"Test Alive!!!!\00"
@str.52 = [24 x i8] c"!!!!!!!!!!!!!!!!!!!!!!!\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.30, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.21, i64 0, i64 0))
%5 = tail call i32 @putchar(i32 10)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.15, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.16, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.17, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.18, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.19, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.20, i64 0, i64 0))
%12 = tail call i32 @putchar(i32 10)
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.21, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.30, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.29, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.24, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.29, i64 0, i64 0))
%18 = tail call i64 (...) @tc_pre()
%19 = icmp slt i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %2
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.52, i64 0, i64 0))
br label %22
22: ; preds = %2, %20
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.30, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.29, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.28, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.29, i64 0, i64 0))
%27 = tail call i64 (...) @tc_xi_log()
%28 = icmp slt i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %22
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.52, i64 0, i64 0))
br label %31
31: ; preds = %29, %22
%32 = tail call i64 (...) @tc_xi_mem()
%33 = icmp slt i64 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.52, i64 0, i64 0))
br label %36
36: ; preds = %34, %31
%37 = tail call i64 (...) @tc_xi_hashtb()
%38 = icmp slt i64 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.52, i64 0, i64 0))
br label %41
41: ; preds = %39, %36
%42 = tail call i64 (...) @tc_xi_clock()
%43 = icmp slt i64 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %41
%45 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.52, i64 0, i64 0))
br label %46
46: ; preds = %44, %41
%47 = tail call i64 (...) @tc_xi_thread_basic()
%48 = icmp slt i64 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %46
%50 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.52, i64 0, i64 0))
br label %51
51: ; preds = %49, %46
%52 = tail call i64 (...) @tc_xi_thread_java()
%53 = icmp slt i64 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %51
%55 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.52, i64 0, i64 0))
br label %56
56: ; preds = %54, %51
%57 = tail call i64 (...) @tc_xi_thread_stress()
%58 = icmp slt i64 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %56
%60 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.52, i64 0, i64 0))
br label %61
61: ; preds = %59, %56
%62 = tail call i64 (...) @tc_xi_dso()
%63 = icmp slt i64 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %61
%65 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.52, i64 0, i64 0))
br label %66
66: ; preds = %64, %61
%67 = tail call i64 (...) @tc_xi_file_fop()
%68 = icmp slt i64 %67, 0
br i1 %68, label %69, label %71
69: ; preds = %66
%70 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.52, i64 0, i64 0))
br label %71
71: ; preds = %69, %66
%72 = tail call i64 (...) @tc_xi_file_dop()
%73 = icmp slt i64 %72, 0
br i1 %73, label %74, label %76
74: ; preds = %71
%75 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.52, i64 0, i64 0))
br label %76
76: ; preds = %74, %71
%77 = tail call i64 (...) @tc_xi_socket_basic()
%78 = icmp slt i64 %77, 0
br i1 %78, label %79, label %81
79: ; preds = %76
%80 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.52, i64 0, i64 0))
br label %81
81: ; preds = %79, %76
%82 = tail call i64 (...) @tc_xi_socket_mcast()
%83 = icmp slt i64 %82, 0
br i1 %83, label %84, label %86
84: ; preds = %81
%85 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.52, i64 0, i64 0))
br label %86
86: ; preds = %84, %81
%87 = tail call i64 (...) @tc_xi_poll_echosrv()
%88 = icmp slt i64 %87, 0
br i1 %88, label %89, label %91
89: ; preds = %86
%90 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.52, i64 0, i64 0))
br label %91
91: ; preds = %89, %86
%92 = tail call i64 (...) @tc_xi_select_echosrv()
%93 = icmp slt i64 %92, 0
br i1 %93, label %94, label %96
94: ; preds = %91
%95 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.52, i64 0, i64 0))
br label %96
96: ; preds = %94, %91
%97 = tail call i64 (...) @tc_xi_arrays()
%98 = icmp slt i64 %97, 0
br i1 %98, label %99, label %101
99: ; preds = %96
%100 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.52, i64 0, i64 0))
br label %101
101: ; preds = %99, %96
%102 = tail call i64 (...) @tc_xi_base64()
%103 = icmp slt i64 %102, 0
br i1 %103, label %104, label %106
104: ; preds = %101
%105 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.52, i64 0, i64 0))
br label %106
106: ; preds = %104, %101
%107 = tail call i64 (...) @tc_xi_sysinfo()
%108 = icmp slt i64 %107, 0
br i1 %108, label %109, label %111
109: ; preds = %106
%110 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.52, i64 0, i64 0))
br label %111
111: ; preds = %109, %106
%112 = tail call i64 (...) @tc_xi_env()
%113 = icmp slt i64 %112, 0
br i1 %113, label %114, label %116
114: ; preds = %111
%115 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.52, i64 0, i64 0))
br label %116
116: ; preds = %114, %111
%117 = tail call i64 (...) @tc_xi_ctype()
%118 = icmp slt i64 %117, 0
br i1 %118, label %119, label %121
119: ; preds = %116
%120 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.52, i64 0, i64 0))
br label %121
121: ; preds = %119, %116
%122 = tail call i64 (...) @tc_xi_proc()
%123 = icmp slt i64 %122, 0
br i1 %123, label %124, label %126
124: ; preds = %121
%125 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.52, i64 0, i64 0))
br label %126
126: ; preds = %121, %124
%127 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.30, i64 0, i64 0))
br label %128
128: ; preds = %126, %128
%129 = tail call i32 @sleep(i32 1)
%130 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.31, i64 0, i64 0))
br label %128
}