You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the set_function_def_z3_constraints function in z3_visitor.py evaluates the z3 constraints for each function precondition and directly combine them as the z3_constraints attribute of the FunctionDef node. We may be able to call z3.simplify() on the list of constraints in the end to get an equivalent and simplified constraints.
Proposed Change:
After evaluating and combining the Z3 constraints for each function precondition, call z3.simplify() on the list of constraints.
Assign the simplified constraints back to the z3_constraints attribute of the FunctionDef node.
Currently, the
set_function_def_z3_constraints
function inz3_visitor.py
evaluates the z3 constraints for each function precondition and directly combine them as thez3_constraints
attribute of theFunctionDef
node. We may be able to callz3.simplify()
on the list of constraints in the end to get an equivalent and simplified constraints.Proposed Change:
After evaluating and combining the Z3 constraints for each function precondition, call
z3.simplify()
on the list of constraints.Assign the simplified constraints back to the z3_constraints attribute of the FunctionDef node.
Code Example:
The text was updated successfully, but these errors were encountered: