summaryrefslogtreecommitdiff
path: root/Source/Model/ModelParser.cs
diff options
context:
space:
mode:
authorGravatar pantazis <pdeligia@me.com>2013-06-12 13:18:53 +0100
committerGravatar pantazis <pdeligia@me.com>2013-06-12 13:18:53 +0100
commit5370dfcf4f83048dc2b8ef8290677b6fa9fb0408 (patch)
tree4080e26abfb52cd5dd3c2d8355532425a0c7afbf /Source/Model/ModelParser.cs
parent39672b877156d484310384bc0aa065ef4a7d3112 (diff)
fix on parser for bit vectors
Diffstat (limited to 'Source/Model/ModelParser.cs')
-rw-r--r--Source/Model/ModelParser.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Model/ModelParser.cs b/Source/Model/ModelParser.cs
index fcc4cda6..723ccce5 100644
--- a/Source/Model/ModelParser.cs
+++ b/Source/Model/ModelParser.cs
@@ -22,6 +22,7 @@ namespace Microsoft.Boogie
string lastLine = "";
protected static char[] seps = new char[] { ' ' };
+ protected static Regex bv = new Regex(@"\(_ BitVec (\d+)\)");
protected void NewModel()
{
@@ -90,8 +91,6 @@ namespace Microsoft.Boogie
class ParserZ3_2 : ModelParser
{
- static Regex bv = new Regex(@"\(_ BitVec (\d+)\)");
-
List<object> GetFunctionTokens(string newLine)
{
if (newLine == null)
@@ -396,6 +395,8 @@ namespace Microsoft.Boogie
if (newLine == null)
return null;
+ newLine = bv.Replace(newLine, "bv${1}");
+
string line = newLine;
int openParenCounter = CountOpenParentheses(newLine, 0);