summaryrefslogtreecommitdiff
path: root/BCT/BytecodeTranslator/TranslationPlugins/ContractAwareTranslator.cs
blob: ceb8ca0a86f1597b8064a06594c4c98090cee014 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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>(); }
  }
}