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

Method checkNativeObject

src/api/java/Sort.java:107–114  ·  view source on GitHub ↗
(long obj)

Source from the content-addressed store, hash-verified

105 }
106
107 @Override
108 void checkNativeObject(long obj)
109 {
110 if (Native.getAstKind(getContext().nCtx(), obj) != Z3_ast_kind.Z3_SORT_AST
111 .toInt())
112 throw new Z3Exception("Underlying object is not a sort");
113 super.checkNativeObject(obj);
114 }
115
116 static Sort create(Context ctx, long obj)
117 {

Callers

nothing calls this directly

Calls 3

nCtxMethod · 0.80
getContextMethod · 0.80
toIntMethod · 0.80

Tested by

no test coverage detected