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

Method isBool

src/api/java/Expr.java:314–319  ·  view source on GitHub ↗

Indicates whether the term has Boolean sort. @throws Z3Exception on error @return a boolean

()

Source from the content-addressed store, hash-verified

312 * @return a boolean
313 **/
314 public boolean isBool()
315 {
316 return (isExpr() && Native.isEqSort(getContext().nCtx(),
317 Native.mkBoolSort(getContext().nCtx()),
318 Native.getSort(getContext().nCtx(), getNativeObject())));
319 }
320
321 /**
322 * Indicates whether the term is the constant true.

Callers

nothing calls this directly

Calls 6

nCtxMethod · 0.80
getContextMethod · 0.80
mkBoolSortMethod · 0.80
getNativeObjectMethod · 0.80
isExprMethod · 0.65
getSortMethod · 0.65

Tested by

no test coverage detected