d_problemExtended) {
const char* msg =
"Cannot get value unless immediately preceded by SAT/INVALID or UNKNOWN response.";
- throw ModalException(msg);
+ //throw ModalException(msg);
+ Warning() << CommandFailure(msg);
+ return ex;
}
// Substitute out any abstract values in ex.
const char* msg =
"Cannot get the current assignment unless immediately "
"preceded by SAT/INVALID or UNKNOWN response.";
- throw ModalException(msg);
+ //throw ModalException(msg);
+ Warning() << CommandFailure(msg);
+ return SExpr(vector<SExpr>());
}
if(d_assignments == NULL) {
const char* msg =
"Cannot get the current model unless immediately "
"preceded by SAT/INVALID or UNKNOWN response.";
- throw ModalException(msg);
+ //throw ModalException(msg);
+ Warning() << CommandFailure(msg);
+ return NULL;
}
if(!options::produceModels()) {
const char* msg =
if(d_status.isNull() ||
d_status.asSatisfiabilityResult() != Result::UNSAT ||
d_problemExtended) {
- throw ModalException("Cannot get an unsat core unless immediately preceded by UNSAT/VALID response.");
+ //throw ModalException("Cannot get an unsat core unless immediately preceded by UNSAT/VALID response.");
+ Warning() << CommandFailure("Cannot get an unsat core unless immediately preceded by UNSAT/VALID response.");
+ return UnsatCore();
}
d_proofManager->traceUnsatCore();// just to trigger core creation
if(d_status.isNull() ||
d_status.asSatisfiabilityResult() != Result::UNSAT ||
d_problemExtended) {
- throw ModalException("Cannot get a proof unless immediately preceded by UNSAT/VALID response.");
+ //throw ModalException("Cannot get a proof unless immediately preceded by UNSAT/VALID response.");
+ Warning() << CommandFailure("Cannot get a proof unless immediately preceded by UNSAT/VALID response.");
+ return NULL;
}
return ProofManager::getProof(this);