#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 */
scalar_t__ bignbr_test_check_cmp_str();
scalar_t__ bignbr_test_check_is_greater();
scalar_t__ bignbr_test_check_is_null();
scalar_t__ bignbr_test_check_negative();
scalar_t__ bignbr_test_core_cat_digit();
scalar_t__ bignbr_test_core_cpy();
scalar_t__ bignbr_test_core_fill();
scalar_t__ bignbr_test_core_geteonpos();
scalar_t__ bignbr_test_int_add();
scalar_t__ bignbr_test_int_div();
scalar_t__ bignbr_test_int_mpl();
scalar_t__ bignbr_test_int_sub();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ tst_print_summary(int);
int main(int argc, char *argv[]) {
  int points = 0;
  printf("BigNbr v. 0.0.1 A (c) 2016 - 2017 Marc Volker Dickmann\n\n");
  points += bignbr_test_core_cpy();
  points += bignbr_test_core_cat_digit();
  points += bignbr_test_core_fill();
  points += bignbr_test_core_geteonpos();
  printf("\n");
  points += bignbr_test_check_cmp_str();
  points += bignbr_test_check_is_null();
  points += bignbr_test_check_negative();
  points += bignbr_test_check_is_greater();
  printf("\n");
  points += bignbr_test_int_add();
  points += bignbr_test_int_sub();
  points += bignbr_test_int_mpl();
  points += bignbr_test_int_div();
  tst_print_summary(points);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
lea    0xdfc(%rip),%rdi
call   1090 <printf@plt>
mov    $0x0,%al
call   10d0 <bignbr_test_core_cpy@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   10b0 <bignbr_test_core_cat_digit@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1100 <bignbr_test_core_fill@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1030 <bignbr_test_core_geteonpos@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
lea    0xdd7(%rip),%rdi
call   1090 <printf@plt>
mov    $0x0,%al
call   1070 <bignbr_test_check_cmp_str@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   10a0 <bignbr_test_check_is_null@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1040 <bignbr_test_check_negative@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1060 <bignbr_test_check_is_greater@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
lea    0xd7b(%rip),%rdi
call   1090 <printf@plt>
mov    $0x0,%al
call   10f0 <bignbr_test_int_add@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   10e0 <bignbr_test_int_sub@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   10c0 <bignbr_test_int_mpl@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1080 <bignbr_test_int_div@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <tst_print_summary@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xe08(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   10e0 <bignbr_test_core_cpy@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   10c0 <bignbr_test_core_cat_digit@plt>
add    %eax,%ebx
xor    %eax,%eax
call   1110 <bignbr_test_core_fill@plt>
add    %eax,%ebx
xor    %eax,%eax
call   1040 <bignbr_test_core_geteonpos@plt>
add    %eax,%ebx
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
call   1090 <bignbr_test_check_cmp_str@plt>
add    %eax,%ebx
xor    %eax,%eax
call   10b0 <bignbr_test_check_is_null@plt>
add    %eax,%ebx
xor    %eax,%eax
call   1060 <bignbr_test_check_negative@plt>
add    %eax,%ebx
xor    %eax,%eax
call   1080 <bignbr_test_check_is_greater@plt>
add    %eax,%ebx
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
call   1100 <bignbr_test_int_add@plt>
add    %eax,%ebx
xor    %eax,%eax
call   10f0 <bignbr_test_int_sub@plt>
add    %eax,%ebx
xor    %eax,%eax
call   10d0 <bignbr_test_int_mpl@plt>
add    %eax,%ebx
xor    %eax,%eax
call   10a0 <bignbr_test_int_div@plt>
add    %eax,%ebx
mov    %ebx,%edi
call   1070 <tst_print_summary@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [57 x i8] c"BigNbr v. 0.0.1 A (c) 2016 - 2017 Marc Volker Dickmann\0A\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
%7 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0))
%8 = call i64 (...) @bignbr_test_core_cpy()
%9 = load i32, i32* %6
%10 = sext i32 %9 to i64
%11 = add nsw i64 %10, %8
%12 = trunc i64 %11 to i32
store i32 %12, i32* %6
%13 = call i64 (...) @bignbr_test_core_cat_digit()
%14 = load i32, i32* %6
%15 = sext i32 %14 to i64
%16 = add nsw i64 %15, %13
%17 = trunc i64 %16 to i32
store i32 %17, i32* %6
%18 = call i64 (...) @bignbr_test_core_fill()
%19 = load i32, i32* %6
%20 = sext i32 %19 to i64
%21 = add nsw i64 %20, %18
%22 = trunc i64 %21 to i32
store i32 %22, i32* %6
%23 = call i64 (...) @bignbr_test_core_geteonpos()
%24 = load i32, i32* %6
%25 = sext i32 %24 to i64
%26 = add nsw i64 %25, %23
%27 = trunc i64 %26 to i32
store i32 %27, i32* %6
%28 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%29 = call i64 (...) @bignbr_test_check_cmp_str()
%30 = load i32, i32* %6
%31 = sext i32 %30 to i64
%32 = add nsw i64 %31, %29
%33 = trunc i64 %32 to i32
store i32 %33, i32* %6
%34 = call i64 (...) @bignbr_test_check_is_null()
%35 = load i32, i32* %6
%36 = sext i32 %35 to i64
%37 = add nsw i64 %36, %34
%38 = trunc i64 %37 to i32
store i32 %38, i32* %6
%39 = call i64 (...) @bignbr_test_check_negative()
%40 = load i32, i32* %6
%41 = sext i32 %40 to i64
%42 = add nsw i64 %41, %39
%43 = trunc i64 %42 to i32
store i32 %43, i32* %6
%44 = call i64 (...) @bignbr_test_check_is_greater()
%45 = load i32, i32* %6
%46 = sext i32 %45 to i64
%47 = add nsw i64 %46, %44
%48 = trunc i64 %47 to i32
store i32 %48, i32* %6
%49 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%50 = call i64 (...) @bignbr_test_int_add()
%51 = load i32, i32* %6
%52 = sext i32 %51 to i64
%53 = add nsw i64 %52, %50
%54 = trunc i64 %53 to i32
store i32 %54, i32* %6
%55 = call i64 (...) @bignbr_test_int_sub()
%56 = load i32, i32* %6
%57 = sext i32 %56 to i64
%58 = add nsw i64 %57, %55
%59 = trunc i64 %58 to i32
store i32 %59, i32* %6
%60 = call i64 (...) @bignbr_test_int_mpl()
%61 = load i32, i32* %6
%62 = sext i32 %61 to i64
%63 = add nsw i64 %62, %60
%64 = trunc i64 %63 to i32
store i32 %64, i32* %6
%65 = call i64 (...) @bignbr_test_int_div()
%66 = load i32, i32* %6
%67 = sext i32 %66 to i64
%68 = add nsw i64 %67, %65
%69 = trunc i64 %68 to i32
store i32 %69, i32* %6
%70 = load i32, i32* %6
%71 = call i32 @tst_print_summary(i32 %70)
ret i32 0
}

LLVM IR (-O2):
@str = [56 x i8] c"BigNbr v. 0.0.1 A (c) 2016 - 2017 Marc Volker Dickmann\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str, i64 0, i64 0))
%4 = tail call i64 (...) @bignbr_test_core_cpy()
%5 = tail call i64 (...) @bignbr_test_core_cat_digit()
%6 = add i64 %5, %4
%7 = tail call i64 (...) @bignbr_test_core_fill()
%8 = add i64 %6, %7
%9 = tail call i64 (...) @bignbr_test_core_geteonpos()
%10 = add i64 %8, %9
%11 = tail call i32 @putchar(i32 10)
%12 = tail call i64 (...) @bignbr_test_check_cmp_str()
%13 = add i64 %10, %12
%14 = tail call i64 (...) @bignbr_test_check_is_null()
%15 = add i64 %13, %14
%16 = tail call i64 (...) @bignbr_test_check_negative()
%17 = add i64 %15, %16
%18 = tail call i64 (...) @bignbr_test_check_is_greater()
%19 = add i64 %17, %18
%20 = tail call i32 @putchar(i32 10)
%21 = tail call i64 (...) @bignbr_test_int_add()
%22 = add i64 %19, %21
%23 = tail call i64 (...) @bignbr_test_int_sub()
%24 = add i64 %22, %23
%25 = tail call i64 (...) @bignbr_test_int_mpl()
%26 = add i64 %24, %25
%27 = tail call i64 (...) @bignbr_test_int_div()
%28 = add i64 %26, %27
%29 = trunc i64 %28 to i32
%30 = tail call i32 @tst_print_summary(i32 %29)
ret i32 0
}