-
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.
Improve short names for splits (#976)
### Changes Improve short names for splits ### Testing Updated tests
- Loading branch information
1 parent
07ae2d8
commit 678021a
Showing
18 changed files
with
125 additions
and
85 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,23 @@ | ||
#nullable enable | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using Microsoft.Boogie; | ||
|
||
namespace VCGeneration; | ||
|
||
public class FocusOrigin : TokenWrapper, IImplementationPartOrigin { | ||
|
||
public FocusOrigin(IImplementationPartOrigin inner, List<(IToken Token, bool DidFocus)> focusChoices) : base(inner) { | ||
Inner = inner; | ||
FocusChoices = focusChoices; | ||
} | ||
|
||
public new IImplementationPartOrigin Inner { get; } | ||
public List<(IToken Token, bool DidFocus)> FocusChoices { get; } | ||
public string ShortName { | ||
get { | ||
var choices = string.Join(",", FocusChoices.Select(b => (b.DidFocus ? "+" : "-") + b.Token.line)); | ||
return $"{Inner.ShortName}/focus[{choices}]"; | ||
} | ||
} | ||
} |
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,12 @@ | ||
#nullable enable | ||
using Microsoft.Boogie; | ||
|
||
namespace VCGeneration; | ||
|
||
public class ImplementationRootOrigin : TokenWrapper, IImplementationPartOrigin { | ||
public ImplementationRootOrigin(Implementation implementation) : base(implementation.tok) | ||
{ | ||
} | ||
|
||
public string ShortName => ""; | ||
} |
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,18 @@ | ||
#nullable enable | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using Microsoft.Boogie; | ||
|
||
namespace VCGeneration; | ||
|
||
public class PathOrigin : TokenWrapper, IImplementationPartOrigin { | ||
|
||
public PathOrigin(IImplementationPartOrigin inner, List<IToken> branchTokens) : base(inner) { | ||
Inner = inner; | ||
BranchTokens = branchTokens; | ||
} | ||
|
||
public new IImplementationPartOrigin Inner { get; } | ||
public List<IToken> BranchTokens { get; } | ||
public string ShortName => $"{Inner.ShortName}/path[{string.Join(",", BranchTokens.Select(b => b.line))}]"; | ||
} |
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
#nullable enable | ||
namespace VCGeneration; | ||
|
||
public class RemainingAssertionsOrigin : TokenWrapper, IImplementationPartOrigin { | ||
public IImplementationPartOrigin Origin { get; } | ||
|
||
public RemainingAssertionsOrigin(IImplementationPartOrigin origin) : base(origin) { | ||
Origin = origin; | ||
} | ||
|
||
public string ShortName => $"{Origin.ShortName}/remainingAssertions"; | ||
} |
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.