summaryrefslogtreecommitdiff
path: root/examples/nra-translate/smt2todreal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/nra-translate/smt2todreal.cpp')
-rw-r--r--examples/nra-translate/smt2todreal.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/examples/nra-translate/smt2todreal.cpp b/examples/nra-translate/smt2todreal.cpp
index 56f323812..331cf894f 100644
--- a/examples/nra-translate/smt2todreal.cpp
+++ b/examples/nra-translate/smt2todreal.cpp
@@ -24,7 +24,6 @@
#include "expr/expr.h"
#include "expr/expr_iomanip.h"
-#include "options/base_options.h"
#include "options/options.h"
#include "parser/parser.h"
#include "parser/parser_builder.h"
@@ -36,20 +35,20 @@ using namespace CVC4;
using namespace CVC4::parser;
using namespace CVC4::options;
-int main(int argc, char* argv[])
+int main(int argc, char* argv[])
{
- // Get the filename
+ // Get the filename
string input(argv[1]);
// Create the expression manager
Options options;
- options.set(inputLanguage, language::input::LANG_SMTLIB_V2);
- options.set(outputLanguage, language::output::LANG_SMTLIB_V2);
+ options.setInputLanguage(language::input::LANG_SMTLIB_V2);
+ options.setOutputLanguage(language::output::LANG_SMTLIB_V2);
ExprManager exprManager(options);
cout << expr::ExprDag(0) << expr::ExprSetDepth(-1);
-
+
// Create the parser
ParserBuilder parserBuilder(&exprManager, input, options);
Parser* parser = parserBuilder.build();
@@ -82,5 +81,3 @@ int main(int argc, char* argv[])
// Get rid of the parser
delete parser;
}
-
-
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback