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

Method isReal

src/api/java/Expr.java:448–451  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

446 * @return a boolean
447 **/
448 public boolean isReal()
449 {
450 return Native.getSortKind(getContext().nCtx(), Native.getSort(getContext().nCtx(), getNativeObject())) == Z3_sort_kind.Z3_REAL_SORT.toInt();
451 }
452
453 /**
454 * Indicates whether the term is an arithmetic numeral.

Callers 1

isRatNumMethod · 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