-
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
Datatype declarations: Trying to get cvc4 and z3 to agree #2135
Comments
SMTLIB 2.6 spec says on page 95/96:
that, is, whatever comes after "as" is expected to be a symbol or something that is of the form ( _ ...). |
Nikolaj is right, I believe the right syntax for your example is (somewhat strangely):
In other words, the function symbol
where the key word is "result" here. Interestingly, both CVC4 and Z3 do not correctly parse the version above. Z3 gives the errors:
|
I am willing to believe that there are legal cases that Z3 doesn't parse, |
You're right, I was using an older version. |
Thanks @ajreynol It is indeed bizarre that you get to annotate "with one of its result sorts σ." I'm not sure what "one of" refers to in this sentence. The standard seems to be quite vague about this; but I trust I can use the translation you described and hopefully CVC4 and z3 will both accept the input. I'm closing this ticket as there doesn't seem to be a z3 actionable item left for it. Thanks! |
@ajreynol
I'm having issues generating code that is good for both z3 and cvc4. I raised this in the cvc4 repo, and it seems perhaps this is a z3 problem:
cvc5/cvc5#2832
The crux of the issue seems to be the following:
CVC4 is OK with this, but z3 says:
I think CVC4 is right here; but I've been bitten by these syntax problems before so would appreciate some feedback.
The text was updated successfully, but these errors were encountered: