#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*/ bignum_add_test();
int /*<<< orphan*/ bignum_add_to_test();
int /*<<< orphan*/ bignum_cmp_test();
int /*<<< orphan*/ bignum_digits_sum_test();
int /*<<< orphan*/ bignum_get_int_test();
int /*<<< orphan*/ bignum_get_str_test();
int /*<<< orphan*/ bignum_is_digit_test();
int /*<<< orphan*/ bignum_is_palindrome_test();
int /*<<< orphan*/ bignum_mult_test();
int /*<<< orphan*/ bignum_mult_to_test();
int /*<<< orphan*/ bignum_pow_test();
int /*<<< orphan*/ bignum_reverse_test();
int /*<<< orphan*/ printf(char *);
int main(void) {
  bignum_get_int_test();
  bignum_get_str_test();
  bignum_mult_test();
  bignum_mult_to_test();
  bignum_add_test();
  bignum_add_to_test();
  bignum_pow_test();
  bignum_cmp_test();
  bignum_is_digit_test();
  bignum_is_palindrome_test();
  bignum_reverse_test();
  bignum_digits_sum_test();
  printf("All bignum 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   10d0 <bignum_get_int_test@plt>
mov    $0x0,%al
call   1070 <bignum_get_str_test@plt>
mov    $0x0,%al
call   10c0 <bignum_mult_test@plt>
mov    $0x0,%al
call   1050 <bignum_mult_to_test@plt>
mov    $0x0,%al
call   10a0 <bignum_add_test@plt>
mov    $0x0,%al
call   10f0 <bignum_add_to_test@plt>
mov    $0x0,%al
call   1080 <bignum_pow_test@plt>
mov    $0x0,%al
call   1030 <bignum_cmp_test@plt>
mov    $0x0,%al
call   10b0 <bignum_is_digit_test@plt>
mov    $0x0,%al
call   1090 <bignum_is_palindrome_test@plt>
mov    $0x0,%al
call   1060 <bignum_reverse_test@plt>
mov    $0x0,%al
call   10e0 <bignum_digits_sum_test@plt>
lea    0xdc6(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   10d0 <bignum_get_int_test@plt>
xor    %eax,%eax
call   1070 <bignum_get_str_test@plt>
xor    %eax,%eax
call   10c0 <bignum_mult_test@plt>
xor    %eax,%eax
call   1050 <bignum_mult_to_test@plt>
xor    %eax,%eax
call   10a0 <bignum_add_test@plt>
xor    %eax,%eax
call   10f0 <bignum_add_to_test@plt>
xor    %eax,%eax
call   1080 <bignum_pow_test@plt>
xor    %eax,%eax
call   1040 <bignum_cmp_test@plt>
xor    %eax,%eax
call   10b0 <bignum_is_digit_test@plt>
xor    %eax,%eax
call   1090 <bignum_is_palindrome_test@plt>
xor    %eax,%eax
call   1060 <bignum_reverse_test@plt>
xor    %eax,%eax
call   10e0 <bignum_digits_sum_test@plt>
lea    0xdd4(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [25 x i8] c"All bignum tests passed\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @bignum_get_int_test()
%3 = call i32 (...) @bignum_get_str_test()
%4 = call i32 (...) @bignum_mult_test()
%5 = call i32 (...) @bignum_mult_to_test()
%6 = call i32 (...) @bignum_add_test()
%7 = call i32 (...) @bignum_add_to_test()
%8 = call i32 (...) @bignum_pow_test()
%9 = call i32 (...) @bignum_cmp_test()
%10 = call i32 (...) @bignum_is_digit_test()
%11 = call i32 (...) @bignum_is_palindrome_test()
%12 = call i32 (...) @bignum_reverse_test()
%13 = call i32 (...) @bignum_digits_sum_test()
%14 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [24 x i8] c"All bignum tests passed\00"
define i32 @main() {
%1 = tail call i32 (...) @bignum_get_int_test()
%2 = tail call i32 (...) @bignum_get_str_test()
%3 = tail call i32 (...) @bignum_mult_test()
%4 = tail call i32 (...) @bignum_mult_to_test()
%5 = tail call i32 (...) @bignum_add_test()
%6 = tail call i32 (...) @bignum_add_to_test()
%7 = tail call i32 (...) @bignum_pow_test()
%8 = tail call i32 (...) @bignum_cmp_test()
%9 = tail call i32 (...) @bignum_is_digit_test()
%10 = tail call i32 (...) @bignum_is_palindrome_test()
%11 = tail call i32 (...) @bignum_reverse_test()
%12 = tail call i32 (...) @bignum_digits_sum_test()
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
ret i32 0
}