Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Source/Provers/SMTLib/SMTLibInteractiveTheoremProver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,15 @@ public async Task<SolverOutcome> CheckSat(CancellationToken cancellationToken,
currentErrorHandler.OnModel(labels, model, result);
}

// if the solver is out of resources or has timed out, the global result needs to reflect that.
if (result == SolverOutcome.OutOfResource || result == SolverOutcome.TimeOut) {
globalResult = result;
}

Debug.Assert(errorsDiscovered > 0);
// if errorLimit is 0, loop will break only if there are no more
// counterexamples to be discovered.
// counterexamples to be discovered or the solver is out of resources
// or has timed out.
if (labels == null || !labels.Any() || errorsDiscovered == errorLimit)
{
break;
Expand Down