#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*/ fn_test1();
int /*<<< orphan*/ fn_test2();
int /*<<< orphan*/ fn_test3();
int /*<<< orphan*/ fn_test4();
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ printf(char *);
int main() {
  fn_test1();
  fn_test2();
  fn_test3();
  fn_test4();
  printf("\n\n");
  fn_test1();
  fn_test2();
  fn_test3();
  fn_test4();
  printf("\n\n");
  fn_test1();
  fn_test2();
  fn_test3();
  fn_test4();
  printf("\nPress any key to end...");
  getchar();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1070 <fn_test1@plt>
mov    $0x0,%al
call   1050 <fn_test2@plt>
mov    $0x0,%al
call   1080 <fn_test3@plt>
mov    $0x0,%al
call   1040 <fn_test4@plt>
lea    0xe6e(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1070 <fn_test1@plt>
mov    $0x0,%al
call   1050 <fn_test2@plt>
mov    $0x0,%al
call   1080 <fn_test3@plt>
mov    $0x0,%al
call   1040 <fn_test4@plt>
lea    0xe46(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1070 <fn_test1@plt>
mov    $0x0,%al
call   1050 <fn_test2@plt>
mov    $0x0,%al
call   1080 <fn_test3@plt>
mov    $0x0,%al
call   1040 <fn_test4@plt>
lea    0xe21(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <getchar@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1080 <fn_test1@plt>
xor    %eax,%eax
call   1060 <fn_test2@plt>
xor    %eax,%eax
call   1090 <fn_test3@plt>
xor    %eax,%eax
call   1050 <fn_test4@plt>
lea    0xe85(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1080 <fn_test1@plt>
xor    %eax,%eax
call   1060 <fn_test2@plt>
xor    %eax,%eax
call   1090 <fn_test3@plt>
xor    %eax,%eax
call   1050 <fn_test4@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1080 <fn_test1@plt>
xor    %eax,%eax
call   1060 <fn_test2@plt>
xor    %eax,%eax
call   1090 <fn_test3@plt>
xor    %eax,%eax
call   1050 <fn_test4@plt>
lea    0xe1d(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1070 <getchar@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"\0A\0A\00"
@.str.1 = [25 x i8] c"\0APress any key to end...\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @fn_test1()
%3 = call i32 (...) @fn_test2()
%4 = call i32 (...) @fn_test3()
%5 = call i32 (...) @fn_test4()
%6 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%7 = call i32 (...) @fn_test1()
%8 = call i32 (...) @fn_test2()
%9 = call i32 (...) @fn_test3()
%10 = call i32 (...) @fn_test4()
%11 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%12 = call i32 (...) @fn_test1()
%13 = call i32 (...) @fn_test2()
%14 = call i32 (...) @fn_test3()
%15 = call i32 (...) @fn_test4()
%16 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%17 = call i32 (...) @getchar()
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [25 x i8] c"\0APress any key to end...\00"
@str.2 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = tail call i32 (...) @fn_test1()
%2 = tail call i32 (...) @fn_test2()
%3 = tail call i32 (...) @fn_test3()
%4 = tail call i32 (...) @fn_test4()
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.2, i64 0, i64 0))
%6 = tail call i32 (...) @fn_test1()
%7 = tail call i32 (...) @fn_test2()
%8 = tail call i32 (...) @fn_test3()
%9 = tail call i32 (...) @fn_test4()
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.2, i64 0, i64 0))
%11 = tail call i32 (...) @fn_test1()
%12 = tail call i32 (...) @fn_test2()
%13 = tail call i32 (...) @fn_test3()
%14 = tail call i32 (...) @fn_test4()
%15 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%16 = tail call i32 (...) @getchar()
ret i32 0
}