Z3
Public Member Functions
FPNum Class Reference
+ Inheritance diagram for FPNum:

Public Member Functions

boolean getSign ()
 
String getSignificand ()
 
long getSignificandUInt64 ()
 
String getExponent ()
 
long getExponentInt64 ()
 
 FPNum (Context ctx, long obj)
 
String toString ()
 
- Public Member Functions inherited from FPExpr
int getEBits ()
 
int getSBits ()
 
 FPExpr (Context ctx, long obj)
 
- Public Member Functions inherited from Expr
Expr simplify ()
 
Expr simplify (Params p)
 
FuncDecl getFuncDecl ()
 
Z3_lbool getBoolValue ()
 
int getNumArgs ()
 
Expr [] getArgs ()
 
Expr update (Expr[] args)
 
Expr substitute (Expr[] from, Expr[] to)
 
Expr substitute (Expr from, Expr to)
 
Expr substituteVars (Expr[] to)
 
Expr translate (Context ctx)
 
String toString ()
 
boolean isNumeral ()
 
boolean isWellSorted ()
 
Sort getSort ()
 
boolean isConst ()
 
boolean isIntNum ()
 
boolean isRatNum ()
 
boolean isAlgebraicNumber ()
 
boolean isBool ()
 
boolean isTrue ()
 
boolean isFalse ()
 
boolean isEq ()
 
boolean isDistinct ()
 
boolean isITE ()
 
boolean isAnd ()
 
boolean isOr ()
 
boolean isIff ()
 
boolean isXor ()
 
boolean isNot ()
 
boolean isImplies ()
 
boolean isInt ()
 
boolean isReal ()
 
boolean isArithmeticNumeral ()
 
boolean isLE ()
 
boolean isGE ()
 
boolean isLT ()
 
boolean isGT ()
 
boolean isAdd ()
 
boolean isSub ()
 
boolean isUMinus ()
 
boolean isMul ()
 
boolean isDiv ()
 
boolean isIDiv ()
 
boolean isRemainder ()
 
boolean isModulus ()
 
boolean isIntToReal ()
 
boolean isRealToInt ()
 
boolean isRealIsInt ()
 
boolean isArray ()
 
boolean isStore ()
 
boolean isSelect ()
 
boolean isConstantArray ()
 
boolean isDefaultArray ()
 
boolean isArrayMap ()
 
boolean isAsArray ()
 
boolean isSetUnion ()
 
boolean isSetIntersect ()
 
boolean isSetDifference ()
 
boolean isSetComplement ()
 
boolean isSetSubset ()
 
boolean isBV ()
 
boolean isBVNumeral ()
 
boolean isBVBitOne ()
 
boolean isBVBitZero ()
 
boolean isBVUMinus ()
 
boolean isBVAdd ()
 
boolean isBVSub ()
 
boolean isBVMul ()
 
boolean isBVSDiv ()
 
boolean isBVUDiv ()
 
boolean isBVSRem ()
 
boolean isBVURem ()
 
boolean isBVSMod ()
 
boolean isBVULE ()
 
boolean isBVSLE ()
 
boolean isBVUGE ()
 
boolean isBVSGE ()
 
boolean isBVULT ()
 
boolean isBVSLT ()
 
boolean isBVUGT ()
 
boolean isBVSGT ()
 
boolean isBVAND ()
 
boolean isBVOR ()
 
boolean isBVNOT ()
 
boolean isBVXOR ()
 
boolean isBVNAND ()
 
boolean isBVNOR ()
 
boolean isBVXNOR ()
 
boolean isBVConcat ()
 
boolean isBVSignExtension ()
 
boolean isBVZeroExtension ()
 
boolean isBVExtract ()
 
boolean isBVRepeat ()
 
boolean isBVReduceOR ()
 
boolean isBVReduceAND ()
 
boolean isBVComp ()
 
boolean isBVShiftLeft ()
 
boolean isBVShiftRightLogical ()
 
boolean isBVShiftRightArithmetic ()
 
boolean isBVRotateLeft ()
 
boolean isBVRotateRight ()
 
boolean isBVRotateLeftExtended ()
 
boolean isBVRotateRightExtended ()
 
boolean isIntToBV ()
 
boolean isBVToInt ()
 
boolean isBVCarry ()
 
boolean isBVXOR3 ()
 
boolean isLabel ()
 
boolean isLabelLit ()
 
boolean isOEQ ()
 
boolean isProofTrue ()
 
boolean isProofAsserted ()
 
boolean isProofGoal ()
 
boolean isProofModusPonens ()
 
boolean isProofReflexivity ()
 
boolean isProofSymmetry ()
 
boolean isProofTransitivity ()
 
boolean isProofTransitivityStar ()
 
boolean isProofMonotonicity ()
 
boolean isProofQuantIntro ()
 
boolean isProofDistributivity ()
 
boolean isProofAndElimination ()
 
boolean isProofOrElimination ()
 
boolean isProofRewrite ()
 
boolean isProofRewriteStar ()
 
boolean isProofPullQuant ()
 
boolean isProofPullQuantStar ()
 
boolean isProofPushQuant ()
 
boolean isProofElimUnusedVars ()
 
boolean isProofDER ()
 
boolean isProofQuantInst ()
 
boolean isProofHypothesis ()
 
boolean isProofLemma ()
 
boolean isProofUnitResolution ()
 
boolean isProofIFFTrue ()
 
boolean isProofIFFFalse ()
 
boolean isProofCommutativity ()
 
boolean isProofDefAxiom ()
 
boolean isProofDefIntro ()
 
boolean isProofApplyDef ()
 
boolean isProofIFFOEQ ()
 
boolean isProofNNFPos ()
 
boolean isProofNNFNeg ()
 
boolean isProofNNFStar ()
 
boolean isProofCNFStar ()
 
boolean isProofSkolemize ()
 
boolean isProofModusPonensOEQ ()
 
boolean isProofTheoryLemma ()
 
boolean isRelation ()
 
boolean isRelationStore ()
 
boolean isEmptyRelation ()
 
boolean isIsEmptyRelation ()
 
boolean isRelationalJoin ()
 
boolean isRelationUnion ()
 
boolean isRelationWiden ()
 
boolean isRelationProject ()
 
boolean isRelationFilter ()
 
boolean isRelationNegationFilter ()
 
boolean isRelationRename ()
 
boolean isRelationComplement ()
 
boolean isRelationSelect ()
 
boolean isRelationClone ()
 
boolean isFiniteDomain ()
 
boolean isFiniteDomainLT ()
 
int getIndex ()
 
- Public Member Functions inherited from AST
boolean equals (Object o)
 
int compareTo (AST other)
 
int hashCode ()
 
int getId ()
 
AST translate (Context ctx)
 
Z3_ast_kind getASTKind ()
 
boolean isExpr ()
 
boolean isApp ()
 
boolean isVar ()
 
boolean isQuantifier ()
 
boolean isSort ()
 
boolean isFuncDecl ()
 
String toString ()
 
String getSExpr ()
 

Additional Inherited Members

- Protected Member Functions inherited from Expr
 Expr (Context ctx, long obj)
 

Detailed Description

FloatingPoint Numerals

Definition at line 22 of file FPNum.java.

Constructor & Destructor Documentation

§ FPNum()

FPNum ( Context  ctx,
long  obj 
)
inline

Definition at line 80 of file FPNum.java.

81  {
82  super(ctx, obj);
83  }

Member Function Documentation

§ getExponent()

String getExponent ( )
inline

Return the exponent value of a floating-point numeral as a string

Exceptions
Z3Exception

Definition at line 65 of file FPNum.java.

65  {
66  return Native.fpaGetNumeralExponentString(getContext().nCtx(), getNativeObject());
67  }

§ getExponentInt64()

long getExponentInt64 ( )
inline

Return the exponent value of a floating-point numeral as a signed 64-bit integer

Exceptions
Z3Exception

Definition at line 73 of file FPNum.java.

73  {
74  Native.LongPtr res = new Native.LongPtr();
75  if (!Native.fpaGetNumeralExponentInt64(getContext().nCtx(), getNativeObject(), res))
76  throw new Z3Exception("Exponent is not a 64 bit integer");
77  return res.value;
78  }

§ getSign()

boolean getSign ( )
inline

Retrieves the sign of a floating-point literal Remarks: returns true if the numeral is negative

Exceptions
Z3Exception

Definition at line 29 of file FPNum.java.

29  {
30  Native.IntPtr res = new Native.IntPtr();
31  if (!Native.fpaGetNumeralSign(getContext().nCtx(), getNativeObject(), res))
32  throw new Z3Exception("Sign is not a Boolean value");
33  return res.value != 0;
34  }

§ getSignificand()

String getSignificand ( )
inline

The significand value of a floating-point numeral as a string Remarks: The significand s is always 0 < s < 2.0; the resulting string is long enough to represent the real significand precisely.

Exceptions
Z3Exception

Definition at line 42 of file FPNum.java.

42  {
43  return Native.fpaGetNumeralSignificandString(getContext().nCtx(), getNativeObject());
44  }

§ getSignificandUInt64()

long getSignificandUInt64 ( )
inline

The significand value of a floating-point numeral as a UInt64 Remarks: This function extracts the significand bits, without the hidden bit or normalization. Throws an exception if the significand does not fit into a UInt64.

Exceptions
Z3Exception

Definition at line 53 of file FPNum.java.

54  {
55  Native.LongPtr res = new Native.LongPtr();
56  if (!Native.fpaGetNumeralSignificandUint64(getContext().nCtx(), getNativeObject(), res))
57  throw new Z3Exception("Significand is not a 64 bit unsigned integer");
58  return res.value;
59  }

§ toString()

String toString ( )
inline

Returns a string representation of the numeral.

Definition at line 88 of file FPNum.java.

89  {
90  return Native.getNumeralString(getContext().nCtx(), getNativeObject());
91  }