summaryrefslogtreecommitdiff
path: root/BCT/BytecodeTranslator/TranslationPlugins/ContractAwareTranslator.cs
diff options
context:
space:
mode:
Diffstat (limited to 'BCT/BytecodeTranslator/TranslationPlugins/ContractAwareTranslator.cs')
-rw-r--r--BCT/BytecodeTranslator/TranslationPlugins/ContractAwareTranslator.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/BCT/BytecodeTranslator/TranslationPlugins/ContractAwareTranslator.cs b/BCT/BytecodeTranslator/TranslationPlugins/ContractAwareTranslator.cs
new file mode 100644
index 00000000..ceb8ca0a
--- /dev/null
+++ b/BCT/BytecodeTranslator/TranslationPlugins/ContractAwareTranslator.cs
@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+using Bpl= Microsoft.Boogie;
+using Microsoft.Cci.Contracts;
+
+namespace BytecodeTranslator.TranslationPlugins {
+ public abstract class ContractAwareTranslator : Translator {
+ public virtual IEnumerable<Bpl.Requires> getPreconditionTranslation(IMethodContract contract) {return new List<Bpl.Requires>(); }
+ public virtual IEnumerable<Bpl.Ensures> getPostconditionTranslation(IMethodContract contract) { return new List<Bpl.Ensures>(); }
+ public virtual IEnumerable<Bpl.IdentifierExpr> getModifiedIdentifiers(IMethodContract contract) { return new List<Bpl.IdentifierExpr>(); }
+ }
+}