Skip to content

Commit

Permalink
remove assert about PSQ.toList runqueue order.
Browse files Browse the repository at this point in the history
  • Loading branch information
Saizan committed Nov 4, 2024
1 parent e6ad40b commit 7070323
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions io-sim/src/Control/Monad/IOSimPOR/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,6 @@ invariant Nothing SimState{runqueue,threads,clocks} =
assert (PSQ.fold' (\(Down tid) _ _ a -> tid `Map.member` threads && a) True runqueue)
. assert (and [ (isThreadBlocked t || isThreadDone t) == not (Down (threadId t) `PSQ.member` runqueue)
| t <- Map.elems threads ])
. assert (and (zipWith (\(Down tid, _, _) (Down tid', _, _) -> tid > tid')
(PSQ.toList runqueue)
(drop 1 (PSQ.toList runqueue))))
. assert (and [ threadClockId t `Map.member` clocks
| t <- Map.elems threads ])

Expand Down

0 comments on commit 7070323

Please sign in to comment.