comp.lang.ada
 help / color / mirror / Atom feed
* Help with Ada proof needed.
@ 1991-03-29  4:20 macdonaldk
  1991-03-29 12:06 ` Luke J. Rheaume
  1991-03-30  9:35 ` George C. Harrison, Norfolk State University
  0 siblings, 2 replies; 4+ messages in thread
From: macdonaldk @ 1991-03-29  4:20 UTC (permalink / raw)


I have a quick question.  If you choose to respond, I would be happy if you
could respond directly to me.

All work was done on an HP 9000/375 running HP-UX 7.03.

----------------------------------------------------------------------

In an Ada assignment, we were to use the delay statement in the body of a
function; an relevant example is as follows:

function TEST is

begin
-- a few simple arithmetic statements.

	delay 0.3;

-- a few more simple arithmetic statements.
end TEST;

The use of the delay statement was unnecessary, but the assignment required
its presence.

Part of the assignment asked us to prove that the delay actually occurred.

The students proved this by stating that, according to the Ada standard, a
delay statement, as used above, will cause a delay for at least 0.3 seconds.
We compiled the program on an Ada compiler.  Therefore, the delay operated as
expected.

The lecturer, however, wanted us to display the time of day both before and
after the delay occurred.  He argued that the elapsed time would prove that
the delay occurred.  This proof would make use of the CALENDAR package.

We argued that the lecturer's proof assumes that the CALENDAR package
operates properly; thus, shouldn't the CALENDAR package need to be proved to
operate correctly too?

Which leads us to the need to construct a complete Ada test suite, which
was already done by people FAR more experienced than us at testing Ada.

The fact that we are using an Ada compiler certifies the compiler operates
according to the Ada standard, and further proof on our part is not necessary.

----------------------------------------------------------------------

Although the proof presented by the students is not absolute, it is more
conclusive than that proposed by our lecturer.

Who do you feel is correct: are we correct, or do we have too much faith
in Ada.

Kevin Macdonald
Technical University of Nova Scotia
Halifax, Nova Scotia

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

end of thread, other threads:[~1991-03-30  9:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1991-03-29  4:20 Help with Ada proof needed macdonaldk
1991-03-29 12:06 ` Luke J. Rheaume
1991-03-29 16:36   ` David Emery
1991-03-30  9:35 ` George C. Harrison, Norfolk State University

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