summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-04-14 14:38:01 -0500
committerGitHub <noreply@github.com>2020-04-14 14:38:01 -0500
commite7546557861686126b86a94fe797701afb1be4cd (patch)
tree313a67cb1349294f72e2024f0219afa86801292d /src/theory/quantifiers
parentec83ced90e3c4db2b2b31458628a1957fc684484 (diff)
Remove a few spurious assertions (#4294)
Fixes #4290 and fixes #4292.
Diffstat (limited to 'src/theory/quantifiers')
-rw-r--r--src/theory/quantifiers/cegqi/ceg_instantiator.cpp2
-rw-r--r--src/theory/quantifiers/sygus/sygus_process_conj.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/theory/quantifiers/cegqi/ceg_instantiator.cpp b/src/theory/quantifiers/cegqi/ceg_instantiator.cpp
index f81b0e160..e62de0840 100644
--- a/src/theory/quantifiers/cegqi/ceg_instantiator.cpp
+++ b/src/theory/quantifiers/cegqi/ceg_instantiator.cpp
@@ -1151,8 +1151,8 @@ bool CegInstantiator::canApplyBasicSubstitution( Node n, std::vector< Node >& no
Node CegInstantiator::applySubstitution( TypeNode tn, Node n, std::vector< Node >& vars, std::vector< Node >& subs, std::vector< TermProperties >& prop,
std::vector< Node >& non_basic, TermProperties& pv_prop, bool try_coeff ) {
+ n = Rewriter::rewrite(n);
computeProgVars( n );
- Assert(n == Rewriter::rewrite(n));
bool is_basic = canApplyBasicSubstitution( n, non_basic );
if( Trace.isOn("cegqi-si-apply-subs-debug") ){
Trace("cegqi-si-apply-subs-debug") << "is_basic = " << is_basic << " " << tn << std::endl;
diff --git a/src/theory/quantifiers/sygus/sygus_process_conj.cpp b/src/theory/quantifiers/sygus/sygus_process_conj.cpp
index 66e80523a..1b3844578 100644
--- a/src/theory/quantifiers/sygus/sygus_process_conj.cpp
+++ b/src/theory/quantifiers/sygus/sygus_process_conj.cpp
@@ -68,7 +68,7 @@ bool SynthConjectureProcessFun::checkMatch(
Node cn_subs =
cn.substitute(vars.begin(), vars.end(), subs.begin(), subs.end());
cn_subs = Rewriter::rewrite(cn_subs);
- Assert(Rewriter::rewrite(n) == n);
+ n = Rewriter::rewrite(n);
return cn_subs == n;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback