CBMC
|
Try to cover some given set of goals incrementally. More...
#include <cover_goals.h>
Classes | |
struct | goalt |
class | observert |
Public Types | |
typedef std::list< goalt > | goalst |
Public Member Functions | |
cover_goalst (decision_proceduret &_decision_procedure) | |
virtual | ~cover_goalst () |
decision_proceduret::resultt | operator() (message_handlert &) |
Try to cover all goals. More... | |
std::size_t | number_covered () const |
unsigned | iterations () const |
goalst::size_type | size () const |
void | add (exprt condition) |
void | register_observer (observert &o) |
Public Attributes | |
goalst | goals |
Protected Types | |
typedef std::vector< observert * > | observerst |
Protected Attributes | |
std::size_t | _number_covered |
unsigned | _iterations |
decision_proceduret & | decision_procedure |
observerst | observers |
Private Member Functions | |
void | mark () |
Mark goals that are covered. More... | |
void | constraint () |
Build clause. More... | |
Try to cover some given set of goals incrementally.
This can be seen as a heuristic variant of SAT-based set-cover. No minimality guarantee.
Definition at line 25 of file cover_goals.h.
typedef std::list<goalt> cover_goalst::goalst |
Definition at line 53 of file cover_goals.h.
|
protected |
Definition at line 100 of file cover_goals.h.
|
inlineexplicit |
Definition at line 28 of file cover_goals.h.
|
virtual |
Definition at line 17 of file cover_goals.cpp.
|
inline |
Definition at line 75 of file cover_goals.h.
|
private |
Build clause.
Definition at line 43 of file cover_goals.cpp.
|
inline |
Definition at line 63 of file cover_goals.h.
|
private |
Mark goals that are covered.
Definition at line 22 of file cover_goals.cpp.
|
inline |
Definition at line 58 of file cover_goals.h.
decision_proceduret::resultt cover_goalst::operator() | ( | message_handlert & | message_handler | ) |
Try to cover all goals.
Definition at line 58 of file cover_goals.cpp.
|
inline |
Definition at line 90 of file cover_goals.h.
|
inline |
Definition at line 68 of file cover_goals.h.
|
protected |
Definition at line 97 of file cover_goals.h.
|
protected |
Definition at line 96 of file cover_goals.h.
|
protected |
Definition at line 98 of file cover_goals.h.
goalst cover_goalst::goals |
Definition at line 54 of file cover_goals.h.
|
protected |
Definition at line 101 of file cover_goals.h.