|
13 | 13 | #include <util/std_expr.h>
|
14 | 14 |
|
15 | 15 | #include <ebmc/ebmc_error.h>
|
16 |
| -#include <solvers/flattening/boolbv.h> |
17 | 16 | #include <solvers/prop/literal_expr.h>
|
18 | 17 | #include <temporal-logic/temporal_logic.h>
|
19 | 18 | #include <verilog/sva_expr.h>
|
20 | 19 |
|
| 20 | +#include "netlist_boolbv.h" |
| 21 | + |
21 | 22 | #include <cassert>
|
22 | 23 | #include <cstdlib>
|
23 | 24 |
|
24 |
| -/*******************************************************************\ |
25 |
| -
|
26 |
| - Class: instantiate_var_mapt |
27 |
| -
|
28 |
| - Purpose: |
29 |
| -
|
30 |
| -\*******************************************************************/ |
31 |
| - |
32 |
| -class instantiate_var_mapt:public boolbvt |
33 |
| -{ |
34 |
| -public: |
35 |
| - instantiate_var_mapt(const namespacet &_ns, propt &solver, |
36 |
| - message_handlert &message_handler, |
37 |
| - const var_mapt &_var_map) |
38 |
| - : boolbvt(_ns, solver, message_handler), var_map(_var_map) {} |
39 |
| - |
40 |
| - typedef boolbvt SUB; |
41 |
| - |
42 |
| - // overloading |
43 |
| - using boolbvt::get_literal; |
44 |
| - |
45 |
| - virtual literalt convert_bool(const exprt &expr); |
46 |
| - virtual literalt get_literal(const std::string &symbol, const unsigned bit); |
47 |
| - virtual bvt convert_bitvector(const exprt &expr); |
48 |
| - |
49 |
| -protected: |
50 |
| - // disable smart variable allocation, |
51 |
| - // we already have literals for all variables |
52 |
| - virtual bool boolbv_set_equality_to_true(const equal_exprt &expr) { return true; } |
53 |
| - virtual bool set_equality_to_true(const equal_exprt &expr) { return true; } |
54 |
| - |
55 |
| - const var_mapt &var_map; |
56 |
| -}; |
57 |
| - |
58 | 25 | /*******************************************************************\
|
59 | 26 |
|
60 | 27 | Function: instantiate_constraint
|
|
0 commit comments