#include "util/ostream_util.h"
#include "util/smt2_quote_string.h"
-namespace CVC4 {
+namespace cvc5 {
const int PrettySExprs::s_iosIndex = std::ios_base::xalloc();
Assert((d_children == NULL) == isAtom());
}
-SExpr::SExpr(const CVC4::Integer& value)
+SExpr::SExpr(const cvc5::Integer& value)
: d_sexprType(SEXPR_INTEGER),
d_integerValue(value),
d_rationalValue(0),
d_stringValue(""),
- d_children(NULL) {}
+ d_children(NULL)
+{
+}
SExpr::SExpr(int value)
: d_sexprType(SEXPR_INTEGER),
d_stringValue(""),
d_children(NULL) {}
-SExpr::SExpr(const CVC4::Rational& value)
+SExpr::SExpr(const cvc5::Rational& value)
: d_sexprType(SEXPR_RATIONAL),
d_integerValue(0),
d_rationalValue(value),
d_stringValue(""),
- d_children(NULL) {}
+ d_children(NULL)
+{
+}
SExpr::SExpr(const std::string& value)
: d_sexprType(SEXPR_STRING),
return std::string();
}
-const CVC4::Integer& SExpr::getIntegerValue() const {
+const cvc5::Integer& SExpr::getIntegerValue() const
+{
PrettyCheckArgument(isInteger(), this);
return d_integerValue;
}
-const CVC4::Rational& SExpr::getRationalValue() const {
+const cvc5::Rational& SExpr::getRationalValue() const
+{
PrettyCheckArgument(isRational(), this);
return d_rationalValue;
}
return SExpr(parsedListsOfAtoms);
}
-} /* CVC4 namespace */
+} // namespace cvc5