#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*/ test_buffer();
int /*<<< orphan*/ test_io();
int /*<<< orphan*/ test_list();
int /*<<< orphan*/ test_stack();
int /*<<< orphan*/ test_string();
int /*<<< orphan*/ test_table();
int main(int arg, char **argv) {
  printf("Testing buffer...\n");
  test_buffer();
  printf("Testing list...\n");
  test_list();
  printf("Testing stack...\n");
  test_stack();
  printf("Testing table...\n");
  test_table();
  printf("Testing io...\n");
  test_io();
  printf("Testing string...\n");
  test_string();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe7a(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <test_buffer@plt>
lea    0xe7a(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <test_list@plt>
lea    0xe78(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1080 <test_stack@plt>
lea    0xe77(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <test_table@plt>
lea    0xe76(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1090 <test_io@plt>
lea    0xe72(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1070 <test_string@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xe88(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <test_buffer@plt>
lea    0xe87(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1060 <test_list@plt>
lea    0xe84(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1080 <test_stack@plt>
lea    0xe82(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1050 <test_table@plt>
lea    0xe80(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1090 <test_io@plt>
lea    0xe7b(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1070 <test_string@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [19 x i8] c"Testing buffer...\0A\00"
@.str.1 = [17 x i8] c"Testing list...\0A\00"
@.str.2 = [18 x i8] c"Testing stack...\0A\00"
@.str.3 = [18 x i8] c"Testing table...\0A\00"
@.str.4 = [15 x i8] c"Testing io...\0A\00"
@.str.5 = [19 x i8] c"Testing string...\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%6 = call i32 (...) @test_buffer()
%7 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 (...) @test_list()
%9 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 (...) @test_stack()
%11 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 (...) @test_table()
%13 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%14 = call i32 (...) @test_io()
%15 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%16 = call i32 (...) @test_string()
ret i32 0
}

LLVM IR (-O2):
@str = [18 x i8] c"Testing buffer...\00"
@str.6 = [16 x i8] c"Testing list...\00"
@str.7 = [17 x i8] c"Testing stack...\00"
@str.8 = [17 x i8] c"Testing table...\00"
@str.9 = [14 x i8] c"Testing io...\00"
@str.10 = [18 x i8] c"Testing string...\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 (...) @test_buffer()
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.6, i64 0, i64 0))
%6 = tail call i32 (...) @test_list()
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.7, i64 0, i64 0))
%8 = tail call i32 (...) @test_stack()
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.8, i64 0, i64 0))
%10 = tail call i32 (...) @test_table()
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.9, i64 0, i64 0))
%12 = tail call i32 (...) @test_io()
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.10, i64 0, i64 0))
%14 = tail call i32 (...) @test_string()
ret i32 0
}