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] List of function calls within a function


  • Subject: [Frama-c-discuss] List of function calls within a function
  • From: gavran at mpi-sws.org (Ivan Gavran)
  • Date: Tue, 2 Dec 2014 15:12:06 +0100
  • In-reply-to: <CA+yPOVhHHwJt50bg25R0doc=+XGKa1kqrq3MfTY0tovovOFFqg@mail.gmail.com>
  • References: <CAOKvw7F1facLzWFtT2r2FF0-y2izoGwcvujrsM1Tgx3h2y2O+A@mail.gmail.com> <CA+yPOVhTZS5enZkFYpkaa5xzgunWkFBkChLp=Oz6ZHyxJX=iNQ@mail.gmail.com> <CAOKvw7HcJ3n7ZJzQkojwx75vyqWp=ECWj+eToBH4VZ2JpbpcNg@mail.gmail.com> <CA+yPOVhHHwJt50bg25R0doc=+XGKa1kqrq3MfTY0tovovOFFqg@mail.gmail.com>

Thanks, both advices are valuable.

On Tue, Dec 2, 2014 at 11:36 AM, Virgile Prevosto <virgile.prevosto at m4x.org>
wrote:

> 2014-12-02 10:49 GMT+01:00 Ivan Gavran <gavran at mpi-sws.org>:
> > Hello,
> > thank you for the answer.
> > I couldn't understand much from syntactic_callgraph.
> > But following your last advice: if I find the function by name and then
> look
> > at its declaration (fundec) and finally list of all statements in the
> > function (sallstmts), how can I tell which statement is a function call?
> >
>
> A statement s is a function call if s.skind is of the form Instr(Call(_)).
>
> By the way, I forgot the existence of Cil's own callgraph module in
> cil/src/ext/callgraph.ml which you might find of interest.
>
> Best regards,
> --
> E tutto per oggi, a la prossima volta
> Virgile
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20141202/ea2daf6f/attachment.html>