21 #ifndef OTAWA_AST_SEQ_AST_H
22 #define OTAWA_AST_SEQ_AST_H
26 namespace otawa {
namespace ast {
47 #endif // OTAWA_AST_SEQ_AST_H
virtual SeqAST * toSeq(void)
Get the sequence AST if this AST is a sequence, null else.
Definition: SeqAST.h:41
virtual int countInstructions(void) const
Count the number of instructions in the ast block.
Definition: SeqAST.cpp:78
virtual Inst * first(void)
Definition: SeqAST.cpp:68
AST * c1
Definition: SeqAST.h:30
virtual ~SeqAST(void)
Definition: SeqAST.cpp:46
SeqAST(AST *child1, AST *child2)
Build a new sequence with the given children.
Definition: SeqAST.cpp:39
AST * c2
Definition: SeqAST.h:30
virtual ast_kind_t kind(void) const
Get the kind of the AST.
Definition: SeqAST.h:40
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 * child1(void) const
Get the first child AST of the sequence.
Definition: SeqAST.h:35
This AST represents sequences.
Definition: SeqAST.h:29
ast_kind_t
Definition: AST.h:40
AST * child2(void) const
Get the second child AST of the sequence.
Definition: SeqAST.h:36