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

Method mkMap

src/api/java/Context.java:1979–1987  ·  view source on GitHub ↗

Maps f on the argument arrays. Remarks: Each element of args must be of an array sort [domain_i -> range_i]. The function declaration f must have type range_1 .. range_n -> range. v must have sort range. The sort of the result is [domain_i -> range].

(FuncDecl<R2> f, Expr<ArraySort<D, R1>>... args)

Source from the content-addressed store, hash-verified

1977
1978 **/
1979 @SafeVarargs
1980 public final <D extends Sort, R1 extends Sort, R2 extends Sort> ArrayExpr<D, R2> mkMap(FuncDecl<R2> f, Expr<ArraySort<D, R1>>... args)
1981 {
1982 checkContextMatch(f);
1983 checkContextMatch(args);
1984 return (ArrayExpr<D, R2>) Expr.create(this, Native.mkMap(nCtx(),
1985 f.getNativeObject(), AST.arrayLength(args),
1986 AST.arrayToNative(args)));
1987 }
1988
1989 /**
1990 * Access the array default value.

Callers

nothing calls this directly

Calls 6

checkContextMatchMethod · 0.95
createMethod · 0.95
nCtxMethod · 0.95
getNativeObjectMethod · 0.80
arrayLengthMethod · 0.80
arrayToNativeMethod · 0.80

Tested by

no test coverage detected