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


x86 assembly (clang, -O0):
<test_htpass_valid_file_ok>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xec1(%rip),%rdi
lea    0xec7(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed3(%rip),%rdi
mov    $0x0,%al
call   1050 <htpass_valid_file@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1176 <test_htpass_valid_file_ok+0x46>
lea    0xe9e(%rip),%rdi
mov    $0x0,%al
call   1040 <test_fail@plt>
lea    0xec5(%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_ok>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0xece(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeda(%rip),%rdi
xor    %eax,%eax
call   1050 <htpass_valid_file@plt>
test   %eax,%eax
jne    1166 <test_htpass_valid_file_ok+0x36>
lea    0xeae(%rip),%rdi
xor    %eax,%eax
call   1040 <test_fail@plt>
lea    0xed5(%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_ok = [26 x i8] c"test_htpass_valid_file_ok\00"
@.str.1 = [27 x i8] c"./src/htpass_test.htpasswd\00"
@.str.2 = [14 x i8] c"--- PASS: %s\0A\00"
define void @test_htpass_valid_file_ok() {
%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 ([26 x i8], [26 x i8]* @__func__.test_htpass_valid_file_ok, i64 0, i64 0))
%3 = call i32 (i8*, ...) bitcast (i32 (...)* @htpass_valid_file to i32 (i8*, ...)*)(i8* getelementptr inbounds ([27 x i8], [27 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 %8, label %6
6: ; preds = %0
%7 = call i32 (i8*, ...) bitcast (i32 (...)* @test_fail to i32 (i8*, ...)*)(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @__func__.test_htpass_valid_file_ok, 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 ([26 x i8], [26 x i8]* @__func__.test_htpass_valid_file_ok, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"=== RUN: %s\0A\00"
@__func__.test_htpass_valid_file_ok = [26 x i8] c"test_htpass_valid_file_ok\00"
@.str.1 = [27 x i8] c"./src/htpass_test.htpasswd\00"
@.str.2 = [14 x i8] c"--- PASS: %s\0A\00"
define void @test_htpass_valid_file_ok() {
%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 ([26 x i8], [26 x i8]* @__func__.test_htpass_valid_file_ok, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) bitcast (i32 (...)* @htpass_valid_file to i32 (i8*, ...)*)(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = tail call i32 (i8*, ...) bitcast (i32 (...)* @test_fail to i32 (i8*, ...)*)(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @__func__.test_htpass_valid_file_ok, 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 ([26 x i8], [26 x i8]* @__func__.test_htpass_valid_file_ok, i64 0, i64 0))
ret void
}