-
1. Re: Question about choice projection
objectiser Mar 27, 2015 10:43 AM (in response to simonjf)This is most likely a bug, so best to create a report in https://issues.jboss.org/browse/SCRIBBLE.
Regards
Gary
-
2. Re: Question about choice projection
objectiser Apr 15, 2015 12:03 PM (in response to objectiser)Hi Simon
This is the response from Ray Hu:
"This protocol is not intended to be well-formed because Scribble currently only supports "tail-recursive" protocols. The segment between A and C is not allowed to follow the choice between A and B containing the first "continue Rec" within the scope of the "Rec" recursion.
Taking a "tail-recursive" interpretation of the protocol:
"Some number (possibly zero) of (Msg1; Msg3) exchanges, followed by
a (Msg1; Msg2) exchange, followed by
a (Msg4; Msg5) exchange, and repeat from start"
can be written (with a small addition)
rec X {
Msg1() from A to B;
choice at B {
Msg2() from B to A;
Msg4() from A to C;
Msg5() from C to A;
continue X
} or {
Msg3() from B to A;
Msg6() from A to C; // Added message to make choice well-formed
continue X;
}
}
Msg6 has been added to make the global choice between A, B and C well-formed according to the current (conservative) conditions for choice well-formedness.
Well-formedness validation has not yet been fully completed in this branch of the Scribble tool implementation -- it is currently being implemented in a separate fork, to be merged into the main branch within a few weeks."
We can discuss this more at the Scribble meeting next week. I'll leave the jira open for now.