This commit is contained in:
chriseth
2022-03-20 22:34:37 +01:00
parent 22aba74176
commit a3f999a13e
4 changed files with 20 additions and 4 deletions
@@ -85,6 +85,7 @@ void ReasoningBasedSimplifier::operator()(If& _if)
{
cout << "Checking if condition can be true" << endl;
m_solver->push();
// TODO change this to >= 1 for simplicity?
m_solver->addAssertion(condition != constantValue(0));
cout << " running check" << endl;
CheckResult result2 = m_solver->check({}).first;
@@ -99,6 +100,7 @@ void ReasoningBasedSimplifier::operator()(If& _if)
// Nothing left to be done.
return;
}
cout << " unknown :(" << endl;
}
m_solver->push();