How to change the type of ArithRef type to Integer type so that can be used as array indices? #7411
Unanswered
debarpita23-2024
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have written a piece of code in SMT solver Z3 (in Python). The code is as follows:
After running the code the output is:
I want a solution to this problem. 'x' here is declared as Integer. I am calculating value of 'x' each time in the for loop and based on that the array 'arr' is updated. Now it is being displayed in the terminal that 'x' is Arithref, so cannot be used as list index. Is there a possible way to change its type to Integer? I was trying with commands: cast(x) , IntSort().cast(x), but it is not working.
Beta Was this translation helpful? Give feedback.
All reactions