comp.lang.ada
 help / color / mirror / Atom feed
* Question about round__ proof function in SPARK proofs.
@ 2011-01-15 17:39 Peter C. Chapin
  2011-01-15 18:11 ` Phil Thornley
  0 siblings, 1 reply; 3+ messages in thread
From: Peter C. Chapin @ 2011-01-15 17:39 UTC (permalink / raw)


I'm trying to discharge a VC in a SPARK proof. After simplification I
have just:

H1: julian_date >= 4830771 / 2 .
H2: julian_date <= 2489665 .

The conclusions are:

C1: round__(julian_date + 1 / 2) >= - 2147483648 .
C2: round__(julian_date + 1 / 2) <= 2147483647 .

This VC is the result of a type conversion from a floating point type to
an integer type. It seems evident that the conclusions are true for any
reasonable definition of round__. I assume the simplifier is not proving
this VC because it doesn't have any built-in knowledge of the proof
function round__, even though it was inserted automatically be the
examiner. So I think maybe I'm supposed to specify the properties of
round__ somewhere. Am I on track here?

Thanks in advance for any insights you might have.

Peter



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

end of thread, other threads:[~2011-01-16 13:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-15 17:39 Question about round__ proof function in SPARK proofs Peter C. Chapin
2011-01-15 18:11 ` Phil Thornley
2011-01-16 13:47   ` Peter C. Chapin

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