summaryrefslogtreecommitdiff
path: root/Source/DafnyDriver
diff options
context:
space:
mode:
authorGravatar Rustan Leino <unknown>2013-02-20 17:38:56 -0800
committerGravatar Rustan Leino <unknown>2013-02-20 17:38:56 -0800
commitd26d672bb7cfea66721d4a819477f3a7541d4631 (patch)
tree490862b3b0f52367d217743752f07a88c72774ec /Source/DafnyDriver
parent5c5d0318c70d53eb8b287b07edfce96b6888a540 (diff)
Added Equals method on Type
Fixed some precondition violations Various improvements in Contracts
Diffstat (limited to 'Source/DafnyDriver')
-rw-r--r--Source/DafnyDriver/DafnyDriver.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/DafnyDriver/DafnyDriver.cs b/Source/DafnyDriver/DafnyDriver.cs
index e7679a11..ecf2544c 100644
--- a/Source/DafnyDriver/DafnyDriver.cs
+++ b/Source/DafnyDriver/DafnyDriver.cs
@@ -124,6 +124,7 @@ namespace Microsoft.Dafny
public static void ErrorWriteLine(string format, params object[] args) {
Contract.Requires(format != null);
+ Contract.Requires(args != null);
string s = string.Format(format, args);
ErrorWriteLine(s);
}
@@ -192,6 +193,7 @@ namespace Microsoft.Dafny
private static void CompileDafnyProgram(Dafny.Program dafnyProgram, string dafnyProgramName)
{
+ Contract.Requires(dafnyProgram != null);
// Compile the Dafny program into a string that contains the C# program
StringWriter sw = new StringWriter();
Dafny.Compiler compiler = new Dafny.Compiler(sw);