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