diff options
author | ajreynol <andrew.j.reynolds@gmail.com> | 2015-01-16 09:29:15 +0100 |
---|---|---|
committer | ajreynol <andrew.j.reynolds@gmail.com> | 2015-01-16 09:29:15 +0100 |
commit | 338ec2ee86e16423b265ba9bfc036606223f846f (patch) | |
tree | 22f92c46fc4c70b839e74b13611c38f6277c3682 /src/theory/quantifiers/ce_guided_instantiation.cpp | |
parent | 0042f301908763cf1edb8a2d56b3f373a0055908 (diff) |
Minor: Ensure indexed terms are in EE. Add support for bv constants in sygus parser.
Diffstat (limited to 'src/theory/quantifiers/ce_guided_instantiation.cpp')
-rw-r--r-- | src/theory/quantifiers/ce_guided_instantiation.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/theory/quantifiers/ce_guided_instantiation.cpp b/src/theory/quantifiers/ce_guided_instantiation.cpp index bf9409f06..1b02b2a13 100644 --- a/src/theory/quantifiers/ce_guided_instantiation.cpp +++ b/src/theory/quantifiers/ce_guided_instantiation.cpp @@ -89,7 +89,7 @@ bool CegInstantiation::needsModel( Theory::Effort e ) { return true; } bool CegInstantiation::needsFullModel( Theory::Effort e ) { - return false; + return true; } void CegInstantiation::check( Theory::Effort e, unsigned quant_e ) { @@ -234,9 +234,9 @@ void CegInstantiation::checkCegConjecture( CegConjecture * conj ) { Assert( inst.getKind()==NOT ); Assert( inst[0].getKind()==FORALL ); //immediately skolemize - Node inst_sk = getTermDatabase()->getSkolemizedBody( inst[0] ); + Node inst_sk = getTermDatabase()->getSkolemizedBody( inst[0] ).negate(); Trace("cegqi-lemma") << "Counterexample lemma : " << inst_sk << std::endl; - d_quantEngine->addLemma( NodeManager::currentNM()->mkNode( OR, q.negate(), inst_sk.negate() ) ); + d_quantEngine->addLemma( NodeManager::currentNM()->mkNode( OR, q.negate(), inst_sk ) ); conj->d_ce_sk.push_back( inst[0] ); Trace("cegqi-engine") << " ...find counterexample." << std::endl; } |