cprover
Toggle main menu visibility
Loading...
Searching...
No Matches
counterexample_beautification.h
Go to the documentation of this file.
1
/*******************************************************************\
2
3
Module: Counterexample Beautification
4
5
Author: Daniel Kroening, kroening@kroening.com
6
7
\*******************************************************************/
8
11
12
#ifndef CPROVER_GOTO_CHECKER_COUNTEREXAMPLE_BEAUTIFICATION_H
13
#define CPROVER_GOTO_CHECKER_COUNTEREXAMPLE_BEAUTIFICATION_H
14
15
#include <
goto-symex/symex_target_equation.h
>
16
17
#include <
solvers/flattening/bv_minimize.h
>
18
19
class
counterexample_beautificationt
20
{
21
public
:
22
explicit
counterexample_beautificationt
(
message_handlert
&message_handler);
23
virtual
~counterexample_beautificationt
() =
default
;
24
25
void
operator()
(
boolbvt
&boolbv,
const
symex_target_equationt
&equation);
26
27
protected
:
28
void
get_minimization_list
(
29
prop_convt
&prop_conv,
30
const
symex_target_equationt
&equation,
31
minimization_listt
&minimization_list);
32
33
void
minimize
(
const
exprt
&expr,
class
prop_minimizet
&prop_minimize);
34
35
symex_target_equationt::SSA_stepst::const_iterator
get_failed_property
(
36
const
prop_convt
&prop_conv,
37
const
symex_target_equationt
&equation);
38
39
// the failed property
40
symex_target_equationt::SSA_stepst::const_iterator
failed
;
41
42
messaget
log
;
43
};
44
45
#endif
// CPROVER_GOTO_CHECKER_COUNTEREXAMPLE_BEAUTIFICATION_H
bv_minimize.h
SAT-optimizer for minimizing expressions.
minimization_listt
std::set< exprt > minimization_listt
Definition
bv_minimize.h:23
boolbvt
Definition
boolbv.h:50
counterexample_beautificationt::log
messaget log
Definition
counterexample_beautification.h:42
counterexample_beautificationt::operator()
void operator()(boolbvt &boolbv, const symex_target_equationt &equation)
Definition
counterexample_beautification.cpp:91
counterexample_beautificationt::~counterexample_beautificationt
virtual ~counterexample_beautificationt()=default
counterexample_beautificationt::get_minimization_list
void get_minimization_list(prop_convt &prop_conv, const symex_target_equationt &equation, minimization_listt &minimization_list)
Definition
counterexample_beautification.cpp:24
counterexample_beautificationt::failed
symex_target_equationt::SSA_stepst::const_iterator failed
Definition
counterexample_beautification.h:40
counterexample_beautificationt::get_failed_property
symex_target_equationt::SSA_stepst::const_iterator get_failed_property(const prop_convt &prop_conv, const symex_target_equationt &equation)
Definition
counterexample_beautification.cpp:67
counterexample_beautificationt::counterexample_beautificationt
counterexample_beautificationt(message_handlert &message_handler)
Definition
counterexample_beautification.cpp:18
counterexample_beautificationt::minimize
void minimize(const exprt &expr, class prop_minimizet &prop_minimize)
exprt
Base class for all expressions.
Definition
expr.h:57
message_handlert
Definition
message.h:27
messaget
Class that provides messages with a built-in verbosity 'level'.
Definition
message.h:154
prop_convt
Definition
prop_conv.h:22
prop_minimizet
Computes a satisfying assignment of minimal cost according to a const function using incremental SAT.
Definition
prop_minimize.h:26
symex_target_equationt
Inheriting the interface of symex_targett this class represents the SSA form of the input program as ...
Definition
symex_target_equation.h:34
symex_target_equation.h
Generate Equation using Symbolic Execution.
goto-checker
counterexample_beautification.h
Generated by
1.17.0