#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_allocation_fails();
int /*<<< orphan*/ test_free_twice();
int /*<<< orphan*/ test_free_without_malloc();
int /*<<< orphan*/ test_malloc_guard();
int /*<<< orphan*/ test_malloc_max_count();
int /*<<< orphan*/ test_malloc_startup_and_cleanup_assign_pointers();
void suite_malloc(void) {
  printf("Start  suite_malloc\n");
  test_malloc_startup_and_cleanup_assign_pointers();
  test_malloc_max_count();
  test_malloc_guard();
  test_allocation_fails();
  test_free_without_malloc();
  test_free_twice();
  printf("Finish suite_malloc\n");
}


x86 assembly (clang, -O0):
<suite_malloc>:
push   %rbp
mov    %rsp,%rbp
lea    0xe85(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1070 <test_malloc_startup_and_cleanup_assign_pointers@plt>
mov    $0x0,%al
call   1060 <test_malloc_max_count@plt>
mov    $0x0,%al
call   1050 <test_malloc_guard@plt>
mov    $0x0,%al
call   1090 <test_allocation_fails@plt>
mov    $0x0,%al
call   1030 <test_free_without_malloc@plt>
mov    $0x0,%al
call   1080 <test_free_twice@plt>
lea    0xe64(%rip),%rdi
call   1040 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<suite_malloc>:
push   %rax
lea    0xe88(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <test_malloc_startup_and_cleanup_assign_pointers@plt>
xor    %eax,%eax
call   1060 <test_malloc_max_count@plt>
xor    %eax,%eax
call   1050 <test_malloc_guard@plt>
xor    %eax,%eax
call   1090 <test_allocation_fails@plt>
xor    %eax,%eax
call   1030 <test_free_without_malloc@plt>
xor    %eax,%eax
call   1080 <test_free_twice@plt>
lea    0xe66(%rip),%rdi
pop    %rax
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"Start suite_malloc\0A\00"
@.str.1 = [21 x i8] c"Finish suite_malloc\0A\00"
define void @suite_malloc() {
%1 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @test_malloc_startup_and_cleanup_assign_pointers()
%3 = call i32 (...) @test_malloc_max_count()
%4 = call i32 (...) @test_malloc_guard()
%5 = call i32 (...) @test_allocation_fails()
%6 = call i32 (...) @test_free_without_malloc()
%7 = call i32 (...) @test_free_twice()
%8 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [20 x i8] c"Start suite_malloc\00"
@str.2 = [20 x i8] c"Finish suite_malloc\00"
define void @suite_malloc() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (...) @test_malloc_startup_and_cleanup_assign_pointers()
%3 = tail call i32 (...) @test_malloc_max_count()
%4 = tail call i32 (...) @test_malloc_guard()
%5 = tail call i32 (...) @test_allocation_fails()
%6 = tail call i32 (...) @test_free_without_malloc()
%7 = tail call i32 (...) @test_free_twice()
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.2, i64 0, i64 0))
ret void
}