RtlTest Class Reference

#include <db/RtlTest.h>

List of all members.


Detailed Description

Definition at line 7 of file RtlTest.h.

Public Member Functions

int countTestCases () const
virtual void registerTests (CppUnit::TestSuite *suite)
 RtlTest (std::string name)
void setUp ()
void tearDown ()
void testAppend ()
void testClone ()
void testIsCompare ()
void testSetConscripts ()
void testVisitor ()


Constructor & Destructor Documentation

RtlTest::RtlTest std::string  name  )  [inline]
 

Definition at line 11 of file RtlTest.h.


Member Function Documentation

int RtlTest::countTestCases  )  const
 

Definition at line 46 of file RtlTest.cpp.

void RtlTest::registerTests CppUnit::TestSuite *  suite  )  [virtual]
 

Definition at line 38 of file RtlTest.cpp.

References MYTEST, testAppend(), testClone(), testIsCompare(), testSetConscripts(), and testVisitor().

Referenced by main().

void RtlTest::setUp  ) 
 

Definition at line 56 of file RtlTest.cpp.

void RtlTest::tearDown  ) 
 

Definition at line 66 of file RtlTest.cpp.

void RtlTest::testAppend  ) 
 

Definition at line 73 of file RtlTest.cpp.

References RTL::appendStmt(), opPlus, RTL::print(), and Location::regOf().

Referenced by registerTests().

void RtlTest::testClone  ) 
 

Definition at line 96 of file RtlTest.cpp.

References RTL::clone(), NULL, opParam, opPlus, RTL::print(), and Location::regOf().

Referenced by registerTests().

void RtlTest::testIsCompare  ) 
 

Definition at line 213 of file RtlTest.cpp.

References FrontEnd::decodeInstruction(), BinaryFile::GetMachine(), RTL::isCompare(), BinaryFileFactory::Load(), MACHINE_PENTIUM, MACHINE_SPARC, NULL, Exp::print(), DecodeResult::rtl, SWITCH_PENT, SWITCH_SPARC, and BinaryFile::UnLoad().

Referenced by registerTests().

void RtlTest::testSetConscripts  ) 
 

Definition at line 267 of file RtlTest.cpp.

References StatementList::append(), Location::global(), Location::local(), Location::memOf(), NULL, opGtr, opPlus, opTern, RTL::print(), Location::regOf(), CallStatement::setArguments(), CallStatement::setCalleeReturn(), RTL::setConscripts(), and CallStatement::setDestProc().

Referenced by registerTests().

void RtlTest::testVisitor  ) 
 

Definition at line 147 of file RtlTest.cpp.

References StmtVisitorStub::a, Statement::accept(), Assign::accept(), BoolAssign::accept(), ReturnStatement::accept(), CallStatement::accept(), CaseStatement::accept(), BranchStatement::accept(), GotoStatement::accept(), RTL::accept(), StmtVisitorStub::b, StmtVisitorStub::c, StmtVisitorStub::d, StmtVisitorStub::e, StmtVisitorStub::f, StmtVisitorStub::g, and StmtVisitorStub::h.

Referenced by registerTests().


The documentation for this class was generated from the following files:
Generated on Tue Sep 19 21:18:45 2006 for Boomerang by  doxygen 1.4.6