#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__ avl_tests();
scalar_t__ buffer_tests();
scalar_t__ cstrings_tests();
scalar_t__ list_tests();
scalar_t__ log_tests();
scalar_t__ macro_tests();
int md5_tests();
scalar_t__ util_tests();
int main(void) {
  int ret;
  ret = md5_tests();
  ret += macro_tests();
  ret += buffer_tests();
  ret += list_tests();
  ret += avl_tests();
  ret += cstrings_tests();
  ret += util_tests();
  ret += log_tests();
  return ret;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <md5_tests@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1080 <macro_tests@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1090 <buffer_tests@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   10a0 <list_tests@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1040 <avl_tests@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1060 <cstrings_tests@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1070 <util_tests@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1050 <log_tests@plt>
mov    %rax,%rcx
movslq -0x8(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
xor    %eax,%eax
call   1030 <md5_tests@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1080 <macro_tests@plt>
mov    %rax,%rbx
add    %ebp,%ebx
xor    %eax,%eax
call   1090 <buffer_tests@plt>
mov    %rax,%rbp
add    %ebx,%ebp
xor    %eax,%eax
call   10a0 <list_tests@plt>
mov    %rax,%rbx
add    %ebp,%ebx
xor    %eax,%eax
call   1040 <avl_tests@plt>
mov    %rax,%rbp
add    %ebx,%ebp
xor    %eax,%eax
call   1060 <cstrings_tests@plt>
mov    %rax,%rbx
add    %ebp,%ebx
xor    %eax,%eax
call   1070 <util_tests@plt>
mov    %rax,%rbp
add    %ebx,%ebp
xor    %eax,%eax
call   1050 <log_tests@plt>
add    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 (...) @md5_tests()
store i32 %3, i32* %2
%4 = call i64 (...) @macro_tests()
%5 = load i32, i32* %2
%6 = sext i32 %5 to i64
%7 = add nsw i64 %6, %4
%8 = trunc i64 %7 to i32
store i32 %8, i32* %2
%9 = call i64 (...) @buffer_tests()
%10 = load i32, i32* %2
%11 = sext i32 %10 to i64
%12 = add nsw i64 %11, %9
%13 = trunc i64 %12 to i32
store i32 %13, i32* %2
%14 = call i64 (...) @list_tests()
%15 = load i32, i32* %2
%16 = sext i32 %15 to i64
%17 = add nsw i64 %16, %14
%18 = trunc i64 %17 to i32
store i32 %18, i32* %2
%19 = call i64 (...) @avl_tests()
%20 = load i32, i32* %2
%21 = sext i32 %20 to i64
%22 = add nsw i64 %21, %19
%23 = trunc i64 %22 to i32
store i32 %23, i32* %2
%24 = call i64 (...) @cstrings_tests()
%25 = load i32, i32* %2
%26 = sext i32 %25 to i64
%27 = add nsw i64 %26, %24
%28 = trunc i64 %27 to i32
store i32 %28, i32* %2
%29 = call i64 (...) @util_tests()
%30 = load i32, i32* %2
%31 = sext i32 %30 to i64
%32 = add nsw i64 %31, %29
%33 = trunc i64 %32 to i32
store i32 %33, i32* %2
%34 = call i64 (...) @log_tests()
%35 = load i32, i32* %2
%36 = sext i32 %35 to i64
%37 = add nsw i64 %36, %34
%38 = trunc i64 %37 to i32
store i32 %38, i32* %2
%39 = load i32, i32* %2
ret i32 %39
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @md5_tests()
%2 = tail call i64 (...) @macro_tests()
%3 = trunc i64 %2 to i32
%4 = add i32 %1, %3
%5 = tail call i64 (...) @buffer_tests()
%6 = trunc i64 %5 to i32
%7 = add i32 %4, %6
%8 = tail call i64 (...) @list_tests()
%9 = trunc i64 %8 to i32
%10 = add i32 %7, %9
%11 = tail call i64 (...) @avl_tests()
%12 = trunc i64 %11 to i32
%13 = add i32 %10, %12
%14 = tail call i64 (...) @cstrings_tests()
%15 = trunc i64 %14 to i32
%16 = add i32 %13, %15
%17 = tail call i64 (...) @util_tests()
%18 = trunc i64 %17 to i32
%19 = add i32 %16, %18
%20 = tail call i64 (...) @log_tests()
%21 = trunc i64 %20 to i32
%22 = add i32 %19, %21
ret i32 %22
}