diff options
author | Ken McMillan <unknown> | 2013-06-14 17:23:44 -0700 |
---|---|---|
committer | Ken McMillan <unknown> | 2013-06-14 17:23:44 -0700 |
commit | 4c7694f31f5a841a3d2eadc94c8e7f49aabbcc40 (patch) | |
tree | 495aa31c76de499319035d32955e95699eab77a2 /Source/VCGeneration/Context.cs | |
parent | 6a9e8449f14e8c3858ab0809036e68a0a43c2d4e (diff) |
Fixes for duality under corral
Diffstat (limited to 'Source/VCGeneration/Context.cs')
-rw-r--r-- | Source/VCGeneration/Context.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/VCGeneration/Context.cs b/Source/VCGeneration/Context.cs index bf27144b..484ce226 100644 --- a/Source/VCGeneration/Context.cs +++ b/Source/VCGeneration/Context.cs @@ -34,6 +34,7 @@ namespace Microsoft.Boogie public abstract Boogie2VCExprTranslator BoogieExprTranslator { get; }
public abstract VCGenerationOptions VCGenOptions { get; }
public abstract object Clone();
+ public abstract void Clear();
}
[ContractClassFor(typeof(ProverContext))]
@@ -114,6 +115,12 @@ public abstract class ProverContextContracts:ProverContext{ exprTranslator = null;
}
+ public override void Clear()
+ {
+ distincts = new List<Variable>();
+ axiomConjuncts = new List<VCExpr>();
+ }
+
protected DeclFreeProverContext(DeclFreeProverContext ctxt) {
Contract.Requires(ctxt != null);
this.gen = ctxt.gen;
|