-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add several new-style command-line options (#3568)
* `--error-limit` is available everywhere * `--solver-log` is available for `verify` and `measure-complexity` * `--solver-plugin` is available for `verify` and `measure-complexity` * `--resource-limit` is available for `verify` and `measure-complexity` * `--isolate-assertions` and `--format` are also available for `verify` with `--format` renamed `--log-format` Addresses #3468 By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license. Co-authored-by: David Cok <david.r.cok@gmail.com>
- Loading branch information
Showing
11 changed files
with
67 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// RUN: %exits-with 4 %baredafny verify %args --error-limit=2 "%s" > "%t" | ||
// RUN: %diff "%s.expect" "%t" | ||
method m(x: int) { | ||
if x == 1 { | ||
assert x != 1; | ||
} else if x == 2 { | ||
assert x != 2; | ||
} else if x == 3 { | ||
assert x != 3; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
errorLimit.dfy(5,13): Error: assertion might not hold | ||
errorLimit.dfy(7,13): Error: assertion might not hold | ||
|
||
Dafny program verifier finished with 0 verified, 2 errors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// RUN: %baredafny verify %args --solver-log="log.smt2" --resource-limit 10 "%s" > "%t" | ||
// RUN: %diff "%s.expect" "%t" | ||
// RUN: %OutputCheck --file-to-check "log.smt2" "%s" | ||
// CHECK: rlimit 10000 | ||
method m() { | ||
assert 1 + 1 == 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
Dafny program verifier finished with 1 verified, 0 errors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters