#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ _tap_is_float(char *, int, double, double, double, char *,
                                 ...);
int /*<<< orphan*/ _tap_is_int(char *, int, int, int, char *, ...);
int /*<<< orphan*/ _tap_is_str(char *, int, char *, char *, char *, ...);
int /*<<< orphan*/ _tap_ok(char *, int, int, char *, ...);
int /*<<< orphan*/ tap_bail(char *, ...);
int /*<<< orphan*/ tap_diag(char *, ...);
int /*<<< orphan*/ tap_done_testing();
int /*<<< orphan*/ tap_plan(int);
int /*<<< orphan*/ tap_skip(int, char *, ...);
int /*<<< orphan*/ tap_skip_all(char *, ...);
void test(void) {
  tap_plan(0);
  tap_plan(1);
  tap_plan(2);
  tap_skip_all(NULL);
  tap_skip_all("foo %s", "bar");
  tap_skip(0, NULL);
  tap_skip(1, "foo %s", "bar");
  tap_skip(2, NULL);
  tap_diag("foo");
  tap_diag("foo %s", "bar");
  tap_bail(NULL);
  tap_bail("foo %s", "bar");
  _tap_ok("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/andrewgregory/pacutils/refs/heads/master/"
          "ext/globdir.c/ext/tap.c/t/10-basic.c",
          29, 0, NULL);
  _tap_ok("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/andrewgregory/pacutils/refs/heads/master/"
          "ext/globdir.c/ext/tap.c/t/10-basic.c",
          30, 1, NULL);
  _tap_ok("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/andrewgregory/pacutils/refs/heads/master/"
          "ext/globdir.c/ext/tap.c/t/10-basic.c",
          31, 0, "%s", "foo");
  _tap_ok("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/andrewgregory/pacutils/refs/heads/master/"
          "ext/globdir.c/ext/tap.c/t/10-basic.c",
          32, 1, "%s", "foo");
  _tap_is_str("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/andrewgregory/pacutils/refs/heads/"
              "master/ext/globdir.c/ext/tap.c/t/10-basic.c",
              34, "foo", "foo", NULL);
  _tap_is_str("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/andrewgregory/pacutils/refs/heads/"
              "master/ext/globdir.c/ext/tap.c/t/10-basic.c",
              35, "foo", "bar", NULL);
  _tap_is_str("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/andrewgregory/pacutils/refs/heads/"
              "master/ext/globdir.c/ext/tap.c/t/10-basic.c",
              36, "foo", "foo", "foo %s", "bar");
  _tap_is_str("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/andrewgregory/pacutils/refs/heads/"
              "master/ext/globdir.c/ext/tap.c/t/10-basic.c",
              37, "foo", "bar", "foo %s", "bar");
  _tap_is_str("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/andrewgregory/pacutils/refs/heads/"
              "master/ext/globdir.c/ext/tap.c/t/10-basic.c",
              38, NULL, NULL, NULL);
  _tap_is_str("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/andrewgregory/pacutils/refs/heads/"
              "master/ext/globdir.c/ext/tap.c/t/10-basic.c",
              39, NULL, "bar", NULL);
  _tap_is_int("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/andrewgregory/pacutils/refs/heads/"
              "master/ext/globdir.c/ext/tap.c/t/10-basic.c",
              41, 1, 1, NULL);
  _tap_is_int("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/andrewgregory/pacutils/refs/heads/"
              "master/ext/globdir.c/ext/tap.c/t/10-basic.c",
              42, 1, 0, NULL);
  _tap_is_int("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/andrewgregory/pacutils/refs/heads/"
              "master/ext/globdir.c/ext/tap.c/t/10-basic.c",
              43, 1, 1, "foo %s", "bar");
  _tap_is_int("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/andrewgregory/pacutils/refs/heads/"
              "master/ext/globdir.c/ext/tap.c/t/10-basic.c",
              44, 1, 0, "foo %s", "bar");
  _tap_is_float("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/andrewgregory/pacutils/refs/"
                "heads/master/ext/globdir.c/ext/tap.c/t/10-basic.c",
                46, 1.0, 1.0, 0.1, NULL);
  _tap_is_float("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/andrewgregory/pacutils/refs/"
                "heads/master/ext/globdir.c/ext/tap.c/t/10-basic.c",
                47, 1.0, 2.0, 0.1, NULL);
  _tap_is_float("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/andrewgregory/pacutils/refs/"
                "heads/master/ext/globdir.c/ext/tap.c/t/10-basic.c",
                48, 1.0, 1.0, 0.1, "foo %s", "bar");
  _tap_is_float("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/andrewgregory/pacutils/refs/"
                "heads/master/ext/globdir.c/ext/tap.c/t/10-basic.c",
                49, 1.0, 2.0, 0.1, "foo %s", "bar");
  tap_done_testing();
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1060 <tap_plan@plt>
mov    $0x1,%edi
call   1060 <tap_plan@plt>
mov    $0x2,%edi
call   1060 <tap_plan@plt>
xor    %eax,%eax
mov    %eax,%edi
mov    $0x0,%al
call   10a0 <tap_skip_all@plt>
lea    0xe47(%rip),%rdi
lea    0xe47(%rip),%rsi
mov    $0x0,%al
call   10a0 <tap_skip_all@plt>
xor    %edi,%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0x0,%al
call   10b0 <tap_skip@plt>
mov    $0x1,%edi
lea    0xe20(%rip),%rsi
lea    0xe20(%rip),%rdx
mov    $0x0,%al
call   10b0 <tap_skip@plt>
mov    $0x2,%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0x0,%al
call   10b0 <tap_skip@plt>
lea    0xe06(%rip),%rdi
mov    $0x0,%al
call   1070 <tap_diag@plt>
lea    0xded(%rip),%rdi
lea    0xded(%rip),%rsi
mov    $0x0,%al
call   1070 <tap_diag@plt>
xor    %eax,%eax
mov    %eax,%edi
mov    $0x0,%al
call   10c0 <tap_bail@plt>
lea    0xdcd(%rip),%rdi
lea    0xdcd(%rip),%rsi
mov    $0x0,%al
call   10c0 <tap_bail@plt>
lea    0xdc7(%rip),%rdi
mov    $0x1d,%esi
xor    %edx,%edx
xor    %eax,%eax
mov    %eax,%ecx
mov    $0x0,%al
call   1090 <_tap_ok@plt>
lea    0xdae(%rip),%rdi
mov    $0x1e,%esi
mov    $0x1,%edx
xor    %eax,%eax
mov    %eax,%ecx
mov    $0x0,%al
call   1090 <_tap_ok@plt>
lea    0xd92(%rip),%rdi
mov    $0x1f,%esi
xor    %edx,%edx
lea    0xd79(%rip),%rcx
lea    0xd79(%rip),%r8
mov    $0x0,%al
call   1090 <_tap_ok@plt>
lea    0xd6f(%rip),%rdi
mov    $0x20,%esi
mov    $0x1,%edx
lea    0xd53(%rip),%rcx
lea    0xd53(%rip),%r8
mov    $0x0,%al
call   1090 <_tap_ok@plt>
lea    0xd49(%rip),%rdi
mov    $0x22,%esi
lea    0xd39(%rip),%rcx
xor    %eax,%eax
mov    %eax,%r8d
mov    %rcx,%rdx
mov    $0x0,%al
call   1080 <_tap_is_str@plt>
lea    0xd27(%rip),%rdi
mov    $0x23,%esi
lea    0xd17(%rip),%rdx
lea    0xd0c(%rip),%rcx
xor    %eax,%eax
mov    %eax,%r8d
mov    $0x0,%al
call   1080 <_tap_is_str@plt>
lea    0xd01(%rip),%rdi
mov    $0x24,%esi
lea    0xcf1(%rip),%rcx
lea    0xcdf(%rip),%r8
lea    0xcdf(%rip),%r9
mov    %rcx,%rdx
mov    $0x0,%al
call   1080 <_tap_is_str@plt>
lea    0xcd6(%rip),%rdi
mov    $0x25,%esi
lea    0xcc6(%rip),%rdx
lea    0xcbb(%rip),%r9
lea    0xcad(%rip),%r8
mov    %r9,%rcx
mov    $0x0,%al
call   1080 <_tap_is_str@plt>
lea    0xcab(%rip),%rdi
mov    $0x26,%esi
xor    %eax,%eax
mov    %eax,%r8d
mov    %r8,%rdx
mov    %r8,%rcx
mov    $0x0,%al
call   1080 <_tap_is_str@plt>
lea    0xc8d(%rip),%rdi
mov    $0x27,%esi
xor    %eax,%eax
mov    %eax,%r8d
lea    0xc74(%rip),%rcx
mov    %r8,%rdx
mov    $0x0,%al
call   1080 <_tap_is_str@plt>
lea    0xc6b(%rip),%rdi
mov    $0x29,%esi
mov    $0x1,%ecx
xor    %eax,%eax
mov    %eax,%r8d
mov    %ecx,%edx
mov    $0x0,%al
call   1050 <_tap_is_int@plt>
lea    0xc4c(%rip),%rdi
mov    $0x2a,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
xor    %eax,%eax
mov    %eax,%r8d
mov    $0x0,%al
call   1050 <_tap_is_int@plt>
lea    0xc2d(%rip),%rdi
mov    $0x2b,%esi
mov    $0x1,%ecx
lea    0xc0d(%rip),%r8
lea    0xc0d(%rip),%r9
mov    %ecx,%edx
mov    $0x0,%al
call   1050 <_tap_is_int@plt>
lea    0xc05(%rip),%rdi
mov    $0x2c,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
lea    0xbe3(%rip),%r8
lea    0xbe3(%rip),%r9
mov    $0x0,%al
call   1050 <_tap_is_int@plt>
lea    0xbdd(%rip),%rdi
mov    $0x2e,%esi
movsd  0xba9(%rip),%xmm1
movsd  0xbb1(%rip),%xmm2
xor    %eax,%eax
mov    %eax,%edx
movaps %xmm1,%xmm0
mov    $0x3,%al
call   1030 <_tap_is_float@plt>
lea    0xbb3(%rip),%rdi
mov    $0x2f,%esi
movsd  0xb7f(%rip),%xmm0
movsd  0xb7f(%rip),%xmm1
movsd  0xb7f(%rip),%xmm2
xor    %eax,%eax
mov    %eax,%edx
mov    $0x3,%al
call   1030 <_tap_is_float@plt>
lea    0xb84(%rip),%rdi
mov    $0x30,%esi
movsd  0xb50(%rip),%xmm1
movsd  0xb58(%rip),%xmm2
lea    0xb59(%rip),%rdx
lea    0xb59(%rip),%rcx
movaps %xmm1,%xmm0
mov    $0x3,%al
call   1030 <_tap_is_float@plt>
lea    0xb50(%rip),%rdi
mov    $0x31,%esi
movsd  0xb1c(%rip),%xmm0
movsd  0xb1c(%rip),%xmm1
movsd  0xb1c(%rip),%xmm2
lea    0xb1d(%rip),%rdx
lea    0xb1d(%rip),%rcx
mov    $0x3,%al
call   1030 <_tap_is_float@plt>
mov    $0x0,%al
call   1040 <tap_done_testing@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
xor    %edi,%edi
call   1060 <tap_plan@plt>
mov    $0x1,%edi
call   1060 <tap_plan@plt>
mov    $0x2,%edi
call   1060 <tap_plan@plt>
xor    %edi,%edi
xor    %eax,%eax
call   10a0 <tap_skip_all@plt>
lea    0xe44(%rip),%r14
lea    0xe44(%rip),%r15
mov    %r14,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   10a0 <tap_skip_all@plt>
xor    %edi,%edi
xor    %esi,%esi
xor    %eax,%eax
call   10b0 <tap_skip@plt>
mov    $0x1,%edi
mov    %r14,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   10b0 <tap_skip@plt>
mov    $0x2,%edi
xor    %esi,%esi
xor    %eax,%eax
call   10b0 <tap_skip@plt>
lea    0xe09(%rip),%r12
mov    %r12,%rdi
xor    %eax,%eax
call   1070 <tap_diag@plt>
mov    %r14,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1070 <tap_diag@plt>
xor    %edi,%edi
xor    %eax,%eax
call   10c0 <tap_bail@plt>
mov    %r14,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   10c0 <tap_bail@plt>
lea    0xdd9(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1d,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1090 <_tap_ok@plt>
mov    %rbx,%rdi
mov    $0x1e,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1090 <_tap_ok@plt>
lea    0xd9e(%rip),%r13
mov    %rbx,%rdi
mov    $0x1f,%esi
xor    %edx,%edx
mov    %r13,%rcx
mov    %r12,%r8
xor    %eax,%eax
call   1090 <_tap_ok@plt>
mov    %rbx,%rdi
mov    $0x20,%esi
mov    $0x1,%edx
mov    %r13,%rcx
mov    %r12,%r8
xor    %eax,%eax
call   1090 <_tap_ok@plt>
mov    %rbx,%rdi
mov    $0x22,%esi
mov    %r12,%rdx
mov    %r12,%rcx
xor    %r8d,%r8d
xor    %eax,%eax
call   1080 <_tap_is_str@plt>
mov    %rbx,%rdi
mov    $0x23,%esi
mov    %r12,%rdx
mov    %r15,%rcx
xor    %r8d,%r8d
xor    %eax,%eax
call   1080 <_tap_is_str@plt>
mov    %rbx,%rdi
mov    $0x24,%esi
mov    %r12,%rdx
mov    %r12,%rcx
mov    %r14,%r8
mov    %r15,%r9
xor    %eax,%eax
call   1080 <_tap_is_str@plt>
mov    %rbx,%rdi
mov    $0x25,%esi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r8
mov    %r15,%r9
xor    %eax,%eax
call   1080 <_tap_is_str@plt>
mov    %rbx,%rdi
mov    $0x26,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1080 <_tap_is_str@plt>
mov    %rbx,%rdi
mov    $0x27,%esi
xor    %edx,%edx
mov    %r15,%rcx
xor    %r8d,%r8d
xor    %eax,%eax
call   1080 <_tap_is_str@plt>
mov    %rbx,%rdi
mov    $0x29,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1050 <_tap_is_int@plt>
mov    %rbx,%rdi
mov    $0x2a,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1050 <_tap_is_int@plt>
mov    %rbx,%rdi
mov    $0x2b,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
mov    %r14,%r8
mov    %r15,%r9
xor    %eax,%eax
call   1050 <_tap_is_int@plt>
mov    %rbx,%rdi
mov    $0x2c,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
mov    %r14,%r8
mov    %r15,%r9
xor    %eax,%eax
call   1050 <_tap_is_int@plt>
movsd  0xc46(%rip),%xmm0
movsd  0xc46(%rip),%xmm2
mov    %rbx,%rdi
mov    $0x2e,%esi
movaps %xmm0,%xmm1
xor    %edx,%edx
mov    $0x3,%al
call   1030 <_tap_is_float@plt>
movsd  0xc32(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2f,%esi
movsd  0xc12(%rip),%xmm0
movsd  0xc12(%rip),%xmm2
xor    %edx,%edx
mov    $0x3,%al
call   1030 <_tap_is_float@plt>
mov    %rbx,%rdi
mov    $0x30,%esi
movsd  0xbf1(%rip),%xmm0
movaps %xmm0,%xmm1
movsd  0xbee(%rip),%xmm2
mov    %r14,%rdx
mov    %r15,%rcx
mov    $0x3,%al
call   1030 <_tap_is_float@plt>
mov    %rbx,%rdi
mov    $0x31,%esi
movsd  0xbc9(%rip),%xmm0
movsd  0xbd1(%rip),%xmm1
movsd  0xbc1(%rip),%xmm2
mov    %r14,%rdx
mov    %r15,%rcx
mov    $0x3,%al
call   1030 <_tap_is_float@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
jmp    1040 <tap_done_testing@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"foo %s\00"
@.str.1 = [4 x i8] c"bar\00"
@.str.2 = [4 x i8] c"foo\00"
@.str.3 = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/andrewgregory/pacutils/refs/heads/master/ext/globdir.c/ext/tap.c/t/10-basic.c\00"
@.str.4 = [3 x i8] c"%s\00"
define void @test() {
%1 = call i32 @tap_plan(i32 0)
%2 = call i32 @tap_plan(i32 1)
%3 = call i32 @tap_plan(i32 2)
%4 = call i32 (i8*, ...) @tap_skip_all(i8* null)
%5 = call i32 (i8*, ...) @tap_skip_all(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i32, i8*, ...) @tap_skip(i32 0, i8* null)
%7 = call i32 (i32, i8*, ...) @tap_skip(i32 1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 (i32, i8*, ...) @tap_skip(i32 2, i8* null)
%9 = call i32 (i8*, ...) @tap_diag(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 (i8*, ...) @tap_diag(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 (i8*, ...) @tap_bail(i8* null)
%12 = call i32 (i8*, ...) @tap_bail(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%13 = call i32 (i8*, i32, i32, i8*, ...) @_tap_ok(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 29, i32 0, i8* null)
%14 = call i32 (i8*, i32, i32, i8*, ...) @_tap_ok(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 30, i32 1, i8* null)
%15 = call i32 (i8*, i32, i32, i8*, ...) @_tap_ok(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 31, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%16 = call i32 (i8*, i32, i32, i8*, ...) @_tap_ok(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 32, i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%17 = call i32 (i8*, i32, i8*, i8*, i8*, ...) @_tap_is_str(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 34, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* null)
%18 = call i32 (i8*, i32, i8*, i8*, i8*, ...) @_tap_is_str(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 35, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* null)
%19 = call i32 (i8*, i32, i8*, i8*, i8*, ...) @_tap_is_str(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 36, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%20 = call i32 (i8*, i32, i8*, i8*, i8*, ...) @_tap_is_str(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 37, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%21 = call i32 (i8*, i32, i8*, i8*, i8*, ...) @_tap_is_str(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 38, i8* null, i8* null, i8* null)
%22 = call i32 (i8*, i32, i8*, i8*, i8*, ...) @_tap_is_str(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 39, i8* null, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* null)
%23 = call i32 (i8*, i32, i32, i32, i8*, ...) @_tap_is_int(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 41, i32 1, i32 1, i8* null)
%24 = call i32 (i8*, i32, i32, i32, i8*, ...) @_tap_is_int(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 42, i32 1, i32 0, i8* null)
%25 = call i32 (i8*, i32, i32, i32, i8*, ...) @_tap_is_int(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 43, i32 1, i32 1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%26 = call i32 (i8*, i32, i32, i32, i8*, ...) @_tap_is_int(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 44, i32 1, i32 0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%27 = call i32 (i8*, i32, double, double, double, i8*, ...) @_tap_is_float(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 46, double 1.000000e+00, double 1.000000e+00, double 1.000000e-01, i8* null)
%28 = call i32 (i8*, i32, double, double, double, i8*, ...) @_tap_is_float(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 47, double 1.000000e+00, double 2.000000e+00, double 1.000000e-01, i8* null)
%29 = call i32 (i8*, i32, double, double, double, i8*, ...) @_tap_is_float(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 48, double 1.000000e+00, double 1.000000e+00, double 1.000000e-01, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%30 = call i32 (i8*, i32, double, double, double, i8*, ...) @_tap_is_float(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 49, double 1.000000e+00, double 2.000000e+00, double 1.000000e-01, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%31 = call i32 (...) @tap_done_testing()
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"foo %s\00"
@.str.1 = [4 x i8] c"bar\00"
@.str.2 = [4 x i8] c"foo\00"
@.str.3 = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/andrewgregory/pacutils/refs/heads/master/ext/globdir.c/ext/tap.c/t/10-basic.c\00"
@.str.4 = [3 x i8] c"%s\00"
define void @test() {
%1 = tail call i32 @tap_plan(i32 0)
%2 = tail call i32 @tap_plan(i32 1)
%3 = tail call i32 @tap_plan(i32 2)
%4 = tail call i32 (i8*, ...) @tap_skip_all(i8* null)
%5 = tail call i32 (i8*, ...) @tap_skip_all(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 (i32, i8*, ...) @tap_skip(i32 0, i8* null)
%7 = tail call i32 (i32, i8*, ...) @tap_skip(i32 1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%8 = tail call i32 (i32, i8*, ...) @tap_skip(i32 2, i8* null)
%9 = tail call i32 (i8*, ...) @tap_diag(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @tap_diag(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%11 = tail call i32 (i8*, ...) @tap_bail(i8* null)
%12 = tail call i32 (i8*, ...) @tap_bail(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%13 = tail call i32 (i8*, i32, i32, i8*, ...) @_tap_ok(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 29, i32 0, i8* null)
%14 = tail call i32 (i8*, i32, i32, i8*, ...) @_tap_ok(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 30, i32 1, i8* null)
%15 = tail call i32 (i8*, i32, i32, i8*, ...) @_tap_ok(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 31, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%16 = tail call i32 (i8*, i32, i32, i8*, ...) @_tap_ok(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 32, i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%17 = tail call i32 (i8*, i32, i8*, i8*, i8*, ...) @_tap_is_str(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 34, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* null)
%18 = tail call i32 (i8*, i32, i8*, i8*, i8*, ...) @_tap_is_str(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 35, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* null)
%19 = tail call i32 (i8*, i32, i8*, i8*, i8*, ...) @_tap_is_str(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 36, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%20 = tail call i32 (i8*, i32, i8*, i8*, i8*, ...) @_tap_is_str(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 37, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%21 = tail call i32 (i8*, i32, i8*, i8*, i8*, ...) @_tap_is_str(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 38, i8* null, i8* null, i8* null)
%22 = tail call i32 (i8*, i32, i8*, i8*, i8*, ...) @_tap_is_str(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 39, i8* null, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* null)
%23 = tail call i32 (i8*, i32, i32, i32, i8*, ...) @_tap_is_int(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 41, i32 1, i32 1, i8* null)
%24 = tail call i32 (i8*, i32, i32, i32, i8*, ...) @_tap_is_int(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 42, i32 1, i32 0, i8* null)
%25 = tail call i32 (i8*, i32, i32, i32, i8*, ...) @_tap_is_int(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 43, i32 1, i32 1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%26 = tail call i32 (i8*, i32, i32, i32, i8*, ...) @_tap_is_int(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 44, i32 1, i32 0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%27 = tail call i32 (i8*, i32, double, double, double, i8*, ...) @_tap_is_float(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 46, double 1.000000e+00, double 1.000000e+00, double 1.000000e-01, i8* null)
%28 = tail call i32 (i8*, i32, double, double, double, i8*, ...) @_tap_is_float(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 47, double 1.000000e+00, double 2.000000e+00, double 1.000000e-01, i8* null)
%29 = tail call i32 (i8*, i32, double, double, double, i8*, ...) @_tap_is_float(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 48, double 1.000000e+00, double 1.000000e+00, double 1.000000e-01, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%30 = tail call i32 (i8*, i32, double, double, double, i8*, ...) @_tap_is_float(i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.3, i64 0, i64 0), i32 49, double 1.000000e+00, double 2.000000e+00, double 1.000000e-01, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%31 = tail call i32 (...) @tap_done_testing()
ret void
}