#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*/ puts(char *);
int /*<<< orphan*/ test_matrix_add();
int /*<<< orphan*/ test_matrix_copy();
int /*<<< orphan*/ test_matrix_destroy();
int /*<<< orphan*/ test_matrix_eye();
int /*<<< orphan*/ test_matrix_from_array();
int /*<<< orphan*/ test_matrix_get();
int /*<<< orphan*/ test_matrix_mean();
int /*<<< orphan*/ test_matrix_multiply();
int /*<<< orphan*/ test_matrix_new();
int /*<<< orphan*/ test_matrix_print();
int /*<<< orphan*/ test_matrix_scale();
int /*<<< orphan*/ test_matrix_set();
int /*<<< orphan*/ test_matrix_set_from_array();
int /*<<< orphan*/ test_matrix_swap_row();
int /*<<< orphan*/ test_matrix_trace();
int /*<<< orphan*/ test_matrix_transpose();
int main(void) {
  puts("... \x1b[33m"
       "matrix_new"
       "\x1b[0m");
  test_matrix_new();
  ;
  puts("... \x1b[33m"
       "matrix_copy"
       "\x1b[0m");
  test_matrix_copy();
  ;
  puts("... \x1b[33m"
       "matrix_destroy"
       "\x1b[0m");
  test_matrix_destroy();
  ;
  puts("... \x1b[33m"
       "matrix_print"
       "\x1b[0m");
  test_matrix_print();
  ;
  puts("... \x1b[33m"
       "matrix_eye"
       "\x1b[0m");
  test_matrix_eye();
  ;
  puts("... \x1b[33m"
       "matrix_set_from_array"
       "\x1b[0m");
  test_matrix_set_from_array();
  ;
  puts("... \x1b[33m"
       "matrix_get"
       "\x1b[0m");
  test_matrix_get();
  ;
  puts("... \x1b[33m"
       "matrix_set"
       "\x1b[0m");
  test_matrix_set();
  ;
  puts("... \x1b[33m"
       "matrix_from_array"
       "\x1b[0m");
  test_matrix_from_array();
  ;
  puts("... \x1b[33m"
       "matrix_trace"
       "\x1b[0m");
  test_matrix_trace();
  ;
  puts("... \x1b[33m"
       "matrix_transpose"
       "\x1b[0m");
  test_matrix_transpose();
  ;
  puts("... \x1b[33m"
       "matrix_mean"
       "\x1b[0m");
  test_matrix_mean();
  ;
  puts("... \x1b[33m"
       "matrix_multiply"
       "\x1b[0m");
  test_matrix_multiply();
  ;
  puts("... \x1b[33m"
       "matrix_add"
       "\x1b[0m");
  test_matrix_add();
  ;
  puts("... \x1b[33m"
       "matrix_scale"
       "\x1b[0m");
  test_matrix_scale();
  ;
  puts("... \x1b[33m"
       "matrix_swap_row"
       "\x1b[0m");
  test_matrix_swap_row();
  ;
  puts("... \x1b[32m100%\x1b[0m\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xdda(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   1090 <test_matrix_new@plt>
lea    0xddf(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   1080 <test_matrix_copy@plt>
lea    0xde5(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   1050 <test_matrix_destroy@plt>
lea    0xdee(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   1120 <test_matrix_print@plt>
lea    0xdf5(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   1110 <test_matrix_eye@plt>
lea    0xdfa(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   10f0 <test_matrix_set_from_array@plt>
lea    0xe0a(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   10e0 <test_matrix_get@plt>
lea    0xe0f(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   1060 <test_matrix_set@plt>
lea    0xe14(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   10b0 <test_matrix_from_array@plt>
lea    0xe20(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   10d0 <test_matrix_trace@plt>
lea    0xe27(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   10c0 <test_matrix_transpose@plt>
lea    0xe32(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   1070 <test_matrix_mean@plt>
lea    0xe38(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   10a0 <test_matrix_multiply@plt>
lea    0xe42(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   1040 <test_matrix_add@plt>
lea    0xe47(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   1130 <test_matrix_scale@plt>
lea    0xe4e(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   1100 <test_matrix_swap_row@plt>
lea    0xe58(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xde8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1090 <test_matrix_new@plt>
lea    0xded(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1080 <test_matrix_copy@plt>
lea    0xdf3(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1050 <test_matrix_destroy@plt>
lea    0xdfc(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1120 <test_matrix_print@plt>
lea    0xe03(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1110 <test_matrix_eye@plt>
lea    0xe08(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   10f0 <test_matrix_set_from_array@plt>
lea    0xe18(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   10e0 <test_matrix_get@plt>
lea    0xe1d(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1060 <test_matrix_set@plt>
lea    0xe22(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   10b0 <test_matrix_from_array@plt>
lea    0xe2e(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   10d0 <test_matrix_trace@plt>
lea    0xe35(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   10c0 <test_matrix_transpose@plt>
lea    0xe40(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1070 <test_matrix_mean@plt>
lea    0xe46(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   10a0 <test_matrix_multiply@plt>
lea    0xe50(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <test_matrix_add@plt>
lea    0xe55(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1130 <test_matrix_scale@plt>
lea    0xe5c(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1100 <test_matrix_swap_row@plt>
lea    0xe66(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [24 x i8] c"... \1B[33mmatrix_new\1B[0m\00"
@.str.1 = [25 x i8] c"... \1B[33mmatrix_copy\1B[0m\00"
@.str.2 = [28 x i8] c"... \1B[33mmatrix_destroy\1B[0m\00"
@.str.3 = [26 x i8] c"... \1B[33mmatrix_print\1B[0m\00"
@.str.4 = [24 x i8] c"... \1B[33mmatrix_eye\1B[0m\00"
@.str.5 = [35 x i8] c"... \1B[33mmatrix_set_from_array\1B[0m\00"
@.str.6 = [24 x i8] c"... \1B[33mmatrix_get\1B[0m\00"
@.str.7 = [24 x i8] c"... \1B[33mmatrix_set\1B[0m\00"
@.str.8 = [31 x i8] c"... \1B[33mmatrix_from_array\1B[0m\00"
@.str.9 = [26 x i8] c"... \1B[33mmatrix_trace\1B[0m\00"
@.str.10 = [30 x i8] c"... \1B[33mmatrix_transpose\1B[0m\00"
@.str.11 = [25 x i8] c"... \1B[33mmatrix_mean\1B[0m\00"
@.str.12 = [29 x i8] c"... \1B[33mmatrix_multiply\1B[0m\00"
@.str.13 = [24 x i8] c"... \1B[33mmatrix_add\1B[0m\00"
@.str.14 = [26 x i8] c"... \1B[33mmatrix_scale\1B[0m\00"
@.str.15 = [29 x i8] c"... \1B[33mmatrix_swap_row\1B[0m\00"
@.str.16 = [19 x i8] c"... \1B[32m100%\1B[0m\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @puts(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @test_matrix_new()
%4 = call i32 @puts(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 (...) @test_matrix_copy()
%6 = call i32 @puts(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (...) @test_matrix_destroy()
%8 = call i32 @puts(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 (...) @test_matrix_print()
%10 = call i32 @puts(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 (...) @test_matrix_eye()
%12 = call i32 @puts(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
%13 = call i32 (...) @test_matrix_set_from_array()
%14 = call i32 @puts(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
%15 = call i32 (...) @test_matrix_get()
%16 = call i32 @puts(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0))
%17 = call i32 (...) @test_matrix_set()
%18 = call i32 @puts(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0))
%19 = call i32 (...) @test_matrix_from_array()
%20 = call i32 @puts(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0))
%21 = call i32 (...) @test_matrix_trace()
%22 = call i32 @puts(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0))
%23 = call i32 (...) @test_matrix_transpose()
%24 = call i32 @puts(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
%25 = call i32 (...) @test_matrix_mean()
%26 = call i32 @puts(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.12, i64 0, i64 0))
%27 = call i32 (...) @test_matrix_multiply()
%28 = call i32 @puts(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.13, i64 0, i64 0))
%29 = call i32 (...) @test_matrix_add()
%30 = call i32 @puts(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.14, i64 0, i64 0))
%31 = call i32 (...) @test_matrix_scale()
%32 = call i32 @puts(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.15, i64 0, i64 0))
%33 = call i32 (...) @test_matrix_swap_row()
%34 = call i32 @puts(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.16, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [24 x i8] c"... \1B[33mmatrix_new\1B[0m\00"
@.str.1 = [25 x i8] c"... \1B[33mmatrix_copy\1B[0m\00"
@.str.2 = [28 x i8] c"... \1B[33mmatrix_destroy\1B[0m\00"
@.str.3 = [26 x i8] c"... \1B[33mmatrix_print\1B[0m\00"
@.str.4 = [24 x i8] c"... \1B[33mmatrix_eye\1B[0m\00"
@.str.5 = [35 x i8] c"... \1B[33mmatrix_set_from_array\1B[0m\00"
@.str.6 = [24 x i8] c"... \1B[33mmatrix_get\1B[0m\00"
@.str.7 = [24 x i8] c"... \1B[33mmatrix_set\1B[0m\00"
@.str.8 = [31 x i8] c"... \1B[33mmatrix_from_array\1B[0m\00"
@.str.9 = [26 x i8] c"... \1B[33mmatrix_trace\1B[0m\00"
@.str.10 = [30 x i8] c"... \1B[33mmatrix_transpose\1B[0m\00"
@.str.11 = [25 x i8] c"... \1B[33mmatrix_mean\1B[0m\00"
@.str.12 = [29 x i8] c"... \1B[33mmatrix_multiply\1B[0m\00"
@.str.13 = [24 x i8] c"... \1B[33mmatrix_add\1B[0m\00"
@.str.14 = [26 x i8] c"... \1B[33mmatrix_scale\1B[0m\00"
@.str.15 = [29 x i8] c"... \1B[33mmatrix_swap_row\1B[0m\00"
@.str.16 = [19 x i8] c"... \1B[32m100%\1B[0m\0A\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @test_matrix_new()
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (...) @test_matrix_copy()
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 (...) @test_matrix_destroy()
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 (...) @test_matrix_print()
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%10 = tail call i32 (...) @test_matrix_eye()
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
%12 = tail call i32 (...) @test_matrix_set_from_array()
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
%14 = tail call i32 (...) @test_matrix_get()
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0))
%16 = tail call i32 (...) @test_matrix_set()
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0))
%18 = tail call i32 (...) @test_matrix_from_array()
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0))
%20 = tail call i32 (...) @test_matrix_trace()
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0))
%22 = tail call i32 (...) @test_matrix_transpose()
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
%24 = tail call i32 (...) @test_matrix_mean()
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.12, i64 0, i64 0))
%26 = tail call i32 (...) @test_matrix_multiply()
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.13, i64 0, i64 0))
%28 = tail call i32 (...) @test_matrix_add()
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.14, i64 0, i64 0))
%30 = tail call i32 (...) @test_matrix_scale()
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.15, i64 0, i64 0))
%32 = tail call i32 (...) @test_matrix_swap_row()
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.16, i64 0, i64 0))
ret i32 0
}