21 #ifndef OTAWA_AST_DO_WHILE_AST_H
22 #define OTAWA_AST_DO_WHILE_AST_H
26 namespace otawa {
namespace ast {
47 #endif // OTAWA_AST_DO_WHILE_AST_H
virtual DoWhileAST * toDoWhile(void)
Get the repetition AST if this AST is a repetition, null else.
Definition: DoWhileAST.h:41
virtual int countInstructions(void) const
Count the number of instructions in the ast block.
Definition: DoWhileAST.cpp:78
virtual Inst * first(void)
Definition: DoWhileAST.cpp:68
virtual ast_kind_t kind(void) const
Get the kind of the AST.
Definition: DoWhileAST.h:40
virtual ~DoWhileAST(void)
Definition: DoWhileAST.cpp:46
AST * body(void) const
Get the body of the loop.
Definition: DoWhileAST.h:36
AST * bod
Definition: DoWhileAST.h:30
This is the base class for the representation of programs as Abstract Syntax Trees.
Definition: AST.h:53
This class represents assembly instruction of a piece of code.
Definition: Inst.h:62
AST * condition(void) const
Get the condition of the loop.
Definition: DoWhileAST.h:35
AST * cnd
Definition: DoWhileAST.h:30
DoWhileAST(AST *body, AST *condition)
Build a new DO-WHILE AST.
Definition: DoWhileAST.cpp:38
ast_kind_t
Definition: AST.h:40
Representation of C do{ ...
Definition: DoWhileAST.h:29