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

Method iteExample

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

Source from the content-addressed store, hash-verified

1519 // / Create an ite-Expr (if-then-else Exprs).
1520
1521 public void iteExample(Context ctx)
1522 {
1523 System.out.println("ITEExample");
1524 Log.append("ITEExample");
1525
1526 BoolExpr f = ctx.mkFalse();
1527 Expr one = ctx.mkInt(1);
1528 Expr zero = ctx.mkInt(0);
1529 Expr ite = ctx.mkITE(f, one, zero);
1530
1531 System.out.println("Expr: " + ite);
1532 }
1533
1534 // / Create an enumeration data type.
1535

Callers 1

mainMethod · 0.95

Calls 4

appendMethod · 0.95
mkFalseMethod · 0.80
mkIntMethod · 0.80
mkITEMethod · 0.80

Tested by

no test coverage detected