#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ __VERIFIER_assert(int);
float __VERIFIER_nondet_float();
int main(void) {
  float a = __VERIFIER_nondet_float();
  if (a < 0) {
    return 0;
  }
  __VERIFIER_assert(a >= 0);
  __VERIFIER_assert(a > -0.0001);
  __VERIFIER_assert(!(a < 0));
  return a;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <__VERIFIER_nondet_float@plt>
movss  %xmm0,-0x8(%rbp)
xorps  %xmm0,%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    1154 <main+0x34>
movl   $0x0,-0x4(%rbp)
jmp    11ac <main+0x8c>
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
setae  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__VERIFIER_assert@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe83(%rip),%xmm1
ucomisd %xmm1,%xmm0
seta   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__VERIFIER_assert@plt>
xorps  %xmm0,%xmm0
ucomiss -0x8(%rbp),%xmm0
seta   %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__VERIFIER_assert@plt>
cvttss2si -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <__VERIFIER_nondet_float@plt>
xorps  %xmm1,%xmm1
ucomiss %xmm0,%xmm1
ja     1177 <main+0x57>
xor    %edi,%edi
ucomiss %xmm1,%xmm0
setae  %dil
movss  %xmm0,0xc(%rsp)
call   1030 <__VERIFIER_assert@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
xor    %edi,%edi
ucomisd 0xea2(%rip),%xmm0
seta   %dil
call   1030 <__VERIFIER_assert@plt>
mov    $0x1,%edi
call   1030 <__VERIFIER_assert@plt>
cvttss2si 0xc(%rsp),%ebx
mov    %ebx,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca float
store i32 0, i32* %1
%3 = call float (...) @__VERIFIER_nondet_float()
store float %3, float* %2
%4 = load float, float* %2
%5 = fcmp olt float %4, 0.000000e+00
br i1 %5, label %6, label %7
6: ; preds = %0
store i32 0, i32* %1
br label %24
7: ; preds = %0
%8 = load float, float* %2
%9 = fcmp oge float %8, 0.000000e+00
%10 = zext i1 %9 to i32
%11 = call i32 @__VERIFIER_assert(i32 %10)
%12 = load float, float* %2
%13 = fpext float %12 to double
%14 = fcmp ogt double %13, -1.000000e-04
%15 = zext i1 %14 to i32
%16 = call i32 @__VERIFIER_assert(i32 %15)
%17 = load float, float* %2
%18 = fcmp olt float %17, 0.000000e+00
%19 = xor i1 %18, true
%20 = zext i1 %19 to i32
%21 = call i32 @__VERIFIER_assert(i32 %20)
%22 = load float, float* %2
%23 = fptosi float %22 to i32
store i32 %23, i32* %1
br label %24
24: ; preds = %7, %6
%25 = load i32, i32* %1
ret i32 %25
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call float (...) @__VERIFIER_nondet_float()
%2 = fcmp olt float %1, 0.000000e+00
br i1 %2, label %13, label %3
3: ; preds = %0
%4 = fcmp oge float %1, 0.000000e+00
%5 = zext i1 %4 to i32
%6 = tail call i32 @__VERIFIER_assert(i32 %5)
%7 = fpext float %1 to double
%8 = fcmp ogt double %7, -1.000000e-04
%9 = zext i1 %8 to i32
%10 = tail call i32 @__VERIFIER_assert(i32 %9)
%11 = tail call i32 @__VERIFIER_assert(i32 1)
%12 = fptosi float %1 to i32
br label %13
13: ; preds = %0, %3
%14 = phi i32 [ %12, %3 ], [ 0, %0 ]
ret i32 %14
}