#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*/ Fabric_meminit();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ test_class();
int /*<<< orphan*/ test_dynamic_list();
int /*<<< orphan*/ test_edge();
int /*<<< orphan*/ test_entity_map();
int /*<<< orphan*/ test_graph();
int /*<<< orphan*/ test_id_set();
int /*<<< orphan*/ test_label();
int /*<<< orphan*/ test_memory();
int /*<<< orphan*/ test_property();
int /*<<< orphan*/ test_vertex();
int main() {
  Fabric_meminit();
  test_memory();
  test_dynamic_list();
  test_id_set();
  test_entity_map();
  test_graph();
  test_class();
  test_edge();
  test_label();
  test_property();
  test_vertex();
  printf("All 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   10b0 <Fabric_meminit@plt>
mov    $0x0,%al
call   1060 <test_memory@plt>
mov    $0x0,%al
call   10d0 <test_dynamic_list@plt>
mov    $0x0,%al
call   10e0 <test_id_set@plt>
mov    $0x0,%al
call   1070 <test_entity_map@plt>
mov    $0x0,%al
call   1050 <test_graph@plt>
mov    $0x0,%al
call   1030 <test_class@plt>
mov    $0x0,%al
call   10a0 <test_edge@plt>
mov    $0x0,%al
call   1080 <test_label@plt>
mov    $0x0,%al
call   1040 <test_property@plt>
mov    $0x0,%al
call   10c0 <test_vertex@plt>
lea    0xddd(%rip),%rdi
call   1090 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   10b0 <Fabric_meminit@plt>
xor    %eax,%eax
call   1070 <test_memory@plt>
xor    %eax,%eax
call   10d0 <test_dynamic_list@plt>
xor    %eax,%eax
call   10e0 <test_id_set@plt>
xor    %eax,%eax
call   1080 <test_entity_map@plt>
xor    %eax,%eax
call   1060 <test_graph@plt>
xor    %eax,%eax
call   1040 <test_class@plt>
xor    %eax,%eax
call   10a0 <test_edge@plt>
xor    %eax,%eax
call   1090 <test_label@plt>
xor    %eax,%eax
call   1050 <test_property@plt>
xor    %eax,%eax
call   10c0 <test_vertex@plt>
lea    0xdeb(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [19 x i8] c"All tests passed.\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @Fabric_meminit()
%3 = call i32 (...) @test_memory()
%4 = call i32 (...) @test_dynamic_list()
%5 = call i32 (...) @test_id_set()
%6 = call i32 (...) @test_entity_map()
%7 = call i32 (...) @test_graph()
%8 = call i32 (...) @test_class()
%9 = call i32 (...) @test_edge()
%10 = call i32 (...) @test_label()
%11 = call i32 (...) @test_property()
%12 = call i32 (...) @test_vertex()
%13 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [18 x i8] c"All tests passed.\00"
define i32 @main() {
%1 = tail call i32 (...) @Fabric_meminit()
%2 = tail call i32 (...) @test_memory()
%3 = tail call i32 (...) @test_dynamic_list()
%4 = tail call i32 (...) @test_id_set()
%5 = tail call i32 (...) @test_entity_map()
%6 = tail call i32 (...) @test_graph()
%7 = tail call i32 (...) @test_class()
%8 = tail call i32 (...) @test_edge()
%9 = tail call i32 (...) @test_label()
%10 = tail call i32 (...) @test_property()
%11 = tail call i32 (...) @test_vertex()
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
ret i32 0
}