int main(int argc, char *argv[]) {
  unsigned int rc = 0;
  rc = plan_tests(3);
  diag("Returned: %d", rc);
  rc = ((1) ? _gen_result(1, __func__,
                          "/scratch/repos/new/home/jordi_armengol_estape/"
                          "c-scraper/outputs/2022-01-22/02-19-57/repos/"
                          "AlphaStaxLLC/nagioscore/refs/heads/en-3.5.1/"
                          "NagiosCore/tap/tests/ok/ok-numeric/test.c",
                          38, "First test")
            : _gen_result(0, __func__,
                          "/scratch/repos/new/home/jordi_armengol_estape/"
                          "c-scraper/outputs/2022-01-22/02-19-57/repos/"
                          "AlphaStaxLLC/nagioscore/refs/heads/en-3.5.1/"
                          "NagiosCore/tap/tests/ok/ok-numeric/test.c",
                          38, "First test"));
  diag("Returned: %d", rc);
  rc = ((1) ? _gen_result(1, __func__,
                          "/scratch/repos/new/home/jordi_armengol_estape/"
                          "c-scraper/outputs/2022-01-22/02-19-57/repos/"
                          "AlphaStaxLLC/nagioscore/refs/heads/en-3.5.1/"
                          "NagiosCore/tap/tests/ok/ok-numeric/test.c",
                          41, "1")
            : _gen_result(0, __func__,
                          "/scratch/repos/new/home/jordi_armengol_estape/"
                          "c-scraper/outputs/2022-01-22/02-19-57/repos/"
                          "AlphaStaxLLC/nagioscore/refs/heads/en-3.5.1/"
                          "NagiosCore/tap/tests/ok/ok-numeric/test.c",
                          41, "1"));
  diag("Returned: %d", rc);
  rc = ((1) ? _gen_result(1, __func__,
                          "/scratch/repos/new/home/jordi_armengol_estape/"
                          "c-scraper/outputs/2022-01-22/02-19-57/repos/"
                          "AlphaStaxLLC/nagioscore/refs/heads/en-3.5.1/"
                          "NagiosCore/tap/tests/ok/ok-numeric/test.c",
                          44, "Third test")
            : _gen_result(0, __func__,
                          "/scratch/repos/new/home/jordi_armengol_estape/"
                          "c-scraper/outputs/2022-01-22/02-19-57/repos/"
                          "AlphaStaxLLC/nagioscore/refs/heads/en-3.5.1/"
                          "NagiosCore/tap/tests/ok/ok-numeric/test.c",
                          44, "Third test"));
  diag("Returned: %d", rc);
  return exit_status();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    $0x3,%edi
mov    $0x0,%al
call   1060 <plan_tests@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xe8a(%rip),%rdi
mov    $0x0,%al
call   1040 <diag@plt>
mov    $0x1,%edi
lea    0xe84(%rip),%rsi
lea    0xe82(%rip),%rdx
mov    $0x26,%ecx
lea    0xf26(%rip),%r8
mov    $0x0,%al
call   1050 <_gen_result@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1040 <diag@plt>
mov    $0x1,%edi
lea    0xe4a(%rip),%rsi
lea    0xe48(%rip),%rdx
mov    $0x29,%ecx
lea    0xef7(%rip),%r8
mov    $0x0,%al
call   1050 <_gen_result@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xe16(%rip),%rdi
mov    $0x0,%al
call   1040 <diag@plt>
mov    $0x1,%edi
lea    0xe10(%rip),%rsi
lea    0xe0e(%rip),%rdx
mov    $0x2c,%ecx
lea    0xebf(%rip),%r8
mov    $0x0,%al
call   1050 <_gen_result@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xddc(%rip),%rdi
mov    $0x0,%al
call   1040 <diag@plt>
mov    $0x0,%al
call   1030 <exit_status@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
mov    $0x3,%edi
xor    %eax,%eax
call   1060 <plan_tests@plt>
lea    0xea8(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <diag@plt>
lea    0xea2(%rip),%r14
lea    0xea0(%rip),%r15
lea    0xf49(%rip),%r8
mov    $0x1,%edi
mov    %r14,%rsi
mov    %r15,%rdx
mov    $0x26,%ecx
xor    %eax,%eax
call   1050 <_gen_result@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <diag@plt>
lea    0xf2a(%rip),%r8
mov    $0x1,%edi
mov    %r14,%rsi
mov    %r15,%rdx
mov    $0x29,%ecx
xor    %eax,%eax
call   1050 <_gen_result@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <diag@plt>
lea    0xf02(%rip),%r8
mov    $0x1,%edi
mov    %r14,%rsi
mov    %r15,%rdx
mov    $0x2c,%ecx
xor    %eax,%eax
call   1050 <_gen_result@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <diag@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <exit_status@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"Returned: %d\00"
@__func__.main = [5 x i8] c"main\00"
@.str.1 = [176 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AlphaStaxLLC/nagioscore/refs/heads/en-3.5.1/NagiosCore/tap/tests/ok/ok-numeric/test.c\00"
@.str.2 = [11 x i8] c"First test\00"
@.str.3 = [2 x i8] c"1\00"
@.str.4 = [11 x i8] c"Third test\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
%7 = call i32 (i32, ...) bitcast (i32 (...)* @plan_tests to i32 (i32, ...)*)(i32 3)
store i32 %7, i32* %6
%8 = load i32, i32* %6
%9 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @diag to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %8)
%10 = call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @_gen_result to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i8* getelementptr inbounds ([176 x i8], [176 x i8]* @.str.1, i64 0, i64 0), i32 38, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
store i32 %10, i32* %6
%11 = load i32, i32* %6
%12 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @diag to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %11)
%13 = call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @_gen_result to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i8* getelementptr inbounds ([176 x i8], [176 x i8]* @.str.1, i64 0, i64 0), i32 41, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32 %13, i32* %6
%14 = load i32, i32* %6
%15 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @diag to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %14)
%16 = call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @_gen_result to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i8* getelementptr inbounds ([176 x i8], [176 x i8]* @.str.1, i64 0, i64 0), i32 44, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
store i32 %16, i32* %6
%17 = load i32, i32* %6
%18 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @diag to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %17)
%19 = call i32 (...) @exit_status()
ret i32 %19
}

LLVM IR (-O2):
@.str = [13 x i8] c"Returned: %d\00"
@__func__.main = [5 x i8] c"main\00"
@.str.1 = [176 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AlphaStaxLLC/nagioscore/refs/heads/en-3.5.1/NagiosCore/tap/tests/ok/ok-numeric/test.c\00"
@.str.2 = [11 x i8] c"First test\00"
@.str.3 = [2 x i8] c"1\00"
@.str.4 = [11 x i8] c"Third test\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (i32, ...) bitcast (i32 (...)* @plan_tests to i32 (i32, ...)*)(i32 3)
%4 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @diag to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = tail call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @_gen_result to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i8* getelementptr inbounds ([176 x i8], [176 x i8]* @.str.1, i64 0, i64 0), i32 38, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @diag to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = tail call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @_gen_result to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i8* getelementptr inbounds ([176 x i8], [176 x i8]* @.str.1, i64 0, i64 0), i32 41, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @diag to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %7)
%9 = tail call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @_gen_result to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i8* getelementptr inbounds ([176 x i8], [176 x i8]* @.str.1, i64 0, i64 0), i32 44, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%10 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @diag to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %9)
%11 = tail call i32 (...) @exit_status()
ret i32 %11
}