(Context ctx, BoolExpr f, Status sat)
| 192 | } |
| 193 | |
| 194 | Model check(Context ctx, BoolExpr f, Status sat) throws TestFailedException |
| 195 | { |
| 196 | Solver s = ctx.mkSolver(); |
| 197 | s.add(f); |
| 198 | if (s.check() != sat) |
| 199 | throw new TestFailedException(); |
| 200 | if (sat == Status.SATISFIABLE) |
| 201 | return s.getModel(); |
| 202 | else |
| 203 | return null; |
| 204 | } |
| 205 | |
| 206 | void solveTactical(Context ctx, Tactic t, Goal g, Status sat) |
| 207 | throws TestFailedException |
no test coverage detected