mirror of
https://github.com/Z3Prover/z3
synced 2026-02-26 10:05:38 +00:00
Merge pull request #8762 from TempuraFramework/master
Add missing Java API for `as-array`
This commit is contained in:
commit
c580bcd4d1
1 changed files with 13 additions and 0 deletions
|
|
@ -1999,6 +1999,19 @@ public class Context implements AutoCloseable {
|
|||
Native.mkArrayDefault(nCtx(), array.getNativeObject()));
|
||||
}
|
||||
|
||||
/** * Create an as-array expression from a function declaration.
|
||||
* @param f the function declaration to lift into an array.
|
||||
* Must have exactly one domain sort.
|
||||
* @see #mkTermArray(Expr)
|
||||
* @see #mkMap(FuncDecl, Expr[])
|
||||
**/
|
||||
public final <D extends Sort, R extends Sort> ArrayExpr<D, R> mkAsArray(FuncDecl<R> f)
|
||||
{
|
||||
checkContextMatch(f);
|
||||
return (ArrayExpr<D, R>) Expr.create(this, Native.mkAsArray(nCtx(), f.getNativeObject()));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Create Extentionality index. Two arrays are equal if and only if they are equal on the index returned by MkArrayExt.
|
||||
**/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue