#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_last_match_is_pre_processed();
int /*<<< orphan*/ test_set_add_path_hook_does_not_affect_non_path_functions();
int /*<<< orphan*/ test_set_add_path_hook_resets_hook();
int /*<<< orphan*/ test_set_add_path_hook_sets_hook();
void add_hook_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/"
        "completion/add_hook.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/"
            "completion/add_hook.c",
            "test_set_add_path_hook_sets_hook")) {
      seatest_suite_setup();
      seatest_setup();
      test_set_add_path_hook_sets_hook();
      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/completion/add_hook.c",
                       "test_set_add_path_hook_sets_hook");
    }
  } 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/"
            "completion/add_hook.c",
            "test_set_add_path_hook_resets_hook")) {
      seatest_suite_setup();
      seatest_setup();
      test_set_add_path_hook_resets_hook();
      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/completion/add_hook.c",
                       "test_set_add_path_hook_resets_hook");
    }
  } 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/"
            "completion/add_hook.c",
            "test_last_match_is_pre_processed")) {
      seatest_suite_setup();
      seatest_setup();
      test_last_match_is_pre_processed();
      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/completion/add_hook.c",
                       "test_last_match_is_pre_processed");
    }
  } 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/"
            "completion/add_hook.c",
            "test_set_add_path_hook_does_not_affect_non_path_functions")) {
      seatest_suite_setup();
      seatest_setup();
      test_set_add_path_hook_does_not_affect_non_path_functions();
      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/"
          "completion/add_hook.c",
          "test_set_add_path_hook_does_not_affect_non_path_functions");
    }
  } while (0);
  do {
    seatest_test_fixture_end();
  } while (0);
}


x86 assembly (clang, -O0):
<add_hook_tests>:
push   %rbp
mov    %rsp,%rbp
jmp    11c9 <add_hook_tests+0x9>
lea    0xe30(%rip),%rdi
call   10d0 <seatest_test_fixture_start@plt>
jmp    11da <add_hook_tests+0x1a>
lea    0xe1f(%rip),%rdi
lea    0xeb0(%rip),%rsi
call   1080 <seatest_should_run@plt>
cmp    $0x0,%rax
je     122d <add_hook_tests+0x6d>
mov    $0x0,%al
call   1030 <seatest_suite_setup@plt>
mov    $0x0,%al
call   1090 <seatest_setup@plt>
mov    $0x0,%al
call   10a0 <test_set_add_path_hook_sets_hook@plt>
mov    $0x0,%al
call   10c0 <seatest_teardown@plt>
mov    $0x0,%al
call   10b0 <seatest_suite_teardown@plt>
lea    0xddf(%rip),%rdi
lea    0xe70(%rip),%rsi
call   1040 <seatest_run_test@plt>
jmp    1232 <add_hook_tests+0x72>
jmp    1237 <add_hook_tests+0x77>
lea    0xdc2(%rip),%rdi
lea    0xe74(%rip),%rsi
call   1080 <seatest_should_run@plt>
cmp    $0x0,%rax
je     128a <add_hook_tests+0xca>
mov    $0x0,%al
call   1030 <seatest_suite_setup@plt>
mov    $0x0,%al
call   1090 <seatest_setup@plt>
mov    $0x0,%al
call   10e0 <test_set_add_path_hook_resets_hook@plt>
mov    $0x0,%al
call   10c0 <seatest_teardown@plt>
mov    $0x0,%al
call   10b0 <seatest_suite_teardown@plt>
lea    0xd82(%rip),%rdi
lea    0xe34(%rip),%rsi
call   1040 <seatest_run_test@plt>
jmp    128f <add_hook_tests+0xcf>
jmp    1294 <add_hook_tests+0xd4>
lea    0xd65(%rip),%rdi
lea    0xe3a(%rip),%rsi
call   1080 <seatest_should_run@plt>
cmp    $0x0,%rax
je     12e7 <add_hook_tests+0x127>
mov    $0x0,%al
call   1030 <seatest_suite_setup@plt>
mov    $0x0,%al
call   1090 <seatest_setup@plt>
mov    $0x0,%al
call   1060 <test_last_match_is_pre_processed@plt>
mov    $0x0,%al
call   10c0 <seatest_teardown@plt>
mov    $0x0,%al
call   10b0 <seatest_suite_teardown@plt>
lea    0xd25(%rip),%rdi
lea    0xdfa(%rip),%rsi
call   1040 <seatest_run_test@plt>
jmp    12ec <add_hook_tests+0x12c>
jmp    12f1 <add_hook_tests+0x131>
lea    0xd08(%rip),%rdi
lea    0xdfe(%rip),%rsi
call   1080 <seatest_should_run@plt>
cmp    $0x0,%rax
je     1344 <add_hook_tests+0x184>
mov    $0x0,%al
call   1030 <seatest_suite_setup@plt>
mov    $0x0,%al
call   1090 <seatest_setup@plt>
mov    $0x0,%al
call   1050 <test_set_add_path_hook_does_not_affect_non_path_functions@plt>
mov    $0x0,%al
call   10c0 <seatest_teardown@plt>
mov    $0x0,%al
call   10b0 <seatest_suite_teardown@plt>
lea    0xcc8(%rip),%rdi
lea    0xdbe(%rip),%rsi
call   1040 <seatest_run_test@plt>
jmp    1349 <add_hook_tests+0x189>
jmp    134e <add_hook_tests+0x18e>
mov    $0x0,%al
call   1070 <seatest_test_fixture_end@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<add_hook_tests>:
push   %rbx
lea    0xe38(%rip),%rbx
mov    %rbx,%rdi
call   10d0 <seatest_test_fixture_start@plt>
lea    0xec1(%rip),%rsi
mov    %rbx,%rdi
call   1080 <seatest_should_run@plt>
test   %rax,%rax
je     121a <add_hook_tests+0x5a>
xor    %eax,%eax
call   1030 <seatest_suite_setup@plt>
xor    %eax,%eax
call   1090 <seatest_setup@plt>
xor    %eax,%eax
call   10a0 <test_set_add_path_hook_sets_hook@plt>
xor    %eax,%eax
call   10c0 <seatest_teardown@plt>
xor    %eax,%eax
call   10b0 <seatest_suite_teardown@plt>
lea    0xdf2(%rip),%rdi
lea    0xe83(%rip),%rsi
call   1040 <seatest_run_test@plt>
lea    0xddf(%rip),%rdi
lea    0xe91(%rip),%rsi
call   1080 <seatest_should_run@plt>
test   %rax,%rax
je     1268 <add_hook_tests+0xa8>
xor    %eax,%eax
call   1030 <seatest_suite_setup@plt>
xor    %eax,%eax
call   1090 <seatest_setup@plt>
xor    %eax,%eax
call   10e0 <test_set_add_path_hook_resets_hook@plt>
xor    %eax,%eax
call   10c0 <seatest_teardown@plt>
xor    %eax,%eax
call   10b0 <seatest_suite_teardown@plt>
lea    0xda4(%rip),%rdi
lea    0xe56(%rip),%rsi
call   1040 <seatest_run_test@plt>
lea    0xd91(%rip),%rdi
lea    0xe66(%rip),%rsi
call   1080 <seatest_should_run@plt>
test   %rax,%rax
je     12b6 <add_hook_tests+0xf6>
xor    %eax,%eax
call   1030 <seatest_suite_setup@plt>
xor    %eax,%eax
call   1090 <seatest_setup@plt>
xor    %eax,%eax
call   1060 <test_last_match_is_pre_processed@plt>
xor    %eax,%eax
call   10c0 <seatest_teardown@plt>
xor    %eax,%eax
call   10b0 <seatest_suite_teardown@plt>
lea    0xd56(%rip),%rdi
lea    0xe2b(%rip),%rsi
call   1040 <seatest_run_test@plt>
lea    0xd43(%rip),%rdi
lea    0xe39(%rip),%rsi
call   1080 <seatest_should_run@plt>
test   %rax,%rax
je     1304 <add_hook_tests+0x144>
xor    %eax,%eax
call   1030 <seatest_suite_setup@plt>
xor    %eax,%eax
call   1090 <seatest_setup@plt>
xor    %eax,%eax
call   1050 <test_set_add_path_hook_does_not_affect_non_path_functions@plt>
xor    %eax,%eax
call   10c0 <seatest_teardown@plt>
xor    %eax,%eax
call   10b0 <seatest_suite_teardown@plt>
lea    0xd08(%rip),%rdi
lea    0xdfe(%rip),%rsi
call   1040 <seatest_run_test@plt>
xor    %eax,%eax
pop    %rbx
jmp    1070 <seatest_test_fixture_end@plt>

LLVM IR (-O0):
@.str = [152 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/completion/add_hook.c\00"
@.str.1 = [33 x i8] c"test_set_add_path_hook_sets_hook\00"
@.str.2 = [35 x i8] c"test_set_add_path_hook_resets_hook\00"
@.str.3 = [33 x i8] c"test_last_match_is_pre_processed\00"
@.str.4 = [58 x i8] c"test_set_add_path_hook_does_not_affect_non_path_functions\00"
define void @add_hook_tests() {
br label %1
1: ; preds = %0
%2 = call i32 @seatest_test_fixture_start(i8* getelementptr inbounds ([152 x i8], [152 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 ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 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_set_add_path_hook_sets_hook()
%11 = call i32 (...) @seatest_teardown()
%12 = call i32 (...) @seatest_suite_teardown()
%13 = call i32 @seatest_run_test(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 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 i64 @seatest_should_run(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %26
19: ; preds = %16
%20 = call i32 (...) @seatest_suite_setup()
%21 = call i32 (...) @seatest_setup()
%22 = call i32 (...) @test_set_add_path_hook_resets_hook()
%23 = call i32 (...) @seatest_teardown()
%24 = call i32 (...) @seatest_suite_teardown()
%25 = call i32 @seatest_run_test(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
br label %26
26: ; preds = %19, %16
br label %27
27: ; preds = %26
br label %28
28: ; preds = %27
%29 = call i64 @seatest_should_run(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %38
31: ; preds = %28
%32 = call i32 (...) @seatest_suite_setup()
%33 = call i32 (...) @seatest_setup()
%34 = call i32 (...) @test_last_match_is_pre_processed()
%35 = call i32 (...) @seatest_teardown()
%36 = call i32 (...) @seatest_suite_teardown()
%37 = call i32 @seatest_run_test(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
br label %38
38: ; preds = %31, %28
br label %39
39: ; preds = %38
br label %40
40: ; preds = %39
%41 = call i64 @seatest_should_run(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.4, i64 0, i64 0))
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %50
43: ; preds = %40
%44 = call i32 (...) @seatest_suite_setup()
%45 = call i32 (...) @seatest_setup()
%46 = call i32 (...) @test_set_add_path_hook_does_not_affect_non_path_functions()
%47 = call i32 (...) @seatest_teardown()
%48 = call i32 (...) @seatest_suite_teardown()
%49 = call i32 @seatest_run_test(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.4, i64 0, i64 0))
br label %50
50: ; preds = %43, %40
br label %51
51: ; preds = %50
br label %52
52: ; preds = %51
%53 = call i32 (...) @seatest_test_fixture_end()
br label %54
54: ; preds = %52
ret void
}

LLVM IR (-O2):
@.str = [152 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/completion/add_hook.c\00"
@.str.1 = [33 x i8] c"test_set_add_path_hook_sets_hook\00"
@.str.2 = [35 x i8] c"test_set_add_path_hook_resets_hook\00"
@.str.3 = [33 x i8] c"test_last_match_is_pre_processed\00"
@.str.4 = [58 x i8] c"test_set_add_path_hook_does_not_affect_non_path_functions\00"
define void @add_hook_tests() {
%1 = tail call i32 @seatest_test_fixture_start(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0))
%2 = tail call i64 @seatest_should_run(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 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_set_add_path_hook_sets_hook()
%8 = tail call i32 (...) @seatest_teardown()
%9 = tail call i32 (...) @seatest_suite_teardown()
%10 = tail call i32 @seatest_run_test(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
br label %11
11: ; preds = %4, %0
%12 = tail call i64 @seatest_should_run(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %21, label %14
14: ; preds = %11
%15 = tail call i32 (...) @seatest_suite_setup()
%16 = tail call i32 (...) @seatest_setup()
%17 = tail call i32 (...) @test_set_add_path_hook_resets_hook()
%18 = tail call i32 (...) @seatest_teardown()
%19 = tail call i32 (...) @seatest_suite_teardown()
%20 = tail call i32 @seatest_run_test(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
br label %21
21: ; preds = %14, %11
%22 = tail call i64 @seatest_should_run(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %31, label %24
24: ; preds = %21
%25 = tail call i32 (...) @seatest_suite_setup()
%26 = tail call i32 (...) @seatest_setup()
%27 = tail call i32 (...) @test_last_match_is_pre_processed()
%28 = tail call i32 (...) @seatest_teardown()
%29 = tail call i32 (...) @seatest_suite_teardown()
%30 = tail call i32 @seatest_run_test(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
br label %31
31: ; preds = %24, %21
%32 = tail call i64 @seatest_should_run(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.4, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %41, label %34
34: ; preds = %31
%35 = tail call i32 (...) @seatest_suite_setup()
%36 = tail call i32 (...) @seatest_setup()
%37 = tail call i32 (...) @test_set_add_path_hook_does_not_affect_non_path_functions()
%38 = tail call i32 (...) @seatest_teardown()
%39 = tail call i32 (...) @seatest_suite_teardown()
%40 = tail call i32 @seatest_run_test(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.4, i64 0, i64 0))
br label %41
41: ; preds = %34, %31
%42 = tail call i32 (...) @seatest_test_fixture_end()
ret void
}