Skip to content

Commit

Permalink
Make --filter-* work with measure-complexity (#5264)
Browse files Browse the repository at this point in the history
### Description

Make `--filter-position` and `--filter-symbol` work with
`measure-complexity`.

### How has this been tested?

Just manually, though those flags are already tested for `dafny verify`.

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

---------

Co-authored-by: Remy Willems <[email protected]>
  • Loading branch information
atomb and keyboardDrummer committed Apr 17, 2024
1 parent 67db058 commit 91cdb2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Source/DafnyDriver/Commands/MeasureComplexityCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ static class MeasureComplexityCommand {
public static IEnumerable<Option> Options => new Option[] {
Iterations,
RandomSeed,
VerifyCommand.FilterSymbol,
VerifyCommand.FilterPosition,
}.Concat(DafnyCommands.VerificationOptions).
Concat(DafnyCommands.ResolverOptions);

Expand Down
1 change: 0 additions & 1 deletion Source/DafnyDriver/Commands/VerifyCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public static class VerifyCommand {
Concat(DafnyCommands.ConsoleOutputOptions).
Concat(DafnyCommands.ResolverOptions);


public static async Task<int> HandleVerification(DafnyOptions options) {
if (options.Get(CommonOptionBag.VerificationCoverageReport) != null) {
options.TrackVerificationCoverage = true;
Expand Down

0 comments on commit 91cdb2b

Please sign in to comment.