-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce
{:isolate}
and {:isolate "paths"}
attributes for assert…
… and return commands (#952) ### Changes - Introduce the `{:isolate}` attribute on AssertCmd and `ReturnCmd` - Introduce the `{:isolate "paths"}` attribute on AssertCmd and `ReturnCmd` - Introduce new tokens that allow precisely describing where a particular Split comes from. - Fix a bug that caused too many VCs to be created when using `/vcsSplitOnEveryAssert` together with focus - Fix incorrect token bug for VCs originating from focus. ### Testing - Created a folder `Test/implementationDivision` that has tests for `{:isolate}`, `{:isolate "paths"}`, `{:focus}` and `{:split_here}` --------- Co-authored-by: Mikaël Mayer <MikaelMayer@users.noreply.github.com>
- Loading branch information
1 parent
9a8ce8d
commit 25160fa
Showing
77 changed files
with
1,663 additions
and
858 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
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
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,31 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
namespace Microsoft.Boogie; | ||
|
||
public static class ListExtensions { | ||
public static IReadOnlyList<T> Reversed<T>(this IReadOnlyList<T> list) { | ||
return new ReversedReadOnlyList<T>(list); | ||
} | ||
} | ||
|
||
class ReversedReadOnlyList<T> : IReadOnlyList<T> { | ||
private readonly IReadOnlyList<T> inner; | ||
|
||
public ReversedReadOnlyList(IReadOnlyList<T> inner) { | ||
this.inner = inner; | ||
} | ||
|
||
public IEnumerator<T> GetEnumerator() { | ||
return Enumerable.Range(0, inner.Count).Select(index => this[index]).GetEnumerator(); | ||
} | ||
|
||
IEnumerator IEnumerable.GetEnumerator() { | ||
return GetEnumerator(); | ||
} | ||
|
||
public int Count => inner.Count; | ||
|
||
public T this[int index] => inner[^(index + 1)]; | ||
} |
File renamed without changes.
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
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
Oops, something went wrong.