void test_htpass_valid_file_too_long() {
  printf("=== RUN: %s\n", __func__);
  int ok = htpass_valid_file("./src/htpass_test_invalid.htpasswd");
  if (ok)
    test_fail(__func__);
  printf("--- PASS: %s\n", __func__);
}


x86 assembly (clang, -O0):
<test_htpass_valid_file_too_long>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xec1(%rip),%rdi
lea    0xec7(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1050 <htpass_valid_file@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1176 <test_htpass_valid_file_too_long+0x46>
lea    0xe9e(%rip),%rdi
mov    $0x0,%al
call   1040 <test_fail@plt>
lea    0xed3(%rip),%rdi
lea    0xe89(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_htpass_valid_file_too_long>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0xece(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee0(%rip),%rdi
xor    %eax,%eax
call   1050 <htpass_valid_file@plt>
test   %eax,%eax
je     1166 <test_htpass_valid_file_too_long+0x36>
lea    0xeae(%rip),%rdi
xor    %eax,%eax
call   1040 <test_fail@plt>
lea    0xee3(%rip),%rdi
lea    0xe99(%rip),%rsi
xor    %eax,%eax
pop    %rcx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"=== RUN: %s\0A\00"
@__func__.test_htpass_valid_file_too_long = [32 x i8] c"test_htpass_valid_file_too_long\00"
@.str.1 = [35 x i8] c"./src/htpass_test_invalid.htpasswd\00"
@.str.2 = [14 x i8] c"--- PASS: %s\0A\00"
define void @test_htpass_valid_file_too_long() {
%1 = alloca i32
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @__func__.test_htpass_valid_file_too_long, i64 0, i64 0))
%3 = call i32 (i8*, ...) bitcast (i32 (...)* @htpass_valid_file to i32 (i8*, ...)*)(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
store i32 %3, i32* %1
%4 = load i32, i32* %1
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 (i8*, ...) bitcast (i32 (...)* @test_fail to i32 (i8*, ...)*)(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @__func__.test_htpass_valid_file_too_long, i64 0, i64 0))
br label %8
8: ; preds = %6, %0
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @__func__.test_htpass_valid_file_too_long, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"=== RUN: %s\0A\00"
@__func__.test_htpass_valid_file_too_long = [32 x i8] c"test_htpass_valid_file_too_long\00"
@.str.1 = [35 x i8] c"./src/htpass_test_invalid.htpasswd\00"
@.str.2 = [14 x i8] c"--- PASS: %s\0A\00"
define void @test_htpass_valid_file_too_long() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @__func__.test_htpass_valid_file_too_long, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) bitcast (i32 (...)* @htpass_valid_file to i32 (i8*, ...)*)(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
%3 = icmp eq i32 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %0
%5 = tail call i32 (i8*, ...) bitcast (i32 (...)* @test_fail to i32 (i8*, ...)*)(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @__func__.test_htpass_valid_file_too_long, i64 0, i64 0))
br label %6
6: ; preds = %4, %0
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @__func__.test_htpass_valid_file_too_long, i64 0, i64 0))
ret void
}