diff options
author | Gereon Kremer <nafur42@gmail.com> | 2021-06-02 14:11:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-02 12:11:05 +0000 |
commit | 6d359817283f196034d8e36d0b9c1f10fb16d644 (patch) | |
tree | cb7d17927671a3b059575a86b55676eec922cef8 /test | |
parent | 61b2694ac72d41aeff9c67e3631278e5a3bea5cb (diff) |
Move public wrapper functions out of options class (#6600)
This PR moves options wrapper functions out of the Options class. These wrapper functions are meant to be called by "external" code that should not access the options modules. This PR thereby significantly reduces the interface of the Options class.
Diffstat (limited to 'test')
-rw-r--r-- | test/api/smt2_compliance.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/api/smt2_compliance.cpp b/test/api/smt2_compliance.cpp index 04b366cf0..9794888b2 100644 --- a/test/api/smt2_compliance.cpp +++ b/test/api/smt2_compliance.cpp @@ -19,6 +19,7 @@ #include "api/cpp/cvc5.h" #include "options/options.h" +#include "options/options_public.h" #include "options/set_language.h" #include "parser/parser.h" #include "parser/parser_builder.h" @@ -34,8 +35,8 @@ void testGetInfo(api::Solver* solver, const char* s); int main() { Options opts; - opts.setInputLanguage(language::input::LANG_SMTLIB_V2); - opts.setOutputLanguage(language::output::LANG_SMTLIB_V2); + options::setInputLanguage(language::input::LANG_SMTLIB_V2, opts); + options::setOutputLanguage(language::output::LANG_SMTLIB_V2, opts); cout << language::SetLanguage(language::output::LANG_SMTLIB_V2); |