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] Substitution in Cil_types.predicate
- Subject: [Frama-c-discuss] Substitution in Cil_types.predicate
- From: hollas at informatik.htw-dresden.de (Boris Hollas)
- Date: Mon, 27 Feb 2012 12:00:25 +0100
- In-reply-to: <CA+yPOVjC+ux_Rj+SwdLU4yOZeP2zcZvNFeSpD7698zqwx7BoSA@mail.gmail.com>
- References: <1330091763.2071.50.camel@iti27.informatik.htw-dresden.de> <CA+yPOVgMt=gL_ta6EybZdxEdueW+-S0UMOgfXND8EH90VUF_GA@mail.gmail.com> <1330330506.2071.75.camel@iti27.informatik.htw-dresden.de> <CA+yPOVjC+ux_Rj+SwdLU4yOZeP2zcZvNFeSpD7698zqwx7BoSA@mail.gmail.com>
On Mon, 2012-02-27 at 11:05 +0100, Virgile Prevosto wrote: > No. As soon as offs is non-trivial, you end up with some sharing > across new and old node. Ok. I suspected I can't be that easy :) > or overload vlogic_var_use instead of vterm: > method vlogic_var_use lv = > if Logic_utils.is_same_var lv lv_old then Cil.ChangeTo lv_new else DoChildren but wouldn't this just replace the lv without substituting the corresponding offset? > The latter can only be used for performing var-to-var substitution. if I want to substitute s->t in s.a and both s,t are vars of compatible type, is this a var-to-var substitution? > Yes, old node means the original one, and the result is the result of > visiting v. The result is whatever the visitor wants to do with the > children of v. So the result is a visitAction? But fun _ -> t_new is applied on a term, not on a visitAction. Or is the result the node of the corresponding type after having been visited? -- Best regards, Boris
- Follow-Ups:
- [Frama-c-discuss] Substitution in Cil_types.predicate
- From: virgile.prevosto at m4x.org (Virgile Prevosto)
- [Frama-c-discuss] Substitution in Cil_types.predicate
- References:
- [Frama-c-discuss] Substitution in Cil_types.predicate
- From: hollas at informatik.htw-dresden.de (Boris Hollas)
- [Frama-c-discuss] Substitution in Cil_types.predicate
- From: virgile.prevosto at m4x.org (Virgile Prevosto)
- [Frama-c-discuss] Substitution in Cil_types.predicate
- From: hollas at informatik.htw-dresden.de (Boris Hollas)
- [Frama-c-discuss] Substitution in Cil_types.predicate
- From: virgile.prevosto at m4x.org (Virgile Prevosto)
- [Frama-c-discuss] Substitution in Cil_types.predicate
- Prev by Date: [Frama-c-discuss] Substitution in Cil_types.predicate
- Next by Date: [Frama-c-discuss] Substitution in Cil_types.predicate
- Previous by thread: [Frama-c-discuss] Substitution in Cil_types.predicate
- Next by thread: [Frama-c-discuss] Substitution in Cil_types.predicate
- Index(es):