summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorGravatar MichalMoskal <unknown>2011-02-18 22:05:39 +0000
committerGravatar MichalMoskal <unknown>2011-02-18 22:05:39 +0000
commita19c07a1087da3117bbd29324815e530eb48bf9c (patch)
tree9ac0f2777e97edf51028ceb3bee6aef7b11c18f0 /Source
parent2c6cf724d62c22362bfba6aeef73cd7d105e0c24 (diff)
Accomodate for recent changes in Z3 V2 model format
Diffstat (limited to 'Source')
-rw-r--r--Source/Model/Model.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/Model/Model.cs b/Source/Model/Model.cs
index 7201aa99..8b712a14 100644
--- a/Source/Model/Model.cs
+++ b/Source/Model/Model.cs
@@ -313,7 +313,7 @@ namespace Microsoft.Boogie
return new BitVector(this, name, szi);
else
return new Integer(this, name);
- } else if (name[0] == '*' || name.StartsWith("val!")) {
+ } else if (name[0] == '*' || name.StartsWith("val!") || name.Contains("!val!")) {
return new Uninterpreted(this, name);
} else {
return null;
@@ -635,7 +635,12 @@ namespace Microsoft.Boogie
if (tuple.Length == 0) continue;
if (tuple.Length == 1 && tuple[0] == "}") break;
if (tuple.Length < 3 || tuple[tuple.Length - 2] != "->") BadModel("invalid function tuple definition");
- if (tuple[0] == "else") continue;
+ if (tuple[0] == "else") {
+ if (tuple[tuple.Length - 1].EndsWith("}"))
+ break;
+ else
+ continue;
+ }
if (fn == null)
fn = currModel.MkFunc(funName, tuple.Length - 2);
var args = new Element[fn.Arity];