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] Error on using pp-annot


  • Subject: [Frama-c-discuss] Error on using pp-annot
  • From: frank at dordowsky.de (Frank Dordowsky)
  • Date: Mon, 28 Apr 2014 21:02:29 +0200 (CEST)
  • In-reply-to: <CAOH62JhQbCdgy9WDQ=aEUK6_EtkHj7q8Y5H=X1EwqdXgNu65og@mail.gmail.com>
  • References: <alpine.LNX.2.03.1403300940120.3220@strato.de> <CAOH62JhJErP1S-T80t6TTWDj4DB+89aGb3BHSNM3=vAKEJMz-Q@mail.gmail.com> <CAOH62JiriPFVqKf1-ynK_5BurCv8WR0kNDUECH-tG_4gSnvbBA@mail.gmail.com> <alpine.LNX.2.03.1403301438460.3899@dordowsky.de> <CAOH62JiHCiHPUJRidjsvkv_1USR_qsStz1CYgOPak+HM6MCnMw@mail.gmail.com> <alpine.LNX.2.03.1404012134240.617@dordowsky.de> <CAOH62JizN7SNKizysEWehbjhVY81sgsfnaO=LxnuPZ8cYc8Htw@mail.gmail.com> <alpine.LNX.2.03.1404072130160.567@dordowsky.de> <CAOH62JhQbCdgy9WDQ=aEUK6_EtkHj7q8Y5H=X1EwqdXgNu65og@mail.gmail.com>

Hello Pascal,
I think I will follow your advice and will use the annotated
libraries. I understand that whenever I am going to use standard
libraries I should replace these with the annotated ones.

In my example, I will probably not use standard libraries because my
example is from a safety domain and standard libraries are considered
with concern.

In the embedded domain, we are using sometimes specific compilers that
come with specific libraries. In that case, do I have to annotate them
myself in order to make analysis work?

Frank


On Fri, 18 Apr 2014, Pascal Cuoq wrote:

> 
> On Mon, Apr 7, 2014 at 9:31 PM, Frank Dordowsky <frank at dordowsky.de> wrote:
>       I have tried clang and it seems to work. I also could reduce the
>       number of options of the command. This is my command now:
>
>             frama-c -cpp-command 'clang -C -E -I.' -wp -wp-rte
>             -pp-annot constant.c
> 
> 
> You should still use?-cpp-extra-args=-nostdinc -cpp-extra-args=-I`frama-c
> -print-share-path`/libc?.
> 
> Just because it happens to work on the simple example you initially set out
> to parse does not mean that using the compiler-provided headers is a good
> idea.
> 
> In other words:
> 
> The headers on the left are designed to work with another compiler and if
> they were ever shown a formal annotation, they weren't looking. The headers
> on the right contain ACSL specifications for a large number of standard
> library functions. Which ones do you want to use for your analyses?
> 
>