Re: [CIL users] How to change Binops to function calls?

2013-10-16 Thread tsuletgo
Hi, If you carefully read the definition of CALL instruction, you will find function can be regarded as an Cil.exp. So it's not difficult to solve your problem. Take it as a clue. Call of lvaloption * exp * explist * location Ting Ting SU,software institute,East China Normal University tsul

Re: [CIL users] A problem about 'queueInstr'

2013-07-26 Thread tsuletgo
Hi, Gabriel I find some building error about your code snippet: > method vfunc = function > | GFun _ -> DoChildren > | _ -> SkipChildren The attached files are my code and my input file. The bug still occurs. Best! Ting From: Gabriel Kerneis Date: 2013-07-26 15:23 To: tsuletg

[CIL users] A problem about 'queueInstr'

2013-07-25 Thread tsuletgo
Hi, cil world i intend to write a module to insert an self-defined interface before each statement in a function. I use the ‘queueInstr', but an error occurs with the following message: Bug: Visitor's instruction queue is not empty. You should only use queueInstr inside a function body! Fatal

[CIL users] A Question about the usedef module in CIL

2013-07-17 Thread tsuletgo
Hi, CIL world I have a question on the usedef module in CIL. Maybe someone could give me some help. I want to consider the formal parameters of a function as a variable definition when finding use/def associations through the reaching definition module. But i find CIL does not consider it as a d

Re: [CIL users] Creation of Temporary Variables

2013-03-09 Thread tsuletgo
Hello, As far as i know, it seems that the creation of these temporary variables is automatic, so they can not be removed. Best Regards! Ting SU,software institute,East China Normal University Ph.D student tsule...@gmail.com (Email,MSN) From: प्रतीक स्कायवाल्कर Date: 2013-03-10 00:52 To: cil

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

2013-03-03 Thread tsuletgo
sis module? Because i wish to use it do some interprocedural def-use pair analysis. Best Regards! Ting SU,software institute,East China Normal University PhD. student tsule...@gmail.com (Email,MSN) From: Gabriel Kerneis Date: 2013-03-02 16:59 To: tsuletgo CC: cil-users Subject: Re: [CIL user

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

2013-03-01 Thread tsuletgo
Hello, 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 analysis? for example, foo(int x){ x=3; bar(x); } bar(int