Add option to turn on integer variable detection

This commit is contained in:
2018-04-20 16:31:53 +02:00
parent 19e1e16e45
commit b60c65a810
3 changed files with 8 additions and 0 deletions

View File

@@ -8,6 +8,7 @@
#include <anthem/Completion.h>
#include <anthem/Context.h>
#include <anthem/IntegerVariableDetection.h>
#include <anthem/Simplification.h>
#include <anthem/StatementVisitor.h>
#include <anthem/output/AST.h>
@@ -109,6 +110,10 @@ void translate(const char *fileName, std::istream &stream, Context &context)
<< "” does not match any declared predicate";
}
// Detect integer variables
if (context.performIntegerDetection)
detectIntegerVariables(completedFormulas);
// Simplify output if specified
if (context.performSimplification)
for (auto &completedFormula : completedFormulas)