const CVC4::Datatype& dt = (*i).getDatatype();
// ensure it's well-founded (the check is done here because
// that's how it is in CVC3)
- if(!dt.isWellFounded()) {
- throw TypecheckException(d_em->mkConst(dt), "datatype is not well-founded");
- }
+ CompatCheckArgument(!dt.isWellFounded(), "datatype is not well-founded");
for(CVC4::Datatype::const_iterator j = dt.begin(); j != dt.end(); ++j) {
// For each constructor, register its name and its selectors names.
CompatCheckArgument(