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
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Dotnet format
  • Loading branch information
Aleksandr Fedchin committed Aug 4, 2023
commit 974884815d1defafa6b16b63c5fdba77f6c4626d
4 changes: 2 additions & 2 deletions Source/DafnyLanguageServer.Test/Various/CounterExampleTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,7 @@ class C<T> {
Assert.True(counterExamples[0].Variables.ContainsKey("b:M.C.Equal$T"));
Assert.True(counterExamples[0].Variables.ContainsKey("this:M.C<M.C$T>"));
}

/// <summary>
/// This test case would previously lead to stack overflow because of infinite recursion in GetDafnyType
/// </summary>
Expand All @@ -1555,7 +1555,7 @@ method test(i0:nat, val0:int, i1:nat, val1:int)
".TrimStart();
var documentItem = CreateTestDocument(source);
await client.OpenDocumentAndWaitAsync(documentItem, CancellationToken);
(await RequestCounterExamples(documentItem.Uri)).ToList();;
(await RequestCounterExamples(documentItem.Uri)).ToList(); ;
}

public CounterExampleTest(ITestOutputHelper output) : base(output) {
Expand Down
Loading