3 ms·
When I needed to do this, I just grabbed Z3 and applied this little bit of black magic from the cookbook: (apply (then ctx-solver-simplify propagate-
by derefr 7y ago
When I needed to do this, I just grabbed Z3 and applied this little bit of black magic from the cookbook:
(apply
(then ctx-solver-simplify propagate-values
(par-then
(repeat
(or-else
split-clause
skip))
propagate-ineqs)))
Works pretty well for my problem (simplifying the branch condition paths for entering a given basic-block in a symbolic-execution system down to something human-readable), and best of all, it has no corner-cases requiring manual human teaching. (It's the ctx-solver-simplify bit that gets you most of that; it's a pretty powerful engine.)