-
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
Cannot get parameter of func decl of floating-point numeral expression #7522
Comments
I should add that a floating-point numeral expression does not have the ast kind
This is Z3 4.13.0. |
I feel that something is not quite right somewhere. The reason I encountered the original issue was because a floating-point numeral expression constructed with |
IIRC (and I may not) an |
For a func decl
d
of a floating-point numeral expression:Z3_get_decl_kind (ctx, d)
returnsZ3_OP_FPA_NUM
.Z3_get_decl_num_parameters (ctx, d)
returns 1.Z3_get_decl_parameter_kind (ctx, d, 0)
returnsZ3_PARAMETER_FUNC_DECL
.Z3_get_decl_func_decl_parameter (ctx, d, 0)
fails with the messageinvalid argument
.This can be seen in Python. The code
produces the following:
The text was updated successfully, but these errors were encountered: