summaryrefslogtreecommitdiff
path: root/Source/VCGeneration/Check.cs
diff options
context:
space:
mode:
authorGravatar MichalMoskal <unknown>2011-02-23 00:49:00 +0000
committerGravatar MichalMoskal <unknown>2011-02-23 00:49:00 +0000
commitb97dc01fb8dec7f266c2e0fd8a4e96df0f14c5d7 (patch)
tree4072f928fb58d4edc3b613cdd7587c37d3544d28 /Source/VCGeneration/Check.cs
parent52e2ae918c077e39858f8264d76bd267e60c7f34 (diff)
Throw exceptions when push/pop interface is used but not implemented
Complete ErrorModel tables with the final bogus else clause
Diffstat (limited to 'Source/VCGeneration/Check.cs')
-rw-r--r--Source/VCGeneration/Check.cs13
1 files changed, 10 insertions, 3 deletions
diff --git a/Source/VCGeneration/Check.cs b/Source/VCGeneration/Check.cs
index 6fa0fa0d..da68aac0 100644
--- a/Source/VCGeneration/Check.cs
+++ b/Source/VCGeneration/Check.cs
@@ -369,6 +369,8 @@ namespace Microsoft.Boogie {
this.valueToPartition = new Dictionary<object, int>();
this.definedFunctions = new Dictionary<string, List<List<int>>>();
+ var elseElt = m.MkElement("*#unspecified");
+
foreach (var e in m.Elements) {
Contract.Assert(e.Id == this.partitionToValue.Count);
object val;
@@ -414,6 +416,9 @@ namespace Microsoft.Boogie {
tpl.Add(app.Result.Id);
tuples.Add(tpl);
}
+ var elseTpl = new List<int>();
+ elseTpl.Add(elseElt.Id);
+ tuples.Add(elseTpl);
}
}
}
@@ -767,21 +772,23 @@ namespace Microsoft.Boogie {
/// </summary>
public virtual void PushVCExpression(VCExpr vc) {
Contract.Requires(vc != null);
+ throw new NotImplementedException();
}
public virtual string VCExpressionToString(VCExpr vc) {
Contract.Requires(vc != null);
Contract.Ensures(Contract.Result<string>() != null);
- return "";
+ throw new NotImplementedException();
}
public virtual void Pop() {
Contract.EnsuresOnThrow<UnexpectedProverOutputException>(true);
+ throw new NotImplementedException();
}
public virtual int NumAxiomsPushed() {
- return 0;
+ throw new NotImplementedException();
}
public virtual int FlushAxiomsToTheoremProver() {
Contract.EnsuresOnThrow<UnexpectedProverOutputException>(true);
- return 0;
+ throw new NotImplementedException();
}