summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dafny/DafnyOptions.cs2
-rw-r--r--Dafny/Translator.cs4
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;