#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*/ printf(char *);
int /*<<< orphan*/ test_communicate_social_categorisation();
int /*<<< orphan*/ test_confabulation_with_episodic();
int /*<<< orphan*/ test_confabulation_with_narratives();
int /*<<< orphan*/ test_episodic();
int /*<<< orphan*/ test_id();
int /*<<< orphan*/ test_init();
int /*<<< orphan*/ test_name();
int /*<<< orphan*/ test_narratives();
int /*<<< orphan*/ test_object_add_remove_properties();
int /*<<< orphan*/ test_object_id();
int /*<<< orphan*/ test_social_meet();
int /*<<< orphan*/ test_som();
int /*<<< orphan*/ test_spatial();
int /*<<< orphan*/ test_tale();
void mm_run_tests() {
  test_id();
  test_object_id();
  test_init();
  test_spatial();
  test_object_add_remove_properties();
  test_name();
  test_social_meet();
  test_som();
  test_communicate_social_categorisation();
  test_episodic();
  test_tale();
  test_narratives();
  test_confabulation_with_narratives();
  test_confabulation_with_episodic();
  printf("All tests passed\n");
}


x86 assembly (clang, -O0):
<mm_run_tests>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   10a0 <test_id@plt>
mov    $0x0,%al
call   10e0 <test_object_id@plt>
mov    $0x0,%al
call   1040 <test_init@plt>
mov    $0x0,%al
call   1060 <test_spatial@plt>
mov    $0x0,%al
call   10b0 <test_object_add_remove_properties@plt>
mov    $0x0,%al
call   1080 <test_name@plt>
mov    $0x0,%al
call   1030 <test_social_meet@plt>
mov    $0x0,%al
call   10c0 <test_som@plt>
mov    $0x0,%al
call   1110 <test_communicate_social_categorisation@plt>
mov    $0x0,%al
call   1070 <test_episodic@plt>
mov    $0x0,%al
call   1100 <test_tale@plt>
mov    $0x0,%al
call   1050 <test_narratives@plt>
mov    $0x0,%al
call   10d0 <test_confabulation_with_narratives@plt>
mov    $0x0,%al
call   10f0 <test_confabulation_with_episodic@plt>
lea    0xda3(%rip),%rdi
call   1090 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<mm_run_tests>:
push   %rax
xor    %eax,%eax
call   10a0 <test_id@plt>
xor    %eax,%eax
call   10e0 <test_object_id@plt>
xor    %eax,%eax
call   1040 <test_init@plt>
xor    %eax,%eax
call   1060 <test_spatial@plt>
xor    %eax,%eax
call   10b0 <test_object_add_remove_properties@plt>
xor    %eax,%eax
call   1090 <test_name@plt>
xor    %eax,%eax
call   1030 <test_social_meet@plt>
xor    %eax,%eax
call   10c0 <test_som@plt>
xor    %eax,%eax
call   1110 <test_communicate_social_categorisation@plt>
xor    %eax,%eax
call   1080 <test_episodic@plt>
xor    %eax,%eax
call   1100 <test_tale@plt>
xor    %eax,%eax
call   1050 <test_narratives@plt>
xor    %eax,%eax
call   10d0 <test_confabulation_with_narratives@plt>
xor    %eax,%eax
call   10f0 <test_confabulation_with_episodic@plt>
lea    0xda6(%rip),%rdi
pop    %rax
jmp    1070 <puts@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"All tests passed\0A\00"
define void @mm_run_tests() {
%1 = call i32 (...) @test_id()
%2 = call i32 (...) @test_object_id()
%3 = call i32 (...) @test_init()
%4 = call i32 (...) @test_spatial()
%5 = call i32 (...) @test_object_add_remove_properties()
%6 = call i32 (...) @test_name()
%7 = call i32 (...) @test_social_meet()
%8 = call i32 (...) @test_som()
%9 = call i32 (...) @test_communicate_social_categorisation()
%10 = call i32 (...) @test_episodic()
%11 = call i32 (...) @test_tale()
%12 = call i32 (...) @test_narratives()
%13 = call i32 (...) @test_confabulation_with_narratives()
%14 = call i32 (...) @test_confabulation_with_episodic()
%15 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [17 x i8] c"All tests passed\00"
define void @mm_run_tests() {
%1 = tail call i32 (...) @test_id()
%2 = tail call i32 (...) @test_object_id()
%3 = tail call i32 (...) @test_init()
%4 = tail call i32 (...) @test_spatial()
%5 = tail call i32 (...) @test_object_add_remove_properties()
%6 = tail call i32 (...) @test_name()
%7 = tail call i32 (...) @test_social_meet()
%8 = tail call i32 (...) @test_som()
%9 = tail call i32 (...) @test_communicate_social_categorisation()
%10 = tail call i32 (...) @test_episodic()
%11 = tail call i32 (...) @test_tale()
%12 = tail call i32 (...) @test_narratives()
%13 = tail call i32 (...) @test_confabulation_with_narratives()
%14 = tail call i32 (...) @test_confabulation_with_episodic()
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
ret void
}