Skip to content

Commit

Permalink
Add ASSUME statements on Writers and Readers.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholassm committed Sep 16, 2024
1 parent faf4046 commit ff64e51
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions specifications/Disruptor/Disruptor_MPMC.tla
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ CONSTANTS
Size, (* Ringbuffer size. *)
NULL

ASSUME Writers /= {}
ASSUME Readers /= {}
ASSUME Size \in Nat \ {0}

VARIABLES
Expand Down
2 changes: 2 additions & 0 deletions specifications/Disruptor/Disruptor_SPMC.tla
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ CONSTANTS
Size, (* Ringbuffer size. *)
NULL

ASSUME Writers /= {}
ASSUME Readers /= {}
ASSUME Size \in Nat \ {0}

VARIABLES
Expand Down
2 changes: 2 additions & 0 deletions specifications/Disruptor/RingBuffer.tla
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ CONSTANTS
NULL

ASSUME Size \in Nat \ {0}
ASSUME Writers /= {}
ASSUME Readers /= {}
ASSUME NULL \notin Values

VARIABLE ringbuffer
Expand Down

0 comments on commit ff64e51

Please sign in to comment.