Hi,
I need to add a statement 's' inside an if (), e.g.,
if(a || b || c){
something;
}
becomes
if(a || b || c){
s; //added code
something;
}
this is problematic because CIL transforms if(a||b||c) to
if (a){
something;
else{
if(b){
something;
else{
if(c){
something;
}
}
}
}
}
This means I need add s in 3 different locations ---
if (a){
s;
something;
else{
if(b){
s;
something;
else{
if(c){
s;
something;
}
}
}
}
}
I am not sure how to do this appropriately. In particular how do I know
that the "else{if (b)}" and else{if (c)} are parts of the original if
(a||b||c) to add s to it ? . Any suggestions ?
TIA,
VN -
------------------------------------------------------------------------------
_______________________________________________
CIL-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cil-users