Replies: 1 comment 2 replies
-
The String API functions start here: Line 10556 in da154b2 You will find doc strings, such as Line 10782 in da154b2 There are two backend solvers for strings in z3. The default is set to seq, the z3str3 is also available if you set the option smt.string.solver=z3str3 (from python it is "set_param("smt.string.solver","z3str3")). Note that z3str3 is currently cannot be characterized as supported. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
[This is less of an issue and more of a beginner trying to use z3str3 for a problem.]
I am trying to solve a set of string constraints over one or more string variables, like this one having 2 string variables
x
andy
:Ideally, I would like to know if there is any solution to the set of constraints (sat/unsat) and if there are any, any random satisfying assignment to
x
andy
would suffice. For example here,x = "ab"
and"y=avSWac"
is a satisfying assignment to the variables. Preferably, I wish to do this in python but C++ is also fine.I realize these constraints are handled by z3str3 as expressed in the input language description here. But I am new to z3 and z3str3 and I am not able to find any python API handling string variables and constraints. My questions are:
I am really lost in this repository and cannot find a starting point to use the code or the examples. Any help will be really appreciated.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions