CfgTest Class Reference

#include <db/CfgTest.h>

List of all members.


Detailed Description

Definition at line 7 of file CfgTest.h.

Public Member Functions

 CfgTest (std::string name)
int countTestCases () const
virtual void registerTests (CppUnit::TestSuite *suite)
void setUp ()
void tearDown ()
void testDominators ()
void testPlacePhi ()
void testPlacePhi2 ()
void testRenameVars ()
void testSemiDominators ()

Protected Attributes

Cfg * m_prog


Constructor & Destructor Documentation

CfgTest::CfgTest (  std::string  name  )  [inline]
 

Definition at line 12 of file CfgTest.h.


Member Function Documentation

int CfgTest::countTestCases (   )  const
 

Definition at line 38 of file CfgTest.cpp.

void CfgTest::registerTests (  CppUnit::TestSuite *  suite  )  [virtual]
 

Definition at line 34 of file CfgTest.cpp.

void CfgTest::setUp (   ) 
 

Definition at line 48 of file CfgTest.cpp.

void CfgTest::tearDown (   ) 
 

Definition at line 59 of file CfgTest.cpp.

void CfgTest::testDominators (   ) 
 

Definition at line 71 of file CfgTest.cpp.

References addr(), Type::clearNamedTypes(), FrontEnd::decode(), DataFlow::dominators(), FRONTIER_FIVE, FRONTIER_PENTIUM, UserProc::getCFG(), UserProc::getDataFlow(), Cfg::getFirstBB(), BasicBlock::getLowAddr(), FrontEnd::getMainEntryPoint(), Cfg::getNextBB(), Prog::getProc(), BinaryFileFactory::Load(), NO_ADDRESS, and Prog::setFrontEnd().

void CfgTest::testPlacePhi (   ) 
 

Definition at line 176 of file CfgTest.cpp.

References Type::clearNamedTypes(), FrontEnd::decode(), DataFlow::dominators(), Prog::finishDecode(), FRONTIER_PENTIUM, DataFlow::getA_phi(), UserProc::getCFG(), UserProc::getDataFlow(), Prog::getProc(), BinaryFileFactory::Load(), opMemOf, opMinus, DataFlow::placePhiFunctions(), Location::regOf(), and Prog::setFrontEnd().

void CfgTest::testPlacePhi2 (   ) 
 

Definition at line 217 of file CfgTest.cpp.

References Type::clearNamedTypes(), FrontEnd::decode(), DataFlow::dominators(), Prog::finishDecode(), DataFlow::getA_phi(), UserProc::getCFG(), UserProc::getDataFlow(), Prog::getProc(), IFTHEN_PENTIUM, BinaryFileFactory::Load(), opMemOf, opMinus, DataFlow::placePhiFunctions(), Location::regOf(), and Prog::setFrontEnd().

void CfgTest::testRenameVars (   ) 
 

Definition at line 277 of file CfgTest.cpp.

References Type::clearNamedTypes(), FrontEnd::decode(), DataFlow::dominators(), Prog::finishDecode(), FRONTIER_PENTIUM, UserProc::getCFG(), UserProc::getDataFlow(), Prog::getProc(), BinaryFileFactory::Load(), UserProc::numberStatements(), DataFlow::placePhiFunctions(), DataFlow::renameBlockVars(), and Prog::setFrontEnd().

void CfgTest::testSemiDominators (   ) 
 

Definition at line 125 of file CfgTest.cpp.

References addr(), Type::clearNamedTypes(), FrontEnd::decode(), DataFlow::dominators(), UserProc::getCFG(), UserProc::getDataFlow(), Cfg::getFirstBB(), BasicBlock::getLowAddr(), FrontEnd::getMainEntryPoint(), Cfg::getNextBB(), Prog::getProc(), BinaryFileFactory::Load(), NO_ADDRESS, SEMI_L, SEMI_PENTIUM, and Prog::setFrontEnd().


Member Data Documentation

Cfg* CfgTest::m_prog [protected]
 

Definition at line 9 of file CfgTest.h.


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