#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*/ ctest_close();
scalar_t__ ctest_get_asserts_fail_count();
int /*<<< orphan*/ ctest_ls_fails();
int /*<<< orphan*/ ctest_open();
int /*<<< orphan*/ ctest_print_asserts_count();
int /*<<< orphan*/ ctest_run();
int /*<<< orphan*/ ctest_test_bunkai_ichi_register();
int /*<<< orphan*/ ctest_test_collection_register();
int /*<<< orphan*/ ctest_test_ctest_register();
int /*<<< orphan*/ ctest_test_strings_register();
int /*<<< orphan*/ puts(char *);
int main() {
  ctest_open();
  ctest_test_strings_register();
  ctest_test_collection_register();
  ctest_test_ctest_register();
  ctest_test_bunkai_ichi_register();
  ctest_run();
  puts("");
  puts("Výsledky test:");
  ctest_print_asserts_count();
  puts("");
  if (ctest_get_asserts_fail_count()) {
    puts("");
    puts("List of fails:");
    ctest_ls_fails();
    puts("\n");
  }
  ctest_close();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   10d0 <ctest_open@plt>
mov    $0x0,%al
call   10c0 <ctest_test_strings_register@plt>
mov    $0x0,%al
call   1070 <ctest_test_collection_register@plt>
mov    $0x0,%al
call   1050 <ctest_test_ctest_register@plt>
mov    $0x0,%al
call   1080 <ctest_test_bunkai_ichi_register@plt>
mov    $0x0,%al
call   1030 <ctest_run@plt>
lea    0xe30(%rip),%rdi
call   1060 <puts@plt>
lea    0xe04(%rip),%rdi
call   1060 <puts@plt>
mov    $0x0,%al
call   10a0 <ctest_print_asserts_count@plt>
lea    0xe11(%rip),%rdi
call   1060 <puts@plt>
mov    $0x0,%al
call   1040 <ctest_get_asserts_fail_count@plt>
cmp    $0x0,%rax
je     1250 <main+0xa0>
lea    0xdf4(%rip),%rdi
call   1060 <puts@plt>
lea    0xdd8(%rip),%rdi
call   1060 <puts@plt>
mov    $0x0,%al
call   10b0 <ctest_ls_fails@plt>
lea    0xdd4(%rip),%rdi
call   1060 <puts@plt>
mov    $0x0,%al
call   1090 <ctest_close@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   10e0 <ctest_open@plt>
xor    %eax,%eax
call   10d0 <ctest_test_strings_register@plt>
xor    %eax,%eax
call   1080 <ctest_test_collection_register@plt>
xor    %eax,%eax
call   1060 <ctest_test_ctest_register@plt>
xor    %eax,%eax
call   1090 <ctest_test_bunkai_ichi_register@plt>
xor    %eax,%eax
call   1030 <ctest_run@plt>
mov    $0xa,%edi
call   1050 <putchar@plt>
lea    0xe04(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   10b0 <ctest_print_asserts_count@plt>
mov    $0xa,%edi
call   1050 <putchar@plt>
xor    %eax,%eax
call   1040 <ctest_get_asserts_fail_count@plt>
test   %rax,%rax
je     1247 <main+0x87>
mov    $0xa,%edi
call   1050 <putchar@plt>
lea    0xde1(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   10c0 <ctest_ls_fails@plt>
lea    0xddd(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   10a0 <ctest_close@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [16 x i8] c"V\C3\BDsledky test:\00"
@.str.2 = [15 x i8] c"List of fails:\00"
@.str.3 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @ctest_open()
%3 = call i32 (...) @ctest_test_strings_register()
%4 = call i32 (...) @ctest_test_collection_register()
%5 = call i32 (...) @ctest_test_ctest_register()
%6 = call i32 (...) @ctest_test_bunkai_ichi_register()
%7 = call i32 (...) @ctest_run()
%8 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @puts(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 (...) @ctest_print_asserts_count()
%11 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%12 = call i64 (...) @ctest_get_asserts_fail_count()
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %19
14: ; preds = %0
%15 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%16 = call i32 @puts(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%17 = call i32 (...) @ctest_ls_fails()
%18 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %19
19: ; preds = %14, %0
%20 = call i32 (...) @ctest_close()
%21 = load i32, i32* %1
ret i32 %21
}

LLVM IR (-O2):
@.str.1 = [16 x i8] c"V\C3\BDsledky test:\00"
@.str.2 = [15 x i8] c"List of fails:\00"
@.str.3 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = tail call i32 (...) @ctest_open()
%2 = tail call i32 (...) @ctest_test_strings_register()
%3 = tail call i32 (...) @ctest_test_collection_register()
%4 = tail call i32 (...) @ctest_test_ctest_register()
%5 = tail call i32 (...) @ctest_test_bunkai_ichi_register()
%6 = tail call i32 (...) @ctest_run()
%7 = tail call i32 @putchar(i32 10)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%9 = tail call i32 (...) @ctest_print_asserts_count()
%10 = tail call i32 @putchar(i32 10)
%11 = tail call i64 (...) @ctest_get_asserts_fail_count()
%12 = icmp eq i64 %11, 0
br i1 %12, label %18, label %13
13: ; preds = %0
%14 = tail call i32 @putchar(i32 10)
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%16 = tail call i32 (...) @ctest_ls_fails()
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %18
18: ; preds = %13, %0
%19 = tail call i32 (...) @ctest_close()
ret i32 0
}