pushTestIntoBody
Rewrites a while or for loop so that the official test is changed to "true" and what had previously been the test is now an ifâbreak combination (with an inverted condition) at the beginning of the loop body
Synopsis
Declared in <src/midend/programTransformation/astInlining/replaceExpressionWithStatement.h>
void
pushTestIntoBody(SgScopeStatement* loopStmt);
Description
For example, "while (a < 5) ++a;" becomes: "while (true) {bool temp; temp = (a < 5); if (!temp) break; ++a;}"
Parameters
Name |
Description |
loopStmt |
This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.). |
Created with MrDocs