On Mon, Dec 24, 2012 at 09:12:31PM +0800, TheAnh Do wrote:
> Dear Cil users,
> 
> Please kindly help me the following issues:
> 
> 1. Does Cil support identifying line numbers of translated statements in
> the output files? For example, consider the following piece of code:
>     if (x > 10 && y > 10)
> It will be translated to:
>     if (x > 10)
>          if (y > 10)
> When Cil outputs the translated code, how can I also output the line
> numbers of translated statements appearing in the output file? For example,
> what line number of "if (x > 10)" or "if (y > 10)" will be in the output
> file?

I do not understand your question.  Did you try --commPrintLn (but it does the
reverse of what you want I think)?

> 2. By default, Cil attempts to recover some part of the program to the
> original program. For example, a simple loop may be printed out the same as
> it is in the original program. But the internal Cil representation of this
> loop can be actually different. My question is how can I force Cil to
> output the internal Cil representation of the WHOLE program?

Use --printCilAsIs.

Best,
-- 
Gabriel

------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users

Reply via email to