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

Method getSorts

src/api/java/Model.java:251–260  ·  view source on GitHub ↗

The uninterpreted sorts that the model has an interpretation for. Remarks: Z3 also provides an interpretation for uninterpreted sorts used in a formula. The interpretation for a sort is a finite set of distinct values. We say this finite set is the "universe" of the sort. @see #getNumSorts @see #g

()

Source from the content-addressed store, hash-verified

249 * @throws Z3Exception
250 **/
251 public Sort[] getSorts()
252 {
253
254 int n = getNumSorts();
255 Sort[] res = new Sort[n];
256 for (int i = 0; i < n; i++)
257 res[i] = Sort.create(getContext(),
258 Native.modelGetSort(getContext().nCtx(), getNativeObject(), i));
259 return res;
260 }
261
262 /**
263 * The finite set of distinct values that represent the interpretation for

Callers

nothing calls this directly

Calls 5

getNumSortsMethod · 0.95
createMethod · 0.95
getContextMethod · 0.80
nCtxMethod · 0.80
getNativeObjectMethod · 0.80

Tested by

no test coverage detected