Renamed internal variables for clarity.

This commit is contained in:
2017-06-06 01:44:44 +02:00
parent 95984f0447
commit 0285c1cbbb
7 changed files with 15 additions and 15 deletions

View File

@@ -58,13 +58,13 @@ void translate(const char *fileName, std::istream &stream, Context &context)
Clingo::parse_program(fileContent.c_str(), translateStatement, logger);
if (context.simplify)
if (context.performSimplification)
for (auto &scopedFormula : scopedFormulas)
simplify(scopedFormula.formula);
ast::PrintContext printContext;
if (!context.complete)
if (!context.performCompletion)
{
if (context.visiblePredicateSignatures)
context.logger.log(output::Priority::Warning) << "#show statements are ignored because completion is not enabled";
@@ -81,7 +81,7 @@ void translate(const char *fileName, std::istream &stream, Context &context)
auto completedFormulas = complete(std::move(scopedFormulas), context);
// TODO: rethink simplification steps
if (context.simplify)
if (context.performSimplification)
for (auto &completedFormula : completedFormulas)
simplify(completedFormula);