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] [PROVENANCE INTERNET] Re: New Frama-C version: Fluorine

  • Subject: [Frama-c-discuss] [PROVENANCE INTERNET] Re: New Frama-C version: Fluorine
  • From: loic.correnson at (Loïc Correnson)
  • Date: Fri, 19 Apr 2013 15:45:19 +0200
  • In-reply-to: <>
  • References: <> <>

Small detail about your Length axiomatic :

axiomatic Length
    logic integer Length{L}(char *s) reads *s;

    axiom string_length{L}:
       \forall integer n, char *s ; Length_of_str_is(s, n) <==> Length(s) == n ;

This is over-specified. I choose only (==>) in my solution.
Actually, I'm afraid there is an inconsistency with (<==>).
Your axioms proves that for all pointer s, Length_of_str_is(s,Length(s)).
This means that all strings have a length. Which is false, indeed.