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

Method mkSelect

src/api/java/Context.java:1868–1876  ·  view source on GitHub ↗

Array read. Remarks: The argument a is the array and i is the index of the array that gets read. The node a must have an array sort [domain -> range], and i must have the sort domain. The sort of the result is range. @see #mkArraySort(Sort[]

(Expr<ArraySort<D, R>> a, Expr<D> i)

Source from the content-addressed store, hash-verified

1866 * @see #mkStore(Expr<ArraySort<D, R>> a, Expr<D> i, Expr<R> v)
1867 **/
1868 public final <D extends Sort, R extends Sort> Expr<R> mkSelect(Expr<ArraySort<D, R>> a, Expr<D> i)
1869 {
1870 checkContextMatch(a);
1871 checkContextMatch(i);
1872 return (Expr<R>) Expr.create(
1873 this,
1874 Native.mkSelect(nCtx(), a.getNativeObject(),
1875 i.getNativeObject()));
1876 }
1877
1878 /**
1879 * Array read.

Callers 4

arrayExample1Method · 0.80
arrayExample2Method · 0.80
arrayExample1Method · 0.80
arrayExample2Method · 0.80

Calls 5

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

Tested by

no test coverage detected