main(int argc, char const *const *argv) {
  test_basic1();
  test_array1();
  test_object1();
  test_parse1();
  test_object_get_sub();
  test_refcount();
  test_args_parse(argc, argv);
  test_toker();
  if (1)
    printf("MARKER: %s:%d:%s():\t",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/SINTEF-9012/cson-purified/refs/heads/"
           "master/test.c",
           535, __func__);
  if (1)
    printf("Done!\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1070 <test_basic1@plt>
mov    $0x0,%al
call   1080 <test_array1@plt>
mov    $0x0,%al
call   1030 <test_object1@plt>
mov    $0x0,%al
call   10a0 <test_parse1@plt>
mov    $0x0,%al
call   10b0 <test_object_get_sub@plt>
mov    $0x0,%al
call   1090 <test_refcount@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1060 <test_args_parse@plt>
mov    $0x0,%al
call   1050 <test_toker@plt>
lea    0xe14(%rip),%rdi
lea    0xe22(%rip),%rsi
mov    $0x217,%edx
lea    0xea3(%rip),%rcx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
xor    %eax,%eax
call   1080 <test_basic1@plt>
xor    %eax,%eax
call   1090 <test_array1@plt>
xor    %eax,%eax
call   1030 <test_object1@plt>
xor    %eax,%eax
call   10b0 <test_parse1@plt>
xor    %eax,%eax
call   10c0 <test_object_get_sub@plt>
xor    %eax,%eax
call   10a0 <test_refcount@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
xor    %eax,%eax
call   1070 <test_args_parse@plt>
xor    %eax,%eax
call   1060 <test_toker@plt>
lea    0xe14(%rip),%rdi
lea    0xe22(%rip),%rsi
lea    0xea8(%rip),%rcx
mov    $0x217,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe9a(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [21 x i8] c"MARKER: %s:%d:%s():\09\00"
@.str.1 = [141 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/SINTEF-9012/cson-purified/refs/heads/master/test.c\00"
@__func__.main = [5 x i8] c"main\00"
@.str.2 = [7 x i8] c"Done!\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (...) @test_basic1()
%7 = call i32 (...) @test_array1()
%8 = call i32 (...) @test_object1()
%9 = call i32 (...) @test_parse1()
%10 = call i32 (...) @test_object_get_sub()
%11 = call i32 (...) @test_refcount()
%12 = load i32, i32* %4
%13 = load i8**, i8*** %5
%14 = call i32 (i32, i8**, ...) bitcast (i32 (...)* @test_args_parse to i32 (i32, i8**, ...)*)(i32 %12, i8** %13)
%15 = call i32 (...) @test_toker()
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.1, i64 0, i64 0), i32 535, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [21 x i8] c"MARKER: %s:%d:%s():\09\00"
@.str.1 = [141 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/SINTEF-9012/cson-purified/refs/heads/master/test.c\00"
@__func__.main = [5 x i8] c"main\00"
@str = [6 x i8] c"Done!\00"
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 (...) @test_basic1()
%4 = tail call i32 (...) @test_array1()
%5 = tail call i32 (...) @test_object1()
%6 = tail call i32 (...) @test_parse1()
%7 = tail call i32 (...) @test_object_get_sub()
%8 = tail call i32 (...) @test_refcount()
%9 = tail call i32 (i32, i8**, ...) bitcast (i32 (...)* @test_args_parse to i32 (i32, i8**, ...)*)(i32 %0, i8** %1)
%10 = tail call i32 (...) @test_toker()
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.1, i64 0, i64 0), i32 535, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0))
ret i32 0
}