#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*/ srand48(int /*<<< orphan*/);
int /*<<< orphan*/ test_coordinates();
int /*<<< orphan*/ test_frustum();
int /*<<< orphan*/ test_matrix_multiplication();
int /*<<< orphan*/ test_outer_product();
int /*<<< orphan*/ test_quaternion_matrix();
int /*<<< orphan*/ test_quaternion_sqrt();
int /*<<< orphan*/ test_roots();
int /*<<< orphan*/ test_transform();
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main(void) {
  srand48(time(NULL));
  test_transform();
  test_matrix_multiplication();
  test_quaternion_matrix();
  test_outer_product();
  test_coordinates();
  test_frustum();
  test_roots();
  test_quaternion_sqrt();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1090 <time@plt>
mov    %eax,%edi
call   10a0 <srand48@plt>
mov    $0x0,%al
call   10c0 <test_transform@plt>
mov    $0x0,%al
call   10b0 <test_matrix_multiplication@plt>
mov    $0x0,%al
call   1030 <test_quaternion_matrix@plt>
mov    $0x0,%al
call   1040 <test_outer_product@plt>
mov    $0x0,%al
call   1070 <test_coordinates@plt>
mov    $0x0,%al
call   1060 <test_frustum@plt>
mov    $0x0,%al
call   1080 <test_roots@plt>
mov    $0x0,%al
call   1050 <test_quaternion_sqrt@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1090 <time@plt>
mov    %eax,%edi
call   10a0 <srand48@plt>
xor    %eax,%eax
call   10c0 <test_transform@plt>
xor    %eax,%eax
call   10b0 <test_matrix_multiplication@plt>
xor    %eax,%eax
call   1030 <test_quaternion_matrix@plt>
xor    %eax,%eax
call   1040 <test_outer_product@plt>
xor    %eax,%eax
call   1070 <test_coordinates@plt>
xor    %eax,%eax
call   1060 <test_frustum@plt>
xor    %eax,%eax
call   1080 <test_roots@plt>
xor    %eax,%eax
call   1050 <test_quaternion_sqrt@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @time(i32* null)
%3 = call i32 @srand48(i32 %2)
%4 = call i32 (...) @test_transform()
%5 = call i32 (...) @test_matrix_multiplication()
%6 = call i32 (...) @test_quaternion_matrix()
%7 = call i32 (...) @test_outer_product()
%8 = call i32 (...) @test_coordinates()
%9 = call i32 (...) @test_frustum()
%10 = call i32 (...) @test_roots()
%11 = call i32 (...) @test_quaternion_sqrt()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @time(i32* null)
%2 = tail call i32 @srand48(i32 %1)
%3 = tail call i32 (...) @test_transform()
%4 = tail call i32 (...) @test_matrix_multiplication()
%5 = tail call i32 (...) @test_quaternion_matrix()
%6 = tail call i32 (...) @test_outer_product()
%7 = tail call i32 (...) @test_coordinates()
%8 = tail call i32 (...) @test_frustum()
%9 = tail call i32 (...) @test_roots()
%10 = tail call i32 (...) @test_quaternion_sqrt()
ret i32 0
}