diff options
author | Rustan Leino <leino@microsoft.com> | 2011-11-16 22:15:41 -0800 |
---|---|---|
committer | Rustan Leino <leino@microsoft.com> | 2011-11-16 22:15:41 -0800 |
commit | 1558959e901ab53203f08c1dcbc6acaa7ed7460f (patch) | |
tree | d7f8ca0a2290d0b31995be229eca370ff17aed9e | |
parent | bfdeb65a0c0eb57c3a73a8d01165084179001cb2 (diff) |
Dafny: fixed bad Code Contracts
-rw-r--r-- | Dafny/DafnyOptions.cs | 2 | ||||
-rw-r--r-- | Dafny/Translator.cs | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/Dafny/DafnyOptions.cs b/Dafny/DafnyOptions.cs index 8c604b8a..745d50ef 100644 --- a/Dafny/DafnyOptions.cs +++ b/Dafny/DafnyOptions.cs @@ -33,8 +33,6 @@ namespace Microsoft.Dafny public bool ForceCompile = false;
protected override bool ParseOption(string name, Bpl.CommandLineOptionEngine.CommandLineParseState ps) {
- Contract.Requires(name != null);
- Contract.Requires(ps != null);
var args = ps.args; // convenient synonym
switch (name) {
diff --git a/Dafny/Translator.cs b/Dafny/Translator.cs index 88f95f30..d1e41663 100644 --- a/Dafny/Translator.cs +++ b/Dafny/Translator.cs @@ -5068,8 +5068,8 @@ namespace Microsoft.Dafny { Contract.Requires(predef != null);
Contract.Requires(heap != null);
Contract.Requires(thisVar != null);
- Contract.Invariant(layerOffset == 0 || layerOffset == 1);
- Contract.Invariant(modifiesFrame != null);
+ Contract.Requires(layerOffset == 0 || layerOffset == 1);
+ Contract.Requires(modifiesFrame != null);
this.translator = translator;
this.predef = predef;
|