3
0
Fork 0
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:
Nuno Lopes 2022-12-29 11:08:57 +00:00
parent 7cc58c9cc3
commit 47324af210
3 changed files with 33 additions and 12 deletions

View file

@ -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);
}