-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Q: Enum sort numerals #7001
Comments
NikolajBjorner
added a commit
that referenced
this issue
Nov 19, 2023
This change was made for aligning internal behavior for the datalog engine. The external behavior seems affected because the function for checking whether an AST is a numeral then returns true for an enumeration sort, but the function for retrieving the numeric value will fail. I have updated the API behavior. |
Awesome, many thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We've seen a change in behaviour while trying to upgrade to a more recent version of Z3. I bisected it down to b7169e2 which changed
is_numeral_ext
to return true for enum-sort constructors, here:z3/src/ast/dl_decl_plugin.cpp
Line 747 in 1b6c7d6
Is it intentional that this is considered a numeral, even if the user did not explicitly ask for an enum sort (but "accidentally" created one with 0-field constructors)?
The text was updated successfully, but these errors were encountered: