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

Method iteExample

examples/java/JavaGenericExample.java:1306–1317  ·  view source on GitHub ↗
(Context ctx)

Source from the content-addressed store, hash-verified

1304 // / Create an ite-Expr (if-then-else Exprs).
1305
1306 public void iteExample(Context ctx)
1307 {
1308 System.out.println("ITEExample");
1309 Log.append("ITEExample");
1310
1311 BoolExpr f = ctx.mkFalse();
1312 IntNum one = ctx.mkInt(1);
1313 IntNum zero = ctx.mkInt(0);
1314 Expr<IntSort> ite = ctx.mkITE(f, one, zero);
1315
1316 System.out.printf("Expr: %s%n", ite);
1317 }
1318
1319 // / Create an enumeration data type.
1320

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