Dear Ting Su,
Thank you very much for your quick reply.
My bad for just digging up the code but not considering the quickest
reference "--help". Yes, I guess the option --printCilAsIs does help.
For my first point, I want to output also the line number of TRANSLATED
code in the output file but not the line number of translated code in the
ORIGINAL program. I bet I need to dig up the Cil printer.
With Kind Regards
TheAnh Do
On Mon, Dec 24, 2012 at 9:33 PM, TheAnh Do <theanh2...@gmail.com> wrote:
> Dear Ting Su,
>
> Thank you very much for your quick reply.
>
> My bad for just digging up the code but not considering the quickest
> reference "--help". Yes, I guess the option --printCilAsIs does help.
>
> For my first point, I want to output also the line number of TRANSLATED
> code in the output file but not the line number of translated code in the
> ORIGINAL program. I bet I need to dig up the Cil printer.
>
>
> With Kind Regards
> TheAnh Do
>
> On Mon, Dec 24, 2012 at 9:15 PM, 823797879 <823797...@qq.com> wrote:
>
>> **
>> Hi, TheAnh Do
>> 1. the line number of "if (x > 10)" and "if (y > 10)" are same as "if (x
>> > 10 && y > 10)"
>> 2. i remember there is an output option in CIL to print CIL
>> representation, you can check it by "--help".
>> Hope it will help you.
>> ------------------------------
>> Ting Su
>>
>> *From:* TheAnh Do <theanh2...@gmail.com>
>> *Date:* 2012-12-24 21:09
>> *To:* cil-users <cil-users@lists.sourceforge.net>
>> *Subject:* [CIL users] (no subject)
>> 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?
>>
>> 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?
>>
>> With Kind Regards
>> TheAnh Do
>>
>
>
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users