-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Counterexamples As Assumptions #5013
Merged
atomb
merged 86 commits into
dafny-lang:master
from
Dargones:CounterexamplesAsPredicates
Apr 9, 2024
Merged
Changes from 1 commit
Commits
Show all changes
86 commits
Select commit
Hold shift + click to select a range
00b7477
Store Progress
cc874dc
minor changes
1be2388
Counterexample parity for extension vs command line
d5505f4
Update DafnyRef and dev/news
8d428bc
Update ProverLogRegression
77c4e8f
Update existing test
6683cc7
primitive types
94db77a
Merge branch 'CounterexampleParity' into CounterexamplesAsPredicates
8c87dff
Save temp changes
f38b9f1
Sync with master
f358e51
Add Values field
d3e50ec
Calculate Cardinality
038395a
Separate constraints into their own class
5cbe1de
Fixes and testing
acf2179
Resolve all literals
af19151
push minor fixes
0e7da20
Prevent inifinite recursion
b57b5f1
Keep track of MapEmpty
726c164
Fix arities
b8426f0
Modify definition selection
4ae99f6
Another small fix
1e2e991
Fix test
b4eb8a9
Update wellformedness rules
0284161
Change order of definitions
d021fa2
Pass Test Generation tests
fe7d9aa
Do not constrain elements of a sequence that are out of bounds
83cc425
Merge remote-tracking branch 'origin/master' into CounterexampleParity
d182a13
Enable counterexamples for multiple locations in the program
65d2c04
Temprorarily add boogie submodule
00fa2a5
Fix test-generation translation pass and Update tests
0d7789f
Fix variable printing order and update tests
d510eaa
Merge branch 'CounterexampleParity' into CounterexamplesAsPredicates
d5ea6e3
Remove accidentally committed fiels
b180b1e
Updated tests
8aa183b
Revert "Temprorarily add boogie submodule"
10002e4
Update Boogie version
76700d7
Fix customBoogie.patchj
37bf3aa
Merge branch 'master' into CounterexampleParity
8515c8e
Update Prover Log test
c06d769
Update Inverses test
3f2eb86
Merge branch 'CounterexampleParity' into CounterexamplesAsPredicates
fdaa5c6
Pass all server tests
ab0ec83
Merge remote-tracking branch 'origin/master' into CounterexamplesAsPr…
c72299d
Remove unused code
7e7f0f8
Format and test output fies
b111ba2
Fix tests
Dargones 43436e2
Refactor the constraints mechanism
a19dc32
Refactor Constraint.cs
dce077d
Minor fixes
4f71e2c
Fix an inconsistent counterexample
61e5b9a
Merge remote-tracking branch 'origin/master' into CounterexamplesAsPr…
ca31a49
Fix whitespace
931e0df
Fix Arity
7042d0e
Deal with Empty Sequences
42c62b3
Handle collection types with no argument
c58a225
Support constraints over function return values
581d51f
Generate on test method at a time
bfcb31e
Fix wellformedness checks
4c14080
Merge remote-tracking branch 'origin/CounterexamplesAsPredicates' int…
9d7e2c8
Better Documentation and formatting
7b85179
Dotnet format
80c3838
Delete accidentally committed files
7de5b4a
Fix tests
6f98747
Merge branch 'CounterexamplesAsPredicates' into CounterexamplesDev
70d516e
Minor fixes
0bec799
Add SetDisplay Constraint
548e79b
Minor fix
c85769f
More fixes
5319003
Undo the tuple ignoring principle
32f7be5
Merge recent changes
699f52e
Merge remote-tracking branch 'origin/master' into CounterexamplesAsPr…
9c111f8
Apply suggested changes
36cd8d2
Update Source/DafnyLanguageServer/CounterExampleGeneration/DafnyModel.cs
Dargones 40cabcf
Fix counterexample for recursive functions
a5149a9
Pretty-printing changes
e38dbc1
Fix tests
2e6415a
Merge remote-tracking branch 'origin/master' into CounterexamplesAsPr…
53904c3
Fix test
5975ea7
Add a warning indicating that the counterexample may be inconsistent …
6f36f77
Merge remote-tracking branch 'origin/master' into CounterexamplesAsPr…
203f725
Fix nitpick
48812d5
Lift note on counterexample validity into its own section
275db10
Fix tests
d964f3c
Merge branch 'master' into CounterexamplesAsPredicates
atomb fac4c7c
Merge branch 'master' into CounterexamplesAsPredicates
atomb a58755c
Merge branch 'master' into CounterexamplesAsPredicates
Dargones File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2469,12 +2469,12 @@ Legacy options: | |
* `1` (default) - in the body of prefix lemmas, rewrite any use of a | ||
focal predicate `P` to `P#[_k-1]`. | ||
|
||
* `-extractCounterexample` - control generation of counterexamples. If | ||
verification fails, report a detailed counterexample for the first | ||
failing assertion. Requires specifying the `-mv` option, to specify | ||
where to write the counterexample, as well as the | ||
`-proverOpt:O:model_compress=false` and | ||
`-proverOpt:O:model.completion=true` options. | ||
* `-extractCounterexample` - if verification fails, report a possible | ||
counterexample as a set of assumptions that can be inserted into the code. | ||
Note that Danfy cannot guarantee that the counterexample | ||
it reports provably violates the assertion or that the assumptions are not | ||
mutually inconsistent (see [^smt-encoding]), so this output should be | ||
expected manually and treated as a hint. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. expected => inspected |
||
|
||
### 13.9.8. Controlling compilation {#sec-controlling-compilation} | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
subjective nitpick: possible => potential
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!