summaryrefslogtreecommitdiff
path: root/Source/Model/Model.cs
diff options
context:
space:
mode:
authorGravatar Unknown <qadeer@GHALIB.redmond.corp.microsoft.com>2012-02-08 15:04:55 -0800
committerGravatar Unknown <qadeer@GHALIB.redmond.corp.microsoft.com>2012-02-08 15:04:55 -0800
commit01bca33638ad688e95b1d0328a26b08e18f3bf29 (patch)
treed779dd078bca32f7ad61df79829ddf0090a3dbfe /Source/Model/Model.cs
parent1012e1a07ea7ba00533f196549f550a87ddbee60 (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.cs4
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("}")) {