From: Andrew Reynolds Date: Mon, 4 Jun 2018 19:55:10 +0000 (-0500) Subject: Move assertion. (#2051) X-Git-Tag: cvc5-1.0.0~4978 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e8a4e25751263a923a8d4cfd4d404fc0d24aa03;p=cvc5.git Move assertion. (#2051) --- diff --git a/src/theory/arrays/theory_arrays.cpp b/src/theory/arrays/theory_arrays.cpp index 87edbe316..9a51a1f43 100644 --- a/src/theory/arrays/theory_arrays.cpp +++ b/src/theory/arrays/theory_arrays.cpp @@ -668,6 +668,7 @@ void TheoryArrays::preRegisterTermInternal(TNode node) { d_equalityEngine.addTerm(node); } + Assert((d_isPreRegistered.insert(node), true)); if (options::arraysLazyRIntro1() && !options::arraysWeakEquivalence()) { // Apply RIntro1 rule to any stores equal to store if not done already @@ -717,7 +718,6 @@ void TheoryArrays::preRegisterTermInternal(TNode node) d_reads.push_back(node); } - Assert((d_isPreRegistered.insert(node), true)); checkRowForIndex(node[1], store); break; }