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

Method Check

examples/dotnet/Program.cs:197–207  ·  view source on GitHub ↗
(Context ctx, BoolExpr f, Status sat)

Source from the content-addressed store, hash-verified

195 }
196
197 static Model Check(Context ctx, BoolExpr f, Status sat)
198 {
199 Solver s = ctx.MkSolver();
200 s.Assert(f);
201 if (s.Check() != sat)
202 throw new TestFailedException();
203 if (sat == Status.SATISFIABLE)
204 return s.Model;
205 else
206 return null;
207 }
208
209 static void SolveTactical(Context ctx, Tactic t, Goal g, Status sat)
210 {

Callers 15

SolveTacticalMethod · 0.45
ProveMethod · 0.45
DisproveMethod · 0.45
ModelConverterTestMethod · 0.45
ArrayExample1Method · 0.45
SudokuExampleMethod · 0.45
BasicTestsMethod · 0.45
LogicExampleMethod · 0.45
PushPopExample1Method · 0.45
EvalExample1Method · 0.45
EvalExample2Method · 0.45
CheckSmallMethod · 0.45

Calls 2

MkSolverMethod · 0.80
AssertMethod · 0.45

Tested by

no test coverage detected