Skip to content
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
1 change: 0 additions & 1 deletion src/ebmc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ SRC = \
diameter.cpp \
diatest.cpp \
dimacs_writer.cpp \
ebmc_base.cpp \
ebmc_language.cpp \
ebmc_language_file.cpp \
ebmc_languages.cpp \
Expand Down
188 changes: 0 additions & 188 deletions src/ebmc/ebmc_base.cpp

This file was deleted.

61 changes: 0 additions & 61 deletions src/ebmc/ebmc_base.h

This file was deleted.

39 changes: 30 additions & 9 deletions src/ebmc/ebmc_parse_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ Author: Daniel Kroening, kroening@kroening.com
#include <util/help_formatter.h>
#include <util/string2int.h>

#include <trans-netlist/compute_ct.h>
#include <trans-netlist/ldg.h>
#include <trans-netlist/smv_netlist.h>

#include "build_transition_system.h"
#include "diatest.h"
#include "ebmc_base.h"
#include "ebmc_error.h"
#include "ebmc_language.h"
#include "ebmc_version.h"
Expand Down Expand Up @@ -270,10 +271,19 @@ int ebmc_parse_optionst::doit()

if(cmdline.isset("show-ldg"))
{
ebmc_baset ebmc_base(cmdline, ui_message_handler);
ebmc_base.transition_system = std::move(transition_system);
ebmc_base.properties = std::move(properties);
ebmc_base.show_ldg(std::cout);
auto netlist =
make_netlist(transition_system, properties, ui_message_handler);

if(!netlist.transition.empty())
{
messaget message(ui_message_handler);
message.warning() << "transition constraint found!" << messaget::eom;
}

ldgt ldg;
ldg.compute(netlist);
std::cout << "Latch dependencies:" << '\n';
ldg.output(netlist, std::cout);
return 0;
}

Expand Down Expand Up @@ -321,10 +331,21 @@ int ebmc_parse_optionst::doit()

if(cmdline.isset("compute-ct"))
{
ebmc_baset ebmc_base(cmdline, ui_message_handler);
ebmc_base.transition_system = std::move(transition_system);
ebmc_base.properties = std::move(properties);
return ebmc_base.do_compute_ct();
auto netlist =
make_netlist(transition_system, properties, ui_message_handler);

messaget message{ui_message_handler};

message.status() << "Latches: " << netlist.var_map.latches.size()
<< ", nodes: " << netlist.number_of_nodes()
<< messaget::eom;

message.status() << "Making LDG" << messaget::eom;

ldgt ldg;
ldg.compute(netlist);
std::cout << "CT = " << compute_ct(ldg) << '\n';
return 0;
}

auto checker_result = property_checker(
Expand Down
2 changes: 1 addition & 1 deletion src/ebmc/random_traces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ Author: Daniel Kroening, kroening@kroening.com
#include <trans-word-level/trans_trace_word_level.h>
#include <trans-word-level/unwind.h>

#include "ebmc_base.h"
#include "ebmc_error.h"
#include "output_file.h"
#include "transition_system.h"
#include "waveform.h"

#include <algorithm>
Expand Down
1 change: 0 additions & 1 deletion src/ebmc/ranking_function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ Author: Daniel Kroening, dkr@amazon.com
#include <trans-word-level/unwind.h>
#include <verilog/sva_expr.h>

#include "ebmc_base.h"
#include "ebmc_error.h"
#include "ebmc_solver_factory.h"
#include "property_checker.h"
Expand Down
1 change: 0 additions & 1 deletion src/ebmc/show_trans.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Author: Daniel Kroening, kroening@kroening.com

#include <verilog/expr2verilog.h>

#include "ebmc_base.h"
#include "ebmc_version.h"
#include "output_file.h"
#include "output_verilog.h"
Expand Down
1 change: 1 addition & 0 deletions src/ic3/dnf_io.hh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Author: Eugene Goldberg, eu.goldberg@gmail.com
#ifndef DNF_IO_HH
#define DNF_IO_HH

#include <cstdlib>
#include <deque>
#include <iosfwd>
#include <map>
Expand Down
16 changes: 7 additions & 9 deletions src/ic3/m4y_aiger_print.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,19 @@ Module: Printing circuit in text version of aiger format
Author: Eugene Goldberg, eu.goldberg@gmail.com

******************************************************/
#include <queue>
#include <set>
#include <map>
#include "ccircuit.hh"
#include "dnf_io.hh"
#include "m0ic3.hh"

#include <algorithm>
#include <iostream>

#include <ebmc/ebmc_base.h>
#include <map>
#include <queue>
#include <set>

#include "minisat/core/Solver.h"
#include "minisat/simp/SimpSolver.h"

#include "dnf_io.hh"
#include "ccircuit.hh"
#include "m0ic3.hh"

/*====================================

P R I N T _ A I G E R _ F O R M A T
Expand Down
Loading
Loading