Files
spark2014/docs/lrm/code/loop_entry/05/loop_entry.ads
Trevor Jennings d97fb2a3be MA27-006] Update of mapping spec completed
Passing on for review
2013-11-20 17:52:36 +00:00

14 lines
415 B
Ada

package Loop_Entry
is
subtype ElementType is Natural range 0..1000;
subtype IndexType is Positive range 1..100;
type ArrayType is array (IndexType) of ElementType;
procedure Clear (A: in out ArrayType; L,U: in IndexType);
--# derives A from A, L, U;
--# post (for all N in IndexType range L..U => (A(N) = 0)) and
--# (for all N in IndexType => ((N<L or N>U) -> A(N) = A~(N)));
end Loop_Entry;