(Context ctx, Tactic t, Goal g)
| 218 | } |
| 219 | |
| 220 | ApplyResult applyTactic(Context ctx, Tactic t, Goal g) |
| 221 | { |
| 222 | System.out.println("\nGoal: " + g); |
| 223 | |
| 224 | ApplyResult res = t.apply(g); |
| 225 | System.out.println("Application result: " + res); |
| 226 | |
| 227 | Status q = Status.UNKNOWN; |
| 228 | for (Goal sg : res.getSubgoals()) |
| 229 | if (sg.isDecidedSat()) |
| 230 | q = Status.SATISFIABLE; |
| 231 | else if (sg.isDecidedUnsat()) |
| 232 | q = Status.UNSATISFIABLE; |
| 233 | |
| 234 | switch (q) |
| 235 | { |
| 236 | case UNKNOWN: |
| 237 | System.out.println("Tactic result: Undecided"); |
| 238 | break; |
| 239 | case SATISFIABLE: |
| 240 | System.out.println("Tactic result: SAT"); |
| 241 | break; |
| 242 | case UNSATISFIABLE: |
| 243 | System.out.println("Tactic result: UNSAT"); |
| 244 | break; |
| 245 | } |
| 246 | |
| 247 | return res; |
| 248 | } |
| 249 | |
| 250 | void prove(Context ctx, BoolExpr f, boolean useMBQI) throws TestFailedException |
| 251 | { |
no test coverage detected