From: ThanhVu (V. N. <ngu...@gm...> - 2009-12-23 04:38:39
|
is there an easy way to add a new local variable ? e.g., sprintf(dest,src) will become int temp; temp = 5; snprintf(dest,sizeof(dest),src) I realize that this has several instructions instead of just one instruction like before -- that's fine however the function mkLocalVar requiring a fundec -- does it mean I need to use a different CilVisitor like visitCilFunction. Current I use visitCilFileSameGlobal Thanks VN - 2009/12/22 Gabriel Kerneis <ke...@pp...> > On Tue, Dec 22, 2009 at 08:32:23AM -0700, ThanhVu (Vu) Nguyen wrote: > > Did you mean "SizeOfE"? > > I meant the CIL constructor SizeOf, which you can build manually or > using SizeOfE (which won't make any difference in the end). > > Regards, > -- > Gabriel Kerneis > |