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

Method getInt

src/api/java/IntNum.java:36–42  ·  view source on GitHub ↗

Retrieve the int value.

()

Source from the content-addressed store, hash-verified

34 * Retrieve the int value.
35 **/
36 public int getInt()
37 {
38 Native.IntPtr res = new Native.IntPtr();
39 if (!Native.getNumeralInt(getContext().nCtx(), getNativeObject(), res))
40 throw new Z3Exception("Numeral is not an int");
41 return res.value;
42 }
43
44 /**
45 * Retrieve the 64-bit int value.

Callers 4

toStringMethod · 0.45
checkSmallMethod · 0.45
checkSmallMethod · 0.45
finiteDomainExampleMethod · 0.45

Calls 3

nCtxMethod · 0.80
getContextMethod · 0.80
getNativeObjectMethod · 0.80

Tested by

no test coverage detected