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

Creating indexed variables for C++ API and clearing up confusion about C/Python documentation. #6491

Closed
jparsert opened this issue Dec 13, 2022 · 0 comments

Comments

@jparsert
Copy link
Contributor

I am missing the ability to create a de-Brujin indexed variable in the C++ api. In python this would be the function Var(index, sort) shown here. After looking at the code it seems to use and be the same as the function z3_mk_bound found in the C API here. When adding this to the c++ API I guess this should be a member function of context (?).

Furthermore,
I find the documentation confusing.
In the python code and documentation the function Var is described to create a free variable used to create quantified formulas. In the C code and documentation the function Z3_mk_bound is described as creating a bound variable. Given that there does not seem to be a big difference between the two functions in C and Python it is a bit confusing why one would create a bound variable and the other a free variable.

hgvk94 pushed a commit to hgvk94/z3 that referenced this issue Mar 27, 2023
…ver#6491

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
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