3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 03:15:50 +00:00

Added is_numeral_negative to .NET and Java APIs

This commit is contained in:
Christoph M. Wintersteiger 2016-10-27 15:07:10 +01:00
parent e4f7ff9881
commit 95d7b33ebb
2 changed files with 16 additions and 0 deletions

View file

@ -166,6 +166,17 @@ public class FPNum extends FPExpr
{
return Native.fpaIsNumeralPositive(getContext().nCtx(), getNativeObject());
}
/**
* Indicates whether the numeral is negative.
* @throws Z3Exception on error
* @return a boolean
**/
public boolean isNegative()
{
return Native.fpaIsNumeralNegative(getContext().nCtx(), getNativeObject());
}
public FPNum(Context ctx, long obj)
{