#include <include/hllcode.h>
Inheritance diagram for IfThenElseSyntaxNode:
Definition at line 281 of file hllcode.h.
Public Member Functions | |
virtual void | addSuccessors (SyntaxNode *root, std::vector< SyntaxNode * > &successors) |
virtual SyntaxNode * | clone () |
virtual bool | endsWithGoto () |
virtual int | evaluate (SyntaxNode *root) |
virtual SyntaxNode * | findNodeFor (PBB bb) |
virtual SyntaxNode * | getEnclosingLoop (SyntaxNode *pFor, SyntaxNode *cur=NULL) |
virtual int | getNumOutEdges () |
virtual SyntaxNode * | getOutEdge (SyntaxNode *root, int n) |
IfThenElseSyntaxNode () | |
virtual bool | isBranch () |
virtual bool | isGoto () |
virtual void | printAST (SyntaxNode *root, std::ostream &os) |
virtual SyntaxNode * | replace (SyntaxNode *from, SyntaxNode *to) |
void | setCond (Exp *e) |
void | setElse (SyntaxNode *n) |
void | setThen (SyntaxNode *n) |
virtual | ~IfThenElseSyntaxNode () |
Protected Attributes | |
Exp * | cond |
SyntaxNode * | pElse |
SyntaxNode * | pThen |
|
Definition at line 475 of file syntax.cpp. Referenced by clone(). |
|
Definition at line 480 of file syntax.cpp. |
|
Reimplemented from SyntaxNode. Definition at line 496 of file syntax.cpp. References SyntaxNode::clone(), SyntaxNode::endsWithGoto(), SyntaxNode::getDepth(), SyntaxNode::getNumOutEdges(), SyntaxNode::ignoreGoto(), pThen, SyntaxNode::replace(), and SyntaxNode::setDepth(). |
|
Implements SyntaxNode. Definition at line 528 of file syntax.cpp. References SyntaxNode::clone(), Exp::clone(), cond, SyntaxNode::correspond, IfThenElseSyntaxNode(), SyntaxNode::pbb, pElse, and pThen. |
|
Implements SyntaxNode. |
|
Implements SyntaxNode. Definition at line 488 of file syntax.cpp. References SyntaxNode::evaluate(), pElse, and pThen. |
|
Implements SyntaxNode. Definition at line 555 of file syntax.cpp. References SyntaxNode::findNodeFor(), NULL, SyntaxNode::pbb, pElse, and pThen. |
|
Implements SyntaxNode. Definition at line 303 of file hllcode.h. References SyntaxNode::getEnclosingLoop(), pElse, and pThen. |
|
Implements SyntaxNode. |
|
Implements SyntaxNode. Definition at line 296 of file hllcode.h. References SyntaxNode::getOutEdge(), pElse, and pThen. |
|
Reimplemented from SyntaxNode. |
|
Reimplemented from SyntaxNode. |
|
Implements SyntaxNode. Definition at line 565 of file syntax.cpp. References cond, SyntaxNode::getNumber(), pElse, SyntaxNode::printAST(), and pThen. |
|
Implements SyntaxNode. Definition at line 539 of file syntax.cpp. References SyntaxNode::correspond, SyntaxNode::getCorrespond(), pThen, and to. |
|
Definition at line 314 of file hllcode.h. References cond. |
|
Definition at line 316 of file hllcode.h. References pElse. |
|
Definition at line 315 of file hllcode.h. References pThen. |
|
Definition at line 285 of file hllcode.h. Referenced by clone(), printAST(), and setCond(). |
|
Definition at line 284 of file hllcode.h. Referenced by clone(), evaluate(), findNodeFor(), getEnclosingLoop(), getOutEdge(), printAST(), setElse(), and ~IfThenElseSyntaxNode(). |
|
Definition at line 283 of file hllcode.h. Referenced by addSuccessors(), clone(), evaluate(), findNodeFor(), getEnclosingLoop(), getOutEdge(), printAST(), replace(), setThen(), and ~IfThenElseSyntaxNode(). |