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

Method parserExample5

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

Source from the content-addressed store, hash-verified

1498
1499 // / <remarks></remarks>
1500 public void parserExample5(Context ctx)
1501 {
1502 System.out.println("ParserExample5");
1503
1504 try
1505 {
1506 ctx.parseSMTLIB2String(
1507 /*
1508 * the following string has a parsing error: missing
1509 * parenthesis
1510 */
1511 "(declare-const x Int (declare-const y Int)) (assert (> x y))",
1512 null, null, null, null);
1513 } catch (Z3Exception e)
1514 {
1515 System.out.println("Z3 error: " + e);
1516 }
1517 }
1518
1519 // / Create an ite-Expr (if-then-else Exprs).
1520

Callers 1

mainMethod · 0.95

Calls 1

parseSMTLIB2StringMethod · 0.80

Tested by

no test coverage detected