(* --algorithm apples \* Taking apples out of a basket
variables inside = {1,2,3,4,5} ;
outside = {};
basket_open = TRUE; \* Is the lid off?
begin while inside # {} do
either
with apple \in inside do
inside := inside \ {apple};
outside := outside \cup {apple};
end with
or
basket_open := ~basket_open; \* Put on or take off the lid
end either
end while
end algorithm *)
The temporal formula I want to test is "you cannot take an apple out if the basket is not open". Note that this will fail (there's no code to do anything with basket_open). Here's what I've tried:
--
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+u...@googlegroups.com.
To post to this group, send email to tla...@googlegroups.com.
Visit this group at https://groups.google.com/group/tlaplus.
For more options, visit https://groups.google.com/d/optout.
Leslie