comp.lang.ada
 help / color / mirror / Atom feed
* case stmt check algorithm/method
@ 1989-05-22  8:31 Bruno Poterie
  0 siblings, 0 replies; 2+ messages in thread
From: Bruno Poterie @ 1989-05-22  8:31 UTC (permalink / raw)


Hello,
as part of a VHDL analyser i have (among others) to write
the range completion checks for the CASE statement. This
is pretty much the same as in ADA, so i do not want to
reinvent the wheel. Could anybody point me to relevant
litterature on the subject, if any? More generaly, papers
or documents on semantic checks methodology (for ADA or
related) would be very helpfull.

Thank you in advance,
Bruno Poterie, IM, Kista, Sverige.   email: bruno@inmic.se

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: case stmt check algorithm/method
       [not found] <89@<BRUNO>
@ 1989-05-24  4:22 ` stt
  0 siblings, 0 replies; 2+ messages in thread
From: stt @ 1989-05-24  4:22 UTC (permalink / raw)



The general approach to ensuring that all values
of a range are covered exactly once involves sorting the individual
sub-ranges (using qsort or your favorite sorting method),
and then making sure that there is no overlap between
successive sub-ranges, and in the absence of "others,"
making sure that the sub-ranges "touch" with no
gaps between them.

S. Tucker Taft
Intermetrics, Inc.
Cambridge, MA  02138

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1989-05-24  4:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <89@<BRUNO>
1989-05-24  4:22 ` case stmt check algorithm/method stt
1989-05-22  8:31 Bruno Poterie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox