(Context ctx)
| 1226 | // / Demonstrates how to use the SMTLIB parser. |
| 1227 | |
| 1228 | public void parserExample1(Context ctx) throws TestFailedException |
| 1229 | { |
| 1230 | System.out.println("ParserExample1"); |
| 1231 | Log.append("ParserExample1"); |
| 1232 | |
| 1233 | BoolExpr f = ctx.parseSMTLIB2String( |
| 1234 | "(declare-const x Int) (declare-const y Int) (assert (and (> x y) (> x 0)))", |
| 1235 | null, null, null, null)[0]; |
| 1236 | System.out.printf("formula %s%n", f); |
| 1237 | |
| 1238 | @SuppressWarnings("unused") |
| 1239 | Model m = check(ctx, f, Status.SATISFIABLE); |
| 1240 | } |
| 1241 | |
| 1242 | // / Demonstrates how to initialize the parser symbol table. |
| 1243 |
no test coverage detected