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

Method applyTactic

examples/java/JavaGenericExample.java:206–234  ·  view source on GitHub ↗
(Context ctx, Tactic t, Goal g)

Source from the content-addressed store, hash-verified

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 {

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