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] how to interpret ACSL annotations?
- Subject: [Frama-c-discuss] how to interpret ACSL annotations?
- From: anne.pacalet at inria.fr (Anne Pacalet)
- Date: Mon, 4 Jul 2011 08:54:25 +0200 (CEST)
- In-reply-to: <CALiiei7bLoTDOOCk6oJisXwUuNT0tJgPHexyWKu8pHXSCXmCFg@mail.gmail.com>
> Now, I want to get the information of annotation //@ ensures \result > == ((i<j)?j:i); , including the structure, the s emantic etc. > Just like we use AST, CFG to represent a C program. > I wonder whether you konw what I want. The data structures can be found in [cil/src/cil_types.mli]. For instance, to find your "ensures" property, you first have to find the [kernel_function] using functions from [Globals.Functions] (find_by_name or iter for instance). Then, [Kernel_function.get_spec] returns a [Cil_types.spec] which has a [spec_behavior] field. In the [b_post_cond] field, you'll find the ensures property. For internal properties (inside function), you have to use functions from [Annotations]. Don't use the [Code_annot] from the AST. Does this answer your questions ? Bye, -- Anne.
- References:
- [Frama-c-discuss] how to interpret ACSL annotations?
- From: njucslzh0714 at gmail.com (刘自恒)
- [Frama-c-discuss] how to interpret ACSL annotations?
- Prev by Date: [Frama-c-discuss] how to interpret ACSL annotations?
- Next by Date: [Frama-c-discuss] how to interpret ACSL annotations?
- Previous by thread: [Frama-c-discuss] how to interpret ACSL annotations?
- Next by thread: [Frama-c-discuss] how to interpret ACSL annotations?
- Index(es):