mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
parent
5da0902dd4
commit
e6dc557c68
2 changed files with 31 additions and 4 deletions
|
@ -953,6 +953,8 @@ namespace datatype {
|
|||
m_asts.push_back(ty);
|
||||
m_vectors.push_back(r);
|
||||
m_datatype2constructors.insert(ty, r);
|
||||
if (!is_declared(ty))
|
||||
m.raise_exception("datatype constructors have not been created");
|
||||
def const& d = get_def(ty);
|
||||
for (constructor const* c : d) {
|
||||
func_decl_ref f = c->instantiate(ty);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue