Hello, TLA+ is more general than PlusCal, and a systematic conversion to PlusCal is unlikely to yield idiomatic results, if it is possible at all: you will probably end up with a single while loop containing all possible actions. It is a bit like the normal form theorem in computability theory.
--
In PlusCal you could represent this as with (n \in CN, p \in BOOLEAN) { await (predicate[n] => p); predicate[n] := p }
You could perhaps write variables bcNode \in CN \union FN, bcValue \in (CASE bcNode \in CN -> Value [] bcNode \in FN -> {NotValue}); Stephan You received this message because you are subscribed to the Google Groups "tlaplus" group. To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+unsubscribe@xxxxxxxxxxxxxxxx. To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/EF2E36DD-EB82-4CF4-9383-34E258045780%40gmail.com. |