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] Modifying the AST to insert statements / declarations


  • Subject: [Frama-c-discuss] Modifying the AST to insert statements / declarations
  • From: virgile.prevosto at m4x.org (Virgile Prevosto)
  • Date: Fri, 16 Mar 2012 11:23:01 +0100
  • In-reply-to: <CA+yPOVg_rWHNfGDd_sji+MMfU6G=X8qEYPO0w27ou=5AJoeRpA@mail.gmail.com>
  • References: <4F62F793.9090807@rennes.supelec.fr> <CA+yPOVg_rWHNfGDd_sji+MMfU6G=X8qEYPO0w27ou=5AJoeRpA@mail.gmail.com>

2012/3/16 Virgile Prevosto <virgile.prevosto at m4x.org>:
>
> The attached script contains a very basic visitor that generates a new

Oops, I forgot that since the visitor adds some statement, It'd be
better to recompute the cfg afterwards. The issue does not show up
when printing the code, but doing a real analysis (e.g. -val) would
result in a lot of trouble if the cfg is not correct. Attached is a
correct version. Sorry for the noise.

-- 
E tutto per oggi, a la prossima volta
Virgile
-------------- section suivante --------------
Une pi?ce jointe autre que texte a ?t? nettoy?e...
Nom: insert_stmt.ml
Type: text/x-ocaml
Taille: 1671 octets
Desc: non disponible
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20120316/f85b2b3b/attachment.bin>