| 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 | |