@specs-feup/clava
Version:
A C/C++ source-to-source compiler written in Typescript
31 lines • 838 B
TypeScript
import { Loop } from "../../Joinpoints.js";
/**
* Replaces for loop with an equivalent construct based on a while loop:
* ```c
* for (init; cond; step) {
* //...
* continue;
* //...
* //...
* }
* ```
* becomes
* ```c
* {
* init;
* while (cond) {
* // ...
* goto __for_loop_step_${step_label_suffix};
* // ...
* // ...
* __for_loop_step_${step_label_suffix}:
* step;
* }
* }
* ```
* @param $forStmt - For-loop joinpoint
* @param stepLabelSuffix - Suffix to attach to the for loop step label, added in case there are `continue` statements to account for
* @returns The newly created replacement joinpoint
*/
export default function ForToWhileStmt($forStmt: Loop, stepLabelSuffix: number | string): import("../../Joinpoints.js").Scope;
//# sourceMappingURL=ForToWhileStmt.d.ts.map