1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/********************* */
/*! \file floatingpoint.cpp
** \verbatim
** Original author: Martin Brain
** Major contributors:
** Minor contributors (to current version):
** This file is part of the CVC4 project.
** Copyright (c) 2013 University of Oxford
** See the file COPYING in the top-level source directory for licensing
** information.\endverbatim
**
** \brief [[ Implementations of the utility functions for working with floating point theories. ]]
**
**/
#include "util/floatingpoint.h"
#include "base/cvc4_assert.h"
namespace CVC4 {
FloatingPointSize::FloatingPointSize (unsigned _e, unsigned _s) : e(_e), s(_s)
{
CheckArgument(validExponentSize(_e),_e,"Invalid exponent size : %d",_e);
CheckArgument(validSignificandSize(_s),_s,"Invalid significand size : %d",_s);
}
FloatingPointSize::FloatingPointSize (const FloatingPointSize &old) : e(old.e), s(old.s)
{
CheckArgument(validExponentSize(e),e,"Invalid exponent size : %d",e);
CheckArgument(validSignificandSize(s),s,"Invalid significand size : %d",s);
}
void FloatingPointLiteral::unfinished (void) const {
Unimplemented("Floating-point literals not yet implemented.");
}
}/* CVC4 namespace */
|