Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add memory limit check to internalize
  • Loading branch information
NikolajBjorner committed Apr 19, 2022
1 parent 9b66d86 commit a1ead5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/smt/smt_internalizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ namespace smt {
- gate_ctx is true if the expression is in the context of a logical gate.
*/
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_rec(n, gate_ctx);
}
Expand Down

0 comments on commit a1ead5f

Please sign in to comment.