3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-01-16 15:46:20 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2026-01-15 14:39:19 -08:00
parent be2d7ecb91
commit 76182c7e66

View file

@ -1296,7 +1296,7 @@ namespace datatype {
unsigned start = rand();
for (unsigned cj = 0; cj < constructors.size(); ++cj) {
func_decl* c = constructors[(start + cj) % constructors.size()];
if (all_of(*c, [&](sort* s) { return !is_datatype(s); })) {
if (all_of(*c, [&](sort* s) { return !is_datatype(s) && !is_recursive_nested(s); })) {
TRACE(util_bug, tout << "non_rec_constructor c: " << func_decl_ref(c, m) << "\n";);
result.first = c;
result.second = 1;