diff options
author | Unknown <qadeer@GHALIB.redmond.corp.microsoft.com> | 2012-02-08 15:04:55 -0800 |
---|---|---|
committer | Unknown <qadeer@GHALIB.redmond.corp.microsoft.com> | 2012-02-08 15:04:55 -0800 |
commit | 01bca33638ad688e95b1d0328a26b08e18f3bf29 (patch) | |
tree | d779dd078bca32f7ad61df79829ddf0090a3dbfe /Source/Model/Model.cs | |
parent | 1012e1a07ea7ba00533f196549f550a87ddbee60 (diff) |
fixed a problem in model parsing
(_ BitVec n) is substituted with bvn
Diffstat (limited to 'Source/Model/Model.cs')
-rw-r--r-- | Source/Model/Model.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Model/Model.cs b/Source/Model/Model.cs index 4838c347..204d130e 100644 --- a/Source/Model/Model.cs +++ b/Source/Model/Model.cs @@ -35,6 +35,7 @@ using System.Linq; using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
+using System.Text.RegularExpressions;
namespace Microsoft.Boogie
{
@@ -701,10 +702,13 @@ namespace Microsoft.Boogie if (f < 0) BadModel("mismatched parentheses in datatype term");
return f;
}
+
+ static Regex bv = new Regex(@"\(_ BitVec (\d+)\)");
List<object> GetFunctionTuple(string newLine) {
if (newLine == null)
return null;
+ newLine = bv.Replace(newLine, "bv${1}");
string line = newLine;
int openParenCounter = CountOpenParentheses(newLine, 0);
if (!newLine.Contains("}")) {
|