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
Get bitvector model as a vector of bool #357
Comments
Joining the dots: Z3Prover/z3#4568 (comment) Are you using the C or Python API? Do you want an STP |
So I was just taking a look at this for you, and I noticed this:
The code for When you say you're "creat[ing] some large bitvectors (width > 64)", have you created BVs that are larger than your machine-size Anyway back to your original issue: behind the scenes EditActually, I need to change my response here. As far as I'm aware, there are no functions in the C API that directly That being said, there are a few These print methods are exposed by the Python API, but I am really not sure how these are supposed to work. If you need this in the Python API, I might need to think a bit more ... |
…#357 Signed-off-by: Andrew V. Jones <andrew.jones@vector.com>
Should be done; take a look at: #358 To be clear: this PR needs to be agreed by one of: @msoos @TrevorHansen @rgov -- it is possible that they might not want this API call. |
Returning the char pointer is fine by me, and it seems consistent with other functions like |
Okay; cool. So that's what's in the PR. An example of usage is here: https://github.com/andrewvaughanj/stp/blob/return_bit_string/tests/api/C/bit_string.cpp#L40 |
…#357 Signed-off-by: Andrew V. Jones <andrew.jones@vector.com>
…#357 Signed-off-by: Andrew V. Jones <andrew.jones@vector.com>
I'm using the
vc_bvConstExprFromStr
methods to create some large bitvectors (width > 64), but is there a way to get its value from the model also as an array of bools or a string of 0's/1's? I only found thegetBVInt
,getBVUnsigned
andgetBVUnsignedLongLong
functions.The text was updated successfully, but these errors were encountered: