#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*/ TestAdd();
int /*<<< orphan*/ TestAngle();
int /*<<< orphan*/ TestCross();
int /*<<< orphan*/ TestDot();
int /*<<< orphan*/ TestIsColinear();
int /*<<< orphan*/ TestIsEqual();
int /*<<< orphan*/ TestIsOrthogonal();
int /*<<< orphan*/ TestIsUnit();
int /*<<< orphan*/ TestIsZero();
int /*<<< orphan*/ TestLength();
int /*<<< orphan*/ TestMultiply();
int /*<<< orphan*/ TestNegate();
int /*<<< orphan*/ TestNormalize();
int /*<<< orphan*/ TestSet();
int /*<<< orphan*/ TestSubtract();
int /*<<< orphan*/ printf(char *);
int main(void) {
  TestSet();
  TestIsZero();
  TestDot();
  TestLength();
  TestAngle();
  TestIsColinear();
  TestIsOrthogonal();
  TestIsEqual();
  TestIsUnit();
  TestAdd();
  TestSubtract();
  TestNegate();
  TestCross();
  TestNormalize();
  TestMultiply();
  printf("Passed all tests!\n");
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <TestSet@plt>
mov    $0x0,%al
call   10a0 <TestIsZero@plt>
mov    $0x0,%al
call   10c0 <TestDot@plt>
mov    $0x0,%al
call   10f0 <TestLength@plt>
mov    $0x0,%al
call   10d0 <TestAngle@plt>
mov    $0x0,%al
call   10b0 <TestIsColinear@plt>
mov    $0x0,%al
call   1080 <TestIsOrthogonal@plt>
mov    $0x0,%al
call   1100 <TestIsEqual@plt>
mov    $0x0,%al
call   1050 <TestIsUnit@plt>
mov    $0x0,%al
call   1040 <TestAdd@plt>
mov    $0x0,%al
call   1120 <TestSubtract@plt>
mov    $0x0,%al
call   1070 <TestNegate@plt>
mov    $0x0,%al
call   1090 <TestCross@plt>
mov    $0x0,%al
call   1110 <TestNormalize@plt>
mov    $0x0,%al
call   10e0 <TestMultiply@plt>
lea    0xd81(%rip),%rdi
call   1060 <printf@plt>
mov    0x2d55(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <TestSet@plt>
xor    %eax,%eax
call   10a0 <TestIsZero@plt>
xor    %eax,%eax
call   10c0 <TestDot@plt>
xor    %eax,%eax
call   10f0 <TestLength@plt>
xor    %eax,%eax
call   10d0 <TestAngle@plt>
xor    %eax,%eax
call   10b0 <TestIsColinear@plt>
xor    %eax,%eax
call   1080 <TestIsOrthogonal@plt>
xor    %eax,%eax
call   1100 <TestIsEqual@plt>
xor    %eax,%eax
call   1060 <TestIsUnit@plt>
xor    %eax,%eax
call   1050 <TestAdd@plt>
xor    %eax,%eax
call   1120 <TestSubtract@plt>
xor    %eax,%eax
call   1070 <TestNegate@plt>
xor    %eax,%eax
call   1090 <TestCross@plt>
xor    %eax,%eax
call   1110 <TestNormalize@plt>
xor    %eax,%eax
call   10e0 <TestMultiply@plt>
lea    0xd8f(%rip),%rdi
call   1040 <puts@plt>
mov    0x2d63(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [19 x i8] c"Passed all tests!\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @TestSet()
%3 = call i32 (...) @TestIsZero()
%4 = call i32 (...) @TestDot()
%5 = call i32 (...) @TestLength()
%6 = call i32 (...) @TestAngle()
%7 = call i32 (...) @TestIsColinear()
%8 = call i32 (...) @TestIsOrthogonal()
%9 = call i32 (...) @TestIsEqual()
%10 = call i32 (...) @TestIsUnit()
%11 = call i32 (...) @TestAdd()
%12 = call i32 (...) @TestSubtract()
%13 = call i32 (...) @TestNegate()
%14 = call i32 (...) @TestCross()
%15 = call i32 (...) @TestNormalize()
%16 = call i32 (...) @TestMultiply()
%17 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%18 = load i32, i32* @EXIT_SUCCESS
ret i32 %18
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
@str = [18 x i8] c"Passed all tests!\00"
define i32 @main() {
%1 = tail call i32 (...) @TestSet()
%2 = tail call i32 (...) @TestIsZero()
%3 = tail call i32 (...) @TestDot()
%4 = tail call i32 (...) @TestLength()
%5 = tail call i32 (...) @TestAngle()
%6 = tail call i32 (...) @TestIsColinear()
%7 = tail call i32 (...) @TestIsOrthogonal()
%8 = tail call i32 (...) @TestIsEqual()
%9 = tail call i32 (...) @TestIsUnit()
%10 = tail call i32 (...) @TestAdd()
%11 = tail call i32 (...) @TestSubtract()
%12 = tail call i32 (...) @TestNegate()
%13 = tail call i32 (...) @TestCross()
%14 = tail call i32 (...) @TestNormalize()
%15 = tail call i32 (...) @TestMultiply()
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
%17 = load i32, i32* @EXIT_SUCCESS
ret i32 %17
}