A function model contains entries of pairs <condition_on_args, return_value>
.
The return_value
expression may refer to input arguments, for example (f!4 (k!3 (:var 0)))
. Here (:var 0)
refers to the 0th input argument of the function model, and it is of kind Z3_VAR_AST.
I want to transform return_value
to some internal program representation, but don't know how to relate (:var 0)
to 0th input argument of the function model.
How to get an index of the variable, that is 0
, from expr (:var 0)
of kind Z3_VAR_AST via c/c++ API?
Thanks!