From: rod.chapman@praxis-cs.co.uk (Rod Chapman)
Subject: Re: "access constant" discriminant
Date: 10 Feb 2003 14:27:57 -0800
Date: 2003-02-10T22:27:57+00:00 [thread overview]
Message-ID: <cf2c6063.0302101427.51b50e12@posting.google.com> (raw)
In-Reply-To: lnJ1a.50689$SD6.3473@sccrnsc03
tmoran@acm.org wrote in message news:<lnJ1a.50689$SD6.3473@sccrnsc03>...
> Can this be done? How?
A great shame that it can't. From the viewpoint of a static analysis
tool, this is dreadful, since access parameters don't specify whether
the referenced objected is intended to be referenced, updated, or both - this
severely limits our ability to do information flow analysis in the presence
of access parameters, which needs
such information to be available as part of a subprogram's specifiction
if it to used usefully and efficiently implemented. In light of this, SPARK
currently excludes access parameters.
(In SPARK, we have parameter modes as normal, but we extend a subprogram's
specification to include a list of all global data and their import/export
modes via the global annotation. This makes IFA efficient, since we don't
need to look inside the body - all the info we need is on the spec.)
If access parameters were allowed to specify such information (e.g. "access in",
"access out" and "access in out") this would be a great help. I remember
mentioning this to Tucker at SigAda and he took a note of it - not
sure if this issue has made it into any of the current AI's, though...
- Rod
next prev parent reply other threads:[~2003-02-10 22:27 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-10 8:26 "access constant" discriminant tmoran
2003-02-10 14:43 ` Frank J. Lhota
2003-02-10 18:57 ` tmoran
2003-02-15 19:17 ` Richard Riehle
2003-02-15 19:59 ` Larry Kilgallen
2003-02-15 23:53 ` Richard Riehle
2003-02-16 1:50 ` Eric G. Miller
2003-02-20 2:23 ` Matthew Heaney
2003-02-20 17:34 ` Stephen Leake
2003-02-21 0:42 ` Matthew Heaney
2003-02-21 10:41 ` Lutz Donnerhacke
2003-02-21 20:21 ` Randy Brukardt
2003-02-23 12:22 ` Simon Wright
2003-02-24 7:06 ` Dale Stanbrough
2003-02-24 18:58 ` Matthew Heaney
2003-02-24 21:05 ` Randy Brukardt
2003-02-25 14:15 ` Frank J. Lhota
2003-02-26 1:05 ` Randy Brukardt
2003-02-24 16:03 ` Matthew Heaney
2003-02-21 15:03 ` Hyman Rosen
2003-02-21 20:09 ` Randy Brukardt
2003-02-21 21:33 ` Matthew Heaney
2003-02-21 20:07 ` Randy Brukardt
2003-02-24 19:11 ` Matthew Heaney
2003-02-24 21:17 ` Randy Brukardt
2003-02-25 17:49 ` Richard Riehle
2003-02-20 2:23 ` Matthew Heaney
2003-02-20 2:20 ` Matthew Heaney
2003-02-10 19:26 ` Robert A Duff
2003-02-10 22:27 ` Rod Chapman [this message]
2003-02-11 2:00 ` Jeffrey Carter
2003-02-20 2:28 ` Matthew Heaney
2003-02-20 9:45 ` Lutz Donnerhacke
2003-02-20 2:17 ` Matthew Heaney
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox