Skip to content
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

plus [] is accepted, but z3 does not understand it #13

Open
jwaldmann opened this issue Aug 31, 2018 · 1 comment
Open

plus [] is accepted, but z3 does not understand it #13

jwaldmann opened this issue Aug 31, 2018 · 1 comment

Comments

@jwaldmann
Copy link

When I have plus [] in my formula,

  • smtlib's output is wrong (does not conform to SMTLIB grammar): it will output + (at least that's what I see with the debug back-end). I was expecting (+) (with parens)
  • and even with the parens it'd be wrong: Z3 rejects it, while I was expecting that this denotes 0.

anyway, I suggest smtlib2

  • either rejects plus []
  • or rewrites to 0 (if this can be done in a type-safe way)
@jwaldmann
Copy link
Author

and when CVC4 sees one-argument plus (+ 1) it says

(error "Parse Error: <stdin>:3.26: Expecting at least 2 arguments for operator 'PLUS', found 1")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant