Skip to content

Commit 79b7d8a

Browse files
throttle squash-store #7134
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
1 parent a3d00ce commit 79b7d8a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ast/rewriter/array_rewriter.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ br_status array_rewriter::mk_store_core(unsigned num_args, expr * const * args,
206206
bool array_rewriter::squash_store(unsigned n, expr* const* args, expr_ref& result) {
207207
ptr_buffer<expr> parents, sargs;
208208
expr* a = args[0];
209-
while (m_util.is_store(a)) {
209+
unsigned rounds = 0;
210+
while (m_util.is_store(a) && rounds < 10) {
211+
++rounds;
210212
lbool r = compare_args(n - 2, args + 1, to_app(a)->get_args() + 1);
211213
switch (r) {
212214
case l_undef:

0 commit comments

Comments
 (0)