#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 __CPROVER_isinf(double);
int __CPROVER_isnan(double);
int __CPROVER_isnormal(double);
int /*<<< orphan*/ assert(int);
int main() {
  double f1, _f1;
  f1 = _f1;
  __CPROVER_assume(__CPROVER_isnormal(f1));
  assert(!__CPROVER_isnan(f1));
  assert(!__CPROVER_isinf(f1));
  assert(__CPROVER_isfinite(f1));
  double f2, _f2;
  f2 = _f2;
  __CPROVER_assume(__CPROVER_isinf(f2));
  assert(!__CPROVER_isnormal(f2));
  assert(!__CPROVER_isnan(f2));
  double f3, _f3;
  f3 = _f3;
  __CPROVER_assume(__CPROVER_isnan(f3));
  assert(!__CPROVER_isnormal(f3));
  assert(!__CPROVER_isinf(f3));
  assert(f3 != f3);
  double f4, _f4;
  f4 = _f4;
  __CPROVER_assume(__CPROVER_isfinite(f4));
  assert(!__CPROVER_isnan(f4));
  assert(!__CPROVER_isinf(f4));
  double f5, _f5;
  f5 = _f5;
  __CPROVER_assume(!__CPROVER_isnan(f5) && !__CPROVER_isinf(f5));
  assert(__CPROVER_isfinite(f5));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1050 <__CPROVER_isnormal@plt>
mov    %eax,%edi
call   1040 <__CPROVER_assume@plt>
movsd  -0x10(%rbp),%xmm0
call   1070 <__CPROVER_isnan@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
movsd  -0x10(%rbp),%xmm0
call   1080 <__CPROVER_isinf@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
movsd  -0x10(%rbp),%xmm0
call   1030 <__CPROVER_isfinite@plt>
mov    %eax,%edi
call   1060 <assert@plt>
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1080 <__CPROVER_isinf@plt>
mov    %eax,%edi
call   1040 <__CPROVER_assume@plt>
movsd  -0x20(%rbp),%xmm0
call   1050 <__CPROVER_isnormal@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
movsd  -0x20(%rbp),%xmm0
call   1070 <__CPROVER_isnan@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1070 <__CPROVER_isnan@plt>
mov    %eax,%edi
call   1040 <__CPROVER_assume@plt>
movsd  -0x30(%rbp),%xmm0
call   1050 <__CPROVER_isnormal@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
movsd  -0x30(%rbp),%xmm0
call   1080 <__CPROVER_isinf@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
movsd  -0x30(%rbp),%xmm0
ucomisd -0x30(%rbp),%xmm0
setne  %al
setp   %cl
or     %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
call   1030 <__CPROVER_isfinite@plt>
mov    %eax,%edi
call   1040 <__CPROVER_assume@plt>
movsd  -0x40(%rbp),%xmm0
call   1070 <__CPROVER_isnan@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
movsd  -0x40(%rbp),%xmm0
call   1080 <__CPROVER_isinf@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
call   1070 <__CPROVER_isnan@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x59(%rbp)
jne    1321 <main+0x1c1>
movsd  -0x50(%rbp),%xmm0
call   1080 <__CPROVER_isinf@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
mov    %al,-0x59(%rbp)
mov    -0x59(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__CPROVER_assume@plt>
movsd  -0x50(%rbp),%xmm0
call   1030 <__CPROVER_isfinite@plt>
mov    %eax,%edi
call   1060 <assert@plt>
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
call   1050 <__CPROVER_isnormal@plt>
mov    %eax,%edi
call   1040 <__CPROVER_assume@plt>
call   1070 <__CPROVER_isnan@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1060 <assert@plt>
call   1080 <__CPROVER_isinf@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1060 <assert@plt>
call   1030 <__CPROVER_isfinite@plt>
mov    %eax,%edi
call   1060 <assert@plt>
call   1080 <__CPROVER_isinf@plt>
mov    %eax,%edi
call   1040 <__CPROVER_assume@plt>
call   1050 <__CPROVER_isnormal@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1060 <assert@plt>
call   1070 <__CPROVER_isnan@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1060 <assert@plt>
call   1070 <__CPROVER_isnan@plt>
mov    %eax,%edi
call   1040 <__CPROVER_assume@plt>
call   1050 <__CPROVER_isnormal@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1060 <assert@plt>
call   1080 <__CPROVER_isinf@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1060 <assert@plt>
mov    $0x1,%edi
call   1060 <assert@plt>
call   1030 <__CPROVER_isfinite@plt>
mov    %eax,%edi
call   1040 <__CPROVER_assume@plt>
call   1070 <__CPROVER_isnan@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1060 <assert@plt>
call   1080 <__CPROVER_isinf@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1060 <assert@plt>
call   1070 <__CPROVER_isnan@plt>
xor    %edi,%edi
test   %eax,%eax
jne    124f <main+0xef>
call   1080 <__CPROVER_isinf@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1040 <__CPROVER_assume@plt>
call   1030 <__CPROVER_isfinite@plt>
mov    %eax,%edi
call   1060 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
store i32 0, i32* %1
%12 = load double, double* %3
store double %12, double* %2
%13 = load double, double* %2
%14 = call i32 @__CPROVER_isnormal(double %13)
%15 = call i32 @__CPROVER_assume(i32 %14)
%16 = load double, double* %2
%17 = call i32 @__CPROVER_isnan(double %16)
%18 = icmp ne i32 %17, 0
%19 = xor i1 %18, true
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 %20)
%22 = load double, double* %2
%23 = call i32 @__CPROVER_isinf(double %22)
%24 = icmp ne i32 %23, 0
%25 = xor i1 %24, true
%26 = zext i1 %25 to i32
%27 = call i32 @assert(i32 %26)
%28 = load double, double* %2
%29 = call i32 @__CPROVER_isfinite(double %28)
%30 = call i32 @assert(i32 %29)
%31 = load double, double* %5
store double %31, double* %4
%32 = load double, double* %4
%33 = call i32 @__CPROVER_isinf(double %32)
%34 = call i32 @__CPROVER_assume(i32 %33)
%35 = load double, double* %4
%36 = call i32 @__CPROVER_isnormal(double %35)
%37 = icmp ne i32 %36, 0
%38 = xor i1 %37, true
%39 = zext i1 %38 to i32
%40 = call i32 @assert(i32 %39)
%41 = load double, double* %4
%42 = call i32 @__CPROVER_isnan(double %41)
%43 = icmp ne i32 %42, 0
%44 = xor i1 %43, true
%45 = zext i1 %44 to i32
%46 = call i32 @assert(i32 %45)
%47 = load double, double* %7
store double %47, double* %6
%48 = load double, double* %6
%49 = call i32 @__CPROVER_isnan(double %48)
%50 = call i32 @__CPROVER_assume(i32 %49)
%51 = load double, double* %6
%52 = call i32 @__CPROVER_isnormal(double %51)
%53 = icmp ne i32 %52, 0
%54 = xor i1 %53, true
%55 = zext i1 %54 to i32
%56 = call i32 @assert(i32 %55)
%57 = load double, double* %6
%58 = call i32 @__CPROVER_isinf(double %57)
%59 = icmp ne i32 %58, 0
%60 = xor i1 %59, true
%61 = zext i1 %60 to i32
%62 = call i32 @assert(i32 %61)
%63 = load double, double* %6
%64 = load double, double* %6
%65 = fcmp une double %63, %64
%66 = zext i1 %65 to i32
%67 = call i32 @assert(i32 %66)
%68 = load double, double* %9
store double %68, double* %8
%69 = load double, double* %8
%70 = call i32 @__CPROVER_isfinite(double %69)
%71 = call i32 @__CPROVER_assume(i32 %70)
%72 = load double, double* %8
%73 = call i32 @__CPROVER_isnan(double %72)
%74 = icmp ne i32 %73, 0
%75 = xor i1 %74, true
%76 = zext i1 %75 to i32
%77 = call i32 @assert(i32 %76)
%78 = load double, double* %8
%79 = call i32 @__CPROVER_isinf(double %78)
%80 = icmp ne i32 %79, 0
%81 = xor i1 %80, true
%82 = zext i1 %81 to i32
%83 = call i32 @assert(i32 %82)
%84 = load double, double* %11
store double %84, double* %10
%85 = load double, double* %10
%86 = call i32 @__CPROVER_isnan(double %85)
%87 = icmp ne i32 %86, 0
br i1 %87, label %93, label %88
88: ; preds = %0
%89 = load double, double* %10
%90 = call i32 @__CPROVER_isinf(double %89)
%91 = icmp ne i32 %90, 0
%92 = xor i1 %91, true
br label %93
93: ; preds = %88, %0
%94 = phi i1 [ false, %0 ], [ %92, %88 ]
%95 = zext i1 %94 to i32
%96 = call i32 @__CPROVER_assume(i32 %95)
%97 = load double, double* %10
%98 = call i32 @__CPROVER_isfinite(double %97)
%99 = call i32 @assert(i32 %98)
%100 = load i32, i32* %1
ret i32 %100
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @__CPROVER_isnormal(double undef)
%2 = tail call i32 @__CPROVER_assume(i32 %1)
%3 = tail call i32 @__CPROVER_isnan(double undef)
%4 = icmp eq i32 %3, 0
%5 = zext i1 %4 to i32
%6 = tail call i32 @assert(i32 %5)
%7 = tail call i32 @__CPROVER_isinf(double undef)
%8 = icmp eq i32 %7, 0
%9 = zext i1 %8 to i32
%10 = tail call i32 @assert(i32 %9)
%11 = tail call i32 @__CPROVER_isfinite(double undef)
%12 = tail call i32 @assert(i32 %11)
%13 = tail call i32 @__CPROVER_isinf(double undef)
%14 = tail call i32 @__CPROVER_assume(i32 %13)
%15 = tail call i32 @__CPROVER_isnormal(double undef)
%16 = icmp eq i32 %15, 0
%17 = zext i1 %16 to i32
%18 = tail call i32 @assert(i32 %17)
%19 = tail call i32 @__CPROVER_isnan(double undef)
%20 = icmp eq i32 %19, 0
%21 = zext i1 %20 to i32
%22 = tail call i32 @assert(i32 %21)
%23 = tail call i32 @__CPROVER_isnan(double undef)
%24 = tail call i32 @__CPROVER_assume(i32 %23)
%25 = tail call i32 @__CPROVER_isnormal(double undef)
%26 = icmp eq i32 %25, 0
%27 = zext i1 %26 to i32
%28 = tail call i32 @assert(i32 %27)
%29 = tail call i32 @__CPROVER_isinf(double undef)
%30 = icmp eq i32 %29, 0
%31 = zext i1 %30 to i32
%32 = tail call i32 @assert(i32 %31)
%33 = tail call i32 @assert(i32 1)
%34 = tail call i32 @__CPROVER_isfinite(double undef)
%35 = tail call i32 @__CPROVER_assume(i32 %34)
%36 = tail call i32 @__CPROVER_isnan(double undef)
%37 = icmp eq i32 %36, 0
%38 = zext i1 %37 to i32
%39 = tail call i32 @assert(i32 %38)
%40 = tail call i32 @__CPROVER_isinf(double undef)
%41 = icmp eq i32 %40, 0
%42 = zext i1 %41 to i32
%43 = tail call i32 @assert(i32 %42)
%44 = tail call i32 @__CPROVER_isnan(double undef)
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %0
%47 = tail call i32 @__CPROVER_isinf(double undef)
%48 = icmp eq i32 %47, 0
%49 = zext i1 %48 to i32
br label %50
50: ; preds = %46, %0
%51 = phi i32 [ 0, %0 ], [ %49, %46 ]
%52 = tail call i32 @__CPROVER_assume(i32 %51)
%53 = tail call i32 @__CPROVER_isfinite(double undef)
%54 = tail call i32 @assert(i32 %53)
ret i32 0
}