From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: SPARK code samples
Date: Thu, 12 Aug 2010 15:41:00 +0200
Date: 2010-08-12T15:41:00+02:00 [thread overview]
Message-ID: <op.vhbuymkrxmjfy8@garhos> (raw)
In-Reply-To: b4682a96-9b38-49c1-a2e1-4b3580cc120a@q22g2000yqm.googlegroups.com
Le Thu, 12 Aug 2010 09:29:22 +0200, Maciej Sobczak
<see.my.homepage@gmail.com> a écrit:
> No. AARM 3.5.4/21 defines the minimum range for Integer, it is
> -2**15+1..2**15-1.
I was aware of that for Ada, while not sure for SPARK, as this depends on
a machine description file. Will suppose it in the future.
> I also think that if the program requirements say that the input will
> be in some range, you can assume this is true without asserting it.
> The point is that such requirements are verifiable outside of the
> program, for example by the design of subsystem (hardware data source,
> perhaps?) that feeds input to your component.
OK, I see. That is a clever point (I had never operate in a staff, so I
could not know that).
> The environment is not
> necessarily an English-speaking human sitting in front of the screen -
> especially in the case of SPARK programs. ;-)
Assumed that if there is a SPARK_IO, this ends into something which is not
dropped (either screen, file, single line text display, any)
Good point anyway.
--
There is even better than a pragma Assert: a SPARK --# check.
--# check C and WhoKnowWhat and YouKnowWho;
--# assert Ada;
-- i.e. forget about previous premises which leads to conclusion
-- and start with new conclusion as premise.
next prev parent reply other threads:[~2010-08-12 13:41 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-11 8:44 SPARK code samples Dmitry A. Kazakov
2010-08-11 11:38 ` Ada novice
2010-08-11 13:54 ` Yannick Duchêne (Hibou57)
2010-08-11 16:07 ` Mark Lorenzen
2010-08-11 16:33 ` (see below)
2010-08-11 16:45 ` Yannick Duchêne (Hibou57)
2010-08-11 16:50 ` Yannick Duchêne (Hibou57)
2010-08-11 17:10 ` Ada novice
2010-08-11 18:21 ` Yannick Duchêne (Hibou57)
2010-08-12 12:08 ` Ada novice
2010-08-12 22:03 ` Phil Thornley
2010-08-11 15:26 ` Yannick Duchêne (Hibou57)
2010-08-11 17:33 ` Dmitry A. Kazakov
2010-08-12 2:39 ` Yannick Duchêne (Hibou57)
2010-08-12 5:02 ` Jeffrey Carter
2010-08-12 13:31 ` Yannick Duchêne (Hibou57)
2010-08-12 7:16 ` cjpsimon
2010-08-12 7:29 ` Maciej Sobczak
2010-08-12 13:41 ` Yannick Duchêne (Hibou57) [this message]
2010-08-12 9:46 ` Jacob Sparre Andersen
2010-08-12 13:43 ` Yannick Duchêne (Hibou57)
2010-08-12 13:58 ` Jacob Sparre Andersen
2010-08-12 3:03 ` Yannick Duchêne (Hibou57)
-- strict thread matches above, loose matches on Subject: below --
2010-08-11 17:32 Mark Lorenzen
2010-08-11 17:39 ` Ada novice
2010-08-11 17:45 ` (see below)
2010-08-11 18:00 ` Ada novice
2010-08-11 18:17 ` Yannick Duchêne (Hibou57)
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox