21 #ifndef OTAWA_AST_WHILE_AST_H
22 #define OTAWA_AST_WHILE_AST_H
26 namespace otawa {
namespace ast {
47 #endif // OTAWA_AST_WHILE_AST_H
Representation of an iteration with test at start of the loop.
Definition: WhileAST.h:29
virtual ast_kind_t kind(void) const
Get the kind of the AST.
Definition: WhileAST.h:40
AST * body(void) const
Get the body of the iteration.
Definition: WhileAST.h:36
AST * cnd
Definition: WhileAST.h:30
WhileAST(AST *condition, AST *body)
Build a new "while" AST.
Definition: WhileAST.cpp:38
virtual Inst * first(void)
Definition: WhileAST.cpp:68
This is the base class for the representation of programs as Abstract Syntax Trees.
Definition: AST.h:53
virtual int countInstructions(void) const
Count the number of instructions in the ast block.
Definition: WhileAST.cpp:75
virtual ~WhileAST(void)
Definition: WhileAST.cpp:46
This class represents assembly instruction of a piece of code.
Definition: Inst.h:62
AST * condition(void) const
Get the condition of the iteration.
Definition: WhileAST.h:35
virtual WhileAST * toWhile(void)
Get the repetition AST if this AST is a repeatition, null else.
Definition: WhileAST.h:41
ast_kind_t
Definition: AST.h:40
AST * bod
Definition: WhileAST.h:30