diff options
author | Rustan Leino <unknown> | 2013-02-20 17:38:56 -0800 |
---|---|---|
committer | Rustan Leino <unknown> | 2013-02-20 17:38:56 -0800 |
commit | d26d672bb7cfea66721d4a819477f3a7541d4631 (patch) | |
tree | 490862b3b0f52367d217743752f07a88c72774ec /Source/DafnyDriver | |
parent | 5c5d0318c70d53eb8b287b07edfce96b6888a540 (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.cs | 2 |
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);
|