Project

General

Profile

Actions

Task #5465

closed

[z3][solver] solver errors elaboration scheme

Added by Sergey Smolov almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Andrei Tatarnikov
Category:
-
Target version:
Start date:
12/04/2014
Due date:
% Done:

100%

Estimated time:
Detected in build:
svn
Published in build:
141226

Description

The following scheme is implemented now: when the solver verdict is "sat" and the solver output contains errors, an exception is thrown (see isSat method at ru.ispras.fortress.expression.ExprUtils class).

This scheme is incomplete, because we cannot detect critical errors when the solver verdict is "unsat", for example.

So the following scheme should be implemented:

While parsing Z3 solver output, only those errors should be taken into account, that come before the solver verdict (sat, unsat, unknown).
Those errors are critical and the library should throw an appropriate exception.

Errors that come after the solver verdict (such errors appears every time we call "get-model" when the verdict is "unsat"), can be treated as warnings/non-critical or ignored (as you wish). There is no need to throw an exception on them.

Actions #1

Updated by Sergey Smolov almost 10 years ago

  • Subject changed from [z3][solver] to [z3][solver] solver errors elaboration scheme
Actions #2

Updated by Andrei Tatarnikov almost 10 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Done r723 and r724. Now it works in the following way:

  1. Method Z3TextSolver.solve returns SolverResult.Status.ERROR if an error is detected before status information (sat, unsat, unknown) was read from the solver output.
  2. Method ExprUtils.isSAT throws an exception if the solver result status is not SAT (in the case, true is returned) or UNSAT (in the case, false is returned).
Actions #3

Updated by Sergey Smolov almost 10 years ago

  • Status changed from Resolved to Verified
Actions #4

Updated by Andrei Tatarnikov almost 10 years ago

  • Status changed from Verified to Closed
  • Published in build set to 141226
Actions

Also available in: Atom PDF