Bump. :)

On 2 March 2013 08:44, Jonathan Kotker <advancedvers...@gmail.com> wrote:

> 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:
>
> a = 3;
> b[0x5] = 4;
> c.d.foo = 3;
>
> I would like to "patch" these assignments into a function of the original
> C file. These assignments are the initial assignments to these variables,
> so they will occur just after the definitions of these variables at the top
> of the function.
>
> I was wondering if there was already something in CIL that could do this,
> since I haven't yet seen one. As an alternative, I was considering passing
> the source file through CIL; once this is done, I hope to read these
> assignments and somehow "convert" them into the appropriate elements of the
> CIL representations, so that I can stitch them into the CIL AST.
>
> The best I could find was the function "cStmt" within "formatCil.ml".
>
> Any suggestions or advice would be appreciated.
>
> Thanks,
> Jon.
>
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users

Reply via email to