mirror of
https://github.com/Z3Prover/z3
synced 2025-08-24 20:16:00 +00:00
be nicer when memout is reached in SMT internalize: return undef rather than crashing
This commit is contained in:
parent
7cc58c9cc3
commit
47324af210
3 changed files with 33 additions and 12 deletions
|
@ -353,7 +353,7 @@ namespace smt {
|
|||
*/
|
||||
void context::internalize(expr * n, bool gate_ctx) {
|
||||
if (memory::above_high_watermark())
|
||||
throw default_exception("resource limit exceeded during internalization");
|
||||
throw cancel_exception();
|
||||
internalize_deep(n);
|
||||
internalize_rec(n, gate_ctx);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue