cprover
property_checkert Class Referenceabstract

#include <property_checker.h>

Inheritance diagram for property_checkert:
[legend]
Collaboration diagram for property_checkert:
[legend]

Classes

struct  property_statust
 

Public Types

enum  resultt { resultt::PASS, resultt::FAIL, resultt::ERROR, resultt::UNKNOWN }
 
typedef std::map< irep_idt, property_statust > property_mapt
 
- Public Types inherited from messaget
enum  message_levelt {
  M_ERROR =1, M_WARNING =2, M_RESULT =4, M_STATUS =6,
  M_STATISTICS =8, M_PROGRESS =9, M_DEBUG =10
}
 

Public Member Functions

 property_checkert ()
 
 property_checkert (message_handlert &_message_handler)
 
virtual resultt operator() (const goto_modelt &)=0
 
- Public Member Functions inherited from messaget
virtual void set_message_handler (message_handlert &_message_handler)
 
message_handlert & get_message_handler ()
 
 messaget ()
 
 messaget (const messaget &other)
 
messaget & operator= (const messaget &other)
 
 messaget (message_handlert &_message_handler)
 
virtual ~messaget ()
 
mstreamt & get_mstream (unsigned message_level) const
 
mstreamt & error () const
 
mstreamt & warning () const
 
mstreamt & result () const
 
mstreamt & status () const
 
mstreamt & statistics () const
 
mstreamt & progress () const
 
mstreamt & debug () const
 
void conditional_output (mstreamt &mstream, const std::function< void(mstreamt &)> &output_generator) const
 Generate output to mstream using output_generator if the configured verbosity is at least as high as that of mstream. More...
 

Static Public Member Functions

static std::string as_string (resultt)
 
- Static Public Member Functions inherited from messaget
static unsigned eval_verbosity (const std::string &user_input, const message_levelt default_verbosity, message_handlert &dest)
 Parse a (user-)provided string as a verbosity level and set it as the verbosity of dest. More...
 
static mstreamt & eom (mstreamt &m)
 
static mstreamt & endl (mstreamt &m)
 

Public Attributes

property_mapt property_map
 

Protected Member Functions

void initialize_property_map (const goto_functionst &)
 

Additional Inherited Members

- Protected Attributes inherited from messaget
message_handlert * message_handler
 
mstreamt mstream
 

Detailed Description

Definition at line 22 of file property_checker.h.

Member Typedef Documentation

◆ property_mapt

Definition at line 48 of file property_checker.h.

Member Enumeration Documentation

◆ resultt

Enumerator
PASS 
FAIL 
ERROR 
UNKNOWN 

Definition at line 32 of file property_checker.h.

Constructor & Destructor Documentation

◆ property_checkert() [1/2]

property_checkert::property_checkert ( )
inline

Definition at line 25 of file property_checker.h.

◆ property_checkert() [2/2]

property_checkert::property_checkert ( message_handlert &  _message_handler)
explicit

Definition at line 27 of file property_checker.cpp.

Member Function Documentation

◆ as_string()

std::string property_checkert::as_string ( resultt  result)
static

Definition at line 14 of file property_checker.cpp.

References ERROR, FAIL, PASS, messaget::result(), and UNKNOWN.

◆ initialize_property_map()

◆ operator()()

virtual resultt property_checkert::operator() ( const goto_modelt &  )
pure virtual

Member Data Documentation

◆ property_map

property_mapt property_checkert::property_map

Definition at line 49 of file property_checker.h.

Referenced by initialize_property_map().


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