template <class T>
static bool tryToStream(std::ostream& out, const Command* c, Variant v);
-static std::string quoteSymbol(TNode n) {
- std::stringstream ss;
- ss << n;
- return cvc5::quoteSymbol(ss.str());
-}
-
template <class T>
static bool tryToStream(std::ostream& out, const CommandStatus* s, Variant v);
|| options::modelUninterpPrint()
== options::ModelUninterpPrintMode::DeclFun)
{
- out << "(declare-fun " << quoteSymbol(trn) << " () " << tn << ")"
- << endl;
+ out << "(declare-fun " << trn << " () " << tn << ")" << endl;
}
}
else
TypeNode type) const
{
Assert(type.isSort() || type.isSortConstructor());
- std::stringstream id;
- id << type;
size_t arity = type.isSortConstructor() ? type.getSortConstructorArity() : 0;
- out << "(declare-sort " << cvc5::quoteSymbol(id.str()) << " " << arity << ")"
- << std::endl;
+ out << "(declare-sort " << type << " " << arity << ")" << std::endl;
}
void Smt2Printer::toStreamCmdDefineType(std::ostream& out,
bool isInv,
TypeNode sygusType) const
{
- std::stringstream sym;
- sym << f;
- out << '(' << (isInv ? "synth-inv " : "synth-fun ")
- << cvc5::quoteSymbol(sym.str()) << ' ';
- out << '(';
+ out << '(' << (isInv ? "synth-inv " : "synth-fun ") << f << ' ' << '(';
if (!vars.empty())
{
// print variable list