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

Method SolveTactical

examples/dotnet/Program.cs:209–220  ·  view source on GitHub ↗
(Context ctx, Tactic t, Goal g, Status sat)

Source from the content-addressed store, hash-verified

207 }
208
209 static void SolveTactical(Context ctx, Tactic t, Goal g, Status sat)
210 {
211 Solver s = ctx.MkSolver(t);
212 Console.WriteLine("\nTactical solver: " + s);
213
214 foreach (BoolExpr a in g.Formulas)
215 s.Assert(a);
216 Console.WriteLine("Solver: " + s);
217
218 if (s.Check() != sat)
219 throw new TestFailedException();
220 }
221
222 static ApplyResult ApplyTactic(Context ctx, Tactic t, Goal g)
223 {

Callers

nothing calls this directly

Calls 3

MkSolverMethod · 0.80
AssertMethod · 0.45
CheckMethod · 0.45

Tested by

no test coverage detected