comp.lang.ada
 help / color / mirror / Atom feed
* GNATProve - interactions between units
@ 2015-10-23 10:25 Maciej Sobczak
  2015-10-24 11:40 ` Martin
  2015-10-25 13:27 ` Phil Thornley
  0 siblings, 2 replies; 4+ messages in thread
From: Maciej Sobczak @ 2015-10-23 10:25 UTC (permalink / raw)


Hi,

My understanding of SPARK rules is that it is possible to reason about the correctness of the program by proving its units individually and the role of package specifications and subprogram contracts is to isolate units from each other in the sense that it is not necessary to look into other units in order to declare the correctness of the unit being analyzed.

In other words, we can run GNATProve on each unit separately.

On the other hand, running GNATProve on all program units allows the tool (apart from reusing the runtime infrastructure of the prover, which amortizes the startup time over many units) to get more information about how units use each other and from this additional information it can discharge more VCs than would be possible otherwise.
If this is true, then running GNATProve on the whole program should produce the same or *smaller* amount of undischarged VCs.

I have a project where the opposite can be observed - that is, individual units prove clean, whereas the whole produces warning messages about range checks.

Is it acceptable to consider this to be a tool bug? Or are there any flaws in my reasoning above and in fact proving units separately is not sufficient for analyzing correctness of the program as a whole?

-- 
Maciej Sobczak * http://www.inspirel.com


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

end of thread, other threads:[~2015-10-25 13:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-23 10:25 GNATProve - interactions between units Maciej Sobczak
2015-10-24 11:40 ` Martin
2015-10-24 20:07   ` Maciej Sobczak
2015-10-25 13:27 ` Phil Thornley

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