#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*/ print_results(char *, int);
int /*<<< orphan*/ printf(char *);
scalar_t__ test_int16();
scalar_t__ test_int32();
scalar_t__ test_int64();
scalar_t__ test_uint16();
scalar_t__ test_uint32();
int test_uint64();
int main(int argc, char **argv) {
  int result = 0;
  argc = argc;
  argv = argv;
  result = test_uint64();
  result += test_int64();
  result += test_uint32();
  result += test_int32();
  result += test_uint16();
  result += test_int16();
  printf("\n-----------------------------");
  print_results("TOTAL_TESTSUITE:", result);
  printf("-----------------------------\n");
  return result;
}


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)
mov    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    $0x0,%al
call   1050 <test_uint64@plt>
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1080 <test_int64@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1060 <test_uint32@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   10a0 <test_int32@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1090 <test_uint16@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1070 <test_int16@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
lea    0xde0(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xdf0(%rip),%rdi
call   1040 <print_results@plt>
lea    0xdf5(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
xor    %eax,%eax
call   1060 <test_uint64@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1090 <test_int64@plt>
mov    %rax,%rbx
add    %ebp,%ebx
xor    %eax,%eax
call   1070 <test_uint32@plt>
mov    %rax,%rbp
add    %ebx,%ebp
xor    %eax,%eax
call   10b0 <test_int32@plt>
mov    %rax,%rbx
add    %ebp,%ebx
xor    %eax,%eax
call   10a0 <test_uint16@plt>
mov    %rax,%rbp
add    %ebx,%ebp
xor    %eax,%eax
call   1080 <test_int16@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0xe21(%rip),%rdi
call   1040 <printf@plt>
lea    0xe34(%rip),%rdi
mov    %ebx,%esi
call   1050 <print_results@plt>
lea    0xe08(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [31 x i8] c"\0A-----------------------------\00"
@.str.1 = [17 x i8] c"TOTAL_TESTSUITE:\00"
@.str.2 = [31 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 = load i32, i32* %4
store i32 %7, i32* %4
%8 = load i8**, i8*** %5
store i8** %8, i8*** %5
%9 = call i32 (...) @test_uint64()
store i32 %9, i32* %6
%10 = call i64 (...) @test_int64()
%11 = load i32, i32* %6
%12 = sext i32 %11 to i64
%13 = add nsw i64 %12, %10
%14 = trunc i64 %13 to i32
store i32 %14, i32* %6
%15 = call i64 (...) @test_uint32()
%16 = load i32, i32* %6
%17 = sext i32 %16 to i64
%18 = add nsw i64 %17, %15
%19 = trunc i64 %18 to i32
store i32 %19, i32* %6
%20 = call i64 (...) @test_int32()
%21 = load i32, i32* %6
%22 = sext i32 %21 to i64
%23 = add nsw i64 %22, %20
%24 = trunc i64 %23 to i32
store i32 %24, i32* %6
%25 = call i64 (...) @test_uint16()
%26 = load i32, i32* %6
%27 = sext i32 %26 to i64
%28 = add nsw i64 %27, %25
%29 = trunc i64 %28 to i32
store i32 %29, i32* %6
%30 = call i64 (...) @test_int16()
%31 = load i32, i32* %6
%32 = sext i32 %31 to i64
%33 = add nsw i64 %32, %30
%34 = trunc i64 %33 to i32
store i32 %34, i32* %6
%35 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%36 = load i32, i32* %6
%37 = call i32 @print_results(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %36)
%38 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%39 = load i32, i32* %6
ret i32 %39
}

LLVM IR (-O2):
@.str = [31 x i8] c"\0A-----------------------------\00"
@.str.1 = [17 x i8] c"TOTAL_TESTSUITE:\00"
@str = [30 x i8] c"-----------------------------\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @test_uint64()
%4 = tail call i64 (...) @test_int64()
%5 = trunc i64 %4 to i32
%6 = add i32 %3, %5
%7 = tail call i64 (...) @test_uint32()
%8 = trunc i64 %7 to i32
%9 = add i32 %6, %8
%10 = tail call i64 (...) @test_int32()
%11 = trunc i64 %10 to i32
%12 = add i32 %9, %11
%13 = tail call i64 (...) @test_uint16()
%14 = trunc i64 %13 to i32
%15 = add i32 %12, %14
%16 = tail call i64 (...) @test_int16()
%17 = trunc i64 %16 to i32
%18 = add i32 %15, %17
%19 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%20 = tail call i32 @print_results(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %18)
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
ret i32 %18
}