#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*/ calculate_sqrt_test();
int /*<<< orphan*/ count_representation_combinations_test();
int /*<<< orphan*/ digits_sum_test();
int /*<<< orphan*/ euclid_pythagorean_triple_perim_test();
int /*<<< orphan*/ evaluate_factorisation_test();
int /*<<< orphan*/ get_repunit_len_test();
int /*<<< orphan*/ is_special_sum_set_test();
int /*<<< orphan*/ p114_test();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stern_brocot_count_test();
int main(void) {
  stern_brocot_count_test();
  euclid_pythagorean_triple_perim_test();
  count_representation_combinations_test();
  calculate_sqrt_test();
  is_special_sum_set_test();
  digits_sum_test();
  evaluate_factorisation_test();
  get_repunit_len_test();
  p114_test();
  printf("All euler utils 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   1030 <stern_brocot_count_test@plt>
mov    $0x0,%al
call   10c0 <euclid_pythagorean_triple_perim_test@plt>
mov    $0x0,%al
call   1070 <count_representation_combinations_test@plt>
mov    $0x0,%al
call   10b0 <calculate_sqrt_test@plt>
mov    $0x0,%al
call   1050 <is_special_sum_set_test@plt>
mov    $0x0,%al
call   1090 <digits_sum_test@plt>
mov    $0x0,%al
call   10a0 <evaluate_factorisation_test@plt>
mov    $0x0,%al
call   1080 <get_repunit_len_test@plt>
mov    $0x0,%al
call   1040 <p114_test@plt>
lea    0xe0b(%rip),%rdi
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <stern_brocot_count_test@plt>
xor    %eax,%eax
call   10c0 <euclid_pythagorean_triple_perim_test@plt>
xor    %eax,%eax
call   1070 <count_representation_combinations_test@plt>
xor    %eax,%eax
call   10b0 <calculate_sqrt_test@plt>
xor    %eax,%eax
call   1060 <is_special_sum_set_test@plt>
xor    %eax,%eax
call   1090 <digits_sum_test@plt>
xor    %eax,%eax
call   10a0 <evaluate_factorisation_test@plt>
xor    %eax,%eax
call   1080 <get_repunit_len_test@plt>
xor    %eax,%eax
call   1050 <p114_test@plt>
lea    0xe19(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [30 x i8] c"All euler utils tests passed\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @stern_brocot_count_test()
%3 = call i32 (...) @euclid_pythagorean_triple_perim_test()
%4 = call i32 (...) @count_representation_combinations_test()
%5 = call i32 (...) @calculate_sqrt_test()
%6 = call i32 (...) @is_special_sum_set_test()
%7 = call i32 (...) @digits_sum_test()
%8 = call i32 (...) @evaluate_factorisation_test()
%9 = call i32 (...) @get_repunit_len_test()
%10 = call i32 (...) @p114_test()
%11 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [29 x i8] c"All euler utils tests passed\00"
define i32 @main() {
%1 = tail call i32 (...) @stern_brocot_count_test()
%2 = tail call i32 (...) @euclid_pythagorean_triple_perim_test()
%3 = tail call i32 (...) @count_representation_combinations_test()
%4 = tail call i32 (...) @calculate_sqrt_test()
%5 = tail call i32 (...) @is_special_sum_set_test()
%6 = tail call i32 (...) @digits_sum_test()
%7 = tail call i32 (...) @evaluate_factorisation_test()
%8 = tail call i32 (...) @get_repunit_len_test()
%9 = tail call i32 (...) @p114_test()
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
ret i32 0
}