SageInterface::forLoopNormalization
Normalize a for loop, return true if successful. Generated constants will be fold by default.
Synopsis
Declared in <SageIII/sageInterface/sageInterface.h>
[[visibility]]
bool
forLoopNormalization(
SgForStatement* loop,
bool foldConstant = true);
Description
Translations are : For the init statement: for (int i=0;... ) becomes int i; for (i=0;..) For test expression: i<x is normalized to i<= (x‐1) and i>x is normalized to i>= (x+1) For increment expression: i++ is normalized to i+=1 and i‐‐ is normalized to i+=‐1 i‐=s is normalized to i+= ‐s
Parameters
Name |
Description |
loop |
This class represents the concept of a for loop. |
Created with MrDocs