Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
keyboardDrummer committed Oct 18, 2024
1 parent 8419a62 commit b823a08
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions Source/DafnyCore/Options/CommonOptionBag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ public class CommonOptionBag {

public static void EnsureStaticConstructorHasRun() { }

public enum ProgressLevel { None, Symbol, SymbolParts }
public enum ProgressLevel { None, Symbol, VerificationJobs }
public static readonly Option<ProgressLevel> ProgressOption =
new("--progress", "While verifying, output information that helps track progress");
new("--progress", $"While verifying, output information that helps track progress. " +
$"Use '{ProgressLevel.Symbol}' to show progress across symbols such as methods and functions. " +
$"Verification of a symbol is usually split across several jobs. " +
$"Use {ProgressLevel.VerificationJobs} to additionally show progress across jobs.");

public static readonly Option<string> LogLocation =
new("--log-location", "Sets the directory where to store log files") {
Expand Down
2 changes: 1 addition & 1 deletion Source/DafnyDriver/CliCompilation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public async IAsyncEnumerable<CanVerifyResult> VerifyAllLazily(int? randomSeed)
var canVerifyResult = canVerifyResults[boogieUpdate.CanVerify];
canVerifyResult.CompletedParts.Enqueue((boogieUpdate.VerificationTask, completed));
if (Options.Get(CommonOptionBag.ProgressOption) == CommonOptionBag.ProgressLevel.SymbolParts) {
if (Options.Get(CommonOptionBag.ProgressOption) == CommonOptionBag.ProgressLevel.VerificationJobs) {
var token = BoogieGenerator.ToDafnyToken(false, boogieUpdate.VerificationTask.Split.Token);
var runResult = completed.Result;
var timeString = runResult.RunTime.ToString("g");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %verify --progress SymbolParts --cores=1 %s &> %t
// RUN: %verify --progress VerificationJobs --cores=1 %s &> %t
// RUN: %OutputCheck --file-to-check "%t" "%s"
// CHECK:Verified part #0, 1/2 of Foo, on line 9, verified successfully \(time: .*, resource count: .*\)
// CHECK:Verified part #1, 2/2 of Foo, on line 10, verified successfully \(time: .*, resource count: .*\)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: ! %verify --isolate-assertions --cores=1 --progress SymbolParts "%s" &> "%t"
// RUN: ! %verify --isolate-assertions --cores=1 --progress VerificationJobs "%s" &> "%t"
// RUN: %OutputCheck --file-to-check "%t" "%S/Inputs/outOfResourceAndIsolateAssertions.check"


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %verify --progress SymbolParts --isolate-assertions --cores=1 %s > %t
// RUN: %verify --progress VerificationJobs --isolate-assertions --cores=1 %s > %t
// RUN: %OutputCheck --file-to-check %t "%S/Inputs/progressFirstSequence.check"
// RUN: %OutputCheck --file-to-check %t "%S/Inputs/progressSecondSequence.check"

Expand Down

0 comments on commit b823a08

Please sign in to comment.