Skip to content

Commit

Permalink
[Civl] changed axiom for ChangRoberts sample (#917)
Browse files Browse the repository at this point in the history
Co-authored-by: Shaz Qadeer <shaz@meta.com>
  • Loading branch information
shazqadeer and Shaz Qadeer authored Jul 22, 2024
1 parent d322dc6 commit 599970f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Test/civl/inductive-sequentialization/ChangRoberts.bpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ function {:inline} Below(self: int, pid: int): bool

const ExpectedLeader: int;
axiom ValidPid(ExpectedLeader);
axiom (forall i: int:: ValidPid(i) ==> Priority(i) <= Priority(ExpectedLeader));
axiom (forall i: int:: ValidPid(i) && Priority(i) == Priority(ExpectedLeader) ==> i <= ExpectedLeader);
axiom (forall i: int:: ValidPid(i) ==> i == ExpectedLeader || Below(i, ExpectedLeader));

// alternative coordinates for identifying processes where ExpectedLeader is at position 0
// Pos converts from process id to its position
Expand Down

0 comments on commit 599970f

Please sign in to comment.