diff options
author | Dietrich <dgeisler50@gmail.com> | 2015-04-20 03:44:03 -0600 |
---|---|---|
committer | Dietrich <dgeisler50@gmail.com> | 2015-04-20 03:44:03 -0600 |
commit | 0776b808b14e62833b3eac1c30c8ac8cc7e62c20 (patch) | |
tree | 4d78f194944b988c25e05ec13b438f0284bfc422 /Source/Core | |
parent | b5f62842c113ec93dee7f9ac067ae6d410e7bc29 (diff) |
added float tipe to AbsyExpr and IntervalDomain. The methods added may require later modification
Diffstat (limited to 'Source/Core')
-rw-r--r-- | Source/Core/AbsyExpr.cs | 5 | ||||
-rw-r--r-- | Source/Core/Parser.cs | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Source/Core/AbsyExpr.cs b/Source/Core/AbsyExpr.cs index 00306a5e..62145eed 100644 --- a/Source/Core/AbsyExpr.cs +++ b/Source/Core/AbsyExpr.cs @@ -356,6 +356,11 @@ namespace Microsoft.Boogie { Contract.Ensures(Contract.Result<LiteralExpr>() != null);
return new LiteralExpr(Token.NoToken, value);
}
+ public static LiteralExpr Literal(FP32 value)
+ {
+ Contract.Ensures(Contract.Result<LiteralExpr>() != null);
+ return new LiteralExpr(Token.NoToken, value);
+ }
private static LiteralExpr/*!*/ true_ = Literal(true);
public static LiteralExpr/*!*/ True {
diff --git a/Source/Core/Parser.cs b/Source/Core/Parser.cs index 4bf11e53..696a72ed 100644 --- a/Source/Core/Parser.cs +++ b/Source/Core/Parser.cs @@ -665,7 +665,7 @@ private class BvBounds : Expr { } else if (la.kind == 15) {
Get();
ty = new BasicType(t, SimpleType.Real);
- } else if (la.kind == 112837) {
+ } else if (la.kind == 135) {
Get();
ty = new BasicType(t, SimpleType.Float);
} else if (la.kind == 16) {
|