diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2012-10-03 23:04:08 +0000 |
---|---|---|
committer | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2012-10-03 23:04:08 +0000 |
commit | 5c4debb1893109a4d4a2feacd910d3778aeca8f4 (patch) | |
tree | 306d89c81cc3dfeca8509aeff897c6edbd7d53c5 /src/theory/quantifiers/model_builder.cpp | |
parent | c7d04993e8d73105d091e0b732ddb63131b431a3 (diff) |
minor fix for mbqi in finite model finding
Diffstat (limited to 'src/theory/quantifiers/model_builder.cpp')
-rw-r--r-- | src/theory/quantifiers/model_builder.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/theory/quantifiers/model_builder.cpp b/src/theory/quantifiers/model_builder.cpp index 8eac4da95..805d27008 100644 --- a/src/theory/quantifiers/model_builder.cpp +++ b/src/theory/quantifiers/model_builder.cpp @@ -302,32 +302,6 @@ int ModelEngineBuilder::doInstGen( FirstOrderModel* fm, Node f ){ //This step is advantageous over exhaustive instantiation, since we are adding instantiations that involve model basis terms, // effectively acting as partial instantiations instead of pointwise instantiations. if( !d_quant_selection_lit[f].isNull() ){ -#if 0 - bool phase = d_quant_selection_lit[f].getKind()!=NOT; - Node lit = d_quant_selection_lit[f].getKind()==NOT ? d_quant_selection_lit[f][0] : d_quant_selection_lit[f]; - Assert( lit.hasAttribute(InstConstantAttribute()) ); - for( size_t i=0; i<d_quant_selection_lit_terms[f].size(); i++ ){ - Node n1 = d_quant_selection_lit_terms[f][i]; - Node op = d_quant_selection_lit_terms[f][i].getOperator(); - //check all other selection literals involving "op" - for( size_t i=0; i<d_op_selection_terms[op].size(); i++ ){ - Node n2 = d_op_selection_terms[op][i]; - Node n2_lit = d_term_selection_lit[ n2 ]; - if( n2_lit!=d_quant_selection_lit[f] ){ - //match n1 and n2 - } - } - if( addedLemmas==0 ){ - //check all ground terms involving "op" - for( size_t i=0; i<fm->d_uf_terms[op].size(); i++ ){ - Node n2 = fm->d_uf_terms[op][i]; - if( n1!=n2 ){ - //match n1 and n2 - } - } - } - } -#else Trace("inst-gen") << "Do Inst-Gen for " << f << std::endl; for( size_t i=0; i<d_quant_selection_lit_candidates[f].size(); i++ ){ bool phase = d_quant_selection_lit_candidates[f][i].getKind()!=NOT; @@ -369,7 +343,6 @@ int ModelEngineBuilder::doInstGen( FirstOrderModel* fm, Node f ){ addedLemmas += tr->addInstantiations( d_quant_basis_match[f] ); } } -#endif } return addedLemmas; } |