CBMC
multi_path_symex_checker.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module: Goto Checker using Multi-Path Symbolic Execution
4 
5 Author: Daniel Kroening, Peter Schrammel
6 
7 \*******************************************************************/
8 
11 
12 #ifndef CPROVER_GOTO_CHECKER_MULTI_PATH_SYMEX_CHECKER_H
13 #define CPROVER_GOTO_CHECKER_MULTI_PATH_SYMEX_CHECKER_H
14 
15 #include <chrono>
16 
19 #include "goto_trace_provider.h"
21 #include "witness_provider.h"
22 
26  public goto_trace_providert,
27  public witness_providert,
29 {
30 public:
32  const optionst &options,
35 
44  resultt operator()(propertiest &) override;
45 
46  goto_tracet build_full_trace() const override;
47  goto_tracet build_shortest_trace() const override;
48  goto_tracet build_trace(const irep_idt &) const override;
49  const namespacet &get_namespace() const override;
50 
51  void output_error_witness(const goto_tracet &) override;
52  void output_proof() override;
53 
55  localize_fault(const irep_idt &property_id) const override;
56 
57  void report() override;
58 
59 protected:
62 
67  virtual std::chrono::duration<double>
69 
75  virtual void run_property_decider(
77  propertiest &properties,
78  std::chrono::duration<double> solver_runtime);
79 };
80 
81 #endif // CPROVER_GOTO_CHECKER_MULTI_PATH_SYMEX_CHECKER_H
dstringt
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Definition: dstring.h:36
multi_path_symex_checkert::property_decider
goto_symex_property_decidert property_decider
Definition: multi_path_symex_checker.h:61
multi_path_symex_checkert::output_proof
void output_proof() override
Definition: multi_path_symex_checker.cpp:140
ui_message_handlert
Definition: ui_message.h:21
incremental_goto_checkert::resultt
Definition: incremental_goto_checker.h:42
optionst
Definition: options.h:22
incremental_goto_checkert::options
const optionst & options
Definition: incremental_goto_checker.h:91
multi_path_symex_only_checker.h
multi_path_symex_checkert::build_shortest_trace
goto_tracet build_shortest_trace() const override
Builds and returns the trace up to the first failed property.
Definition: multi_path_symex_checker.cpp:104
multi_path_symex_checkert::operator()
resultt operator()(propertiest &) override
Check whether the given properties with status NOT_CHECKED, UNKNOWN or properties newly discovered by...
Definition: multi_path_symex_checker.cpp:35
goto_symex_property_decider.h
fault_location_infot
Definition: fault_localization_provider.h:22
goto_trace_providert
An implementation of incremental_goto_checkert may implement this interface to provide goto traces.
Definition: goto_trace_provider.h:22
propertiest
std::map< irep_idt, property_infot > propertiest
A map of property IDs to property infos.
Definition: properties.h:76
goto_trace_provider.h
multi_path_symex_checkert::localize_fault
fault_location_infot localize_fault(const irep_idt &property_id) const override
Returns the most likely fault locations for the given FAILed property_id.
Definition: multi_path_symex_checker.cpp:152
multi_path_symex_checkert::equation_generated
bool equation_generated
Definition: multi_path_symex_checker.h:60
namespacet
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
Definition: namespace.h:90
multi_path_symex_checkert
Performs a multi-path symbolic execution using goto-symex and calls a SAT/SMT solver to check the sta...
Definition: multi_path_symex_checker.h:25
multi_path_symex_checkert::output_error_witness
void output_error_witness(const goto_tracet &) override
Definition: multi_path_symex_checker.cpp:145
multi_path_symex_only_checkert
Definition: multi_path_symex_only_checker.h:23
witness_provider.h
multi_path_symex_checkert::prepare_property_decider
virtual std::chrono::duration< double > prepare_property_decider(propertiest &properties)
Prepare the property decider for solving.
Definition: multi_path_symex_checker.cpp:74
fault_localization_providert
An implementation of incremental_goto_checkert may implement this interface to provide fault localiza...
Definition: fault_localization_provider.h:30
multi_path_symex_checkert::get_namespace
const namespacet & get_namespace() const override
Returns the namespace associated with the traces.
Definition: multi_path_symex_checker.cpp:135
multi_path_symex_only_checkert::goto_model
abstract_goto_modelt & goto_model
Definition: multi_path_symex_only_checker.h:34
fault_localization_provider.h
multi_path_symex_checkert::report
void report() override
Additional reporting that may result from the underlying solver, no-op by default.
Definition: multi_path_symex_checker.cpp:163
multi_path_symex_checkert::build_trace
goto_tracet build_trace(const irep_idt &) const override
Builds and returns the trace for the FAILed property with the given property_id.
Definition: multi_path_symex_checker.cpp:122
multi_path_symex_checkert::build_full_trace
goto_tracet build_full_trace() const override
Builds and returns the complete trace.
Definition: multi_path_symex_checker.cpp:91
goto_tracet
Trace of a GOTO program.
Definition: goto_trace.h:174
goto_symex_property_decidert
Provides management of goal variables that encode properties.
Definition: goto_symex_property_decider.h:23
witness_providert
An implementation of incremental_goto_checkert may implement this interface to provide GraphML witnes...
Definition: witness_provider.h:19
abstract_goto_modelt
Abstract interface to eager or lazy GOTO models.
Definition: abstract_goto_model.h:20
incremental_goto_checkert::ui_message_handler
ui_message_handlert & ui_message_handler
Definition: incremental_goto_checker.h:92
multi_path_symex_checkert::run_property_decider
virtual void run_property_decider(incremental_goto_checkert::resultt &result, propertiest &properties, std::chrono::duration< double > solver_runtime)
Run the property decider, which calls the SAT solver, and set the status of checked properties accord...
Definition: multi_path_symex_checker.cpp:82
multi_path_symex_checkert::multi_path_symex_checkert
multi_path_symex_checkert(const optionst &options, ui_message_handlert &ui_message_handler, abstract_goto_modelt &goto_model)
Definition: multi_path_symex_checker.cpp:24