comp.lang.ada
 help / color / mirror / Atom feed
From: rod.chapman@praxis-cs.co.uk (Rod Chapman)
Subject: Re: employment with ada
Date: 12 May 2003 00:20:47 -0700
Date: 2003-05-12T07:20:47+00:00	[thread overview]
Message-ID: <cf2c6063.0305112320.544711e9@posting.google.com> (raw)
In-Reply-To: E0yva.16125$rV2.12620@nwrdny01.gnilink.net

Hyman Rosen <hyrosen@mail.com> wrote in message news:<E0yva.16125$rV2.12620@nwrdny01.gnilink.net>...

> Well, my primary question is how you expect to convince anyone except
> for the already converted when you start talking about "a shack built
> on a swamp".

That quote actually comes from a prominent member of the C community,
not from me, and was used with his permission.  It is indeed a slightly
tongue-in-cheek assessment of the language, and I presented it
as such.  Perhpas this doesn't come across clearly enough in
the slides alone.

> The PDFs talk about C ambiguity. What exactly is this supposed to mean,
> and why is it a problem?

C (like Ada) has plenty of ambiguity in its defintion - to use the
Ada terminology, these are the implementation-defined, implementation-
dependent and erroneous bit of the langauge.  ISO C90 lists about
205 of these I think.

> On the other hand, the sample rules for MISRA-C seem to just be rules of
> correct C as opposed to limitations on the language. I assume that there
> are actually some rules which do impose constraints.

Absolutely - some of the rules limit the use of casts and pointer
arithmetic, for example, which are very important constraints.

> The ASSENT product
> pages claim that they have a complete checking environment for all the
> rules which can be examined by source, but you seem to doubt that this
> can be true without explaining why.

Owing to the ambiguity of the definition (both of C and of the 
MISRA rules), the notion of "compliance" is very hard to pin down.
Some of the rules are also require very deep analysis (MISRA
rule 30, for example, effectively requires global inter-procedural
data-flow analysis which is very hard in the presence of
general pointer effects and aliasing.)  In the study conducted
by Pi Technology, some tools were found to attempt a deep analysis (but
are slow) and some tools do a less deep analysis but are faster.
Which tool is correct?  Which would you buy? :-)

> Are there multiple implementations of the SPARK Examiner from different
> companies? If not, criticism of multiple MISRA-C examiners for producing
> somewhat different results is at least a little disingenuous.

SPARK is deliberately and carefully designed so the
question "Is this program legal SPARK?" always has a 
"Yes/No" answer that is decideable in polynomial time.
(The latter point is important - trying to solve NP-Hard
problems in static analysis is bad news if you want to 
encourage constructive use of the technology...)

So...No - no other company has chosen to compete with us in tool support
for SPARK as present.  BUT...since SPARK _does_ have an unambiguous
defintion, it should be possible for such as diverse
implementation to be constructed and for it to give identical
results to the existing SPARK Examiner.

(Actually - now I think of it - there is such a tool, but it
isn't publically available.  Still - its existance illustrates
the point.)

 - Rod



  reply	other threads:[~2003-05-12  7:20 UTC|newest]

Thread overview: 80+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-02  0:36 employment with ada tom
2003-05-02  0:41 ` Ed Falis
2003-05-02  8:51 ` John McCabe
2003-05-02 12:08 ` Marin David Condic
2003-05-02 20:54 ` Bill Sheehan
2003-05-03  3:23   ` R. Srinivasan
2003-05-03  4:13     ` John R. Strohm
2003-05-03  5:03       ` anisimkov
2003-05-03  7:07         ` Anders Wirzenius
2003-05-03  7:46           ` AG
2003-05-05  5:38             ` Anders Wirzenius
2003-05-03 14:44         ` Marin David Condic
2003-05-04 15:32       ` Mark Lorenzen
2003-05-05 11:47         ` Marin David Condic
2003-05-03 14:37     ` Marin David Condic
2003-05-03 16:03 ` DPH
2003-05-03 16:22   ` Chad R. Meiners
2003-05-03 17:18     ` DPH
2003-05-03 20:30       ` Jeffrey Carter
2003-05-03 19:17   ` Richard Riehle
2003-05-03 20:35     ` Jeffrey Carter
2003-05-04 11:01       ` Simon Wright
2003-05-05  0:34       ` Richard Riehle
2003-05-05  2:28         ` Jeffrey Carter
2003-05-05  3:33           ` Wesley Groleau
2003-05-05 12:30           ` Robert A Duff
2003-05-04 13:14     ` DPH
2003-05-05  1:20       ` Richard Riehle
2003-05-07 12:20         ` Marin David Condic
2003-05-08 18:20           ` tmoran
2003-05-09 11:45             ` Marin David Condic
2003-05-09 13:11             ` Hyman Rosen
2003-05-09 17:13               ` Larry Kilgallen
2003-05-05  3:28       ` Wesley Groleau
2003-05-05 10:45         ` DPH
2003-05-05 12:47           ` Ed Falis
2003-05-05 20:19             ` DPH
2003-05-05 20:28               ` Ed Falis
2003-05-06 11:30                 ` Marin David Condic
2003-05-07 13:22                   ` Stephen Leake
2003-05-08 12:21                     ` Marin David Condic
2003-05-05 17:12       ` Simon Wright
2003-05-04 13:20     ` Marin David Condic
2003-05-05 17:19       ` Simon Wright
2003-05-06 12:07         ` Marin David Condic
2003-05-04 18:14     ` Hyman Rosen
2003-05-05  1:24       ` Richard Riehle
2003-05-05  1:27       ` Richard Riehle
2003-05-10 20:29       ` Chad R. Meiners
2003-05-11  3:32         ` Hyman Rosen
2003-05-11  4:25           ` Chad R. Meiners
2003-05-11 16:43             ` Hyman Rosen
2003-05-11 23:04               ` Chad R. Meiners
2003-05-11 15:29           ` Robert A Duff
2003-05-11 17:14             ` Hyman Rosen
2003-05-11 19:24           ` Rod Chapman
2003-05-11 20:03             ` Hyman Rosen
2003-05-12  7:20               ` Rod Chapman [this message]
2003-05-04  0:25   ` John R. Strohm
2003-05-04  4:09     ` DPH
2003-05-04 19:37       ` P S Norby
2003-05-04  4:55   ` Steve
2003-05-04 12:55     ` DPH
2003-05-05  6:27     ` Anders Wirzenius
2003-05-04 12:57   ` Marin David Condic
2003-05-04 16:45     ` tmoran
2003-05-04 13:45   ` Alex Gibson
2003-05-05  4:07   ` William J. Thomsa
2003-05-05 18:41   ` P S Norby
2003-05-05 20:26     ` DPH
2003-05-05 23:06       ` William J. Thomsa
2003-05-05 23:20         ` DPH
2003-05-06  9:24       ` Ole-Hjalmar Kristensen
2003-05-07  1:25         ` Wesley Groleau
2003-05-07 13:23           ` Stephen Leake
2003-05-07 16:36             ` Wesley Groleau
2003-05-06  9:32       ` Preben Randhol
  -- strict thread matches above, loose matches on Subject: below --
2003-05-04  1:32 Alexandre E. Kopilovitch
2003-05-06 16:19 ` L. Siever
2003-05-07 13:35   ` Stephen Leake
replies disabled

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