[CIL users] Parsing Statement Assignments

2013-03-02 Thread Jonathan Kotker
Hello (CIL) World. I was looking through the CIL codebase in search of a function that would convert a statement into an element of the CIL representation. The larger context of this problem is as follows: I have a C file, and I also have another file (a non-legal C file) with assignments such as

Re: [CIL users] Instrumenting a program with a call to function in external file

2013-03-02 Thread sonamt
Thanks for quick response I am quiet a beginner in CIL. Although i am comfortable with using visitors, finding statements and making changes. But i am not able to create a call statement along with parameters (arguments) any simple example would be helpful. > Hi, > > On SatteFunc, Mar 02, 20

Re: [CIL users] Instrumenting a program with a call to function in external file

2013-03-02 Thread Gabriel Kerneis
Hi, On SatteFunc, Mar 02, 2013 at 11:52:50AM +0530, son...@iitk.ac.in wrote: > I would like to get a basic idea on how to insert call to a function > defined in some other C file to the input file before a particular kind > of statement lets say before all "loop" statements in the input file. Fi

Re: [CIL users] Can the Reaching Definition Module handle interprocedural def-use analysis?

2013-03-02 Thread Gabriel Kerneis
On Sat, Mar 02, 2013 at 09:29:25AM +0800, tsuletgo wrote: > I have a question about the Reaching Definition module based on the Data Flow > module in CIL. > Can the RD(Reaching Definition) module analyzes interprocedural def-use pair > of a variable? or it only can do intraprocedural def-use pair