Skip to content
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] Fix stack overflow during counterexample extraction for some programs #4392

Merged
merged 5 commits into from
Aug 9, 2023

Conversation

Dargones
Copy link
Collaborator

@Dargones Dargones commented Aug 4, 2023

Fixes #4391

This PR fixes a potential case of an infinite recursion in Dafny counterexample extraction (exemplified by the added test). The solution is to change the order in which Dafny looks at functions in the counterexample model when trying to deduce the type of a variable.

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

@Dargones Dargones added the part: counterexamples Counterexample generation label Aug 4, 2023
@atomb atomb enabled auto-merge (squash) August 8, 2023 23:44
@atomb atomb merged commit 203defd into dafny-lang:master Aug 9, 2023
21 checks passed
keyboardDrummer pushed a commit to keyboardDrummer/dafny that referenced this pull request Sep 15, 2023
… for some programs (dafny-lang#4392)

Fixes dafny-lang#4391

This PR fixes a potential case of an infinite recursion in Dafny
counterexample extraction (exemplified by the added test). The solution
is to change the order in which Dafny looks at functions in the
counterexample model when trying to deduce the type of a variable.

By submitting this pull request, I confirm that my contribution
is made under the terms of the MIT license.

---------

Co-authored-by: Aleksandr Fedchin <[email protected]>
keyboardDrummer pushed a commit that referenced this pull request Sep 19, 2023
… for some programs (#4392)

Fixes #4391

This PR fixes a potential case of an infinite recursion in Dafny
counterexample extraction (exemplified by the added test). The solution
is to change the order in which Dafny looks at functions in the
counterexample model when trying to deduce the type of a variable.

By submitting this pull request, I confirm that my contribution
is made under the terms of the MIT license.

---------

Co-authored-by: Aleksandr Fedchin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
part: counterexamples Counterexample generation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stack Overflow during Counterexample Generation
2 participants