3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-19 12:23:38 +00:00
add memory limit check to internalize
This commit is contained in:
Nikolaj Bjorner 2022-04-19 07:31:40 +02:00
parent 9b66d8600b
commit a1ead5f47d

View file

@ -350,6 +350,8 @@ namespace smt {
- gate_ctx is true if the expression is in the context of a logical gate. - gate_ctx is true if the expression is in the context of a logical gate.
*/ */
void context::internalize(expr * n, bool gate_ctx) { void context::internalize(expr * n, bool gate_ctx) {
if (memory::above_high_watermark())
throw default_exception("resource limit exceeded during internalization");
internalize_deep(n); internalize_deep(n);
internalize_rec(n, gate_ctx); internalize_rec(n, gate_ctx);
} }