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

Method getInt

src/api/java/FiniteDomainNum.java:36–43  ·  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 }
42 return res.value;
43 }
44
45 /**
46 * Retrieve the 64-bit int value.

Callers 1

finiteDomainExampleMethod · 0.95

Calls 3

nCtxMethod · 0.80
getContextMethod · 0.80
getNativeObjectMethod · 0.80

Tested by

no test coverage detected