mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
fix #2794
This commit is contained in:
parent
5cecd986e2
commit
081001971d
1 changed files with 1 additions and 0 deletions
|
@ -1213,6 +1213,7 @@ namespace datatype {
|
|||
}
|
||||
|
||||
unsigned util::get_datatype_num_constructors(sort * ty) {
|
||||
if (!is_declared(ty)) return 0;
|
||||
def const& d = get_def(ty->get_name());
|
||||
return d.constructors().size();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue