Skip to content

Commit 89641a2

Browse files
committed
Require a message handler when constructing a propt
Constructing a messaget without a message handler is deprecated.
1 parent d7bb1d4 commit 89641a2

28 files changed

+112
-73
lines changed

jbmc/unit/solvers/strings/string_constraint_instantiation/instantiate_not_contains.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Author: Jesse Sigal, jesse.sigal@diffblue.com
66
77
\*******************************************************************/
88

9+
#include <testing-utils/message.h>
910
#include <testing-utils/use_catch.h>
1011

1112
#include <java_bytecode/java_bytecode_language.h>
@@ -154,7 +155,7 @@ std::string create_info(std::vector<exprt> &lemmas, const namespacet &ns)
154155
/// \return SAT solver result
155156
decision_proceduret::resultt check_sat(const exprt &expr, const namespacet &ns)
156157
{
157-
satcheck_no_simplifiert sat_check;
158+
satcheck_no_simplifiert sat_check(null_message_handler);
158159
bv_refinementt::infot info;
159160
info.ns = &ns;
160161
info.prop = &sat_check;

src/goto-instrument/accelerate/scratch_program.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class scratch_programt:public goto_programt
4545
path_storage(),
4646
options(get_default_options()),
4747
symex(mh, symbol_table, equation, options, path_storage),
48-
satcheck(util_make_unique<satcheckt>()),
48+
satcheck(util_make_unique<satcheckt>(mh)),
4949
satchecker(ns, *satcheck),
5050
z3(ns, "accelerate", "", "", smt2_dect::solvert::Z3),
5151
checker(&z3) // checker(&satchecker)

src/solvers/flattening/bv_minimize.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ class bv_minimizing_dect:public bv_pointerst
4848
return "Bit vector minimizing SAT";
4949
}
5050

51-
explicit bv_minimizing_dect(const namespacet &_ns):
52-
bv_pointerst(_ns, satcheck)
51+
bv_minimizing_dect(const namespacet &_ns, message_handlert &message_handler)
52+
: bv_pointerst(_ns, satcheck), satcheck(message_handler)
5353
{
5454
}
5555

src/solvers/prop/prop.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ Author: Daniel Kroening, kroening@kroening.com
2424
class propt
2525
{
2626
public:
27-
propt() { }
27+
explicit propt(message_handlert &message_handler) : log(message_handler)
28+
{
29+
}
2830

2931
virtual ~propt() { }
3032

src/solvers/qbf/qbf_quantor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ Author: Daniel Kroening, kroening@kroening.com
1313

1414
#include <util/invariant.h>
1515

16-
qbf_quantort::qbf_quantort()
16+
qbf_quantort::qbf_quantort(message_handlert &message_handler)
17+
: qdimacs_cnft(message_handler)
1718
{
1819
}
1920

src/solvers/qbf/qbf_quantor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Author: Daniel Kroening, kroening@kroening.com
1515
class qbf_quantort:public qdimacs_cnft
1616
{
1717
public:
18-
qbf_quantort();
18+
explicit qbf_quantort(message_handlert &message_handler);
1919
virtual ~qbf_quantort();
2020

2121
virtual const std::string solver_text();

src/solvers/qbf/qbf_qube.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ Author: CM Wintersteiger
1313

1414
#include <util/invariant.h>
1515

16-
qbf_qubet::qbf_qubet()
16+
qbf_qubet::qbf_qubet(message_handlert &message_handler)
17+
: qdimacs_cnft(message_handler)
1718
{
1819
// skizzo crashes on broken lines
1920
break_lines=false;

src/solvers/qbf/qbf_qube.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Author: CM Wintersteiger
1515
class qbf_qubet:public qdimacs_cnft
1616
{
1717
public:
18-
qbf_qubet();
18+
explicit qbf_qubet(message_handlert &message_handler);
1919
virtual ~qbf_qubet();
2020

2121
virtual const std::string solver_text();

src/solvers/qbf/qbf_qube_core.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ Author: CM Wintersteiger
1515
#include <util/arith_tools.h>
1616
#include <util/invariant.h>
1717

18-
qbf_qube_coret::qbf_qube_coret() : qdimacs_coret()
18+
qbf_qube_coret::qbf_qube_coret(message_handlert &message_handler)
19+
: qdimacs_coret(message_handler)
1920
{
2021
break_lines=false;
2122
qbf_tmp_file="qube.qdimacs";

src/solvers/qbf/qbf_qube_core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class qbf_qube_coret:public qdimacs_coret
2323
assignmentt assignment;
2424

2525
public:
26-
qbf_qube_coret();
26+
explicit qbf_qube_coret(message_handlert &message_handler);
2727
virtual ~qbf_qube_coret();
2828

2929
virtual const std::string solver_text();

0 commit comments

Comments
 (0)