z3 - How to get all the variables that were added to any constraint in a Solver? -
i using z3py , trying set of variables in constraint in solver. can call solver.assertions()
astvector
, loop on vector , objects of type boolref
, example, i'm stuck. how can recursively iterate on assertion, boolref
instance example, individual variables?
thanks taylor answer. think second link addresses question. in more detail, python script leo added in previous answer walks ast, astmap ensures shared sub-expressions walked once.
Comments
Post a Comment