mirror of
https://github.com/Z3Prover/z3
synced 2026-02-17 14:21:45 +00:00
Merge pull request #8626 from danielzgtg/feat/modelRefGetitemErrorMessageModelRefEval
Suggest eval in ModelRef.__getitem__ error
This commit is contained in:
commit
24f3258c49
1 changed files with 1 additions and 1 deletions
|
|
@ -6860,7 +6860,7 @@ class ModelRef(Z3PPObject):
|
|||
if isinstance(idx, SortRef):
|
||||
return self.get_universe(idx)
|
||||
if z3_debug():
|
||||
_z3_assert(False, "Integer, Z3 declaration, or Z3 constant expected")
|
||||
_z3_assert(False, "Integer, Z3 declaration, or Z3 constant expected. Use model.eval instead for complicated expressions")
|
||||
return None
|
||||
|
||||
def decls(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue