From: Peter Chapin <PChapin@vtc.vsc.edu>
Subject: Re: SPARK internal error?
Date: Wed, 4 Mar 2015 17:42:24 -0500
Date: 2015-03-04T17:42:24-05:00 [thread overview]
Message-ID: <alpine.CYG.2.11.1503041735140.1588@WIL414CHAPIN.vtc.vsc.edu> (raw)
In-Reply-To: <851b7d3c-4ac3-4fba-852d-c2975050da74@googlegroups.com>
On Tue, 3 Mar 2015, Maciej Sobczak wrote:
> As a continuation of my previous post, here is the complete package with
> the array sorting exercise (not sure if it's correct):
>
> Package spec:
>
> [...]
>
> Package body:
>
> [...]
>
> GNATprove says:
>
> C:\maciej\temp\spark>gnatprove -Ptest -q
> Internal error:
> File "C:\maciej\temp\spark\gnatprove\my_package\..\my_package.mlw", line 2094, characters 208-235:
> This term has type tindexB, but is expected to have type int.
> Aborting.
> gprbuild: *** compilation phase failed
> gnatprove: error during generation and proof of VCs, aborting.
>
> Can you reproduce it? Is it a bug in the toolset?
Apparently. I executed gnatprove successfully on your sample code. I'm
using version
16.0.0w (20141212)
This is a wavefront version. As far as I know its capabilities should be
available in SPARK GPL 2015 (I'm not an AdaCore employee so I don't know
anything for sure about their release schedule).
BTW, I get the following message from gnatprove:
sandbox.ads:25:20: medium: postcondition might fail, requires A (I) <= A
(J)
So it's having problems with the postcondition of Sort.
Peter
prev parent reply other threads:[~2015-03-04 22:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-03 9:54 SPARK internal error? Maciej Sobczak
2015-03-03 12:17 ` G.B.
2015-03-03 12:58 ` G.B.
2015-03-03 15:33 ` Maciej Sobczak
2015-03-04 8:05 ` Georg Bauhaus
2015-03-04 14:47 ` joakim.strandberg
2015-03-04 22:42 ` Peter Chapin [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox