#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 EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ test_add();
int /*<<< orphan*/ test_compare();
int /*<<< orphan*/ test_create();
int /*<<< orphan*/ test_decrement();
int /*<<< orphan*/ test_increment();
int /*<<< orphan*/ test_performance();
int /*<<< orphan*/ test_subtract();
int /*<<< orphan*/ test_to_long_long();
int main(int argc, const char **argv) {
  test_create();
  test_to_long_long();
  test_compare();
  test_add();
  test_subtract();
  test_increment();
  test_decrement();
  test_performance();
  printf("\nAll tests passed!\n");
  return EXIT_SUCCESS;
}


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   10b0 <test_create@plt>
mov    $0x0,%al
call   1060 <test_to_long_long@plt>
mov    $0x0,%al
call   1080 <test_compare@plt>
mov    $0x0,%al
call   1090 <test_add@plt>
mov    $0x0,%al
call   1070 <test_subtract@plt>
mov    $0x0,%al
call   10a0 <test_increment@plt>
mov    $0x0,%al
call   1030 <test_decrement@plt>
mov    $0x0,%al
call   1050 <test_performance@plt>
lea    0xe1b(%rip),%rdi
call   1040 <printf@plt>
mov    0x2def(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   10b0 <test_create@plt>
xor    %eax,%eax
call   1060 <test_to_long_long@plt>
xor    %eax,%eax
call   1080 <test_compare@plt>
xor    %eax,%eax
call   1090 <test_add@plt>
xor    %eax,%eax
call   1070 <test_subtract@plt>
xor    %eax,%eax
call   10a0 <test_increment@plt>
xor    %eax,%eax
call   1040 <test_decrement@plt>
xor    %eax,%eax
call   1050 <test_performance@plt>
lea    0xe30(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e04(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [20 x i8] c"\0AAll tests passed!\0A\00"
@EXIT_SUCCESS = global i32 0
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 (...) @test_create()
%7 = call i32 (...) @test_to_long_long()
%8 = call i32 (...) @test_compare()
%9 = call i32 (...) @test_add()
%10 = call i32 (...) @test_subtract()
%11 = call i32 (...) @test_increment()
%12 = call i32 (...) @test_decrement()
%13 = call i32 (...) @test_performance()
%14 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%15 = load i32, i32* @EXIT_SUCCESS
ret i32 %15
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
@str = [19 x i8] c"\0AAll tests passed!\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @test_create()
%4 = tail call i32 (...) @test_to_long_long()
%5 = tail call i32 (...) @test_compare()
%6 = tail call i32 (...) @test_add()
%7 = tail call i32 (...) @test_subtract()
%8 = tail call i32 (...) @test_increment()
%9 = tail call i32 (...) @test_decrement()
%10 = tail call i32 (...) @test_performance()
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%12 = load i32, i32* @EXIT_SUCCESS
ret i32 %12
}