MCPcopy Create free account
hub / github.com/Z3Prover/z3 / applyTactic

Method applyTactic

examples/java/JavaExample.java:220–248  ·  view source on GitHub ↗
(Context ctx, Tactic t, Goal g)

Source from the content-addressed store, hash-verified

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 {

Callers 2

modelConverterTestMethod · 0.95
basicTestsMethod · 0.95

Calls 4

getSubgoalsMethod · 0.95
applyMethod · 0.65
isDecidedSatMethod · 0.65
isDecidedUnsatMethod · 0.65

Tested by

no test coverage detected