Add option to turn on integer variable detection
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user