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

Method isInt

src/api/java/Expr.java:438–441  ·  view source on GitHub ↗

Indicates whether the term is of integer sort. @throws Z3Exception on error @return a boolean

()

Source from the content-addressed store, hash-verified

436 * @return a boolean
437 **/
438 public boolean isInt()
439 {
440 return Native.getSortKind(getContext().nCtx(), Native.getSort(getContext().nCtx(), getNativeObject())) == Z3_sort_kind.Z3_INT_SORT.toInt();
441 }
442
443 /**
444 * Indicates whether the term is of sort real.

Callers 1

isIntNumMethod · 0.95

Calls 6

getSortKindMethod · 0.80
nCtxMethod · 0.80
getContextMethod · 0.80
getNativeObjectMethod · 0.80
toIntMethod · 0.80
getSortMethod · 0.65

Tested by

no test coverage detected