void TestAssertNearFail(void) {
  TestAssert("fabsf((10.0f) - (10.2f)) < (0.1f)",
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/google/makani/refs/heads/master/"
             "avionics/firmware/test/test_test.c",
             __func__, 112, fabsf((10.0f) - (10.2f)) < (0.1f));
  TestExpect("!(\"Should not execute.\")",
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/google/makani/refs/heads/master/"
             "avionics/firmware/test/test_test.c",
             __func__, 113, !("Should not execute."));
}


x86 assembly (clang, -O0):
<TestAssertNearFail>:
push   %rbp
mov    %rsp,%rbp
movss  0xed8(%rip),%xmm1
movss  0xecc(%rip),%xmm0
ucomiss %xmm1,%xmm0
seta   %al
and    $0x1,%al
movzbl %al,%r8d
lea    0xec1(%rip),%rdi
lea    0xedc(%rip),%rsi
lea    0xf72(%rip),%rdx
mov    $0x70,%ecx
mov    $0x0,%al
call   1030 <TestAssert@plt>
lea    0xf72(%rip),%rdi
lea    0xebb(%rip),%rsi
lea    0xf51(%rip),%rdx
mov    $0x71,%ecx
xor    %r8d,%r8d
mov    $0x0,%al
call   1040 <TestExpect@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<TestAssertNearFail>:
push   %r14
push   %rbx
push   %rax
lea    0xed5(%rip),%rdi
lea    0xef0(%rip),%rbx
lea    0xf86(%rip),%r14
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x70,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1030 <TestAssert@plt>
lea    0xf7d(%rip),%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x71,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <TestExpect@plt>

LLVM IR (-O0):
@.str = [34 x i8] c"fabsf((10.0f) - (10.2f)) < (0.1f)\00"
@.str.1 = [157 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/google/makani/refs/heads/master/avionics/firmware/test/test_test.c\00"
@__func__.TestAssertNearFail = [19 x i8] c"TestAssertNearFail\00"
@.str.2 = [25 x i8] c"!(\22Should not execute.\22)\00"
@.str.3 = [20 x i8] c"Should not execute.\00"
define void @TestAssertNearFail() {
%1 = call float @llvm.fabs.f32(float 0xBFC9999800000000)
%2 = fcmp olt float %1, 0x3FB99999A0000000
%3 = zext i1 %2 to i32
%4 = call i32 (i8*, i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @TestAssert to i32 (i8*, i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__func__.TestAssertNearFail, i64 0, i64 0), i32 112, i32 %3)
%5 = call i32 (i8*, i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @TestExpect to i32 (i8*, i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__func__.TestAssertNearFail, i64 0, i64 0), i32 113, i32 0)
ret void
}

LLVM IR (-O2):
@.str = [34 x i8] c"fabsf((10.0f) - (10.2f)) < (0.1f)\00"
@.str.1 = [157 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/google/makani/refs/heads/master/avionics/firmware/test/test_test.c\00"
@__func__.TestAssertNearFail = [19 x i8] c"TestAssertNearFail\00"
@.str.2 = [25 x i8] c"!(\22Should not execute.\22)\00"
define void @TestAssertNearFail() {
%1 = tail call i32 (i8*, i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @TestAssert to i32 (i8*, i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__func__.TestAssertNearFail, i64 0, i64 0), i32 112, i32 0)
%2 = tail call i32 (i8*, i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @TestExpect to i32 (i8*, i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__func__.TestAssertNearFail, i64 0, i64 0), i32 113, i32 0)
ret void
}