Consolidate language types (#7065)
authorGereon Kremer <nafur42@gmail.com>
Thu, 26 Aug 2021 00:19:41 +0000 (17:19 -0700)
committerGitHub <noreply@github.com>
Thu, 26 Aug 2021 00:19:41 +0000 (00:19 +0000)
commit71f025753f734ddade5da333dfe2d144fbc13221
tree271e0a03b5612652d5fdb040fa2d7f43e8644aea
parent78d29da02099762374adeb694ed96c496c7e1ffc
Consolidate language types (#7065)

This PR combines the two enums InputLanguage and OutputLanguage into a single Language type. It makes sure that AST is not used as input language using a predicate whenever the option is set.
53 files changed:
src/expr/dtype.cpp
src/expr/dtype_cons.cpp
src/expr/dtype_selector.cpp
src/expr/node.h
src/expr/node_value.cpp
src/expr/node_value.h
src/expr/type_node.cpp
src/expr/type_node.h
src/main/driver_unified.cpp
src/main/interactive_shell.cpp
src/main/main.cpp
src/options/base_options.toml
src/options/language.cpp
src/options/language.h
src/options/options_handler.cpp
src/options/options_handler.h
src/options/set_language.cpp
src/options/set_language.h
src/parser/antlr_input.cpp
src/parser/antlr_input.h
src/parser/cvc/Cvc.g
src/parser/input.cpp
src/parser/input.h
src/parser/parser.cpp
src/parser/parser_builder.cpp
src/parser/parser_builder.h
src/parser/smt2/smt2.cpp
src/parser/smt2/smt2.h
src/printer/cvc/cvc_printer.cpp
src/printer/printer.cpp
src/printer/printer.h
src/printer/smt2/smt2_printer.cpp
src/printer/tptp/tptp_printer.cpp
src/smt/assertions.cpp
src/smt/command.cpp
src/smt/command.h
src/smt/node_command.cpp
src/smt/node_command.h
src/smt/optimization_solver.cpp
src/smt/set_defaults.cpp
src/smt/smt_engine.cpp
src/theory/quantifiers/sygus/synth_verify.cpp
src/util/result.cpp
src/util/result.h
test/api/ouroborous.cpp
test/api/smt2_compliance.cpp
test/regress/regress0/lang_opts_2_6_1.smt2
test/regress/regress0/options/set-and-get-options.smt2
test/unit/node/node_black.cpp
test/unit/parser/parser_black.cpp
test/unit/parser/parser_builder_black.cpp
test/unit/printer/smt2_printer_black.cpp
test/unit/util/boolean_simplification_black.cpp