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

Method mkITE

src/api/java/Context.java:915–922  ·  view source on GitHub ↗

Create an expression representing an if-then-else: ite(t1, t2, t3). @param t1 An expression with Boolean sort @param t2 An expression @param t3 An expression with the same sort as t2

(Expr<BoolSort> t1, Expr<? extends R> t2, Expr<? extends R> t3)

Source from the content-addressed store, hash-verified

913 * @param t3 An expression with the same sort as {@code t2}
914 **/
915 public final <R extends Sort> Expr<R> mkITE(Expr<BoolSort> t1, Expr<? extends R> t2, Expr<? extends R> t3)
916 {
917 checkContextMatch(t1);
918 checkContextMatch(t2);
919 checkContextMatch(t3);
920 return (Expr<R>) Expr.create(this, Native.mkIte(nCtx(), t1.getNativeObject(),
921 t2.getNativeObject(), t3.getNativeObject()));
922 }
923
924 /**
925 * Create an expression representing {@code t1 iff t2}.

Callers 2

iteExampleMethod · 0.80
iteExampleMethod · 0.80

Calls 4

checkContextMatchMethod · 0.95
createMethod · 0.95
nCtxMethod · 0.95
getNativeObjectMethod · 0.80

Tested by

no test coverage detected