[SMTChecker] Do not report error when rlimit

This commit is contained in:
Leonardo Alt
2020-09-25 18:43:10 +02:00
parent cb60c678ce
commit 0223571987
12 changed files with 5 additions and 14 deletions
+5 -2
View File
@@ -95,9 +95,12 @@ pair<CheckResult, CHCSolverInterface::CexGraph> Z3CHCInterface::query(Expression
}
// TODO retrieve model / invariants
}
catch (z3::exception const&)
catch (z3::exception const& _err)
{
result = CheckResult::ERROR;
if (_err.msg() == string("max. resource limit exceeded"))
result = CheckResult::UNKNOWN;
else
result = CheckResult::ERROR;
cex = {};
}