Frama-C-discuss mailing list archives

This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] ACSL-implication


  • Subject: [Frama-c-discuss] ACSL-implication
  • From: Claude.Marche at inria.fr (Claude Marché)
  • Date: Mon, 15 Dec 2008 14:22:44 +0100
  • In-reply-to: <556C61D2177E4D5BB1805F3FF675D3E7@AHARDPLACE>
  • References: <556C61D2177E4D5BB1805F3FF675D3E7@AHARDPLACE>

Hi,

As far as I understand the question, implication is logical implication.

The other alternative, "conditional evaluation", does not make sense to 
me since terms and propositions given as annotations are not meant to be 
"executed".

My guess is that you are thinking about annotations like

//@ assert p != NULL ==> *p == ...

where the meaning of *p on the right is undefined if the left part is 
not true.

Such "undefinedness" issues are discussed in section 2.2.2 of ACSL 
document (Logic Expressions/Semantics) and for further info I recommend 
reading the work of P. Chalin cited there.

- Claude


Christoph Weber wrote:
> Hello,
> 
> I would like to know, how the implication in the ACSL must be interpreted.
> 
> Is it a logical implication, that returns a boolean, in each case?
> 
> Or is it like a conditional evaluation, where the right-hand-side is only evaluated when the left-hand-side returns true?
> 
> I hope my question makes sense to you.
> 
> Cheers
> 
> Christoph
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Frama-c-discuss mailing list
> Frama-c-discuss at lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/frama-c-discuss

-- 
Claude March?                          | tel: +33 1 72 92 59 69
INRIA Saclay - ?le-de-France           | mobile: +33 6 33 14 57 93
Parc Orsay Universit?                  | fax: +33 1 74 85 42 29
4, rue Jacques Monod - B?timent N      | http://www.lri.fr/~marche/
F-91893 ORSAY Cedex                    |