void test_basename() {
  int i;
  char data[11][2][64] = {{"", "."},
                          {"/", "/"},
                          {"///", "/"},
                          {".", "."},
                          {"..", ".."},
                          {"../../rel1", "rel1"},
                          {"./rel2", "rel2"},
                          {"justsomestring", "justsomestring"},
                          {"/usr/src/", "src"},
                          {"/usr/src///", "src"},
                          {"/usr/src/linux-2.6.30-r5/drivers", "drivers"}};
  for (i = 0; i < 11; i++)
    __assert_str(
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/pnx/archived/refs/heads/next/test/t_path.c",
        94, __FUNCTION__, basename_s(data[i][0]), data[i][1]);
}


x86 assembly (clang, -O0):
<test_basename>:
push   %rbp
mov    %rsp,%rbp
sub    $0x590,%rsp
lea    -0x590(%rbp),%rdi
lea    0xeb7(%rip),%rsi
mov    $0x580,%edx
call   1030 <memcpy@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0xb,-0x4(%rbp)
jge    11bd <test_basename+0x8d>
movslq -0x4(%rbp),%rax
lea    -0x590(%rbp),%rdi
shl    $0x7,%rax
add    %rax,%rdi
mov    $0x0,%al
call   1050 <basename_s@plt>
mov    %eax,%ecx
movslq -0x4(%rbp),%rax
lea    -0x590(%rbp),%r8
shl    $0x7,%rax
add    %rax,%r8
add    $0x40,%r8
lea    0x13e4(%rip),%rdi
mov    $0x5e,%esi
lea    0x145d(%rip),%rdx
mov    $0x0,%al
call   1040 <__assert_str@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    115a <test_basename+0x2a>
add    $0x590,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_basename>:
push   %r14
push   %rbx
sub    $0x588,%rsp
lea    0xebf(%rip),%rsi
mov    %rsp,%rbx
mov    $0x580,%edx
mov    %rbx,%rdi
call   1030 <memcpy@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <basename_s@plt>
lea    0x40(%rsp),%r8
lea    0x1419(%rip),%rbx
lea    0x1497(%rip),%r14
mov    %rbx,%rdi
mov    $0x5e,%esi
mov    %r14,%rdx
mov    %eax,%ecx
xor    %eax,%eax
call   1040 <__assert_str@plt>
lea    0x80(%rsp),%rdi
xor    %eax,%eax
call   1050 <basename_s@plt>
lea    0xc0(%rsp),%r8
mov    %rbx,%rdi
mov    $0x5e,%esi
mov    %r14,%rdx
mov    %eax,%ecx
xor    %eax,%eax
call   1040 <__assert_str@plt>
lea    0x100(%rsp),%rdi
xor    %eax,%eax
call   1050 <basename_s@plt>
lea    0x140(%rsp),%r8
mov    %rbx,%rdi
mov    $0x5e,%esi
mov    %r14,%rdx
mov    %eax,%ecx
xor    %eax,%eax
call   1040 <__assert_str@plt>
lea    0x180(%rsp),%rdi
xor    %eax,%eax
call   1050 <basename_s@plt>
lea    0x1c0(%rsp),%r8
mov    %rbx,%rdi
mov    $0x5e,%esi
mov    %r14,%rdx
mov    %eax,%ecx
xor    %eax,%eax
call   1040 <__assert_str@plt>
lea    0x200(%rsp),%rdi
xor    %eax,%eax
call   1050 <basename_s@plt>
lea    0x240(%rsp),%r8
mov    %rbx,%rdi
mov    $0x5e,%esi
mov    %r14,%rdx
mov    %eax,%ecx
xor    %eax,%eax
call   1040 <__assert_str@plt>
lea    0x280(%rsp),%rdi
xor    %eax,%eax
call   1050 <basename_s@plt>
lea    0x2c0(%rsp),%r8
mov    %rbx,%rdi
mov    $0x5e,%esi
mov    %r14,%rdx
mov    %eax,%ecx
xor    %eax,%eax
call   1040 <__assert_str@plt>
lea    0x300(%rsp),%rdi
xor    %eax,%eax
call   1050 <basename_s@plt>
lea    0x340(%rsp),%r8
mov    %rbx,%rdi
mov    $0x5e,%esi
mov    %r14,%rdx
mov    %eax,%ecx
xor    %eax,%eax
call   1040 <__assert_str@plt>
lea    0x380(%rsp),%rdi
xor    %eax,%eax
call   1050 <basename_s@plt>
lea    0x3c0(%rsp),%r8
mov    %rbx,%rdi
mov    $0x5e,%esi
mov    %r14,%rdx
mov    %eax,%ecx
xor    %eax,%eax
call   1040 <__assert_str@plt>
lea    0x400(%rsp),%rdi
xor    %eax,%eax
call   1050 <basename_s@plt>
lea    0x440(%rsp),%r8
mov    %rbx,%rdi
mov    $0x5e,%esi
mov    %r14,%rdx
mov    %eax,%ecx
xor    %eax,%eax
call   1040 <__assert_str@plt>
lea    0x480(%rsp),%rdi
xor    %eax,%eax
call   1050 <basename_s@plt>
lea    0x4c0(%rsp),%r8
mov    %rbx,%rdi
mov    $0x5e,%esi
mov    %r14,%rdx
mov    %eax,%ecx
xor    %eax,%eax
call   1040 <__assert_str@plt>
lea    0x500(%rsp),%rdi
xor    %eax,%eax
call   1050 <basename_s@plt>
lea    0x540(%rsp),%r8
mov    %rbx,%rdi
mov    $0x5e,%esi
mov    %r14,%rdx
mov    %eax,%ecx
xor    %eax,%eax
call   1040 <__assert_str@plt>
add    $0x588,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.test_basename.data = [11 x [2 x [64 x i8]]] [[2 x [64 x i8]] [[64 x i8] zeroinitializer, [64 x i8] c".\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"], [2 x [64 x i8]] [[64 x i8] c"/\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [64 x i8] c"/\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"], [2 x [64 x i8]] [[64 x i8] c"///\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [64 x i8] c"/\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"], [2 x [64 x i8]] [[64 x i8] c".\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [64 x i8] c".\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"], [2 x [64 x i8]] [[64 x i8] c"..\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [64 x i8] c"..\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"], [2 x [64 x i8]] [[64 x i8] c"../../rel1\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [64 x i8] c"rel1\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"], [2 x [64 x i8]] [[64 x i8] c"./rel2\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [64 x i8] c"rel2\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"], [2 x [64 x i8]] [[64 x i8] c"justsomestring\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [64 x i8] c"justsomestring\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"], [2 x [64 x i8]] [[64 x i8] c"/usr/src/\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [64 x i8] c"src\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"], [2 x [64 x i8]] [[64 x i8] c"/usr/src///\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [64 x i8] c"src\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"], [2 x [64 x i8]] [[64 x i8] c"/usr/src/linux-2.6.30-r5/drivers\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [64 x i8] c"drivers\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"]]
@.str = [133 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/pnx/archived/refs/heads/next/test/t_path.c\00"
@__FUNCTION__.test_basename = [14 x i8] c"test_basename\00"
define void @test_basename() {
%1 = alloca i32
%2 = alloca [11 x [2 x [64 x i8]]]
%3 = bitcast [11 x [2 x [64 x i8]]]* %2 to i8*
store i32 0, i32* %1
br label %4
4: ; preds = %20, %0
%5 = load i32, i32* %1
%6 = icmp slt i32 %5, 11
br i1 %6, label %7, label %23
7: ; preds = %4
%8 = load i32, i32* %1
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %2, i64 0, i64 %9
%11 = getelementptr inbounds [2 x [64 x i8]], [2 x [64 x i8]]* %10, i64 0, i64 0
%12 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%13 = call i32 (i8*, ...) bitcast (i32 (...)* @basename_s to i32 (i8*, ...)*)(i8* %12)
%14 = load i32, i32* %1
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %2, i64 0, i64 %15
%17 = getelementptr inbounds [2 x [64 x i8]], [2 x [64 x i8]]* %16, i64 0, i64 1
%18 = getelementptr inbounds [64 x i8], [64 x i8]* %17, i64 0, i64 0
%19 = call i32 (i8*, i32, i8*, i32, i8*, ...) bitcast (i32 (...)* @__assert_str to i32 (i8*, i32, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 94, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__FUNCTION__.test_basename, i64 0, i64 0), i32 %13, i8* %18)
br label %20
20: ; preds = %7
%21 = load i32, i32* %1
%22 = add nsw i32 %21, 1
store i32 %22, i32* %1
br label %4
23: ; preds = %4
ret void
}

LLVM IR (-O2):
@__const.test_basename.data = [11 x [2 x [64 x i8]]] [[2 x [64 x i8]] [[64 x i8] zeroinitializer, [64 x i8] c".\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"], [2 x [64 x i8]] [[64 x i8] c"/\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [64 x i8] c"/\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"], [2 x [64 x i8]] [[64 x i8] c"///\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [64 x i8] c"/\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"], [2 x [64 x i8]] [[64 x i8] c".\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [64 x i8] c".\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"], [2 x [64 x i8]] [[64 x i8] c"..\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [64 x i8] c"..\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"], [2 x [64 x i8]] [[64 x i8] c"../../rel1\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [64 x i8] c"rel1\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"], [2 x [64 x i8]] [[64 x i8] c"./rel2\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [64 x i8] c"rel2\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"], [2 x [64 x i8]] [[64 x i8] c"justsomestring\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [64 x i8] c"justsomestring\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"], [2 x [64 x i8]] [[64 x i8] c"/usr/src/\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [64 x i8] c"src\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"], [2 x [64 x i8]] [[64 x i8] c"/usr/src///\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [64 x i8] c"src\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"], [2 x [64 x i8]] [[64 x i8] c"/usr/src/linux-2.6.30-r5/drivers\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [64 x i8] c"drivers\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"]]
@.str = [133 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/pnx/archived/refs/heads/next/test/t_path.c\00"
@__FUNCTION__.test_basename = [14 x i8] c"test_basename\00"
define void @test_basename() {
%1 = alloca [11 x [2 x [64 x i8]]]
%2 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %1, i64 0, i64 0, i64 0, i64 0
%3 = call i32 (i8*, ...) bitcast (i32 (...)* @basename_s to i32 (i8*, ...)*)(i8* %2)
%4 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %1, i64 0, i64 0, i64 1, i64 0
%5 = call i32 (i8*, i32, i8*, i32, i8*, ...) bitcast (i32 (...)* @__assert_str to i32 (i8*, i32, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 94, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__FUNCTION__.test_basename, i64 0, i64 0), i32 %3, i8* %4)
%6 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %1, i64 0, i64 1, i64 0, i64 0
%7 = call i32 (i8*, ...) bitcast (i32 (...)* @basename_s to i32 (i8*, ...)*)(i8* %6)
%8 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %1, i64 0, i64 1, i64 1, i64 0
%9 = call i32 (i8*, i32, i8*, i32, i8*, ...) bitcast (i32 (...)* @__assert_str to i32 (i8*, i32, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 94, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__FUNCTION__.test_basename, i64 0, i64 0), i32 %7, i8* %8)
%10 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %1, i64 0, i64 2, i64 0, i64 0
%11 = call i32 (i8*, ...) bitcast (i32 (...)* @basename_s to i32 (i8*, ...)*)(i8* %10)
%12 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %1, i64 0, i64 2, i64 1, i64 0
%13 = call i32 (i8*, i32, i8*, i32, i8*, ...) bitcast (i32 (...)* @__assert_str to i32 (i8*, i32, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 94, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__FUNCTION__.test_basename, i64 0, i64 0), i32 %11, i8* %12)
%14 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %1, i64 0, i64 3, i64 0, i64 0
%15 = call i32 (i8*, ...) bitcast (i32 (...)* @basename_s to i32 (i8*, ...)*)(i8* %14)
%16 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %1, i64 0, i64 3, i64 1, i64 0
%17 = call i32 (i8*, i32, i8*, i32, i8*, ...) bitcast (i32 (...)* @__assert_str to i32 (i8*, i32, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 94, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__FUNCTION__.test_basename, i64 0, i64 0), i32 %15, i8* %16)
%18 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %1, i64 0, i64 4, i64 0, i64 0
%19 = call i32 (i8*, ...) bitcast (i32 (...)* @basename_s to i32 (i8*, ...)*)(i8* %18)
%20 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %1, i64 0, i64 4, i64 1, i64 0
%21 = call i32 (i8*, i32, i8*, i32, i8*, ...) bitcast (i32 (...)* @__assert_str to i32 (i8*, i32, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 94, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__FUNCTION__.test_basename, i64 0, i64 0), i32 %19, i8* %20)
%22 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %1, i64 0, i64 5, i64 0, i64 0
%23 = call i32 (i8*, ...) bitcast (i32 (...)* @basename_s to i32 (i8*, ...)*)(i8* %22)
%24 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %1, i64 0, i64 5, i64 1, i64 0
%25 = call i32 (i8*, i32, i8*, i32, i8*, ...) bitcast (i32 (...)* @__assert_str to i32 (i8*, i32, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 94, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__FUNCTION__.test_basename, i64 0, i64 0), i32 %23, i8* %24)
%26 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %1, i64 0, i64 6, i64 0, i64 0
%27 = call i32 (i8*, ...) bitcast (i32 (...)* @basename_s to i32 (i8*, ...)*)(i8* %26)
%28 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %1, i64 0, i64 6, i64 1, i64 0
%29 = call i32 (i8*, i32, i8*, i32, i8*, ...) bitcast (i32 (...)* @__assert_str to i32 (i8*, i32, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 94, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__FUNCTION__.test_basename, i64 0, i64 0), i32 %27, i8* %28)
%30 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %1, i64 0, i64 7, i64 0, i64 0
%31 = call i32 (i8*, ...) bitcast (i32 (...)* @basename_s to i32 (i8*, ...)*)(i8* %30)
%32 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %1, i64 0, i64 7, i64 1, i64 0
%33 = call i32 (i8*, i32, i8*, i32, i8*, ...) bitcast (i32 (...)* @__assert_str to i32 (i8*, i32, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 94, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__FUNCTION__.test_basename, i64 0, i64 0), i32 %31, i8* %32)
%34 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %1, i64 0, i64 8, i64 0, i64 0
%35 = call i32 (i8*, ...) bitcast (i32 (...)* @basename_s to i32 (i8*, ...)*)(i8* %34)
%36 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %1, i64 0, i64 8, i64 1, i64 0
%37 = call i32 (i8*, i32, i8*, i32, i8*, ...) bitcast (i32 (...)* @__assert_str to i32 (i8*, i32, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 94, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__FUNCTION__.test_basename, i64 0, i64 0), i32 %35, i8* %36)
%38 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %1, i64 0, i64 9, i64 0, i64 0
%39 = call i32 (i8*, ...) bitcast (i32 (...)* @basename_s to i32 (i8*, ...)*)(i8* %38)
%40 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %1, i64 0, i64 9, i64 1, i64 0
%41 = call i32 (i8*, i32, i8*, i32, i8*, ...) bitcast (i32 (...)* @__assert_str to i32 (i8*, i32, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 94, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__FUNCTION__.test_basename, i64 0, i64 0), i32 %39, i8* %40)
%42 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %1, i64 0, i64 10, i64 0, i64 0
%43 = call i32 (i8*, ...) bitcast (i32 (...)* @basename_s to i32 (i8*, ...)*)(i8* %42)
%44 = getelementptr inbounds [11 x [2 x [64 x i8]]], [11 x [2 x [64 x i8]]]* %1, i64 0, i64 10, i64 1, i64 0
%45 = call i32 (i8*, i32, i8*, i32, i8*, ...) bitcast (i32 (...)* @__assert_str to i32 (i8*, i32, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i32 94, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__FUNCTION__.test_basename, i64 0, i64 0), i32 %43, i8* %44)
ret void
}