int main(int argc, char *argv[]) {
  unsigned int rc = 0;
  rc = plan_tests(5);
  diag("Returned: %d", rc);
  rc = ((1 == 1) ? _gen_result(1, __func__,
                               "/scratch/repos/new/home/jordi_armengol_estape/"
                               "c-scraper/outputs/2022-01-22/02-19-57/repos/"
                               "ByteFoundryAU/monitoring-plugins/refs/heads/"
                               "fedora/t/libtap-tests/ok/ok/test.c",
                               39, "1 equals 1")
                 : _gen_result(0, __func__,
                               "/scratch/repos/new/home/jordi_armengol_estape/"
                               "c-scraper/outputs/2022-01-22/02-19-57/repos/"
                               "ByteFoundryAU/monitoring-plugins/refs/heads/"
                               "fedora/t/libtap-tests/ok/ok/test.c",
                               39, "1 equals 1"));
  diag("Returned: %d", rc);
  rc = ((1 == 1) ? _gen_result(1, __func__,
                               "/scratch/repos/new/home/jordi_armengol_estape/"
                               "c-scraper/outputs/2022-01-22/02-19-57/repos/"
                               "ByteFoundryAU/monitoring-plugins/refs/heads/"
                               "fedora/t/libtap-tests/ok/ok/test.c",
                               42, "1 equals %d", 1)
                 : _gen_result(0, __func__,
                               "/scratch/repos/new/home/jordi_armengol_estape/"
                               "c-scraper/outputs/2022-01-22/02-19-57/repos/"
                               "ByteFoundryAU/monitoring-plugins/refs/heads/"
                               "fedora/t/libtap-tests/ok/ok/test.c",
                               42, "1 equals %d", 1));
  diag("Returned: %d", rc);
  rc = ((1 == 1) ? _gen_result(1, __func__,
                               "/scratch/repos/new/home/jordi_armengol_estape/"
                               "c-scraper/outputs/2022-01-22/02-19-57/repos/"
                               "ByteFoundryAU/monitoring-plugins/refs/heads/"
                               "fedora/t/libtap-tests/ok/ok/test.c",
                               45, "%s", "1 == 1")
                 : _gen_result(0, __func__,
                               "/scratch/repos/new/home/jordi_armengol_estape/"
                               "c-scraper/outputs/2022-01-22/02-19-57/repos/"
                               "ByteFoundryAU/monitoring-plugins/refs/heads/"
                               "fedora/t/libtap-tests/ok/ok/test.c",
                               45, "%s", "1 == 1"));
  diag("Returned: %d", rc);
  rc = ((1 == 2) ? _gen_result(1, __func__,
                               "/scratch/repos/new/home/jordi_armengol_estape/"
                               "c-scraper/outputs/2022-01-22/02-19-57/repos/"
                               "ByteFoundryAU/monitoring-plugins/refs/heads/"
                               "fedora/t/libtap-tests/ok/ok/test.c",
                               48, "1 equals 2")
                 : _gen_result(0, __func__,
                               "/scratch/repos/new/home/jordi_armengol_estape/"
                               "c-scraper/outputs/2022-01-22/02-19-57/repos/"
                               "ByteFoundryAU/monitoring-plugins/refs/heads/"
                               "fedora/t/libtap-tests/ok/ok/test.c",
                               48, "1 equals 2"));
  diag("Returned: %d", rc);
  rc = ((1 == 2) ? _gen_result(1, __func__,
                               "/scratch/repos/new/home/jordi_armengol_estape/"
                               "c-scraper/outputs/2022-01-22/02-19-57/repos/"
                               "ByteFoundryAU/monitoring-plugins/refs/heads/"
                               "fedora/t/libtap-tests/ok/ok/test.c",
                               51, "%s", "1 == 2")
                 : _gen_result(0, __func__,
                               "/scratch/repos/new/home/jordi_armengol_estape/"
                               "c-scraper/outputs/2022-01-22/02-19-57/repos/"
                               "ByteFoundryAU/monitoring-plugins/refs/heads/"
                               "fedora/t/libtap-tests/ok/ok/test.c",
                               51, "%s", "1 == 2"));
  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    $0x5,%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    $0x27,%ecx
lea    0xf1f(%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,%r9d
lea    0xe49(%rip),%rsi
lea    0xe47(%rip),%rdx
mov    $0x2a,%ecx
lea    0xeef(%rip),%r8
mov    %r9d,%edi
mov    $0x0,%al
call   1050 <_gen_result@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1040 <diag@plt>
mov    $0x1,%edi
lea    0xe0c(%rip),%rsi
lea    0xe0a(%rip),%rdx
mov    $0x2d,%ecx
lea    0xebe(%rip),%r8
lea    0xeba(%rip),%r9
mov    $0x0,%al
call   1050 <_gen_result@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xdd1(%rip),%rdi
mov    $0x0,%al
call   1040 <diag@plt>
xor    %edi,%edi
lea    0xdce(%rip),%rsi
lea    0xdcc(%rip),%rdx
mov    $0x30,%ecx
lea    0xe8a(%rip),%r8
mov    $0x0,%al
call   1050 <_gen_result@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xd9a(%rip),%rdi
mov    $0x0,%al
call   1040 <diag@plt>
xor    %edi,%edi
lea    0xd97(%rip),%rsi
lea    0xd95(%rip),%rdx
mov    $0x33,%ecx
lea    0xe49(%rip),%r8
lea    0xe57(%rip),%r9
mov    $0x0,%al
call   1050 <_gen_result@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xd5c(%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   %r12
push   %rbx
push   %rax
mov    $0x5,%edi
xor    %eax,%eax
call   1060 <plan_tests@plt>
lea    0xea5(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <diag@plt>
lea    0xe9f(%rip),%r14
lea    0xe9d(%rip),%r15
lea    0xf3f(%rip),%r8
mov    $0x1,%edi
mov    %r14,%rsi
mov    %r15,%rdx
mov    $0x27,%ecx
xor    %eax,%eax
call   1050 <_gen_result@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <diag@plt>
lea    0xf20(%rip),%r8
mov    $0x1,%edi
mov    %r14,%rsi
mov    %r15,%rdx
mov    $0x2a,%ecx
mov    $0x1,%r9d
xor    %eax,%eax
call   1050 <_gen_result@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <diag@plt>
lea    0xefc(%rip),%r12
lea    0xef8(%rip),%r9
mov    $0x1,%edi
mov    %r14,%rsi
mov    %r15,%rdx
mov    $0x2d,%ecx
mov    %r12,%r8
xor    %eax,%eax
call   1050 <_gen_result@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <diag@plt>
lea    0xed2(%rip),%r8
xor    %edi,%edi
mov    %r14,%rsi
mov    %r15,%rdx
mov    $0x30,%ecx
xor    %eax,%eax
call   1050 <_gen_result@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <diag@plt>
lea    0xeb6(%rip),%r9
xor    %edi,%edi
mov    %r14,%rsi
mov    %r15,%rdx
mov    $0x33,%ecx
mov    %r12,%r8
xor    %eax,%eax
call   1050 <_gen_result@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <diag@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
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 = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ByteFoundryAU/monitoring-plugins/refs/heads/fedora/t/libtap-tests/ok/ok/test.c\00"
@.str.2 = [11 x i8] c"1 equals 1\00"
@.str.3 = [12 x i8] c"1 equals %d\00"
@.str.4 = [3 x i8] c"%s\00"
@.str.5 = [7 x i8] c"1 == 1\00"
@.str.6 = [11 x i8] c"1 equals 2\00"
@.str.7 = [7 x i8] c"1 == 2\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 5)
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 ([169 x i8], [169 x i8]* @.str.1, i64 0, i64 0), i32 39, 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*, i32, ...) bitcast (i32 (...)* @_gen_result to i32 (i32, i8*, i8*, i32, i8*, i32, ...)*)(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str.1, i64 0, i64 0), i32 42, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 1)
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*, i8*, ...) bitcast (i32 (...)* @_gen_result to i32 (i32, i8*, i8*, i32, i8*, i8*, ...)*)(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str.1, i64 0, i64 0), i32 45, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, 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 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @_gen_result to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str.1, i64 0, i64 0), i32 48, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
store i32 %19, i32* %6
%20 = load i32, i32* %6
%21 = 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 %20)
%22 = call i32 (i32, i8*, i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @_gen_result to i32 (i32, i8*, i8*, i32, i8*, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str.1, i64 0, i64 0), i32 51, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
store i32 %22, i32* %6
%23 = load i32, i32* %6
%24 = 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 %23)
%25 = call i32 (...) @exit_status()
ret i32 %25
}

LLVM IR (-O2):
@.str = [13 x i8] c"Returned: %d\00"
@__func__.main = [5 x i8] c"main\00"
@.str.1 = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ByteFoundryAU/monitoring-plugins/refs/heads/fedora/t/libtap-tests/ok/ok/test.c\00"
@.str.2 = [11 x i8] c"1 equals 1\00"
@.str.3 = [12 x i8] c"1 equals %d\00"
@.str.4 = [3 x i8] c"%s\00"
@.str.5 = [7 x i8] c"1 == 1\00"
@.str.6 = [11 x i8] c"1 equals 2\00"
@.str.7 = [7 x i8] c"1 == 2\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (i32, ...) bitcast (i32 (...)* @plan_tests to i32 (i32, ...)*)(i32 5)
%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 ([169 x i8], [169 x i8]* @.str.1, i64 0, i64 0), i32 39, 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*, i32, ...) bitcast (i32 (...)* @_gen_result to i32 (i32, i8*, i8*, i32, i8*, i32, ...)*)(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str.1, i64 0, i64 0), i32 42, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 1)
%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*, i8*, ...) bitcast (i32 (...)* @_gen_result to i32 (i32, i8*, i8*, i32, i8*, i8*, ...)*)(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str.1, i64 0, i64 0), i32 45, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, 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 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @_gen_result to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str.1, i64 0, i64 0), i32 48, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
%12 = 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 %11)
%13 = tail call i32 (i32, i8*, i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @_gen_result to i32 (i32, i8*, i8*, i32, i8*, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str.1, i64 0, i64 0), i32 51, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%14 = 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 %13)
%15 = tail call i32 (...) @exit_status()
ret i32 %15
}