Skip to content

Commit 0dc35fd

Browse files
authored
Merge pull request diffblue#2136 from diffblue/unwind_module_cleanout
remove two unused hooks in bmct
2 parents e8aaf09 + f6a92cc commit 0dc35fd

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

src/cbmc/bmc.cpp

-16
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ Author: Daniel Kroening, [email protected]
3535
#include "counterexample_beautification.h"
3636
#include "fault_localization.h"
3737

38-
void bmct::do_unwind_module()
39-
{
40-
// this is a hook for hw-cbmc
41-
}
42-
4338
/// Hook used by CEGIS to selectively freeze variables
4439
/// in the SAT solver after the SSA formula is added to the solver.
4540
/// Freezing variables is necessary to make use of incremental
@@ -118,22 +113,11 @@ void bmct::output_graphml(resultt result)
118113

119114
void bmct::do_conversion()
120115
{
121-
// convert HDL (hook for hw-cbmc)
122-
do_unwind_module();
123-
124116
status() << "converting SSA" << eom;
125117

126118
// convert SSA
127119
equation.convert(prop_conv);
128120

129-
// the 'extra constraints'
130-
if(!bmc_constraints.empty())
131-
{
132-
status() << "converting constraints" << eom;
133-
134-
for(const auto &constraint : bmc_constraints)
135-
prop_conv.set_to_true(constraint);
136-
}
137121
// hook for cegis to freeze synthesis program vars
138122
freeze_program_variables();
139123
}

src/cbmc/bmc.h

-4
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ class bmct:public safety_checkert
9494
safety_checkert::resultt execute(abstract_goto_modelt &);
9595
virtual ~bmct() { }
9696

97-
// additional stuff
98-
std::list<exprt> bmc_constraints;
99-
10097
void set_ui(ui_message_handlert::uit _ui) { ui=_ui; }
10198

10299
// the safety_checkert interface
@@ -185,7 +182,6 @@ class bmct:public safety_checkert
185182

186183
// unwinding
187184
virtual void setup_unwind();
188-
virtual void do_unwind_module();
189185
void do_conversion();
190186

191187
virtual void freeze_program_variables();

0 commit comments

Comments
 (0)