diff options
author | Tim King <taking@google.com> | 2015-12-18 17:19:07 -0800 |
---|---|---|
committer | Tim King <taking@google.com> | 2015-12-18 17:19:07 -0800 |
commit | 5f207ba01302c3245e169bfbe2ed91ad0cd659cd (patch) | |
tree | e1131e8c2891e283ab028fba6a7a677bb4ac9f5f /examples/api/sets.cpp | |
parent | 7e4468ba0aa0b08eeb4ba1a86b1fdd839ae169d6 (diff) |
Modifying emptyset.h and sexpr. Adding SetLanguage.
- Modifies expr/emptyset.h to use SetType only as an incomplete type within expr/emptyset.h. This breaks the include cycle between expr/emptyset.h, expr/expr.h and expr/type.h.
- Refactors SExpr to avoid a potentially infinite cycle. This is likely overkill, but it works.
- Moving Expr::setlanguage and related utilities out of the Expr class and into their own file. This allows files in util/ to know the output language set on an ostream.
Diffstat (limited to 'examples/api/sets.cpp')
-rw-r--r-- | examples/api/sets.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/api/sets.cpp b/examples/api/sets.cpp index 7390eefe0..68de230fe 100644 --- a/examples/api/sets.cpp +++ b/examples/api/sets.cpp @@ -18,6 +18,7 @@ //#include <cvc4/cvc4.h> // use this after CVC4 is properly installed #include "smt/smt_engine.h" +#include "options/set_language.h" using namespace std; using namespace CVC4; @@ -34,8 +35,8 @@ int main() { smt.setOption("produce-models", true); // Set output language to SMTLIB2 - cout << Expr::setlanguage(language::output::LANG_SMTLIB_V2); - + cout << language::SetLanguage(language::output::LANG_SMTLIB_V2); + Type integer = em.integerType(); Type set = em.mkSetType(integer); |