#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*/ seatest_run_test(char *, char *);
int /*<<< orphan*/ seatest_setup();
scalar_t__ seatest_should_run(char *, char *);
int /*<<< orphan*/ seatest_suite_setup();
int /*<<< orphan*/ seatest_suite_teardown();
int /*<<< orphan*/ seatest_teardown();
int /*<<< orphan*/ seatest_test_fixture_end();
int /*<<< orphan*/ seatest_test_fixture_start(char *);
int /*<<< orphan*/ test_system_shell_exists();
void external_command_exists_tests(void) {
  do {
    seatest_test_fixture_start(
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/"
        "misc/external_command_exists.c");
  } while (0);
  do {
    if (seatest_should_run(
            "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/"
            "misc/external_command_exists.c",
            "test_system_shell_exists")) {
      seatest_suite_setup();
      seatest_setup();
      test_system_shell_exists();
      seatest_teardown();
      seatest_suite_teardown();
      seatest_run_test(
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/"
          "misc/external_command_exists.c",
          "test_system_shell_exists");
    }
  } while (0);
  do {
    seatest_test_fixture_end();
  } while (0);
}


x86 assembly (clang, -O0):
<external_command_exists_tests>:
push   %rbp
mov    %rsp,%rbp
jmp    1199 <external_command_exists_tests+0x9>
lea    0xe60(%rip),%rdi
call   10b0 <seatest_test_fixture_start@plt>
jmp    11aa <external_command_exists_tests+0x1a>
lea    0xe4f(%rip),%rdi
lea    0xee9(%rip),%rsi
call   1070 <seatest_should_run@plt>
cmp    $0x0,%rax
je     11fd <external_command_exists_tests+0x6d>
mov    $0x0,%al
call   1030 <seatest_suite_setup@plt>
mov    $0x0,%al
call   1080 <seatest_setup@plt>
mov    $0x0,%al
call   1060 <test_system_shell_exists@plt>
mov    $0x0,%al
call   10a0 <seatest_teardown@plt>
mov    $0x0,%al
call   1090 <seatest_suite_teardown@plt>
lea    0xe0f(%rip),%rdi
lea    0xea9(%rip),%rsi
call   1040 <seatest_run_test@plt>
jmp    1202 <external_command_exists_tests+0x72>
jmp    1207 <external_command_exists_tests+0x77>
mov    $0x0,%al
call   1050 <seatest_test_fixture_end@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<external_command_exists_tests>:
push   %rbx
lea    0xe68(%rip),%rbx
mov    %rbx,%rdi
call   10b0 <seatest_test_fixture_start@plt>
lea    0xefa(%rip),%rsi
mov    %rbx,%rdi
call   1070 <seatest_should_run@plt>
test   %rax,%rax
je     11ea <external_command_exists_tests+0x5a>
xor    %eax,%eax
call   1030 <seatest_suite_setup@plt>
xor    %eax,%eax
call   1080 <seatest_setup@plt>
xor    %eax,%eax
call   1060 <test_system_shell_exists@plt>
xor    %eax,%eax
call   10a0 <seatest_teardown@plt>
xor    %eax,%eax
call   1090 <seatest_suite_teardown@plt>
lea    0xe22(%rip),%rdi
lea    0xebc(%rip),%rsi
call   1040 <seatest_run_test@plt>
xor    %eax,%eax
pop    %rbx
jmp    1050 <seatest_test_fixture_end@plt>

LLVM IR (-O0):
@.str = [161 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/misc/external_command_exists.c\00"
@.str.1 = [25 x i8] c"test_system_shell_exists\00"
define void @external_command_exists_tests() {
br label %1
1: ; preds = %0
%2 = call i32 @seatest_test_fixture_start(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0))
br label %3
3: ; preds = %1
br label %4
4: ; preds = %3
%5 = call i64 @seatest_should_run(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %14
7: ; preds = %4
%8 = call i32 (...) @seatest_suite_setup()
%9 = call i32 (...) @seatest_setup()
%10 = call i32 (...) @test_system_shell_exists()
%11 = call i32 (...) @seatest_teardown()
%12 = call i32 (...) @seatest_suite_teardown()
%13 = call i32 @seatest_run_test(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
br label %14
14: ; preds = %7, %4
br label %15
15: ; preds = %14
br label %16
16: ; preds = %15
%17 = call i32 (...) @seatest_test_fixture_end()
br label %18
18: ; preds = %16
ret void
}

LLVM IR (-O2):
@.str = [161 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sshilovsky/vifm/refs/heads/master/tests/misc/external_command_exists.c\00"
@.str.1 = [25 x i8] c"test_system_shell_exists\00"
define void @external_command_exists_tests() {
%1 = tail call i32 @seatest_test_fixture_start(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0))
%2 = tail call i64 @seatest_should_run(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
br i1 %3, label %11, label %4
4: ; preds = %0
%5 = tail call i32 (...) @seatest_suite_setup()
%6 = tail call i32 (...) @seatest_setup()
%7 = tail call i32 (...) @test_system_shell_exists()
%8 = tail call i32 (...) @seatest_teardown()
%9 = tail call i32 (...) @seatest_suite_teardown()
%10 = tail call i32 @seatest_run_test(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
br label %11
11: ; preds = %4, %0
%12 = tail call i32 (...) @seatest_test_fixture_end()
ret void
}