3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-27 02:45:51 +00:00

add method for accessing i'th domain sort in array #6344

This commit is contained in:
Nikolaj Bjorner 2022-09-15 07:38:02 -07:00
parent c47ca341b7
commit af258d1720
2 changed files with 24 additions and 11 deletions

View file

@ -35,6 +35,18 @@ public class ArraySort<D extends Sort, R extends Sort> extends Sort
Native.getArraySortDomain(getContext().nCtx(), getNativeObject()));
}
/**
* The domain of a multi-dimensional array sort.
* @throws Z3Exception
* @throws Z3Exception on error
* @return a sort
**/
public D getDomain(int idx)
{
return (D) Sort.create(getContext(),
Native.getArraySortDomainN(getContext().nCtx(), getNativeObject(), idx));
}
/**
* The range of the array sort.
* @throws Z3Exception