KleeHandler Class Reference

Inheritance diagram for KleeHandler:

Inheritance graph
[legend]
Collaboration diagram for KleeHandler:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 KleeHandler (int argc, char **argv)
 ~KleeHandler ()
std::ostream & getInfoStream () const
unsigned getNumTestCases ()
unsigned getNumPathsExplored ()
void incPathsExplored ()
void setInterpreter (Interpreter *i)
void processTestCase (const ExecutionState &state, const char *errorMessage, const char *errorSuffix)
std::string getOutputFilename (const std::string &filename)
std::ostream * openOutputFile (const std::string &filename)
std::string getTestFilename (const std::string &suffix, unsigned id)
std::ostream * openTestFile (const std::string &suffix, unsigned id)

Static Public Member Functions

static void loadOutFile (std::string name, std::vector< unsigned char > &buffer)
static void loadPathFile (std::string name, std::vector< bool > &buffer)
static void getOutFiles (std::string path, std::vector< std::string > &results)

Private Attributes

Interpreterm_interpreter
TreeStreamWriterm_pathWriter
TreeStreamWriterm_symPathWriter
std::ostream * m_infoFile
char m_outputDirectory [1024]
unsigned m_testIndex
unsigned m_pathsExplored
int m_argc
char ** m_argv


Detailed Description

Definition at line 185 of file main.cpp.


Constructor & Destructor Documentation

KleeHandler::KleeHandler ( int  argc,
char **  argv 
)

Definition at line 231 of file main.cpp.

References klee::klee_message_file, klee::klee_warning_file, m_infoFile, m_outputDirectory, and openOutputFile().

Here is the call graph for this function:

KleeHandler::~KleeHandler (  ) 

Definition at line 309 of file main.cpp.

References m_infoFile, m_pathWriter, and m_symPathWriter.


Member Function Documentation

std::ostream& KleeHandler::getInfoStream (  )  const [inline, virtual]

Implements klee::InterpreterHandler.

Definition at line 203 of file main.cpp.

References m_infoFile.

Referenced by main().

Here is the caller graph for this function:

unsigned KleeHandler::getNumPathsExplored (  )  [inline]

Definition at line 205 of file main.cpp.

References m_pathsExplored.

Referenced by main().

Here is the caller graph for this function:

unsigned KleeHandler::getNumTestCases (  )  [inline]

Definition at line 204 of file main.cpp.

References m_testIndex.

Referenced by main().

Here is the caller graph for this function:

void KleeHandler::getOutFiles ( std::string  path,
std::vector< std::string > &  results 
) [static]

Definition at line 506 of file main.cpp.

Referenced by main().

Here is the caller graph for this function:

std::string KleeHandler::getOutputFilename ( const std::string &  filename  )  [virtual]

Implements klee::InterpreterHandler.

Definition at line 331 of file main.cpp.

References m_outputDirectory.

Referenced by getTestFilename(), openOutputFile(), and setInterpreter().

Here is the caller graph for this function:

std::string KleeHandler::getTestFilename ( const std::string &  suffix,
unsigned  id 
)

Definition at line 354 of file main.cpp.

References getOutputFilename().

Referenced by processTestCase().

Here is the call graph for this function:

Here is the caller graph for this function:

void KleeHandler::incPathsExplored (  )  [inline, virtual]

Implements klee::InterpreterHandler.

Definition at line 206 of file main.cpp.

References m_pathsExplored.

static void KleeHandler::loadOutFile ( std::string  name,
std::vector< unsigned char > &  buffer 
) [static]

void KleeHandler::loadPathFile ( std::string  name,
std::vector< bool > &  buffer 
) [static]

Definition at line 491 of file main.cpp.

Referenced by main().

Here is the caller graph for this function:

std::ostream * KleeHandler::openOutputFile ( const std::string &  filename  )  [virtual]

Implements klee::InterpreterHandler.

Definition at line 337 of file main.cpp.

References getOutputFilename(), klee_warning(), and klee::ints::trunc().

Referenced by KleeHandler(), and openTestFile().

Here is the call graph for this function:

Here is the caller graph for this function:

std::ostream * KleeHandler::openTestFile ( const std::string &  suffix,
unsigned  id 
)

Definition at line 360 of file main.cpp.

References openOutputFile().

Referenced by processTestCase().

Here is the call graph for this function:

Here is the caller graph for this function:

void KleeHandler::processTestCase ( const ExecutionState state,
const char *  errorMessage,
const char *  errorSuffix 
) [virtual]

void KleeHandler::setInterpreter ( Interpreter i  ) 

Definition at line 315 of file main.cpp.

References getOutputFilename(), klee::TreeStreamWriter::good(), m_interpreter, m_pathWriter, m_symPathWriter, klee::Interpreter::setPathWriter(), and klee::Interpreter::setSymbolicPathWriter().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

int KleeHandler::m_argc [private]

Definition at line 196 of file main.cpp.

Referenced by processTestCase().

char** KleeHandler::m_argv [private]

Definition at line 197 of file main.cpp.

Referenced by processTestCase().

std::ostream* KleeHandler::m_infoFile [private]

Definition at line 189 of file main.cpp.

Referenced by getInfoStream(), KleeHandler(), and ~KleeHandler().

Definition at line 187 of file main.cpp.

Referenced by processTestCase(), and setInterpreter().

char KleeHandler::m_outputDirectory[1024] [private]

Definition at line 191 of file main.cpp.

Referenced by getOutputFilename(), and KleeHandler().

unsigned KleeHandler::m_pathsExplored [private]

Definition at line 193 of file main.cpp.

Referenced by getNumPathsExplored(), and incPathsExplored().

Definition at line 188 of file main.cpp.

Referenced by processTestCase(), setInterpreter(), and ~KleeHandler().

Definition at line 188 of file main.cpp.

Referenced by processTestCase(), setInterpreter(), and ~KleeHandler().

unsigned KleeHandler::m_testIndex [private]

Definition at line 192 of file main.cpp.

Referenced by getNumTestCases(), and processTestCase().


The documentation for this class was generated from the following file:

Generated on Fri Jun 5 03:32:03 2009 for klee by  doxygen 1.5.8