} else if( d_options[options::dumpInstantiations] &&
res.asSatisfiabilityResult() == Result::UNSAT ) {
g = new GetInstantiationsCommand();
+ } else if( d_options[options::dumpUnsatCores] &&
+ res.asSatisfiabilityResult() == Result::UNSAT ) {
+ g = new GetUnsatCoreCommand();
}
if( g ){
//set no time limit during dumping if applicable
d_result.asSatisfiabilityResult() == Result::UNSAT ) {
Command* gi = new GetInstantiationsCommand();
status = doCommandSingleton(gi);
+ } else if( d_options[options::dumpUnsatCores] &&
+ d_result.asSatisfiabilityResult() == Result::UNSAT ) {
+ Command* guc = new GetUnsatCoreCommand();
+ status = doCommandSingleton(guc);
}
}
throw ModalException("Cannot get an unsat core unless immediately preceded by UNSAT/VALID response.");
}
- delete d_proofManager->getProof(this);// just to trigger core creation
+ d_proofManager->getProof(this);// just to trigger core creation
return UnsatCore(d_proofManager->begin_unsat_core(), d_proofManager->end_unsat_core());
#else /* CVC4_PROOF */
throw ModalException("This build of CVC4 doesn't have proof support (required for unsat cores).");