Refactor functions that print commands (Part 2) (#4905)
authorAbdalrhman Mohamed <32971963+abdoo8080@users.noreply.github.com>
Tue, 18 Aug 2020 22:52:25 +0000 (17:52 -0500)
committerGitHub <noreply@github.com>
Tue, 18 Aug 2020 22:52:25 +0000 (17:52 -0500)
commitbcbef9dfa053a14ac48f176fe4bde9a1aa2b4931
treee01bff53c1dfc1b91d605714c1a8a53aa4dda631
parent77fdb2327ae969a7d97b6eb67ad3526d78867b3a
Refactor functions that print commands (Part 2) (#4905)

This PR is a step towards migrating commands to the Term/Sort level. It replaces the dynamic casts for printing commands with direct calls to corresponding functions. Those functions now take node level arguments instead of commands to make them available for internal code.
13 files changed:
src/api/cvc4cpp.h
src/printer/ast/ast_printer.cpp
src/printer/ast/ast_printer.h
src/printer/cvc/cvc_printer.cpp
src/printer/cvc/cvc_printer.h
src/printer/printer.cpp
src/printer/printer.h
src/printer/smt2/smt2_printer.cpp
src/printer/smt2/smt2_printer.h
src/printer/tptp/tptp_printer.cpp
src/printer/tptp/tptp_printer.h
src/smt/command.cpp
src/smt/command.h