(Context ctx)
| 1440 | // / Demonstrates how to use the SMTLIB parser. |
| 1441 | |
| 1442 | public void parserExample1(Context ctx) throws TestFailedException |
| 1443 | { |
| 1444 | System.out.println("ParserExample1"); |
| 1445 | Log.append("ParserExample1"); |
| 1446 | |
| 1447 | BoolExpr f = ctx.parseSMTLIB2String( |
| 1448 | "(declare-const x Int) (declare-const y Int) (assert (and (> x y) (> x 0)))", |
| 1449 | null, null, null, null)[0]; |
| 1450 | System.out.println("formula " + f); |
| 1451 | |
| 1452 | @SuppressWarnings("unused") |
| 1453 | Model m = check(ctx, f, Status.SATISFIABLE); |
| 1454 | } |
| 1455 | |
| 1456 | // / Demonstrates how to initialize the parser symbol table. |
| 1457 |
no test coverage detected