int main(void) {
  debug_stdout("main:INIT",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/gmange/malloc/refs/heads/"
               "master/test/main_test.c",
               320, __FUNCTION__);
  test_1(0);
  test_1(2);
  tests_errors();
  tests_0k();
  test_max();
  tests_realloc();
  tests_corr();
  debug_stdout("main:END",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/gmange/malloc/refs/heads/"
               "master/test/main_test.c",
               328, __FUNCTION__);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe7a(%rip),%rdi
lea    0xe7d(%rip),%rsi
mov    $0x140,%edx
lea    0xefc(%rip),%rcx
mov    $0x0,%al
call   1090 <debug_stdout@plt>
xor    %edi,%edi
mov    $0x0,%al
call   1030 <test_1@plt>
mov    $0x2,%edi
mov    $0x0,%al
call   1030 <test_1@plt>
mov    $0x0,%al
call   1060 <tests_errors@plt>
mov    $0x0,%al
call   1050 <tests_0k@plt>
mov    $0x0,%al
call   1080 <test_max@plt>
mov    $0x0,%al
call   1040 <tests_realloc@plt>
mov    $0x0,%al
call   1070 <tests_corr@plt>
lea    0xebb(%rip),%rdi
lea    0xe24(%rip),%rsi
mov    $0x148,%edx
lea    0xea3(%rip),%rcx
mov    $0x0,%al
call   1090 <debug_stdout@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xe85(%rip),%rdi
lea    0xe88(%rip),%rbx
lea    0xf0c(%rip),%r14
mov    %rbx,%rsi
mov    $0x140,%edx
mov    %r14,%rcx
xor    %eax,%eax
call   1090 <debug_stdout@plt>
xor    %edi,%edi
xor    %eax,%eax
call   1030 <test_1@plt>
mov    $0x2,%edi
xor    %eax,%eax
call   1030 <test_1@plt>
xor    %eax,%eax
call   1060 <tests_errors@plt>
xor    %eax,%eax
call   1050 <tests_0k@plt>
xor    %eax,%eax
call   1080 <test_max@plt>
xor    %eax,%eax
call   1040 <tests_realloc@plt>
xor    %eax,%eax
call   1070 <tests_corr@plt>
lea    0xec0(%rip),%rdi
mov    %rbx,%rsi
mov    $0x148,%edx
mov    %r14,%rcx
xor    %eax,%eax
call   1090 <debug_stdout@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [10 x i8] c"main:INIT\00"
@.str.1 = [139 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/gmange/malloc/refs/heads/master/test/main_test.c\00"
@__FUNCTION__.main = [5 x i8] c"main\00"
@.str.2 = [9 x i8] c"main:END\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @debug_stdout to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str.1, i64 0, i64 0), i32 320, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__FUNCTION__.main, i64 0, i64 0))
%3 = call i32 (i32, ...) bitcast (i32 (...)* @test_1 to i32 (i32, ...)*)(i32 0)
%4 = call i32 (i32, ...) bitcast (i32 (...)* @test_1 to i32 (i32, ...)*)(i32 2)
%5 = call i32 (...) @tests_errors()
%6 = call i32 (...) @tests_0k()
%7 = call i32 (...) @test_max()
%8 = call i32 (...) @tests_realloc()
%9 = call i32 (...) @tests_corr()
%10 = call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @debug_stdout to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str.1, i64 0, i64 0), i32 328, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__FUNCTION__.main, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"main:INIT\00"
@.str.1 = [139 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/gmange/malloc/refs/heads/master/test/main_test.c\00"
@__FUNCTION__.main = [5 x i8] c"main\00"
@.str.2 = [9 x i8] c"main:END\00"
define i32 @main() {
%1 = tail call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @debug_stdout to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str.1, i64 0, i64 0), i32 320, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__FUNCTION__.main, i64 0, i64 0))
%2 = tail call i32 (i32, ...) bitcast (i32 (...)* @test_1 to i32 (i32, ...)*)(i32 0)
%3 = tail call i32 (i32, ...) bitcast (i32 (...)* @test_1 to i32 (i32, ...)*)(i32 2)
%4 = tail call i32 (...) @tests_errors()
%5 = tail call i32 (...) @tests_0k()
%6 = tail call i32 (...) @test_max()
%7 = tail call i32 (...) @tests_realloc()
%8 = tail call i32 (...) @tests_corr()
%9 = tail call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @debug_stdout to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str.1, i64 0, i64 0), i32 328, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__FUNCTION__.main, i64 0, i64 0))
ret i32 0
}