int main(int argc, char *argv[]) {
  unsigned int rc = 0;
  unsigned int side_effect = 0;
  rc = plan_tests(4);
  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/AlphaStaxLLC/nagioscore/"
                  "refs/heads/en-3.5.1/NagiosCore/tap/tests/skip/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/AlphaStaxLLC/nagioscore/"
                  "refs/heads/en-3.5.1/NagiosCore/tap/tests/skip/test.c",
                  39, "1 equals 1"));
  diag("Returned: %d", rc);
  do {
    if (1) {
      rc = skip(1, "Testing skipping");
      continue;
    }
    side_effect++;
    ((side_effect == 1)
         ? _gen_result(
               1, __func__,
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/AlphaStaxLLC/nagioscore/refs/"
               "heads/en-3.5.1/NagiosCore/tap/tests/skip/test.c",
               50, "side_effect checked out")
         : _gen_result(
               0, __func__,
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/AlphaStaxLLC/nagioscore/refs/"
               "heads/en-3.5.1/NagiosCore/tap/tests/skip/test.c",
               50, "side_effect checked out"));
  } while (0);
  diag("Returned: %d", rc);
  do {
    if ((1 == 1)) {
      skip(1, "Testing skipping #2");
      continue;
    };
    side_effect++;
    rc = ((side_effect == 1)
              ? _gen_result(
                    1, __func__,
                    "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                    "outputs/2022-01-22/02-19-57/repos/AlphaStaxLLC/nagioscore/"
                    "refs/heads/en-3.5.1/NagiosCore/tap/tests/skip/test.c",
                    60, "side_effect checked out")
              : _gen_result(
                    0, __func__,
                    "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                    "outputs/2022-01-22/02-19-57/repos/AlphaStaxLLC/nagioscore/"
                    "refs/heads/en-3.5.1/NagiosCore/tap/tests/skip/test.c",
                    60, "side_effect checked out"));
    diag("Returned: %d", rc);
  } while (0);
  ;
  rc = ((side_effect == 0)
            ? _gen_result(
                  1, __func__,
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/AlphaStaxLLC/nagioscore/"
                  "refs/heads/en-3.5.1/NagiosCore/tap/tests/skip/test.c",
                  65, "side_effect is %d", side_effect)
            : _gen_result(
                  0, __func__,
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/AlphaStaxLLC/nagioscore/"
                  "refs/heads/en-3.5.1/NagiosCore/tap/tests/skip/test.c",
                  65, "side_effect is %d", side_effect));
  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)
movl   $0x0,-0x18(%rbp)
mov    $0x4,%edi
mov    $0x0,%al
call   1070 <plan_tests@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xe73(%rip),%rdi
mov    $0x0,%al
call   1050 <diag@plt>
mov    $0x1,%edi
lea    0xe6d(%rip),%rsi
lea    0xe6b(%rip),%rdx
mov    $0x27,%ecx
lea    0xf06(%rip),%r8
mov    $0x0,%al
call   1060 <_gen_result@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xe39(%rip),%rdi
mov    $0x0,%al
call   1050 <diag@plt>
mov    $0x1,%edi
lea    0xeea(%rip),%rsi
mov    $0x0,%al
call   1030 <skip@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1050 <diag@plt>
mov    $0x1,%edi
lea    0xed4(%rip),%rsi
mov    $0x0,%al
call   1030 <skip@plt>
cmpl   $0x0,-0x18(%rbp)
jne    1244 <main+0xf4>
mov    -0x18(%rbp),%r9d
mov    $0x1,%edi
lea    0xdeb(%rip),%rsi
lea    0xde9(%rip),%rdx
mov    $0x41,%ecx
lea    0xeb4(%rip),%r8
mov    $0x0,%al
call   1060 <_gen_result@plt>
mov    %eax,-0x1c(%rbp)
jmp    126e <main+0x11e>
mov    -0x18(%rbp),%r9d
xor    %edi,%edi
lea    0xdbc(%rip),%rsi
lea    0xdba(%rip),%rdx
mov    $0x41,%ecx
lea    0xe85(%rip),%r8
mov    $0x0,%al
call   1060 <_gen_result@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xd82(%rip),%rdi
mov    $0x0,%al
call   1050 <diag@plt>
mov    $0x0,%al
call   1040 <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   1070 <plan_tests@plt>
lea    0xe98(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <diag@plt>
lea    0xe92(%rip),%r14
lea    0xe90(%rip),%r15
lea    0xf30(%rip),%r8
mov    $0x1,%edi
mov    %r14,%rsi
mov    %r15,%rdx
mov    $0x27,%ecx
xor    %eax,%eax
call   1060 <_gen_result@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <diag@plt>
lea    0xf11(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <skip@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <diag@plt>
lea    0xf03(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <skip@plt>
lea    0xf04(%rip),%r8
mov    $0x1,%edi
mov    %r14,%rsi
mov    %r15,%rdx
mov    $0x41,%ecx
xor    %r9d,%r9d
xor    %eax,%eax
call   1060 <_gen_result@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <diag@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <exit_status@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"Returned: %d\00"
@__func__.main = [5 x i8] c"main\00"
@.str.1 = [167 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AlphaStaxLLC/nagioscore/refs/heads/en-3.5.1/NagiosCore/tap/tests/skip/test.c\00"
@.str.2 = [11 x i8] c"1 equals 1\00"
@.str.3 = [17 x i8] c"Testing skipping\00"
@.str.4 = [20 x i8] c"Testing skipping\00"
@.str.5 = [18 x i8] c"side_effect is %d\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 0, i32* %7
%8 = call i32 (i32, ...) bitcast (i32 (...)* @plan_tests to i32 (i32, ...)*)(i32 4)
store i32 %8, i32* %6
%9 = load i32, i32* %6
%10 = 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 = 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 ([167 x i8], [167 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 %11, i32* %6
%12 = load i32, i32* %6
%13 = 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 %12)
br label %14
14: ; preds = %2
%15 = call i32 (i32, i8*, ...) bitcast (i32 (...)* @skip to i32 (i32, i8*, ...)*)(i32 1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
store i32 %15, i32* %6
br label %16
16: ; preds = %14
%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)
br label %19
19: ; preds = %16
%20 = call i32 (i32, i8*, ...) bitcast (i32 (...)* @skip to i32 (i32, i8*, ...)*)(i32 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
br label %21
21: ; preds = %19
%22 = load i32, i32* %7
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = load i32, i32* %7
%26 = 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 ([167 x i8], [167 x i8]* @.str.1, i64 0, i64 0), i32 65, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i32 %25)
br label %30
27: ; preds = %21
%28 = load i32, i32* %7
%29 = call i32 (i32, i8*, i8*, i32, i8*, i32, ...) bitcast (i32 (...)* @_gen_result to i32 (i32, i8*, i8*, i32, i8*, i32, ...)*)(i32 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i8* getelementptr inbounds ([167 x i8], [167 x i8]* @.str.1, i64 0, i64 0), i32 65, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i32 %28)
br label %30
30: ; preds = %27, %24
%31 = phi i32 [ %26, %24 ], [ %29, %27 ]
store i32 %31, i32* %6
%32 = load i32, i32* %6
%33 = 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 %32)
%34 = call i32 (...) @exit_status()
ret i32 %34
}

LLVM IR (-O2):
@.str = [13 x i8] c"Returned: %d\00"
@__func__.main = [5 x i8] c"main\00"
@.str.1 = [167 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AlphaStaxLLC/nagioscore/refs/heads/en-3.5.1/NagiosCore/tap/tests/skip/test.c\00"
@.str.2 = [11 x i8] c"1 equals 1\00"
@.str.3 = [17 x i8] c"Testing skipping\00"
@.str.4 = [20 x i8] c"Testing skipping\00"
@.str.5 = [18 x i8] c"side_effect is %d\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 ([167 x i8], [167 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*, ...) bitcast (i32 (...)* @skip to i32 (i32, i8*, ...)*)(i32 1, i8* getelementptr inbounds ([17 x i8], [17 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*, ...) bitcast (i32 (...)* @skip to i32 (i32, i8*, ...)*)(i32 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%10 = 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 ([167 x i8], [167 x i8]* @.str.1, i64 0, i64 0), i32 65, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i32 0)
%11 = 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 %10)
%12 = tail call i32 (...) @exit_status()
ret i32 %12
}