How to implement a custom simplify tactic in Z3?
问题 In my tool, I use conditions that compare constants to integer variables (for example y < 100). Often, there are multiple conditions for one variable and I want to simplify those cases. For example: y < 100 && y != 99 should become y < 99. The simplify tactic does not do this and none of the arguments for simplify sound like they can help. In Code: context c; goal g(c); expr x = c.int_const("x"); expr y = c.int_const("y"); solver s(c); expr F = y < 100 && y != 99; g.add(F); tactic t = tactic