3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-24 12:07:52 +00:00

throw exceptions where sls lacks support

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2025-01-15 11:20:03 -08:00
parent 5fec07a57e
commit 498c9a686b
2 changed files with 14 additions and 10 deletions

View file

@ -74,8 +74,10 @@ namespace sls {
register_plugin(alloc(datatype_plugin, *this));
else if (fid == seq_util(m).get_family_id())
register_plugin(alloc(seq_plugin, *this));
else
else {
verbose_stream() << "did not find plugin for " << fid << "\n";
throw default_exception("no plugin for family id " + m.get_family_name(fid).str());
}
}
scoped_ptr<euf::egraph>& context::egraph() {
@ -241,7 +243,7 @@ namespace sls {
family_id context::get_fid(expr* e) const {
if (!is_app(e))
return user_sort_family_id;
throw default_exception("no plugin for " + mk_pp(e, m));
family_id fid = to_app(e)->get_family_id();
if (m.is_eq(e))
fid = to_app(e)->get_arg(0)->get_sort()->get_family_id();