#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*/ allocate_array_test();
int /*<<< orphan*/ allocate_matrix_test();
int /*<<< orphan*/ array_len_test();
int /*<<< orphan*/ calloc_test();
int /*<<< orphan*/ char_cmp_test();
int /*<<< orphan*/ copy_int_test();
int /*<<< orphan*/ copy_long_test();
int /*<<< orphan*/ csv_parse_int_test();
int /*<<< orphan*/ getline_test();
int /*<<< orphan*/ int_cmp_test();
int /*<<< orphan*/ long_cmp_test();
int /*<<< orphan*/ malloc_test();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ realloc_test();
int /*<<< orphan*/ string_cmp_test();
int /*<<< orphan*/ sum_array_int_test();
int /*<<< orphan*/ swap_chars_test();
int main(void) {
  malloc_test();
  calloc_test();
  realloc_test();
  getline_test();
  swap_chars_test();
  array_len_test();
  string_cmp_test();
  char_cmp_test();
  int_cmp_test();
  long_cmp_test();
  allocate_matrix_test();
  allocate_array_test();
  copy_int_test();
  copy_long_test();
  csv_parse_int_test();
  sum_array_int_test();
  printf("All util 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   1120 <malloc_test@plt>
mov    $0x0,%al
call   1040 <calloc_test@plt>
mov    $0x0,%al
call   10d0 <realloc_test@plt>
mov    $0x0,%al
call   1110 <getline_test@plt>
mov    $0x0,%al
call   1060 <swap_chars_test@plt>
mov    $0x0,%al
call   1100 <array_len_test@plt>
mov    $0x0,%al
call   10a0 <string_cmp_test@plt>
mov    $0x0,%al
call   1080 <char_cmp_test@plt>
mov    $0x0,%al
call   1070 <int_cmp_test@plt>
mov    $0x0,%al
call   1030 <long_cmp_test@plt>
mov    $0x0,%al
call   10e0 <allocate_matrix_test@plt>
mov    $0x0,%al
call   1130 <allocate_array_test@plt>
mov    $0x0,%al
call   10c0 <copy_int_test@plt>
mov    $0x0,%al
call   10f0 <copy_long_test@plt>
mov    $0x0,%al
call   1050 <csv_parse_int_test@plt>
mov    $0x0,%al
call   10b0 <sum_array_int_test@plt>
lea    0xd6a(%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   1120 <malloc_test@plt>
xor    %eax,%eax
call   1040 <calloc_test@plt>
xor    %eax,%eax
call   10d0 <realloc_test@plt>
xor    %eax,%eax
call   1110 <getline_test@plt>
xor    %eax,%eax
call   1070 <swap_chars_test@plt>
xor    %eax,%eax
call   1100 <array_len_test@plt>
xor    %eax,%eax
call   10a0 <string_cmp_test@plt>
xor    %eax,%eax
call   1090 <char_cmp_test@plt>
xor    %eax,%eax
call   1080 <int_cmp_test@plt>
xor    %eax,%eax
call   1030 <long_cmp_test@plt>
xor    %eax,%eax
call   10e0 <allocate_matrix_test@plt>
xor    %eax,%eax
call   1130 <allocate_array_test@plt>
xor    %eax,%eax
call   10c0 <copy_int_test@plt>
xor    %eax,%eax
call   10f0 <copy_long_test@plt>
xor    %eax,%eax
call   1060 <csv_parse_int_test@plt>
xor    %eax,%eax
call   10b0 <sum_array_int_test@plt>
lea    0xd78(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [23 x i8] c"All util tests passed\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @malloc_test()
%3 = call i32 (...) @calloc_test()
%4 = call i32 (...) @realloc_test()
%5 = call i32 (...) @getline_test()
%6 = call i32 (...) @swap_chars_test()
%7 = call i32 (...) @array_len_test()
%8 = call i32 (...) @string_cmp_test()
%9 = call i32 (...) @char_cmp_test()
%10 = call i32 (...) @int_cmp_test()
%11 = call i32 (...) @long_cmp_test()
%12 = call i32 (...) @allocate_matrix_test()
%13 = call i32 (...) @allocate_array_test()
%14 = call i32 (...) @copy_int_test()
%15 = call i32 (...) @copy_long_test()
%16 = call i32 (...) @csv_parse_int_test()
%17 = call i32 (...) @sum_array_int_test()
%18 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [22 x i8] c"All util tests passed\00"
define i32 @main() {
%1 = tail call i32 (...) @malloc_test()
%2 = tail call i32 (...) @calloc_test()
%3 = tail call i32 (...) @realloc_test()
%4 = tail call i32 (...) @getline_test()
%5 = tail call i32 (...) @swap_chars_test()
%6 = tail call i32 (...) @array_len_test()
%7 = tail call i32 (...) @string_cmp_test()
%8 = tail call i32 (...) @char_cmp_test()
%9 = tail call i32 (...) @int_cmp_test()
%10 = tail call i32 (...) @long_cmp_test()
%11 = tail call i32 (...) @allocate_matrix_test()
%12 = tail call i32 (...) @allocate_array_test()
%13 = tail call i32 (...) @copy_int_test()
%14 = tail call i32 (...) @copy_long_test()
%15 = tail call i32 (...) @csv_parse_int_test()
%16 = tail call i32 (...) @sum_array_int_test()
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
ret i32 0
}