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

Method checkNativeObject

src/api/java/Expr.java:2154–2162  ·  view source on GitHub ↗
(long obj)

Source from the content-addressed store, hash-verified

2152 }
2153
2154 @Override
2155 void checkNativeObject(long obj) {
2156 if (!Native.isApp(getContext().nCtx(), obj) &&
2157 Native.getAstKind(getContext().nCtx(), obj) != Z3_ast_kind.Z3_VAR_AST.toInt() &&
2158 Native.getAstKind(getContext().nCtx(), obj) != Z3_ast_kind.Z3_QUANTIFIER_AST.toInt()) {
2159 throw new Z3Exception("Underlying object is not a term");
2160 }
2161 super.checkNativeObject(obj);
2162 }
2163
2164 static <U extends Sort> Expr<U> create(Context ctx, FuncDecl<U> f, Expr<?> ... arguments)
2165 {

Callers

nothing calls this directly

Calls 4

nCtxMethod · 0.80
getContextMethod · 0.80
toIntMethod · 0.80
isAppMethod · 0.65

Tested by

no test coverage detected