3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-02 13:27:01 +00:00

refactor get_sort

This commit is contained in:
Nikolaj Bjorner 2021-02-02 04:45:54 -08:00
parent 4455f6caf8
commit 3ae4c6e9de
129 changed files with 362 additions and 362 deletions

View file

@ -959,9 +959,9 @@ protected:
v = m.mk_var(idx, s);
m_vars.insert(data.bare_str(), v);
}
else if (s != m.get_sort(v)) {
else if (s != v->get_sort()) {
throw default_exception(default_exception::fmt(), "sort: %s expected, but got: %s\n",
s->get_name().bare_str(), m.get_sort(v)->get_name().bare_str());
s->get_name().bare_str(), v->get_sort()->get_name().bare_str());
}
args.push_back(v);
}