diff options
author | Checkmate50 <dgeisler50@gmail.com> | 2016-02-20 20:53:08 -0700 |
---|---|---|
committer | Checkmate50 <dgeisler50@gmail.com> | 2016-02-20 20:53:08 -0700 |
commit | 6ac996211d6f42f0c7f61ea108388d6bb798ecf8 (patch) | |
tree | 375e8aa28f810ef163b3f6e3375310442f0aa40f /Source/Provers/SMTLib/SMTLibLineariser.cs | |
parent | 6fad4313b1a4e7f8e6cfcd12b92126a3d9ad58d0 (diff) |
Modified BigFloat and parser to accept correct SMT-LIB syntax
Diffstat (limited to 'Source/Provers/SMTLib/SMTLibLineariser.cs')
-rw-r--r-- | Source/Provers/SMTLib/SMTLibLineariser.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Provers/SMTLib/SMTLibLineariser.cs b/Source/Provers/SMTLib/SMTLibLineariser.cs index 7c3ae960..59b6b7e7 100644 --- a/Source/Provers/SMTLib/SMTLibLineariser.cs +++ b/Source/Provers/SMTLib/SMTLibLineariser.cs @@ -205,10 +205,10 @@ namespace Microsoft.Boogie.SMTLib {
BigFloat lit = ((VCExprFloatLit)node).Val;
if (lit.IsSpecialType) {
- wr.Write("(_ " + lit.Decimal + " " + lit.ExponentSize.ToString() + " " + lit.MantissaSize.ToString() + ")");
+ wr.Write("(_ " + lit.Decimal + " " + lit.ExponentSize.ToString() + " " + lit.SignificandSize.ToString() + ")");
return true;
}
- wr.Write("((_ to_fp " + lit.ExponentSize.ToString() + " " + lit.MantissaSize.ToString() + ") RNE ");
+ wr.Write("((_ to_fp " + lit.ExponentSize.ToString() + " " + lit.SignificandSize.ToString() + ") RNE ");
if (lit.IsNegative)
// In SMT2 "-42" is an identifier (SMT2, Sect. 3.2 "Symbols")
wr.Write("(- 0.0 {0})", lit.Abs.ToDecimalString());
|