** Don't fear the files-changed list, almost all changes are in the **
[cvc5.git] / src / theory / arith / delta_rational.cpp
1 /********************* */
2 /*! \file delta_rational.cpp
3 ** \verbatim
4 ** Original author: taking
5 ** Major contributors: none
6 ** Minor contributors (to current version): none
7 ** This file is part of the CVC4 prototype.
8 ** Copyright (c) 2009, 2010 The Analysis of Computer Systems Group (ACSys)
9 ** Courant Institute of Mathematical Sciences
10 ** New York University
11 ** See the file COPYING in the top-level source directory for licensing
12 ** information.\endverbatim
13 **
14 ** \brief [[ Add one-line brief description here ]]
15 **
16 ** [[ Add lengthier description here ]]
17 ** \todo document this file
18 **/
19
20
21 #include "theory/arith/delta_rational.h"
22
23 using namespace std;
24 using namespace CVC4;
25
26 std::ostream& CVC4::operator<<(std::ostream& os, const DeltaRational& dq){
27 return os << "(" << dq.getNoninfintestimalPart()
28 << "," << dq.getInfintestimalPart() << ")";
29 }
30
31
32 std::string DeltaRational::toString() const {
33 return "(" + getNoninfintestimalPart().toString() + "," +
34 getInfintestimalPart().toString() + ")";
35 }