summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/quantifiers_attributes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/theory/quantifiers/quantifiers_attributes.cpp')
-rw-r--r--src/theory/quantifiers/quantifiers_attributes.cpp22
1 files changed, 6 insertions, 16 deletions
diff --git a/src/theory/quantifiers/quantifiers_attributes.cpp b/src/theory/quantifiers/quantifiers_attributes.cpp
index d93de6a54..87d6ec0c3 100644
--- a/src/theory/quantifiers/quantifiers_attributes.cpp
+++ b/src/theory/quantifiers/quantifiers_attributes.cpp
@@ -213,28 +213,18 @@ bool QuantAttributes::checkQuantElimAnnotation( Node ipl ) {
void QuantAttributes::computeAttributes( Node q ) {
computeQuantAttributes( q, d_qattr[q] );
- if( !d_qattr[q].d_rr.isNull() ){
- if( d_quantEngine->getRewriteEngine()==NULL ){
- Trace("quant-warn") << "WARNING : rewrite engine is null, and we have : " << q << std::endl;
- }
- //set rewrite engine as owner
- d_quantEngine->setOwner( q, d_quantEngine->getRewriteEngine(), 2 );
- }
- if( d_qattr[q].isFunDef() ){
- Node f = d_qattr[q].d_fundef_f;
+ QAttributes& qa = d_qattr[q];
+ if (qa.isFunDef())
+ {
+ Node f = qa.d_fundef_f;
if( d_fun_defs.find( f )!=d_fun_defs.end() ){
Message() << "Cannot define function " << f << " more than once." << std::endl;
AlwaysAssert(false);
}
d_fun_defs[f] = true;
}
- if( d_qattr[q].d_sygus ){
- if (d_quantEngine->getSynthEngine() == nullptr)
- {
- Trace("quant-warn") << "WARNING : ceg instantiation is null, and we have : " << q << std::endl;
- }
- d_quantEngine->setOwner(q, d_quantEngine->getSynthEngine(), 2);
- }
+ // set ownership of quantified formula q based on the computed attributes
+ d_quantEngine->setOwner(q, qa);
}
void QuantAttributes::computeQuantAttributes( Node q, QAttributes& qa ){
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback