#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*/ fraction_add_test();
int /*<<< orphan*/ fraction_cmp_test();
int /*<<< orphan*/ fraction_div_test();
int /*<<< orphan*/ fraction_get_test();
int /*<<< orphan*/ fraction_invert_test();
int /*<<< orphan*/ fraction_mult_test();
int /*<<< orphan*/ fraction_reduce_test();
int /*<<< orphan*/ fraction_sub_test();
int /*<<< orphan*/ printf(char *);
int main(void) {
  fraction_get_test();
  fraction_reduce_test();
  fraction_add_test();
  fraction_sub_test();
  fraction_mult_test();
  fraction_div_test();
  fraction_invert_test();
  fraction_cmp_test();
  printf("All fraction tests passed\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1060 <fraction_get_test@plt>
mov    $0x0,%al
call   1090 <fraction_reduce_test@plt>
mov    $0x0,%al
call   10b0 <fraction_add_test@plt>
mov    $0x0,%al
call   1040 <fraction_sub_test@plt>
mov    $0x0,%al
call   1080 <fraction_mult_test@plt>
mov    $0x0,%al
call   1030 <fraction_div_test@plt>
mov    $0x0,%al
call   10a0 <fraction_invert_test@plt>
mov    $0x0,%al
call   1070 <fraction_cmp_test@plt>
lea    0xe22(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1060 <fraction_get_test@plt>
xor    %eax,%eax
call   1090 <fraction_reduce_test@plt>
xor    %eax,%eax
call   10b0 <fraction_add_test@plt>
xor    %eax,%eax
call   1050 <fraction_sub_test@plt>
xor    %eax,%eax
call   1080 <fraction_mult_test@plt>
xor    %eax,%eax
call   1040 <fraction_div_test@plt>
xor    %eax,%eax
call   10a0 <fraction_invert_test@plt>
xor    %eax,%eax
call   1070 <fraction_cmp_test@plt>
lea    0xe30(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [27 x i8] c"All fraction tests passed\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @fraction_get_test()
%3 = call i32 (...) @fraction_reduce_test()
%4 = call i32 (...) @fraction_add_test()
%5 = call i32 (...) @fraction_sub_test()
%6 = call i32 (...) @fraction_mult_test()
%7 = call i32 (...) @fraction_div_test()
%8 = call i32 (...) @fraction_invert_test()
%9 = call i32 (...) @fraction_cmp_test()
%10 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [26 x i8] c"All fraction tests passed\00"
define i32 @main() {
%1 = tail call i32 (...) @fraction_get_test()
%2 = tail call i32 (...) @fraction_reduce_test()
%3 = tail call i32 (...) @fraction_add_test()
%4 = tail call i32 (...) @fraction_sub_test()
%5 = tail call i32 (...) @fraction_mult_test()
%6 = tail call i32 (...) @fraction_div_test()
%7 = tail call i32 (...) @fraction_invert_test()
%8 = tail call i32 (...) @fraction_cmp_test()
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
ret i32 0
}