Only register sygus terms to unfold if option is set (#3978)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Tue, 10 Mar 2020 05:35:31 +0000 (00:35 -0500)
committerGitHub <noreply@github.com>
Tue, 10 Mar 2020 05:35:31 +0000 (22:35 -0700)
Fixes #3953.

src/theory/quantifiers_engine.cpp

index f6c17ebf92c8bc2d3cdbced8330b71a9fbfed709..ed4a79808c0d3569286bdab661bb75a4db94aacc 100644 (file)
@@ -990,7 +990,7 @@ void QuantifiersEngine::addTermToDatabase( Node n, bool withinQuant, bool within
 
     if (!withinQuant)
     {
-      if (d_sygus_tdb)
+      if (d_sygus_tdb && options::sygusEvalUnfold())
       {
         d_sygus_tdb->getEvalUnfold()->registerEvalTerm(n);
       }