Support indexed operators re.loop and re.^ (#4167)
[cvc5.git] / src / util / abstract_value.cpp
1 /********************* */
2 /*! \file abstract_value.cpp
3 ** \verbatim
4 ** Top contributors (to current version):
5 ** Tim King, Morgan Deters
6 ** This file is part of the CVC4 project.
7 ** Copyright (c) 2009-2019 by the authors listed in the file AUTHORS
8 ** in the top-level source directory) and their institutional affiliations.
9 ** All rights reserved. See the file COPYING in the top-level source
10 ** directory for licensing information.\endverbatim
11 **
12 ** \brief Representation of abstract values
13 **
14 ** Representation of abstract values.
15 **/
16
17 #include "util/abstract_value.h"
18
19 #include <iostream>
20 #include <sstream>
21 #include <string>
22
23 #include "base/check.h"
24
25 using namespace std;
26
27 namespace CVC4 {
28
29 std::ostream& operator<<(std::ostream& out, const AbstractValue& val) {
30 return out << "@" << val.getIndex();
31 }
32
33 AbstractValue::AbstractValue(Integer index) : d_index(index)
34 {
35 PrettyCheckArgument(index >= 1,
36 index,
37 "index >= 1 required for abstract value, not `%s'",
38 index.toString().c_str());
39 }
40
41 }/* CVC4 namespace */