summaryrefslogtreecommitdiff
path: root/Source/VCGeneration/Context.cs
diff options
context:
space:
mode:
authorGravatar MichalMoskal <unknown>2011-02-17 18:59:22 +0000
committerGravatar MichalMoskal <unknown>2011-02-17 18:59:22 +0000
commitabbb2256f7b44bb918c2b607d785a333d282401f (patch)
tree7cef659d89cb954bd0eb57f9f635e4fc27bde600 /Source/VCGeneration/Context.cs
parentb252bb12345446aaa580a78fa89a0f2136d3fed4 (diff)
Kill {:prover "..."} attribute support; no one ever used this stuff
Diffstat (limited to 'Source/VCGeneration/Context.cs')
-rw-r--r--Source/VCGeneration/Context.cs47
1 files changed, 0 insertions, 47 deletions
diff --git a/Source/VCGeneration/Context.cs b/Source/VCGeneration/Context.cs
index ac52111e..6e7ba92a 100644
--- a/Source/VCGeneration/Context.cs
+++ b/Source/VCGeneration/Context.cs
@@ -80,9 +80,6 @@ public abstract class ProverContextContracts:ProverContext{
protected OrderingAxiomBuilder orderingAxiomBuilder;
- StringBuilder proverCommands;
- StringBuilder incrementalProverCommands;
-
protected List<Variable> distincts;
protected List<VCExpr> axiomConjuncts;
@@ -92,8 +89,6 @@ public abstract class ProverContextContracts:ProverContext{
Contract.Invariant(genOptions != null);
Contract.Invariant(translator != null);
Contract.Invariant(orderingAxiomBuilder != null);
- Contract.Invariant(proverCommands != null);
- Contract.Invariant(incrementalProverCommands != null);
Contract.Invariant(cce.NonNullElements(distincts));
Contract.Invariant(cce.NonNullElements(axiomConjuncts));
}
@@ -113,9 +108,6 @@ public abstract class ProverContextContracts:ProverContext{
oab.Setup();
this.orderingAxiomBuilder = oab;
- proverCommands = new StringBuilder();
- incrementalProverCommands = new StringBuilder();
-
distincts = new List<Variable>();
axiomConjuncts = new List<VCExpr>();
@@ -133,12 +125,6 @@ public abstract class ProverContextContracts:ProverContext{
StringBuilder cmds = new StringBuilder ();
- cmds.Append(ctxt.proverCommands);
- proverCommands = cmds;
- StringBuilder incCmds = new StringBuilder ();
- incCmds.Append(ctxt.incrementalProverCommands);
- incrementalProverCommands = incCmds;
-
distincts = new List<Variable>(ctxt.distincts);
axiomConjuncts = new List<VCExpr>(ctxt.axiomConjuncts);
@@ -154,32 +140,6 @@ public abstract class ProverContextContracts:ProverContext{
return new DeclFreeProverContext(this);
}
- internal protected void SayToProver(string msg)
- {
- Contract.Requires(msg != null);
- msg = msg + "\r\n";
- proverCommands.Append(msg);
- incrementalProverCommands.Append(msg);
- }
-
- protected override void ProcessDeclaration(Declaration decl)
- {
- //Contract.Requires(decl != null);
- for (QKeyValue a = decl.Attributes; a != null; a = a.Next) {
- if (a.Key == "prover" && a.Params.Count == 1) {
- string cmd = a.Params[0] as string;
- if (cmd != null) {
- int pos = cmd.IndexOf(':');
- if (pos <= 0)
- throw new ProverException("Invalid syntax of :prover string: `" + cmd + "'");
- string kind = cmd.Substring(0, pos);
- if (genOptions.IsAnyProverCommandSupported(kind))
- SayToProver(cmd.Substring(pos + 1));
- }
- }
- }
- }
-
public override void DeclareFunction(Function f, string attributes) {//Contract.Requires(f != null);
base.ProcessDeclaration(f);
}
@@ -225,13 +185,6 @@ public abstract class ProverContextContracts:ProverContext{
}
}
- public string GetProverCommands(bool full) {Contract.Ensures(Contract.Result<string>() != null);
-
- string res = (full ? proverCommands : incrementalProverCommands).ToString();
- incrementalProverCommands.Length = 0;
- return res;
- }
-
public override string Lookup(VCExprVar var)
{
return exprTranslator.Lookup(var);