#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*/ __CPROVER_assume(int);
int __CPROVER_isfinite(double);
int /*<<< orphan*/ __CPROVER_isnan(double);
int /*<<< orphan*/ assert(int);
int main() {
  double f, f2;
  __CPROVER_assume(!__CPROVER_isnan(f2));
  __CPROVER_assume(__CPROVER_isfinite(f2));
  f = f2;
  assert(100.0 + 10 == 110);
  assert(0 + f == f);
  assert(100 + 0.5 == 100.5);
  assert(100.0 - 10 == 90);
  assert(100 - 0.5 == 99.5);
  assert(-(-100.0) == 100);
  assert(-(1 - 2.0) == 1);
  assert(-(-f) == f);
  assert(100.0 * 10 == 1000);
  assert(0 * f == 0);
  assert(f * 0 == 0);
  assert(100 * 0.5 == 50);
  assert(f * 1 == f);
  assert(100.0 / 1.0 == 100);
  assert(100.1 / 1.0 == 100.1);
  assert(100.0 / 2.0 == 50);
  assert(100.0 / 0.5 == 200);
  assert(0 / 1.0 == 0);
  assert(f / 1.0 == f);
  assert(((double)(float)100) == 100.0);
  assert(((unsigned int)100.0) == 100.0);
  assert(100.0);
  assert(!0.0);
  assert((int)0.5 == 0);
  assert((int)0.49 == 0);
  assert((int)-1.5 == -1);
  assert((int)-10.49 == -10);
  assert(1.0 < 2.5);
  assert(1.0 <= 2.5);
  assert(1.01 <= 1.01);
  assert(2.5 > 1.0);
  assert(2.5 >= 1.0);
  assert(1.01 >= 1.01);
  assert(!(1.0 >= 2.5));
  assert(!(1.0 > 2.5));
  assert(1.0 != 2.5);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  -0x10(%rbp),%xmm0
call   1060 <__CPROVER_isnan@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__CPROVER_assume@plt>
movsd  -0x10(%rbp),%xmm0
call   1030 <__CPROVER_isfinite@plt>
mov    %eax,%edi
call   1040 <__CPROVER_assume@plt>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
mov    $0x1,%edi
call   1050 <assert@plt>
xorps  %xmm0,%xmm0
addsd  -0x8(%rbp),%xmm0
ucomisd -0x8(%rbp),%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
movsd  -0x8(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
ucomisd -0x8(%rbp),%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
xorps  %xmm0,%xmm0
mulsd  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
xorps  %xmm0,%xmm0
mulsd  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
movsd  0xd7e(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
ucomisd -0x8(%rbp),%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
movsd  -0x8(%rbp),%xmm0
movsd  0xd23(%rip),%xmm1
divsd  %xmm1,%xmm0
ucomisd -0x8(%rbp),%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x64,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
call   1060 <__CPROVER_isnan@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1040 <__CPROVER_assume@plt>
call   1030 <__CPROVER_isfinite@plt>
mov    %eax,%edi
call   1040 <__CPROVER_assume@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
xor    %edi,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
xor    %edi,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
xor    %edi,%edi
call   1050 <assert@plt>
xor    %edi,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
xor    %edi,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
xor    %edi,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x64,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = load double, double* %2
%4 = call i32 @__CPROVER_isnan(double %3)
%5 = icmp ne i32 %4, 0
%6 = xor i1 %5, true
%7 = zext i1 %6 to i32
%8 = call i32 @__CPROVER_assume(i32 %7)
%9 = load double, double* %2
%10 = call i32 @__CPROVER_isfinite(double %9)
%11 = call i32 @__CPROVER_assume(i32 %10)
%12 = load double, double* %2
store double %12, double* %1
%13 = call i32 @assert(i32 1)
%14 = load double, double* %1
%15 = fadd double 0.000000e+00, %14
%16 = load double, double* %1
%17 = fcmp oeq double %15, %16
%18 = zext i1 %17 to i32
%19 = call i32 @assert(i32 %18)
%20 = call i32 @assert(i32 1)
%21 = call i32 @assert(i32 1)
%22 = call i32 @assert(i32 1)
%23 = call i32 @assert(i32 1)
%24 = call i32 @assert(i32 1)
%25 = load double, double* %1
%26 = fneg double %25
%27 = fneg double %26
%28 = load double, double* %1
%29 = fcmp oeq double %27, %28
%30 = zext i1 %29 to i32
%31 = call i32 @assert(i32 %30)
%32 = call i32 @assert(i32 1)
%33 = load double, double* %1
%34 = fmul double 0.000000e+00, %33
%35 = fcmp oeq double %34, 0.000000e+00
%36 = zext i1 %35 to i32
%37 = call i32 @assert(i32 %36)
%38 = load double, double* %1
%39 = fmul double %38, 0.000000e+00
%40 = fcmp oeq double %39, 0.000000e+00
%41 = zext i1 %40 to i32
%42 = call i32 @assert(i32 %41)
%43 = call i32 @assert(i32 1)
%44 = load double, double* %1
%45 = fmul double %44, 1.000000e+00
%46 = load double, double* %1
%47 = fcmp oeq double %45, %46
%48 = zext i1 %47 to i32
%49 = call i32 @assert(i32 %48)
%50 = call i32 @assert(i32 1)
%51 = call i32 @assert(i32 1)
%52 = call i32 @assert(i32 1)
%53 = call i32 @assert(i32 1)
%54 = call i32 @assert(i32 1)
%55 = load double, double* %1
%56 = fdiv double %55, 1.000000e+00
%57 = load double, double* %1
%58 = fcmp oeq double %56, %57
%59 = zext i1 %58 to i32
%60 = call i32 @assert(i32 %59)
%61 = call i32 @assert(i32 1)
%62 = call i32 @assert(i32 1)
%63 = call i32 @assert(i32 100)
%64 = call i32 @assert(i32 1)
%65 = call i32 @assert(i32 1)
%66 = call i32 @assert(i32 1)
%67 = call i32 @assert(i32 1)
%68 = call i32 @assert(i32 1)
%69 = call i32 @assert(i32 1)
%70 = call i32 @assert(i32 1)
%71 = call i32 @assert(i32 1)
%72 = call i32 @assert(i32 1)
%73 = call i32 @assert(i32 1)
%74 = call i32 @assert(i32 1)
%75 = call i32 @assert(i32 1)
%76 = call i32 @assert(i32 1)
%77 = call i32 @assert(i32 1)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @__CPROVER_isnan(double undef)
%2 = icmp eq i32 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @__CPROVER_assume(i32 %3)
%5 = tail call i32 @__CPROVER_isfinite(double undef)
%6 = tail call i32 @__CPROVER_assume(i32 %5)
%7 = tail call i32 @assert(i32 1)
%8 = tail call i32 @assert(i32 0)
%9 = tail call i32 @assert(i32 1)
%10 = tail call i32 @assert(i32 1)
%11 = tail call i32 @assert(i32 1)
%12 = tail call i32 @assert(i32 1)
%13 = tail call i32 @assert(i32 1)
%14 = tail call i32 @assert(i32 0)
%15 = tail call i32 @assert(i32 1)
%16 = tail call i32 @assert(i32 0)
%17 = tail call i32 @assert(i32 0)
%18 = tail call i32 @assert(i32 1)
%19 = tail call i32 @assert(i32 0)
%20 = tail call i32 @assert(i32 1)
%21 = tail call i32 @assert(i32 1)
%22 = tail call i32 @assert(i32 1)
%23 = tail call i32 @assert(i32 1)
%24 = tail call i32 @assert(i32 1)
%25 = tail call i32 @assert(i32 0)
%26 = tail call i32 @assert(i32 1)
%27 = tail call i32 @assert(i32 1)
%28 = tail call i32 @assert(i32 100)
%29 = tail call i32 @assert(i32 1)
%30 = tail call i32 @assert(i32 1)
%31 = tail call i32 @assert(i32 1)
%32 = tail call i32 @assert(i32 1)
%33 = tail call i32 @assert(i32 1)
%34 = tail call i32 @assert(i32 1)
%35 = tail call i32 @assert(i32 1)
%36 = tail call i32 @assert(i32 1)
%37 = tail call i32 @assert(i32 1)
%38 = tail call i32 @assert(i32 1)
%39 = tail call i32 @assert(i32 1)
%40 = tail call i32 @assert(i32 1)
%41 = tail call i32 @assert(i32 1)
%42 = tail call i32 @assert(i32 1)
ret i32 0
}