mirror of
https://github.com/Z3Prover/z3
synced 2025-11-25 23:19:32 +00:00
Added braces
Lack of braces on multi-line statements is considered very scary in Java.
This commit is contained in:
parent
ccd88a63a5
commit
c435bc379b
8 changed files with 84 additions and 68 deletions
|
|
@ -36,8 +36,9 @@ public class FiniteDomainNum extends FiniteDomainExpr
|
|||
public int getInt()
|
||||
{
|
||||
Native.IntPtr res = new Native.IntPtr();
|
||||
if (Native.getNumeralInt(getContext().nCtx(), getNativeObject(), res) ^ true)
|
||||
if (!Native.getNumeralInt(getContext().nCtx(), getNativeObject(), res)) {
|
||||
throw new Z3Exception("Numeral is not an int");
|
||||
}
|
||||
return res.value;
|
||||
}
|
||||
|
||||
|
|
@ -47,8 +48,9 @@ public class FiniteDomainNum extends FiniteDomainExpr
|
|||
public long getInt64()
|
||||
{
|
||||
Native.LongPtr res = new Native.LongPtr();
|
||||
if (Native.getNumeralInt64(getContext().nCtx(), getNativeObject(), res) ^ true)
|
||||
if (!Native.getNumeralInt64(getContext().nCtx(), getNativeObject(), res)) {
|
||||
throw new Z3Exception("Numeral is not an int64");
|
||||
}
|
||||
return res.value;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue