RecordFlux icon indicating copy to clipboard operation
RecordFlux copied to clipboard

Condition from Initial to first field

Open senier opened this issue 4 years ago • 3 comments

The following message is currently considered valid:

   type M is
      message
         null
            then F
               if Message'Length < 20;
            F : Boolean;
      end message;

I don't see any useful applications for the first condition as only static expressions or message attributes may be referenced (and I'm not even sure whether the above example would produce any sensible SPARK code).

@treiher Maybe we want to reject conditions for the edge starting at Initial? I'm thinking about this in the context of merging messages and allowing those condition would complicated things further.

senier avatar Aug 31 '20 20:08 senier

I cannot think of a valid use case either. We should reject such conditions.

treiher avatar Sep 01 '20 07:09 treiher

This has become obsolete by the introduction of parameterize message. @treiher Should be close this ticket?

senier avatar Aug 24 '22 13:08 senier

As the message shown above is still accepted as valid, we still have to add a check which rejects such specifications.

treiher avatar Aug 24 '22 13:08 treiher

Ref. #764

senier avatar Nov 01 '22 14:11 senier

We decided in #764 to allow conditions on initial links.

treiher avatar Mar 26 '24 10:03 treiher