mirror of
https://github.com/Z3Prover/z3
synced 2025-08-10 21:20:52 +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
|
@ -595,7 +595,9 @@ public:
|
|||
}
|
||||
|
||||
|
||||
struct invalid_lemma {};
|
||||
struct invalid_lemma: public iz3_exception {
|
||||
invalid_lemma(): iz3_exception("invalid_lemma") {}
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
@ -846,7 +848,9 @@ public:
|
|||
return 1;
|
||||
}
|
||||
|
||||
struct non_lit_local_ante {};
|
||||
struct non_lit_local_ante: public iz3_exception {
|
||||
non_lit_local_ante(): iz3_exception("non_lit_local_ante") {}
|
||||
};
|
||||
|
||||
bool local_antes_simple;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue