--- layout: fc_discuss_archives title: Message 26 from Frama-C-discuss on April 2011 ---
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] Controlling the visitor (Plugin)



Hello everyone!

Is there any way we can orient the visit?
Here's what we do:

Go through the function bodies (that we get by the self#current_func method), calculate a cost over the regular statements, but when we find a call to another function, we have to add the cost of that function too.

So, we end up with a dependency graph (cycles - mutual recursive functions - are of course not handled).
If we have A which calls B, which calls C, and if the visitor goes through the functions in that order, we need to tell him " Stop visiting A, go visit the callee before the caller" 
Is there any way we can fix the visit order "manually"?

Thank you so much!

H. Zakaria Chihani
CerCo plug-in development.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20110414/efd47a5e/attachment.htm>