int main(int argc, char *argv[]) {
  unsigned int rc = 0;
  rc = plan_tests(4);
  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/"
                          "ByteFoundryAU/monitoring-plugins/refs/heads/fedora/"
                          "t/libtap-tests/ok/ok-hash/test.c",
                          39, "Test with no hash")
            : _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-hash/test.c",
                          39, "Test with no hash"));
  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/"
                          "ByteFoundryAU/monitoring-plugins/refs/heads/fedora/"
                          "t/libtap-tests/ok/ok-hash/test.c",
                          42, "Test with one # hash")
            : _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-hash/test.c",
                          42, "Test with one # hash"));
  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/"
                          "ByteFoundryAU/monitoring-plugins/refs/heads/fedora/"
                          "t/libtap-tests/ok/ok-hash/test.c",
                          45, "Test with # two # hashes")
            : _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-hash/test.c",
                          45, "Test with # two # hashes"));
  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/"
                          "ByteFoundryAU/monitoring-plugins/refs/heads/fedora/"
                          "t/libtap-tests/ok/ok-hash/test.c",
                          48, "Test with ## back to back hashes")
            : _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-hash/test.c",
                          48, "Test with ## back to back hashes"));
  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    $0x4,%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    0xf24(%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    $0x2a,%ecx
lea    0xefc(%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    $0x2d,%ecx
lea    0xed7(%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    $0x1,%edi
lea    0xdd6(%rip),%rsi
lea    0xdd4(%rip),%rdx
mov    $0x30,%ecx
lea    0xeb6(%rip),%r8
mov    $0x0,%al
call   1050 <_gen_result@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xda2(%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    $0x4,%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    0xf47(%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    0xf2f(%rip),%r8
mov    $0x1,%edi
mov    %r14,%rsi
mov    %r15,%rdx
mov    $0x2a,%ecx
xor    %eax,%eax
call   1050 <_gen_result@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <diag@plt>
lea    0xf1a(%rip),%r8
mov    $0x1,%edi
mov    %r14,%rsi
mov    %r15,%rdx
mov    $0x2d,%ecx
xor    %eax,%eax
call   1050 <_gen_result@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <diag@plt>
lea    0xf09(%rip),%r8
mov    $0x1,%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>
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 = [174 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-hash/test.c\00"
@.str.2 = [18 x i8] c"Test with no hash\00"
@.str.3 = [21 x i8] c"Test with one # hash\00"
@.str.4 = [25 x i8] c"Test with # two # hashes\00"
@.str.5 = [33 x i8] c"Test with ## back to back hashes\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 4)
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 ([174 x i8], [174 x i8]* @.str.1, i64 0, i64 0), i32 39, i8* getelementptr inbounds ([18 x i8], [18 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 ([174 x i8], [174 x i8]* @.str.1, i64 0, i64 0), i32 42, i8* getelementptr inbounds ([21 x i8], [21 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 ([174 x i8], [174 x i8]* @.str.1, i64 0, i64 0), i32 45, i8* getelementptr inbounds ([25 x i8], [25 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 (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 ([174 x i8], [174 x i8]* @.str.1, i64 0, i64 0), i32 48, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, 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 (...) @exit_status()
ret i32 %22
}

LLVM IR (-O2):
@.str = [13 x i8] c"Returned: %d\00"
@__func__.main = [5 x i8] c"main\00"
@.str.1 = [174 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-hash/test.c\00"
@.str.2 = [18 x i8] c"Test with no hash\00"
@.str.3 = [21 x i8] c"Test with one # hash\00"
@.str.4 = [25 x i8] c"Test with # two # hashes\00"
@.str.5 = [33 x i8] c"Test with ## back to back hashes\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (i32, ...) bitcast (i32 (...)* @plan_tests to i32 (i32, ...)*)(i32 4)
%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 ([174 x i8], [174 x i8]* @.str.1, i64 0, i64 0), i32 39, i8* getelementptr inbounds ([18 x i8], [18 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 ([174 x i8], [174 x i8]* @.str.1, i64 0, i64 0), i32 42, i8* getelementptr inbounds ([21 x i8], [21 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 ([174 x i8], [174 x i8]* @.str.1, i64 0, i64 0), i32 45, i8* getelementptr inbounds ([25 x i8], [25 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 (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 ([174 x i8], [174 x i8]* @.str.1, i64 0, i64 0), i32 48, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, 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 (...) @exit_status()
ret i32 %13
}