Fix cegis so that evaluation unfolding is not interleaved. (#2614)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Wed, 10 Oct 2018 21:56:27 +0000 (16:56 -0500)
committerGitHub <noreply@github.com>
Wed, 10 Oct 2018 21:56:27 +0000 (16:56 -0500)
src/theory/quantifiers/sygus/cegis.cpp

index 2e7f0cc029a3ef75e794c9e502ea583cddb1ad60..06f041d93e2b197577bb62c2623d0bb1f2e998d1 100644 (file)
@@ -198,6 +198,7 @@ bool Cegis::addEvalLemmas(const std::vector<Node>& candidates,
       Node lem = nm->mkNode(
           OR, eager_exps[i].negate(), eager_terms[i].eqNode(eager_vals[i]));
       lems.push_back(lem);
+      addedEvalLemmas = true;
       Trace("cegqi-lemma") << "Cegqi::Lemma : evaluation unfold : " << lem
                            << std::endl;
     }