retdec
Public Attributes | List of all members
retdec::llvmir2hll::SplittedWhileTrueLoop Struct Reference

A representation of a "while true" loop. More...

#include <loop_optimizer.h>

Public Attributes

ShPtr< StatementbeforeLoopEndStmts
 
ShPtr< IfStmtloopEnd
 The loop's end – corresponds to (2) in the class description. More...
 
ShPtr< StatementafterLoopEndStmts
 

Detailed Description

A representation of a "while true" loop.

Consider a general "while true" loop:

while True:
// Statements (1)
if cond: // Loop end (2)
either nothing or a variable assignment
break or return
// Statements (3)

This class represents a loop splitted into the parts (1) through (3).

Member Data Documentation

◆ afterLoopEndStmts

ShPtr<Statement> retdec::llvmir2hll::SplittedWhileTrueLoop::afterLoopEndStmts

Statements after the loop's end – corresponds to (3) in the class description.

◆ beforeLoopEndStmts

ShPtr<Statement> retdec::llvmir2hll::SplittedWhileTrueLoop::beforeLoopEndStmts

Statements before the loop's end – corresponds to (1) in the class description.

◆ loopEnd

ShPtr<IfStmt> retdec::llvmir2hll::SplittedWhileTrueLoop::loopEnd

The loop's end – corresponds to (2) in the class description.


The documentation for this struct was generated from the following file: