#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 ctapX();
scalar_t__ ctapY();
int /*<<< orphan*/ ctapZ();
int /*<<< orphan*/ ctap_assert(int, int, char *, int, char *);
int /*<<< orphan*/ ctap_pop();
int /*<<< orphan*/ ctap_push(int, char *);
int /*<<< orphan*/ plan(int);
void ctap_tests(void) {
  plan(1);
  for (ctapX(), ctap_push(0x0001, "WIP"); ctapY(); ctap_pop(), ctapZ()) {
    ctap_assert(
        !!(1 != 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/todo.c",
        24, "won't fail the test");
  }
}


x86 assembly (clang, -O0):
<ctap_tests>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
call   1090 <plan@plt>
mov    $0x0,%al
call   1070 <ctapX@plt>
mov    $0x1,%edi
lea    0xe6f(%rip),%rsi
call   1040 <ctap_push@plt>
mov    $0x0,%al
call   1050 <ctapY@plt>
cmp    $0x0,%rax
je     11d9 <ctap_tests+0x69>
xor    %edi,%edi
mov    $0x1,%esi
lea    0xe4f(%rip),%rdx
mov    $0x18,%ecx
lea    0xec6(%rip),%r8
call   1030 <ctap_assert@plt>
mov    $0x0,%al
call   1060 <ctap_pop@plt>
mov    $0x0,%al
call   1080 <ctapZ@plt>
jmp    1196 <ctap_tests+0x26>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ctap_tests>:
push   %r14
push   %rbx
push   %rax
mov    $0x1,%edi
call   1090 <plan@plt>
xor    %eax,%eax
call   1070 <ctapX@plt>
lea    0xe74(%rip),%rsi
mov    $0x1,%edi
call   1040 <ctap_push@plt>
xor    %eax,%eax
call   1050 <ctapY@plt>
test   %rax,%rax
je     11e1 <ctap_tests+0x71>
lea    0xe5b(%rip),%r14
lea    0xed7(%rip),%rbx
xor    %edi,%edi
mov    $0x1,%esi
mov    %r14,%rdx
mov    $0x18,%ecx
mov    %rbx,%r8
call   1030 <ctap_assert@plt>
xor    %eax,%eax
call   1060 <ctap_pop@plt>
xor    %eax,%eax
call   1080 <ctapZ@plt>
xor    %eax,%eax
call   1050 <ctapY@plt>
test   %rax,%rax
jne    11b0 <ctap_tests+0x40>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [4 x i8] c"WIP\00"
@.str.1 = [131 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/todo.c\00"
@.str.2 = [20 x i8] c"won't fail the test\00"
define void @ctap_tests() {
%1 = call i32 @plan(i32 1)
%2 = call i32 (...) @ctapX()
%3 = call i32 @ctap_push(i32 1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
br label %4
4: ; preds = %9, %0
%5 = call i64 (...) @ctapY()
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %4
%8 = call i32 @ctap_assert(i32 0, i32 1, i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 24, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
br label %9
9: ; preds = %7
%10 = call i32 (...) @ctap_pop()
%11 = call i32 (...) @ctapZ()
br label %4
12: ; preds = %4
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"WIP\00"
@.str.1 = [131 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/todo.c\00"
@.str.2 = [20 x i8] c"won't fail the test\00"
define void @ctap_tests() {
%1 = tail call i32 @plan(i32 1)
%2 = tail call i32 (...) @ctapX()
%3 = tail call i32 @ctap_push(i32 1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%4 = tail call i64 (...) @ctapY()
%5 = icmp eq i64 %4, 0
br i1 %5, label %12, label %6
6: ; preds = %0, %6
%7 = tail call i32 @ctap_assert(i32 0, i32 1, i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 24, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%8 = tail call i32 (...) @ctap_pop()
%9 = tail call i32 (...) @ctapZ()
%10 = tail call i64 (...) @ctapY()
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %6
12: ; preds = %6, %0
ret void
}