|
|
@ -41,6 +41,7 @@ import prism.PrismException; |
|
|
import prism.PrismLangException; |
|
|
import prism.PrismLangException; |
|
|
import prism.PrismNotSupportedException; |
|
|
import prism.PrismNotSupportedException; |
|
|
import prism.PrismUtils; |
|
|
import prism.PrismUtils; |
|
|
|
|
|
import prism.DefinedConstant; |
|
|
import prism.Point; |
|
|
import prism.Point; |
|
|
import prism.Prism; |
|
|
import prism.Prism; |
|
|
import prism.TileList; |
|
|
import prism.TileList; |
|
|
@ -189,7 +190,7 @@ public class Property extends ASTElement |
|
|
match = false; |
|
|
match = false; |
|
|
// Check doubles numerically |
|
|
// Check doubles numerically |
|
|
else if (constValToMatch instanceof Double) |
|
|
else if (constValToMatch instanceof Double) |
|
|
match = PrismUtils.doublesAreCloseRel(((Double) constValToMatch).doubleValue(), Double.parseDouble(constVal), 1e-10); |
|
|
|
|
|
|
|
|
match = PrismUtils.doublesAreCloseRel(((Double) constValToMatch).doubleValue(), DefinedConstant.parseDouble(constVal), 1e-10); |
|
|
// if constant is exact rational number, compare exactly |
|
|
// if constant is exact rational number, compare exactly |
|
|
else if (constValToMatch instanceof BigRational) |
|
|
else if (constValToMatch instanceof BigRational) |
|
|
match = BigRational.from(constVal).equals(constValToMatch); |
|
|
match = BigRational.from(constVal).equals(constValToMatch); |
|
|
|