Skip to content

Commit dd99ff4

Browse files
[Civl] ABD protocol (#1020)
This PR provides a verified construction of the ABD protocol [1] in Civl. [1] Hagit Attiya, Amotz Bar-Noy, and Danny Dolev. Sharing Memory Robustly in Message-passing Systems. J. ACM 42, 1 (1995), 124–142. --------- Co-authored-by: Namratha <[email protected]>
1 parent 0a83dc2 commit dd99ff4

File tree

3 files changed

+621
-0
lines changed

3 files changed

+621
-0
lines changed

Source/Core/AST/Commands/AbsyCmd.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,11 +1489,16 @@ protected override Cmd ComputeDesugaring(PrintOptions options)
14891489

14901490
public override void Resolve(ResolutionContext rc)
14911491
{
1492+
var errorCount = rc.ErrorCount;
14921493
(this as ICarriesAttributes).ResolveAttributes(rc);
14931494
foreach (CallCmd callCmd in CallCmds)
14941495
{
14951496
callCmd.Resolve(rc);
14961497
}
1498+
if (errorCount > rc.ErrorCount)
1499+
{
1500+
return;
1501+
}
14971502

14981503
HashSet<Variable> parallelCallLhss = new HashSet<Variable>();
14991504
Dictionary<Variable, List<CallCmd>> inputVariables = new Dictionary<Variable, List<CallCmd>>();

0 commit comments

Comments
 (0)