diff options
author | stobies <unknown> | 2010-06-16 08:29:27 +0000 |
---|---|---|
committer | stobies <unknown> | 2010-06-16 08:29:27 +0000 |
commit | 594a4f45c732e8e7d6beceba5a9c0d390e9f003b (patch) | |
tree | 1d24f0be3b472fb759abb8f30eda357a6ecf1573 /Source/Provers | |
parent | 831d6e2a0e63eed436f3cd9d67af69b17941f24b (diff) |
Derive IsabelleContext from DeclFreeProverContext
Diffstat (limited to 'Source/Provers')
-rw-r--r-- | Source/Provers/Isabelle/Prover.ssc | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/Source/Provers/Isabelle/Prover.ssc b/Source/Provers/Isabelle/Prover.ssc index 33764112..ab626b3a 100644 --- a/Source/Provers/Isabelle/Prover.ssc +++ b/Source/Provers/Isabelle/Prover.ssc @@ -145,11 +145,8 @@ namespace Microsoft.Boogie.Isabelle }
- public class IsabelleContext : ProverContext
+ public class IsabelleContext : DeclFreeProverContext
{
- private VCExpressionGenerator! gen;
- private Boogie2VCExprTranslator! trans;
- private VCGenerationOptions! options;
private List<string!>! declaredFunctions = new List<string!>();
public readonly string! OutputFilename;
public bool IsFunctionDeclared(string! name)
@@ -159,31 +156,12 @@ namespace Microsoft.Boogie.Isabelle public readonly bool AllTypes;
public IsabelleContext(string! outputFilename, bool allTypes)
+ : base(new VCExpressionGenerator(), new VCGenerationOptions(new List<string!>(new string![] { "bvInt", "bvDefSem", "bvint", "bvz", "external"})))
{
- List<string!>! solverAttributes = new List<string!>();
- solverAttributes.Add("bvInt");
- solverAttributes.Add("bvDefSem");
- solverAttributes.Add("bvint");
- solverAttributes.Add("bvz");
- solverAttributes.Add("external");
- // add more solver attributes, if needed
- VCGenerationOptions! opts = new VCGenerationOptions(solverAttributes);
- VCExpressionGenerator! gen = new VCExpressionGenerator();
- trans = new Boogie2VCExprTranslator(gen, opts);
- this.gen = gen;
- this.options = opts;
this.OutputFilename = outputFilename;
this.AllTypes = allTypes;
}
- public override VCExpressionGenerator! ExprGen { get { return gen; } }
- public override Boogie2VCExprTranslator! BoogieExprTranslator
- {
- get { return trans; }
- }
- public override VCGenerationOptions! VCGenOptions
- {
- get { return options; }
- }
+
public override object! Clone() { return this; }
public override void DeclareType(TypeCtorDecl! t, string atts)
|