finishwith --full-saturate-quant
;;
LIA|LRA|NIA|NRA)
- trywith 20 --enable-cbqi --full-saturate-quant
+ trywith 20 --cbqi --full-saturate-quant
trywith 20 --full-saturate-quant
- trywith 20 --cbqi-recurse --full-saturate-quant
- trywith 30 --quant-cf --full-saturate-quant
- trywith 60 --quant-cf --qcf-tconstraint --full-saturate-quant
- trywith 120 --cbqi-recurse --disable-prenex-quant --full-saturate-quant
+ trywith 20 --cbqi --cbqi-recurse --full-saturate-quant
+ trywith 60 --qcf-tconstraint --full-saturate-quant
+ trywith 120 --cbqi --cbqi-recurse --full-saturate-quant
finishwith --cbqi-recurse --pre-skolem-quant --full-saturate-quant
;;
QF_AUFBV)
Node f = d_quantEngine->getModel()->getAssertedQuantifier( i );
if( doCbqi( f ) && !hasAddedCbqiLemma( f ) ){
d_added_cbqi_lemma[f] = true;
- Debug("cbqi") << "Do cbqi for " << f << std::endl;
+ Trace("cbqi") << "Do cbqi for " << f << std::endl;
//add cbqi lemma
//get the counterexample literal
Node ceLit = d_quantEngine->getTermDatabase()->getCounterexampleLiteral( f );
- if( !ceLit.isNull() ){
+ Node ceBody = d_quantEngine->getTermDatabase()->getInstConstantBody( f );
+ if( !ceBody.isNull() ){
+ //add counterexample lemma
+ Node lem = NodeManager::currentNM()->mkNode( OR, ceLit.negate(), ceBody.negate() );
//require any decision on cel to be phase=true
- //d_quantEngine->getOutputChannel().requirePhase( ceLit, true );
d_quantEngine->addRequirePhase( ceLit, true );
Debug("cbqi-debug") << "Require phase " << ceLit << " = true." << std::endl;
//add counterexample lemma
- NodeBuilder<> nb(kind::OR);
- nb << f << ceLit;
- Node lem = nb;
+ lem = Rewriter::rewrite( lem );
Trace("cbqi") << "Counterexample lemma : " << lem << std::endl;
- //d_quantEngine->getOutputChannel().lemma( lem, false, true );
d_quantEngine->addLemma( lem, false );
addedLemma = true;
}
InstStrategy* is = d_instStrategies[i];
is->processResetInstantiationRound( effort );
}
-
+
//iterate over an internal effort level e
int e = 0;
int eLimit = effort==Theory::EFFORT_LAST_CALL ? 10 : 2;
Node TermDb::getCounterexampleLiteral( Node f ){
if( d_ce_lit.find( f )==d_ce_lit.end() ){
+ /*
Node ceBody = getInstConstantBody( f );
//check if any variable are of bad types, and fail if so
for( size_t i=0; i<d_inst_constants[f].size(); i++ ){
return Node::null();
}
}
+ */
+ Node g = NodeManager::currentNM()->mkSkolem( "g", NodeManager::currentNM()->booleanType() );
//otherwise, ensure literal
- Node ceLit = d_quantEngine->getValuation().ensureLiteral( ceBody.notNode() );
+ Node ceLit = d_quantEngine->getValuation().ensureLiteral( g );
d_ce_lit[ f ] = ceLit;
}
return d_ce_lit[ f ];
}
Node TermDb::getFunDefHead( Node q ) {
- //&& ( q[1].getKind()==EQUAL || q[1].getKind()==IFF ) && q[1][0].getKind()==APPLY_UF &&
+ //&& ( q[1].getKind()==EQUAL || q[1].getKind()==IFF ) && q[1][0].getKind()==APPLY_UF &&
if( q.getKind()==FORALL && q.getNumChildren()==3 ){
for( unsigned i=0; i<q[2].getNumChildren(); i++ ){
if( q[2][i].getKind()==INST_ATTRIBUTE ){
}
Node TermDbSygus::minimizeBuiltinTerm( Node n ) {
- if( ( n.getKind()==EQUAL || n.getKind()==LEQ || n.getKind()==LT || n.getKind()==GEQ || n.getKind()==GT ) &&
+ if( ( n.getKind()==EQUAL || n.getKind()==LEQ || n.getKind()==LT || n.getKind()==GEQ || n.getKind()==GT ) &&
( n[0].getType().isInteger() || n[0].getType().isReal() ) ){
bool changed = false;
std::vector< Node > mon[2];
using namespace CVC4::theory::inst;
unsigned QuantifiersModule::needsModel( Theory::Effort e ) {
- return QuantifiersEngine::QEFFORT_NONE;
+ return QuantifiersEngine::QEFFORT_NONE;
}
eq::EqualityEngine * QuantifiersModule::getEqualityEngine() {
Node getInstantiation( Node f, std::vector< Node >& terms );
/** do substitution */
Node getSubstitute( Node n, std::vector< Node >& terms );
- /** exist instantiation ? */
- //bool existsInstantiation( Node f, InstMatch& m, bool modEq = true, bool modInst = false );
/** add lemma lem */
bool addLemma( Node lem, bool doCache = true );
/** add require phase */
}
}
- Debug("theory") << "TheoryEngine::check(" << effort << "): done, we are " << (d_inConflict ? "unsat" : "sat") << (d_lemmasAdded ? " with new lemmas" : " with no new lemmas") << endl;
+ Debug("theory") << "TheoryEngine::check(" << effort << "): done, we are " << (d_inConflict ? "unsat" : "sat") << (d_lemmasAdded ? " with new lemmas" : " with no new lemmas");
+ Debug("theory") << ", need check = " << needCheck() << endl;
if(!d_inConflict && Theory::fullEffort(effort) && d_masterEqualityEngine != NULL && !d_lemmasAdded) {
AlwaysAssert(d_masterEqualityEngine->consistent());