Notice() << "SmtEngine::checkModel(): generating model" << endl;
TheoryModel* m = getAvailableModel("check model");
- // check-model is not guaranteed to succeed if approximate values were used
+ // check-model is not guaranteed to succeed if approximate values were used.
+ // Thus, we intentionally abort here.
if (m->hasApproximations())
{
- Warning()
- << "WARNING: running check-model on a model with approximate values..."
- << endl;
+ throw RecoverableModalException(
+ "Cannot run check-model on a model with approximate values.");
}
// Check individual theory assertions