-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose manual split in verification task
- Loading branch information
1 parent
00f173d
commit 0988838
Showing
6 changed files
with
78 additions
and
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#nullable enable | ||
using VC; | ||
|
||
namespace Microsoft.Boogie; | ||
|
||
public interface IVerificationStatus {} | ||
|
||
/// <summary> | ||
/// Results are available | ||
/// </summary> | ||
public record Completed(VerificationRunResult Result) : IVerificationStatus; | ||
|
||
/// <summary> | ||
/// Scheduled to be run but waiting for resources | ||
/// </summary> | ||
public record Queued : IVerificationStatus; | ||
|
||
/// <summary> | ||
/// Not scheduled to be run | ||
/// </summary> | ||
public record Stale : IVerificationStatus; | ||
|
||
/// <summary> | ||
/// Currently being run | ||
/// </summary> | ||
public record Running : IVerificationStatus; |
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,22 @@ | ||
#nullable enable | ||
using System; | ||
using VC; | ||
|
||
namespace Microsoft.Boogie; | ||
|
||
public interface IVerificationTask { | ||
IVerificationStatus CacheStatus { get; } | ||
|
||
ProcessedProgram ProcessedProgram { get; } | ||
ManualSplit Split { get; } | ||
|
||
/// <summary> | ||
/// If not running, start running. | ||
/// If already running and not cancelled, return null. | ||
/// If already running but being cancelled, queue a new run and return its observable. | ||
/// If already running but being cancelled, and a new run is queued, return null. | ||
/// </summary> | ||
IObservable<IVerificationStatus>? TryRun(); | ||
bool IsIdle { get; } | ||
void Cancel(); | ||
} |
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