CBMC
fault_localization_provider.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module: Interface for Goto Checkers to provide Fault Localization
4 
5 Author: Daniel Kroening, Peter Schrammel
6 
7 \*******************************************************************/
8 
11 
12 #ifndef CPROVER_GOTO_CHECKER_FAULT_LOCALIZATION_PROVIDER_H
13 #define CPROVER_GOTO_CHECKER_FAULT_LOCALIZATION_PROVIDER_H
14 
15 #include <map>
16 
18 
19 class goto_tracet;
20 class namespacet;
21 
23 {
24  typedef std::map<
26  std::size_t,
30 };
31 
35 {
36 public:
39  virtual fault_location_infot
40  localize_fault(const irep_idt &property_id) const = 0;
41 
42  virtual ~fault_localization_providert() = default;
43 };
44 
45 #endif // CPROVER_GOTO_CHECKER_FAULT_LOCALIZATION_PROVIDER_H
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Definition: dstring.h:38
An implementation of incremental_goto_checkert may implement this interface to provide fault localiza...
virtual ~fault_localization_providert()=default
virtual fault_location_infot localize_fault(const irep_idt &property_id) const =0
Returns the most likely fault locations for the given FAILed property_id.
instructionst::const_iterator const_targett
Definition: goto_program.h:615
Trace of a GOTO program.
Definition: goto_trace.h:177
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
Definition: namespace.h:94
Concrete Goto Program.
std::map< goto_programt::const_targett, std::size_t, goto_programt::target_less_than > score_mapt
A total order over targett and const_targett.
Definition: goto_program.h:392