Skip to content

remove two unused hooks in bmct #2136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 29, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions src/cbmc/bmc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ Author: Daniel Kroening, [email protected]
#include "counterexample_beautification.h"
#include "fault_localization.h"

void bmct::do_unwind_module()
{
// this is a hook for hw-cbmc
}

/// Hook used by CEGIS to selectively freeze variables
/// in the SAT solver after the SSA formula is added to the solver.
/// Freezing variables is necessary to make use of incremental
Expand Down Expand Up @@ -118,22 +113,11 @@ void bmct::output_graphml(resultt result)

void bmct::do_conversion()
{
// convert HDL (hook for hw-cbmc)
do_unwind_module();

status() << "converting SSA" << eom;

// convert SSA
equation.convert(prop_conv);

// the 'extra constraints'
if(!bmc_constraints.empty())
{
status() << "converting constraints" << eom;

for(const auto &constraint : bmc_constraints)
prop_conv.set_to_true(constraint);
}
// hook for cegis to freeze synthesis program vars
freeze_program_variables();
}
Expand Down
4 changes: 0 additions & 4 deletions src/cbmc/bmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ class bmct:public safety_checkert
safety_checkert::resultt execute(abstract_goto_modelt &);
virtual ~bmct() { }

// additional stuff
std::list<exprt> bmc_constraints;

void set_ui(ui_message_handlert::uit _ui) { ui=_ui; }

// the safety_checkert interface
Expand Down Expand Up @@ -191,7 +188,6 @@ class bmct:public safety_checkert

// unwinding
virtual void setup_unwind();
virtual void do_unwind_module();
void do_conversion();

virtual void freeze_program_variables();
Expand Down