(Context ctx, Tactic t, Goal g)
| 204 | } |
| 205 | |
| 206 | ApplyResult applyTactic(Context ctx, Tactic t, Goal g) |
| 207 | { |
| 208 | System.out.printf("%nGoal: %s%n", g); |
| 209 | |
| 210 | ApplyResult res = t.apply(g); |
| 211 | System.out.printf("Application result: %s%n", res); |
| 212 | |
| 213 | Status q = Status.UNKNOWN; |
| 214 | for (Goal sg : res.getSubgoals()) |
| 215 | if (sg.isDecidedSat()) |
| 216 | q = Status.SATISFIABLE; |
| 217 | else if (sg.isDecidedUnsat()) |
| 218 | q = Status.UNSATISFIABLE; |
| 219 | |
| 220 | switch (q) |
| 221 | { |
| 222 | case UNKNOWN: |
| 223 | System.out.println("Tactic result: Undecided"); |
| 224 | break; |
| 225 | case SATISFIABLE: |
| 226 | System.out.println("Tactic result: SAT"); |
| 227 | break; |
| 228 | case UNSATISFIABLE: |
| 229 | System.out.println("Tactic result: UNSAT"); |
| 230 | break; |
| 231 | } |
| 232 | |
| 233 | return res; |
| 234 | } |
| 235 | |
| 236 | void prove(Context ctx, Expr<BoolSort> f, boolean useMBQI) throws TestFailedException |
| 237 | { |
no test coverage detected