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

_toExpr does not work for quantifiers in JS bindings #6285

Closed
NikolajBjorner opened this issue Aug 20, 2022 · 0 comments
Closed

_toExpr does not work for quantifiers in JS bindings #6285

NikolajBjorner opened this issue Aug 20, 2022 · 0 comments

Comments

@NikolajBjorner
Copy link
Contributor

The _toExpr coercion is necessary for using the high-level JS bindings.
It is currently not implemented for quantifiers.

if (kind === Z3_ast_kind.Z3_QUANTIFIER_AST) {

forall and exists quantifiers should be BoolImpl, otherwise assertions for Z3.And and similar operators fail.
lambda expressions have array sorts so they end up being ExprImpl.

@ritave

demo using JS bindings in the works: https://microsoft.github.io/z3guide/programming/Z3%20JavaScript%20Examples

NikolajBjorner added a commit that referenced this issue Aug 20, 2022
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