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

Method isConst

src/api/java/Expr.java:274–277  ·  view source on GitHub ↗

Indicates whether the term represents a constant. @throws Z3Exception on error @return a boolean

()

Source from the content-addressed store, hash-verified

272 * @return a boolean
273 **/
274 public boolean isConst()
275 {
276 return isApp() && getNumArgs() == 0 && getFuncDecl().getDomainSize() == 0;
277 }
278
279 /**
280 * Indicates whether the term is an integer numeral.

Callers

nothing calls this directly

Calls 4

getNumArgsMethod · 0.95
getFuncDeclMethod · 0.95
getDomainSizeMethod · 0.80
isAppMethod · 0.65

Tested by

no test coverage detected