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

Method findSmallModelExample

examples/java/JavaGenericExample.java:1805–1818  ·  view source on GitHub ↗
(Context ctx)

Source from the content-addressed store, hash-verified

1803 // / Reduced-size model generation example.
1804
1805 public void findSmallModelExample(Context ctx)
1806 {
1807 System.out.println("FindSmallModelExample");
1808 Log.append("FindSmallModelExample");
1809
1810 BitVecExpr x = ctx.mkBVConst("x", 32);
1811 BitVecExpr y = ctx.mkBVConst("y", 32);
1812 BitVecExpr z = ctx.mkBVConst("z", 32);
1813
1814 Solver solver = ctx.mkSolver();
1815
1816 solver.add(ctx.mkBVULE(x, ctx.mkBVAdd(y, z)));
1817 checkSmall(ctx, solver, x, y, z);
1818 }
1819
1820 // / Simplifier example.
1821

Callers 1

mainMethod · 0.95

Calls 7

appendMethod · 0.95
addMethod · 0.95
checkSmallMethod · 0.95
mkBVConstMethod · 0.80
mkSolverMethod · 0.80
mkBVULEMethod · 0.80
mkBVAddMethod · 0.80

Tested by

no test coverage detected