mirror of
https://github.com/Z3Prover/z3
synced 2025-05-12 18:24:43 +00:00
use a base iz3_exception class for exceptions raised during interpolation
Using a base exception class, derived from z3_exception, makes it possible to recover gracefully if something goes wrong during the computation of interpolants.
This commit is contained in:
parent
af444beb2e
commit
8e772b428b
13 changed files with 109 additions and 57 deletions
|
@ -50,7 +50,9 @@ class iz3proof_itp : public iz3mgr {
|
|||
typedef ast node;
|
||||
|
||||
/** Object thrown in case of a proof error. */
|
||||
struct proof_error {};
|
||||
struct proof_error: public iz3_exception {
|
||||
proof_error(): iz3_exception("proof_error") {}
|
||||
};
|
||||
|
||||
|
||||
/** Make a resolution node with given pivot literal and premises.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue