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

Method findSmallModelExample

examples/java/JavaExample.java:2000–2013  ·  view source on GitHub ↗
(Context ctx)

Source from the content-addressed store, hash-verified

1998 // / Reduced-size model generation example.
1999
2000 public void findSmallModelExample(Context ctx)
2001 {
2002 System.out.println("FindSmallModelExample");
2003 Log.append("FindSmallModelExample");
2004
2005 BitVecExpr x = ctx.mkBVConst("x", 32);
2006 BitVecExpr y = ctx.mkBVConst("y", 32);
2007 BitVecExpr z = ctx.mkBVConst("z", 32);
2008
2009 Solver solver = ctx.mkSolver();
2010
2011 solver.add(ctx.mkBVULE(x, ctx.mkBVAdd(y, z)));
2012 checkSmall(ctx, solver, x, y, z);
2013 }
2014
2015 // / Simplifier example.
2016

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