out << "Quit()" << std::endl;
}
-void AstPrinter::toStreamCmdDeclarationSequence(
- std::ostream& out, const std::vector<cvc5::Command*>& sequence) const
-{
- out << "DeclarationSequence[" << endl;
- for (cvc5::CommandSequence::const_iterator i = sequence.cbegin();
- i != sequence.cend();
- ++i)
- {
- out << *i << endl;
- }
- out << "]" << std::endl;
-}
-
void AstPrinter::toStreamCmdCommandSequence(
std::ostream& out, const std::vector<cvc5::Command*>& sequence) const
{
std::ostream& out,
const std::vector<cvc5::Command*>& sequence) const override;
- /** Print declaration sequence command */
- void toStreamCmdDeclarationSequence(
- std::ostream& out,
- const std::vector<cvc5::Command*>& sequence) const override;
-
private:
void toStream(std::ostream& out,
TNode n,
printUnknownCommand(out, "sequence");
}
-void Printer::toStreamCmdDeclarationSequence(
- std::ostream& out, const std::vector<cvc5::Command*>& sequence) const
-{
- printUnknownCommand(out, "sequence");
-}
-
} // namespace cvc5::internal
virtual void toStreamCmdCommandSequence(
std::ostream& out, const std::vector<cvc5::Command*>& sequence) const;
- /** Print declaration sequence command */
- virtual void toStreamCmdDeclarationSequence(
- std::ostream& out, const std::vector<cvc5::Command*>& sequence) const;
-
protected:
/** Derived classes can construct, but no one else. */
Printer() {}
}
}
-void Smt2Printer::toStreamCmdDeclarationSequence(
- std::ostream& out, const std::vector<cvc5::Command*>& sequence) const
-{
- toStreamCmdCommandSequence(out, sequence);
-}
-
void Smt2Printer::toStreamCmdDeclareFunction(std::ostream& out,
const std::string& id,
TypeNode type) const
std::ostream& out,
const std::vector<cvc5::Command*>& sequence) const override;
- /** Print declaration sequence command */
- void toStreamCmdDeclarationSequence(
- std::ostream& out,
- const std::vector<cvc5::Command*>& sequence) const override;
-
/**
* Get the string for a kind k, which returns how the kind k is printed in
* the SMT-LIB format (with variant v).
Printer::getPrinter(out)->toStreamCmdCommandSequence(out, d_commandSequence);
}
-/* -------------------------------------------------------------------------- */
-/* class DeclarationSequence */
-/* -------------------------------------------------------------------------- */
-
-void DeclarationSequence::toStream(std::ostream& out) const
-{
- Printer::getPrinter(out)->toStreamCmdDeclarationSequence(out,
- d_commandSequence);
-}
-
/* -------------------------------------------------------------------------- */
/* class DeclarationDefinitionCommand */
/* -------------------------------------------------------------------------- */
void toStream(std::ostream& out) const override;
}; /* class CommandSequence */
-class CVC5_EXPORT DeclarationSequence : public CommandSequence
-{
- void toStream(std::ostream& out) const override;
-};
-
} // namespace cvc5
#endif /* CVC5__COMMAND_H */