#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*/ ctap_assert(int, int, char *, int, char *, int, int, int);
int /*<<< orphan*/ ctap_eq_string(char *, char *, char *, int, char *, int, int,
                                  int);
int /*<<< orphan*/ ctap_ne_string(char *, char *, char *, int, char *, int, int,
                                  int);
int /*<<< orphan*/ done_testing();
int /*<<< orphan*/ no_plan();
int /*<<< orphan*/ printf(char *);
void ctap_tests(void) {
  no_plan();
  ctap_assert(1, 0,
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/filefrog/ctap/refs/heads/master/t/"
              "printf.aux.c",
              25, "A - %d %d %d...", 1, 2, 3);
  ctap_assert(0, 1,
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/filefrog/ctap/refs/heads/master/t/"
              "printf.aux.c",
              26, "B - %d %d %d...", 1, 2, 3);
  ctap_assert(!!(1), 1,
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/filefrog/ctap/refs/heads/master/t/"
              "printf.aux.c",
              28, "C - %d %d %d...", 1, 2, 3);
  ctap_eq_string(("test"), ("test"),
                 "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                 "outputs/2022-01-22/02-19-57/repos/filefrog/ctap/refs/heads/"
                 "master/t/printf.aux.c",
                 29, "D - %d %d %d...", 1, 2, 3);
  ctap_ne_string(("test"), ("test"),
                 "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                 "outputs/2022-01-22/02-19-57/repos/filefrog/ctap/refs/heads/"
                 "master/t/printf.aux.c",
                 30, "E - %d %d %d...", 1, 2, 3);
  printf("THIS SHOULD NOT SHOW UP IN THE OUTPUT AT ALL\n");
  done_testing();
}


x86 assembly (clang, -O0):
<ctap_tests>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1070 <no_plan@plt>
mov    $0x1,%r9d
xor    %esi,%esi
lea    0xe82(%rip),%rdx
mov    $0x19,%ecx
lea    0xeff(%rip),%r8
mov    %r9d,%edi
movl   $0x2,(%rsp)
movl   $0x3,0x8(%rsp)
call   1040 <ctap_assert@plt>
xor    %edi,%edi
mov    $0x1,%r9d
lea    0xe50(%rip),%rdx
mov    $0x1a,%ecx
lea    0xedd(%rip),%r8
mov    %r9d,%esi
movl   $0x2,(%rsp)
movl   $0x3,0x8(%rsp)
call   1040 <ctap_assert@plt>
mov    $0x1,%r9d
lea    0xe20(%rip),%rdx
mov    $0x1c,%ecx
lea    0xebd(%rip),%r8
mov    %r9d,%edi
mov    %r9d,%esi
movl   $0x2,(%rsp)
movl   $0x3,0x8(%rsp)
call   1040 <ctap_assert@plt>
lea    0xeac(%rip),%rsi
lea    0xdec(%rip),%rdx
mov    $0x1d,%ecx
lea    0xe9e(%rip),%r8
mov    $0x1,%r9d
mov    %rsi,%rdi
movl   $0x2,(%rsp)
movl   $0x3,0x8(%rsp)
call   1030 <ctap_eq_string@plt>
lea    0xe75(%rip),%rsi
lea    0xdb5(%rip),%rdx
mov    $0x1e,%ecx
lea    0xe77(%rip),%r8
mov    $0x1,%r9d
mov    %rsi,%rdi
movl   $0x2,(%rsp)
movl   $0x3,0x8(%rsp)
call   1080 <ctap_ne_string@plt>
lea    0xe63(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <done_testing@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ctap_tests>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1070 <no_plan@plt>
lea    0xe8e(%rip),%r14
lea    0xf10(%rip),%r8
mov    $0x1,%edi
xor    %esi,%esi
mov    %r14,%rdx
mov    $0x19,%ecx
mov    $0x1,%r9d
push   $0x3
push   $0x2
call   1040 <ctap_assert@plt>
add    $0x10,%rsp
lea    0xef7(%rip),%r8
xor    %edi,%edi
mov    $0x1,%esi
mov    %r14,%rdx
mov    $0x1a,%ecx
mov    $0x1,%r9d
push   $0x3
push   $0x2
call   1040 <ctap_assert@plt>
add    $0x10,%rsp
lea    0xede(%rip),%r8
mov    $0x1,%edi
mov    $0x1,%esi
mov    %r14,%rdx
mov    $0x1c,%ecx
mov    $0x1,%r9d
push   $0x3
push   $0x2
call   1040 <ctap_assert@plt>
add    $0x10,%rsp
lea    0xec2(%rip),%rbx
lea    0xec0(%rip),%r8
mov    %rbx,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x1d,%ecx
mov    $0x1,%r9d
push   $0x3
push   $0x2
call   1030 <ctap_eq_string@plt>
add    $0x10,%rsp
lea    0xea8(%rip),%r8
mov    %rbx,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x1e,%ecx
mov    $0x1,%r9d
push   $0x3
push   $0x2
call   1080 <ctap_ne_string@plt>
add    $0x10,%rsp
lea    0xe90(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1060 <done_testing@plt>

LLVM IR (-O0):
@.str = [137 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/filefrog/ctap/refs/heads/master/t/printf.aux.c\00"
@.str.1 = [16 x i8] c"A - %d %d %d...\00"
@.str.2 = [16 x i8] c"B - %d %d %d...\00"
@.str.3 = [16 x i8] c"C - %d %d %d...\00"
@.str.4 = [5 x i8] c"test\00"
@.str.5 = [16 x i8] c"D - %d %d %d...\00"
@.str.6 = [16 x i8] c"E - %d %d %d...\00"
@.str.7 = [46 x i8] c"THIS SHOULD NOT SHOW UP IN THE OUTPUT AT ALL\0A\00"
define void @ctap_tests() {
%1 = call i32 (...) @no_plan()
%2 = call i32 @ctap_assert(i32 1, i32 0, i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str, i64 0, i64 0), i32 25, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 1, i32 2, i32 3)
%3 = call i32 @ctap_assert(i32 0, i32 1, i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str, i64 0, i64 0), i32 26, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 1, i32 2, i32 3)
%4 = call i32 @ctap_assert(i32 1, i32 1, i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str, i64 0, i64 0), i32 28, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 1, i32 2, i32 3)
%5 = call i32 @ctap_eq_string(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str, i64 0, i64 0), i32 29, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 1, i32 2, i32 3)
%6 = call i32 @ctap_ne_string(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str, i64 0, i64 0), i32 30, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i32 1, i32 2, i32 3)
%7 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.7, i64 0, i64 0))
%8 = call i32 (...) @done_testing()
ret void
}

LLVM IR (-O2):
@.str = [137 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/filefrog/ctap/refs/heads/master/t/printf.aux.c\00"
@.str.1 = [16 x i8] c"A - %d %d %d...\00"
@.str.2 = [16 x i8] c"B - %d %d %d...\00"
@.str.3 = [16 x i8] c"C - %d %d %d...\00"
@.str.4 = [5 x i8] c"test\00"
@.str.5 = [16 x i8] c"D - %d %d %d...\00"
@.str.6 = [16 x i8] c"E - %d %d %d...\00"
@str = [45 x i8] c"THIS SHOULD NOT SHOW UP IN THE OUTPUT AT ALL\00"
define void @ctap_tests() {
%1 = tail call i32 (...) @no_plan()
%2 = tail call i32 @ctap_assert(i32 1, i32 0, i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str, i64 0, i64 0), i32 25, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 1, i32 2, i32 3)
%3 = tail call i32 @ctap_assert(i32 0, i32 1, i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str, i64 0, i64 0), i32 26, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 1, i32 2, i32 3)
%4 = tail call i32 @ctap_assert(i32 1, i32 1, i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str, i64 0, i64 0), i32 28, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 1, i32 2, i32 3)
%5 = tail call i32 @ctap_eq_string(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str, i64 0, i64 0), i32 29, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 1, i32 2, i32 3)
%6 = tail call i32 @ctap_ne_string(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str, i64 0, i64 0), i32 30, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i32 1, i32 2, i32 3)
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str, i64 0, i64 0))
%8 = tail call i32 (...) @done_testing()
ret void
}