--- layout: fc_discuss_archives title: Message 16 from Frama-C-discuss on January 2014 ---
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] RE : How to discard a visiting glob?



Dear Julien,

It is really helpful to me.
Following your suggestion, I choose to create a new project by using
the new cil_types.file without that visited global.
Thank you very much.

-david



On 11 January 2014 17:48, SIGNOLES Julien <julien.signoles at cea.fr> wrote:
> Hello,
>
> It is not possible to discard something you are currently visiting (like a global in your example). You have to discard the element when visiting its container. For globals, it is the file itself (method vfile) in which you remove the global from the fiel 'globals'.
>
> Hope this helps,
> Julien
> ________________________________________
> De : frama-c-discuss-bounces at lists.gforge.inria.fr [frama-c-discuss-bounces at lists.gforge.inria.fr] de la part de David Yang [abiao.yang at gmail.com]
> Date d'envoi : vendredi 10 janvier 2014 14:29
> ? : Frama-C public discussion
> Objet : [Frama-c-discuss] How to discard a visiting glob?
>
> Hi all,
>
> How to discard a visiting glob while it satisfy some condition?
>
> method vglob_aux g =
>      match g with
>      | GType _ -> SkipChildren
>      | GVar _ ->
>          if(g satisfy some condition) then
>                ; (*** discard this glob ***)
>          else SkipChildren
>      | _ -> SkipChildren
>
>
> Here, How to write the code for if condition?
>
> Thanks.
>
> -david
>
> _______________________________________________
> 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
>
> _______________________________________________
> 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