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