void test_no(void) {
  do {
    seatest_assert_false(path_starts_with("/home/tras", "/home/trash"),
                         __FUNCTION__, 17);
  } while (0);
  do {
    seatest_assert_false(path_starts_with("/home/trash_", "/home/trash"),
                         __FUNCTION__, 18);
  } while (0);
}


x86 assembly (clang, -O0):
<test_no>:
push   %rbp
mov    %rsp,%rbp
jmp    1129 <test_no+0x9>
lea    0xed0(%rip),%rdi
lea    0xed4(%rip),%rsi
mov    $0x0,%al
call   1040 <path_starts_with@plt>
mov    %eax,%edi
lea    0xed0(%rip),%rsi
mov    $0x11,%edx
mov    $0x0,%al
call   1030 <seatest_assert_false@plt>
jmp    1158 <test_no+0x38>
lea    0xec0(%rip),%rdi
lea    0xea5(%rip),%rsi
mov    $0x0,%al
call   1040 <path_starts_with@plt>
mov    %eax,%edi
lea    0xea1(%rip),%rsi
mov    $0x12,%edx
mov    $0x0,%al
call   1030 <seatest_assert_false@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_no>:
push   %r14
push   %rbx
push   %rax
lea    0xed5(%rip),%rdi
lea    0xed9(%rip),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <path_starts_with@plt>
lea    0xed4(%rip),%rbx
mov    %eax,%edi
mov    %rbx,%rsi
mov    $0x11,%edx
xor    %eax,%eax
call   1030 <seatest_assert_false@plt>
lea    0xec4(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <path_starts_with@plt>
mov    %eax,%edi
mov    %rbx,%rsi
mov    $0x12,%edx
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <seatest_assert_false@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"/home/tras\00"
@.str.1 = [12 x i8] c"/home/trash\00"
@__FUNCTION__.test_no = [8 x i8] c"test_no\00"
@.str.2 = [13 x i8] c"/home/trash_\00"
define void @test_no() {
br label %1
1: ; preds = %0
%2 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @path_starts_with to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i32, i8*, i32, ...) bitcast (i32 (...)* @seatest_assert_false to i32 (i32, i8*, i32, ...)*)(i32 %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @__FUNCTION__.test_no, i64 0, i64 0), i32 17)
br label %4
4: ; preds = %1
br label %5
5: ; preds = %4
%6 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @path_starts_with to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 (i32, i8*, i32, ...) bitcast (i32 (...)* @seatest_assert_false to i32 (i32, i8*, i32, ...)*)(i32 %6, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @__FUNCTION__.test_no, i64 0, i64 0), i32 18)
br label %8
8: ; preds = %5
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"/home/tras\00"
@.str.1 = [12 x i8] c"/home/trash\00"
@__FUNCTION__.test_no = [8 x i8] c"test_no\00"
@.str.2 = [13 x i8] c"/home/trash_\00"
define void @test_no() {
%1 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @path_starts_with to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (i32, i8*, i32, ...) bitcast (i32 (...)* @seatest_assert_false to i32 (i32, i8*, i32, ...)*)(i32 %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @__FUNCTION__.test_no, i64 0, i64 0), i32 17)
%3 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @path_starts_with to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (i32, i8*, i32, ...) bitcast (i32 (...)* @seatest_assert_false to i32 (i32, i8*, i32, ...)*)(i32 %3, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @__FUNCTION__.test_no, i64 0, i64 0), i32 18)
ret void
}