#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_empty_path_ok();
int /*<<< orphan*/ test_no_slashes_ok();
int /*<<< orphan*/ test_one_element_ok();
int /*<<< orphan*/ test_path_does_not_end_with_slash_ok();
int /*<<< orphan*/ test_path_ends_with_multiple_slashes_ok();
int /*<<< orphan*/ test_path_ends_with_slash_ok();
int /*<<< orphan*/ test_path_has_separators_of_multiple_slashes_ok();
int /*<<< orphan*/ test_root_ok();
void get_last_path_component_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/get_last_path_component.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/get_last_path_component.c",
            "test_empty_path_ok")) {
      seatest_suite_setup();
      seatest_setup();
      test_empty_path_ok();
      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/get_last_path_component.c",
          "test_empty_path_ok");
    }
  } 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/get_last_path_component.c",
            "test_no_slashes_ok")) {
      seatest_suite_setup();
      seatest_setup();
      test_no_slashes_ok();
      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/get_last_path_component.c",
          "test_no_slashes_ok");
    }
  } 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/get_last_path_component.c",
            "test_path_does_not_end_with_slash_ok")) {
      seatest_suite_setup();
      seatest_setup();
      test_path_does_not_end_with_slash_ok();
      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/get_last_path_component.c",
          "test_path_does_not_end_with_slash_ok");
    }
  } 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/get_last_path_component.c",
            "test_path_ends_with_slash_ok")) {
      seatest_suite_setup();
      seatest_setup();
      test_path_ends_with_slash_ok();
      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/get_last_path_component.c",
          "test_path_ends_with_slash_ok");
    }
  } 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/get_last_path_component.c",
            "test_path_ends_with_multiple_slashes_ok")) {
      seatest_suite_setup();
      seatest_setup();
      test_path_ends_with_multiple_slashes_ok();
      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/get_last_path_component.c",
          "test_path_ends_with_multiple_slashes_ok");
    }
  } 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/get_last_path_component.c",
            "test_path_has_separators_of_multiple_slashes_ok")) {
      seatest_suite_setup();
      seatest_setup();
      test_path_has_separators_of_multiple_slashes_ok();
      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/get_last_path_component.c",
          "test_path_has_separators_of_multiple_slashes_ok");
    }
  } 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/get_last_path_component.c",
            "test_one_element_ok")) {
      seatest_suite_setup();
      seatest_setup();
      test_one_element_ok();
      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/get_last_path_component.c",
          "test_one_element_ok");
    }
  } 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/get_last_path_component.c",
            "test_root_ok")) {
      seatest_suite_setup();
      seatest_setup();
      test_root_ok();
      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/get_last_path_component.c",
          "test_root_ok");
    }
  } while (0);
  do {
    seatest_test_fixture_end();
  } while (0);
}


x86 assembly (clang, -O0):
<get_last_path_component_tests>:
push   %rbp
mov    %rsp,%rbp
jmp    1209 <get_last_path_component_tests+0x9>
lea    0xdf0(%rip),%rdi
call   1120 <seatest_test_fixture_start@plt>
jmp    121a <get_last_path_component_tests+0x1a>
lea    0xddf(%rip),%rdi
lea    0xe79(%rip),%rsi
call   10b0 <seatest_should_run@plt>
cmp    $0x0,%rax
je     126d <get_last_path_component_tests+0x6d>
mov    $0x0,%al
call   1030 <seatest_suite_setup@plt>
mov    $0x0,%al
call   10c0 <seatest_setup@plt>
mov    $0x0,%al
call   1040 <test_empty_path_ok@plt>
mov    $0x0,%al
call   1100 <seatest_teardown@plt>
mov    $0x0,%al
call   10f0 <seatest_suite_teardown@plt>
lea    0xd9f(%rip),%rdi
lea    0xe39(%rip),%rsi
call   1050 <seatest_run_test@plt>
jmp    1272 <get_last_path_component_tests+0x72>
jmp    1277 <get_last_path_component_tests+0x77>
lea    0xd82(%rip),%rdi
lea    0xe2f(%rip),%rsi
call   10b0 <seatest_should_run@plt>
cmp    $0x0,%rax
je     12ca <get_last_path_component_tests+0xca>
mov    $0x0,%al
call   1030 <seatest_suite_setup@plt>
mov    $0x0,%al
call   10c0 <seatest_setup@plt>
mov    $0x0,%al
call   1110 <test_no_slashes_ok@plt>
mov    $0x0,%al
call   1100 <seatest_teardown@plt>
mov    $0x0,%al
call   10f0 <seatest_suite_teardown@plt>
lea    0xd42(%rip),%rdi
lea    0xdef(%rip),%rsi
call   1050 <seatest_run_test@plt>
jmp    12cf <get_last_path_component_tests+0xcf>
jmp    12d4 <get_last_path_component_tests+0xd4>
lea    0xd25(%rip),%rdi
lea    0xde5(%rip),%rsi
call   10b0 <seatest_should_run@plt>
cmp    $0x0,%rax
je     1327 <get_last_path_component_tests+0x127>
mov    $0x0,%al
call   1030 <seatest_suite_setup@plt>
mov    $0x0,%al
call   10c0 <seatest_setup@plt>
mov    $0x0,%al
call   1080 <test_path_does_not_end_with_slash_ok@plt>
mov    $0x0,%al
call   1100 <seatest_teardown@plt>
mov    $0x0,%al
call   10f0 <seatest_suite_teardown@plt>
lea    0xce5(%rip),%rdi
lea    0xda5(%rip),%rsi
call   1050 <seatest_run_test@plt>
jmp    132c <get_last_path_component_tests+0x12c>
jmp    1331 <get_last_path_component_tests+0x131>
lea    0xcc8(%rip),%rdi
lea    0xdad(%rip),%rsi
call   10b0 <seatest_should_run@plt>
cmp    $0x0,%rax
je     1384 <get_last_path_component_tests+0x184>
mov    $0x0,%al
call   1030 <seatest_suite_setup@plt>
mov    $0x0,%al
call   10c0 <seatest_setup@plt>
mov    $0x0,%al
call   1060 <test_path_ends_with_slash_ok@plt>
mov    $0x0,%al
call   1100 <seatest_teardown@plt>
mov    $0x0,%al
call   10f0 <seatest_suite_teardown@plt>
lea    0xc88(%rip),%rdi
lea    0xd6d(%rip),%rsi
call   1050 <seatest_run_test@plt>
jmp    1389 <get_last_path_component_tests+0x189>
jmp    138e <get_last_path_component_tests+0x18e>
lea    0xc6b(%rip),%rdi
lea    0xd6d(%rip),%rsi
call   10b0 <seatest_should_run@plt>
cmp    $0x0,%rax
je     13e1 <get_last_path_component_tests+0x1e1>
mov    $0x0,%al
call   1030 <seatest_suite_setup@plt>
mov    $0x0,%al
call   10c0 <seatest_setup@plt>
mov    $0x0,%al
call   1090 <test_path_ends_with_multiple_slashes_ok@plt>
mov    $0x0,%al
call   1100 <seatest_teardown@plt>
mov    $0x0,%al
call   10f0 <seatest_suite_teardown@plt>
lea    0xc2b(%rip),%rdi
lea    0xd2d(%rip),%rsi
call   1050 <seatest_run_test@plt>
jmp    13e6 <get_last_path_component_tests+0x1e6>
jmp    13eb <get_last_path_component_tests+0x1eb>
lea    0xc0e(%rip),%rdi
lea    0xd38(%rip),%rsi
call   10b0 <seatest_should_run@plt>
cmp    $0x0,%rax
je     143e <get_last_path_component_tests+0x23e>
mov    $0x0,%al
call   1030 <seatest_suite_setup@plt>
mov    $0x0,%al
call   10c0 <seatest_setup@plt>
mov    $0x0,%al
call   10d0 <test_path_has_separators_of_multiple_slashes_ok@plt>
mov    $0x0,%al
call   1100 <seatest_teardown@plt>
mov    $0x0,%al
call   10f0 <seatest_suite_teardown@plt>
lea    0xbce(%rip),%rdi
lea    0xcf8(%rip),%rsi
call   1050 <seatest_run_test@plt>
jmp    1443 <get_last_path_component_tests+0x243>
jmp    1448 <get_last_path_component_tests+0x248>
lea    0xbb1(%rip),%rdi
lea    0xd0b(%rip),%rsi
call   10b0 <seatest_should_run@plt>
cmp    $0x0,%rax
je     149b <get_last_path_component_tests+0x29b>
mov    $0x0,%al
call   1030 <seatest_suite_setup@plt>
mov    $0x0,%al
call   10c0 <seatest_setup@plt>
mov    $0x0,%al
call   1070 <test_one_element_ok@plt>
mov    $0x0,%al
call   1100 <seatest_teardown@plt>
mov    $0x0,%al
call   10f0 <seatest_suite_teardown@plt>
lea    0xb71(%rip),%rdi
lea    0xccb(%rip),%rsi
call   1050 <seatest_run_test@plt>
jmp    14a0 <get_last_path_component_tests+0x2a0>
jmp    14a5 <get_last_path_component_tests+0x2a5>
lea    0xb54(%rip),%rdi
lea    0xcc2(%rip),%rsi
call   10b0 <seatest_should_run@plt>
cmp    $0x0,%rax
je     14f8 <get_last_path_component_tests+0x2f8>
mov    $0x0,%al
call   1030 <seatest_suite_setup@plt>
mov    $0x0,%al
call   10c0 <seatest_setup@plt>
mov    $0x0,%al
call   10e0 <test_root_ok@plt>
mov    $0x0,%al
call   1100 <seatest_teardown@plt>
mov    $0x0,%al
call   10f0 <seatest_suite_teardown@plt>
lea    0xb14(%rip),%rdi
lea    0xc82(%rip),%rsi
call   1050 <seatest_run_test@plt>
jmp    14fd <get_last_path_component_tests+0x2fd>
jmp    1502 <get_last_path_component_tests+0x302>
mov    $0x0,%al
call   10a0 <seatest_test_fixture_end@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_last_path_component_tests>:
push   %rbx
lea    0xdf8(%rip),%rbx
mov    %rbx,%rdi
call   1120 <seatest_test_fixture_start@plt>
lea    0xe8a(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <seatest_should_run@plt>
test   %rax,%rax
je     125a <get_last_path_component_tests+0x5a>
xor    %eax,%eax
call   1030 <seatest_suite_setup@plt>
xor    %eax,%eax
call   10c0 <seatest_setup@plt>
xor    %eax,%eax
call   1040 <test_empty_path_ok@plt>
xor    %eax,%eax
call   1100 <seatest_teardown@plt>
xor    %eax,%eax
call   10f0 <seatest_suite_teardown@plt>
lea    0xdb2(%rip),%rdi
lea    0xe4c(%rip),%rsi
call   1050 <seatest_run_test@plt>
lea    0xd9f(%rip),%rdi
lea    0xe4c(%rip),%rsi
call   10b0 <seatest_should_run@plt>
test   %rax,%rax
je     12a8 <get_last_path_component_tests+0xa8>
xor    %eax,%eax
call   1030 <seatest_suite_setup@plt>
xor    %eax,%eax
call   10c0 <seatest_setup@plt>
xor    %eax,%eax
call   1110 <test_no_slashes_ok@plt>
xor    %eax,%eax
call   1100 <seatest_teardown@plt>
xor    %eax,%eax
call   10f0 <seatest_suite_teardown@plt>
lea    0xd64(%rip),%rdi
lea    0xe11(%rip),%rsi
call   1050 <seatest_run_test@plt>
lea    0xd51(%rip),%rdi
lea    0xe11(%rip),%rsi
call   10b0 <seatest_should_run@plt>
test   %rax,%rax
je     12f6 <get_last_path_component_tests+0xf6>
xor    %eax,%eax
call   1030 <seatest_suite_setup@plt>
xor    %eax,%eax
call   10c0 <seatest_setup@plt>
xor    %eax,%eax
call   1080 <test_path_does_not_end_with_slash_ok@plt>
xor    %eax,%eax
call   1100 <seatest_teardown@plt>
xor    %eax,%eax
call   10f0 <seatest_suite_teardown@plt>
lea    0xd16(%rip),%rdi
lea    0xdd6(%rip),%rsi
call   1050 <seatest_run_test@plt>
lea    0xd03(%rip),%rdi
lea    0xde8(%rip),%rsi
call   10b0 <seatest_should_run@plt>
test   %rax,%rax
je     1344 <get_last_path_component_tests+0x144>
xor    %eax,%eax
call   1030 <seatest_suite_setup@plt>
xor    %eax,%eax
call   10c0 <seatest_setup@plt>
xor    %eax,%eax
call   1060 <test_path_ends_with_slash_ok@plt>
xor    %eax,%eax
call   1100 <seatest_teardown@plt>
xor    %eax,%eax
call   10f0 <seatest_suite_teardown@plt>
lea    0xcc8(%rip),%rdi
lea    0xdad(%rip),%rsi
call   1050 <seatest_run_test@plt>
lea    0xcb5(%rip),%rdi
lea    0xdb7(%rip),%rsi
call   10b0 <seatest_should_run@plt>
test   %rax,%rax
je     1392 <get_last_path_component_tests+0x192>
xor    %eax,%eax
call   1030 <seatest_suite_setup@plt>
xor    %eax,%eax
call   10c0 <seatest_setup@plt>
xor    %eax,%eax
call   1090 <test_path_ends_with_multiple_slashes_ok@plt>
xor    %eax,%eax
call   1100 <seatest_teardown@plt>
xor    %eax,%eax
call   10f0 <seatest_suite_teardown@plt>
lea    0xc7a(%rip),%rdi
lea    0xd7c(%rip),%rsi
call   1050 <seatest_run_test@plt>
lea    0xc67(%rip),%rdi
lea    0xd91(%rip),%rsi
call   10b0 <seatest_should_run@plt>
test   %rax,%rax
je     13e0 <get_last_path_component_tests+0x1e0>
xor    %eax,%eax
call   1030 <seatest_suite_setup@plt>
xor    %eax,%eax
call   10c0 <seatest_setup@plt>
xor    %eax,%eax
call   10d0 <test_path_has_separators_of_multiple_slashes_ok@plt>
xor    %eax,%eax
call   1100 <seatest_teardown@plt>
xor    %eax,%eax
call   10f0 <seatest_suite_teardown@plt>
lea    0xc2c(%rip),%rdi
lea    0xd56(%rip),%rsi
call   1050 <seatest_run_test@plt>
lea    0xc19(%rip),%rdi
lea    0xd73(%rip),%rsi
call   10b0 <seatest_should_run@plt>
test   %rax,%rax
je     142e <get_last_path_component_tests+0x22e>
xor    %eax,%eax
call   1030 <seatest_suite_setup@plt>
xor    %eax,%eax
call   10c0 <seatest_setup@plt>
xor    %eax,%eax
call   1070 <test_one_element_ok@plt>
xor    %eax,%eax
call   1100 <seatest_teardown@plt>
xor    %eax,%eax
call   10f0 <seatest_suite_teardown@plt>
lea    0xbde(%rip),%rdi
lea    0xd38(%rip),%rsi
call   1050 <seatest_run_test@plt>
lea    0xbcb(%rip),%rdi
lea    0xd39(%rip),%rsi
call   10b0 <seatest_should_run@plt>
test   %rax,%rax
je     147c <get_last_path_component_tests+0x27c>
xor    %eax,%eax
call   1030 <seatest_suite_setup@plt>
xor    %eax,%eax
call   10c0 <seatest_setup@plt>
xor    %eax,%eax
call   10e0 <test_root_ok@plt>
xor    %eax,%eax
call   1100 <seatest_teardown@plt>
xor    %eax,%eax
call   10f0 <seatest_suite_teardown@plt>
lea    0xb90(%rip),%rdi
lea    0xcfe(%rip),%rsi
call   1050 <seatest_run_test@plt>
xor    %eax,%eax
pop    %rbx
jmp    10a0 <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/get_last_path_component.c\00"
@.str.1 = [19 x i8] c"test_empty_path_ok\00"
@.str.2 = [19 x i8] c"test_no_slashes_ok\00"
@.str.3 = [37 x i8] c"test_path_does_not_end_with_slash_ok\00"
@.str.4 = [29 x i8] c"test_path_ends_with_slash_ok\00"
@.str.5 = [40 x i8] c"test_path_ends_with_multiple_slashes_ok\00"
@.str.6 = [48 x i8] c"test_path_has_separators_of_multiple_slashes_ok\00"
@.str.7 = [20 x i8] c"test_one_element_ok\00"
@.str.8 = [13 x i8] c"test_root_ok\00"
define void @get_last_path_component_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 ([19 x i8], [19 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_empty_path_ok()
%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 ([19 x i8], [19 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 ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 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_no_slashes_ok()
%23 = call i32 (...) @seatest_teardown()
%24 = call i32 (...) @seatest_suite_teardown()
%25 = call i32 @seatest_run_test(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 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 ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 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_path_does_not_end_with_slash_ok()
%35 = call i32 (...) @seatest_teardown()
%36 = call i32 (...) @seatest_suite_teardown()
%37 = call i32 @seatest_run_test(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 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 ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 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_path_ends_with_slash_ok()
%47 = call i32 (...) @seatest_teardown()
%48 = call i32 (...) @seatest_suite_teardown()
%49 = call i32 @seatest_run_test(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 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 i64 @seatest_should_run(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0))
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %62
55: ; preds = %52
%56 = call i32 (...) @seatest_suite_setup()
%57 = call i32 (...) @seatest_setup()
%58 = call i32 (...) @test_path_ends_with_multiple_slashes_ok()
%59 = call i32 (...) @seatest_teardown()
%60 = call i32 (...) @seatest_suite_teardown()
%61 = call i32 @seatest_run_test(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0))
br label %62
62: ; preds = %55, %52
br label %63
63: ; preds = %62
br label %64
64: ; preds = %63
%65 = call i64 @seatest_should_run(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0))
%66 = icmp ne i64 %65, 0
br i1 %66, label %67, label %74
67: ; preds = %64
%68 = call i32 (...) @seatest_suite_setup()
%69 = call i32 (...) @seatest_setup()
%70 = call i32 (...) @test_path_has_separators_of_multiple_slashes_ok()
%71 = call i32 (...) @seatest_teardown()
%72 = call i32 (...) @seatest_suite_teardown()
%73 = call i32 @seatest_run_test(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0))
br label %74
74: ; preds = %67, %64
br label %75
75: ; preds = %74
br label %76
76: ; preds = %75
%77 = call i64 @seatest_should_run(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%78 = icmp ne i64 %77, 0
br i1 %78, label %79, label %86
79: ; preds = %76
%80 = call i32 (...) @seatest_suite_setup()
%81 = call i32 (...) @seatest_setup()
%82 = call i32 (...) @test_one_element_ok()
%83 = call i32 (...) @seatest_teardown()
%84 = call i32 (...) @seatest_suite_teardown()
%85 = call i32 @seatest_run_test(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
br label %86
86: ; preds = %79, %76
br label %87
87: ; preds = %86
br label %88
88: ; preds = %87
%89 = call i64 @seatest_should_run(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0))
%90 = icmp ne i64 %89, 0
br i1 %90, label %91, label %98
91: ; preds = %88
%92 = call i32 (...) @seatest_suite_setup()
%93 = call i32 (...) @seatest_setup()
%94 = call i32 (...) @test_root_ok()
%95 = call i32 (...) @seatest_teardown()
%96 = call i32 (...) @seatest_suite_teardown()
%97 = call i32 @seatest_run_test(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0))
br label %98
98: ; preds = %91, %88
br label %99
99: ; preds = %98
br label %100
100: ; preds = %99
%101 = call i32 (...) @seatest_test_fixture_end()
br label %102
102: ; preds = %100
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/get_last_path_component.c\00"
@.str.1 = [19 x i8] c"test_empty_path_ok\00"
@.str.2 = [19 x i8] c"test_no_slashes_ok\00"
@.str.3 = [37 x i8] c"test_path_does_not_end_with_slash_ok\00"
@.str.4 = [29 x i8] c"test_path_ends_with_slash_ok\00"
@.str.5 = [40 x i8] c"test_path_ends_with_multiple_slashes_ok\00"
@.str.6 = [48 x i8] c"test_path_has_separators_of_multiple_slashes_ok\00"
@.str.7 = [20 x i8] c"test_one_element_ok\00"
@.str.8 = [13 x i8] c"test_root_ok\00"
define void @get_last_path_component_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 ([19 x i8], [19 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_empty_path_ok()
%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 ([19 x i8], [19 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 ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 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_no_slashes_ok()
%18 = tail call i32 (...) @seatest_teardown()
%19 = tail call i32 (...) @seatest_suite_teardown()
%20 = tail call i32 @seatest_run_test(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 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 ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 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_path_does_not_end_with_slash_ok()
%28 = tail call i32 (...) @seatest_teardown()
%29 = tail call i32 (...) @seatest_suite_teardown()
%30 = tail call i32 @seatest_run_test(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 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 ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 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_path_ends_with_slash_ok()
%38 = tail call i32 (...) @seatest_teardown()
%39 = tail call i32 (...) @seatest_suite_teardown()
%40 = tail call i32 @seatest_run_test(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
br label %41
41: ; preds = %34, %31
%42 = tail call i64 @seatest_should_run(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0))
%43 = icmp eq i64 %42, 0
br i1 %43, label %51, label %44
44: ; preds = %41
%45 = tail call i32 (...) @seatest_suite_setup()
%46 = tail call i32 (...) @seatest_setup()
%47 = tail call i32 (...) @test_path_ends_with_multiple_slashes_ok()
%48 = tail call i32 (...) @seatest_teardown()
%49 = tail call i32 (...) @seatest_suite_teardown()
%50 = tail call i32 @seatest_run_test(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0))
br label %51
51: ; preds = %44, %41
%52 = tail call i64 @seatest_should_run(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %61, label %54
54: ; preds = %51
%55 = tail call i32 (...) @seatest_suite_setup()
%56 = tail call i32 (...) @seatest_setup()
%57 = tail call i32 (...) @test_path_has_separators_of_multiple_slashes_ok()
%58 = tail call i32 (...) @seatest_teardown()
%59 = tail call i32 (...) @seatest_suite_teardown()
%60 = tail call i32 @seatest_run_test(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0))
br label %61
61: ; preds = %54, %51
%62 = tail call i64 @seatest_should_run(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %71, label %64
64: ; preds = %61
%65 = tail call i32 (...) @seatest_suite_setup()
%66 = tail call i32 (...) @seatest_setup()
%67 = tail call i32 (...) @test_one_element_ok()
%68 = tail call i32 (...) @seatest_teardown()
%69 = tail call i32 (...) @seatest_suite_teardown()
%70 = tail call i32 @seatest_run_test(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
br label %71
71: ; preds = %64, %61
%72 = tail call i64 @seatest_should_run(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0))
%73 = icmp eq i64 %72, 0
br i1 %73, label %81, label %74
74: ; preds = %71
%75 = tail call i32 (...) @seatest_suite_setup()
%76 = tail call i32 (...) @seatest_setup()
%77 = tail call i32 (...) @test_root_ok()
%78 = tail call i32 (...) @seatest_teardown()
%79 = tail call i32 (...) @seatest_suite_teardown()
%80 = tail call i32 @seatest_run_test(i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0))
br label %81
81: ; preds = %74, %71
%82 = tail call i32 (...) @seatest_test_fixture_end()
ret void
}