21 #ifndef OTAWA_AST_IF_AST_H
22 #define OTAWA_AST_IF_AST_H
26 namespace otawa {
namespace ast {
49 #endif // OTAWA_AST_IF_AST_H
virtual Inst * first(void)
Definition: IfAST.cpp:87
AST * tpart
Definition: IfAST.h:30
AST * cond
Definition: IfAST.h:30
virtual int countInstructions(void) const
Count the number of instructions in the ast block.
Definition: IfAST.cpp:94
virtual ~IfAST(void)
Definition: IfAST.cpp:57
AST * epart
Definition: IfAST.h:30
virtual ast_kind_t kind(void) const
Get the kind of the AST.
Definition: IfAST.h:42
IfAST(AST *condition, AST *then_part)
Build a selection without else part.
Definition: IfAST.cpp:37
AST * condition(void) const
Get the condition of the selection.
Definition: IfAST.h:36
AST for representing selections.
Definition: IfAST.h:29
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 * thenPart(void) const
Get the "then" part of the selection.
Definition: IfAST.h:37
AST * elsePart(void) const
Get the "else" part of the selection.
Definition: IfAST.h:38
ast_kind_t
Definition: AST.h:40
virtual IfAST * toIf(void)
Get the selection AST if this AST is a selection, null else.
Definition: IfAST.h:43