#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 /*<<< orphan*/ __CPROVER_isinf(double);
int /*<<< orphan*/ __CPROVER_isnan(double);
int /*<<< orphan*/ assert(int);
int main() {
  double f, f2;
  __CPROVER_assume(!__CPROVER_isnan(f2));
  __CPROVER_assume(!__CPROVER_isinf(f2));
  f = f2;
  assert(100.0 + 10 == 110);
  assert(0 + f == f);
  assert(f + 0 == f);
  assert(100 + 0.5 == 100.5);
  assert(0.0 + 0.0 + f == f);
  assert(100.0 - 10 == 90);
  assert(0 - f == -f);
  assert(f - 0 == f);
  assert(100 - 0.5 == 99.5);
  assert(0.0 - 0.0 - f == -f);
  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(1 * f == f);
  assert(1.0 * 1.0 * f == 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   1050 <__CPROVER_isnan@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__CPROVER_assume@plt>
movsd  -0x10(%rbp),%xmm0
call   1060 <__CPROVER_isinf@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__CPROVER_assume@plt>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
mov    $0x1,%edi
call   1040 <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   1040 <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   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <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   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
xorps  %xmm0,%xmm0
subsd  -0x8(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
ucomisd %xmm1,%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
movsd  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
subsd  %xmm1,%xmm0
ucomisd -0x8(%rbp),%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
xorps  %xmm0,%xmm0
subsd  -0x8(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
ucomisd %xmm1,%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <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   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <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   1040 <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   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
movsd  0xc9e(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
ucomisd -0x8(%rbp),%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
movsd  0xc7a(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
ucomisd -0x8(%rbp),%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
movsd  0xc56(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
ucomisd -0x8(%rbp),%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
movsd  -0x8(%rbp),%xmm0
movsd  0xbfb(%rip),%xmm1
divsd  %xmm1,%xmm0
ucomisd -0x8(%rbp),%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x64,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
call   1050 <__CPROVER_isnan@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1030 <__CPROVER_assume@plt>
call   1060 <__CPROVER_isinf@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1030 <__CPROVER_assume@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
xor    %edi,%edi
call   1040 <assert@plt>
xor    %edi,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
xor    %edi,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
xor    %edi,%edi
call   1040 <assert@plt>
xor    %edi,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
xor    %edi,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
xor    %edi,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
xor    %edi,%edi
call   1040 <assert@plt>
xor    %edi,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
xor    %edi,%edi
call   1040 <assert@plt>
xor    %edi,%edi
call   1040 <assert@plt>
xor    %edi,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
xor    %edi,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x64,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1040 <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_isinf(double %9)
%11 = icmp ne i32 %10, 0
%12 = xor i1 %11, true
%13 = zext i1 %12 to i32
%14 = call i32 @__CPROVER_assume(i32 %13)
%15 = load double, double* %2
store double %15, double* %1
%16 = call i32 @assert(i32 1)
%17 = load double, double* %1
%18 = fadd double 0.000000e+00, %17
%19 = load double, double* %1
%20 = fcmp oeq double %18, %19
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 %21)
%23 = load double, double* %1
%24 = fadd double %23, 0.000000e+00
%25 = load double, double* %1
%26 = fcmp oeq double %24, %25
%27 = zext i1 %26 to i32
%28 = call i32 @assert(i32 %27)
%29 = call i32 @assert(i32 1)
%30 = load double, double* %1
%31 = fadd double 0.000000e+00, %30
%32 = load double, double* %1
%33 = fcmp oeq double %31, %32
%34 = zext i1 %33 to i32
%35 = call i32 @assert(i32 %34)
%36 = call i32 @assert(i32 1)
%37 = load double, double* %1
%38 = fsub double 0.000000e+00, %37
%39 = load double, double* %1
%40 = fneg double %39
%41 = fcmp oeq double %38, %40
%42 = zext i1 %41 to i32
%43 = call i32 @assert(i32 %42)
%44 = load double, double* %1
%45 = fsub double %44, 0.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 = load double, double* %1
%52 = fsub double 0.000000e+00, %51
%53 = load double, double* %1
%54 = fneg double %53
%55 = fcmp oeq double %52, %54
%56 = zext i1 %55 to i32
%57 = call i32 @assert(i32 %56)
%58 = call i32 @assert(i32 1)
%59 = call i32 @assert(i32 1)
%60 = load double, double* %1
%61 = fneg double %60
%62 = fneg double %61
%63 = load double, double* %1
%64 = fcmp oeq double %62, %63
%65 = zext i1 %64 to i32
%66 = call i32 @assert(i32 %65)
%67 = call i32 @assert(i32 1)
%68 = load double, double* %1
%69 = fmul double 0.000000e+00, %68
%70 = fcmp oeq double %69, 0.000000e+00
%71 = zext i1 %70 to i32
%72 = call i32 @assert(i32 %71)
%73 = load double, double* %1
%74 = fmul double %73, 0.000000e+00
%75 = fcmp oeq double %74, 0.000000e+00
%76 = zext i1 %75 to i32
%77 = call i32 @assert(i32 %76)
%78 = call i32 @assert(i32 1)
%79 = load double, double* %1
%80 = fmul double %79, 1.000000e+00
%81 = load double, double* %1
%82 = fcmp oeq double %80, %81
%83 = zext i1 %82 to i32
%84 = call i32 @assert(i32 %83)
%85 = load double, double* %1
%86 = fmul double 1.000000e+00, %85
%87 = load double, double* %1
%88 = fcmp oeq double %86, %87
%89 = zext i1 %88 to i32
%90 = call i32 @assert(i32 %89)
%91 = load double, double* %1
%92 = fmul double 1.000000e+00, %91
%93 = load double, double* %1
%94 = fcmp oeq double %92, %93
%95 = zext i1 %94 to i32
%96 = call i32 @assert(i32 %95)
%97 = call i32 @assert(i32 1)
%98 = call i32 @assert(i32 1)
%99 = call i32 @assert(i32 1)
%100 = call i32 @assert(i32 1)
%101 = call i32 @assert(i32 1)
%102 = load double, double* %1
%103 = fdiv double %102, 1.000000e+00
%104 = load double, double* %1
%105 = fcmp oeq double %103, %104
%106 = zext i1 %105 to i32
%107 = call i32 @assert(i32 %106)
%108 = call i32 @assert(i32 1)
%109 = call i32 @assert(i32 1)
%110 = call i32 @assert(i32 100)
%111 = call i32 @assert(i32 1)
%112 = call i32 @assert(i32 1)
%113 = call i32 @assert(i32 1)
%114 = call i32 @assert(i32 1)
%115 = call i32 @assert(i32 1)
%116 = call i32 @assert(i32 1)
%117 = call i32 @assert(i32 1)
%118 = call i32 @assert(i32 1)
%119 = call i32 @assert(i32 1)
%120 = call i32 @assert(i32 1)
%121 = call i32 @assert(i32 1)
%122 = call i32 @assert(i32 1)
%123 = call i32 @assert(i32 1)
%124 = 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_isinf(double undef)
%6 = icmp eq i32 %5, 0
%7 = zext i1 %6 to i32
%8 = tail call i32 @__CPROVER_assume(i32 %7)
%9 = tail call i32 @assert(i32 1)
%10 = tail call i32 @assert(i32 0)
%11 = tail call i32 @assert(i32 0)
%12 = tail call i32 @assert(i32 1)
%13 = tail call i32 @assert(i32 0)
%14 = tail call i32 @assert(i32 1)
%15 = tail call i32 @assert(i32 0)
%16 = tail call i32 @assert(i32 0)
%17 = tail call i32 @assert(i32 1)
%18 = tail call i32 @assert(i32 0)
%19 = tail call i32 @assert(i32 1)
%20 = tail call i32 @assert(i32 1)
%21 = tail call i32 @assert(i32 0)
%22 = tail call i32 @assert(i32 1)
%23 = tail call i32 @assert(i32 0)
%24 = tail call i32 @assert(i32 0)
%25 = tail call i32 @assert(i32 1)
%26 = tail call i32 @assert(i32 0)
%27 = tail call i32 @assert(i32 0)
%28 = tail call i32 @assert(i32 0)
%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 0)
%35 = tail call i32 @assert(i32 1)
%36 = tail call i32 @assert(i32 1)
%37 = tail call i32 @assert(i32 100)
%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)
%43 = tail call i32 @assert(i32 1)
%44 = tail call i32 @assert(i32 1)
%45 = tail call i32 @assert(i32 1)
%46 = tail call i32 @assert(i32 1)
%47 = tail call i32 @assert(i32 1)
%48 = tail call i32 @assert(i32 1)
%49 = tail call i32 @assert(i32 1)
%50 = tail call i32 @assert(i32 1)
%51 = tail call i32 @assert(i32 1)
ret i32 0
}