Closed stevana closed 2 years ago
Yeah, I hadn't gotten to that because I'm still implementing support for temporal expressions and model checking invariants but you're right that the state would need to be moved to the Global
state as a HashMap
, similar to the original example from the PlusCal manual
Alright, this is fixed now that I've added support for model checking invariants. You can find the equivalent property here:
I suppose we would like to do something like this:
But I don't see how it would be possible to implement
pc
given the current definition ofProcess
(because the current process doesn't know the label other processes are at).I guess we could add
_pcs :: HashMap Int Label
toFastMutex
'sGlobal
state and update it on everyyield
, but there ought to be a better way? Thoughts?