|
20 | 20 | #include <temporal-logic/temporal_logic.h>
|
21 | 21 | #include <trans-netlist/aig_prop.h>
|
22 | 22 | #include <trans-netlist/instantiate_netlist.h>
|
23 |
| -#include <trans-netlist/trans_to_netlist.h> |
24 | 23 | #include <trans-netlist/trans_trace_netlist.h>
|
25 | 24 | #include <trans-netlist/unwind_netlist.h>
|
26 | 25 | #include <verilog/sva_expr.h>
|
27 | 26 |
|
| 27 | +#include "netlist.h" |
| 28 | + |
28 | 29 | #include <algorithm>
|
29 | 30 | #include <iostream>
|
30 | 31 |
|
@@ -193,22 +194,17 @@ property_checker_resultt bdd_enginet::operator()()
|
193 | 194 | if(cmdline.isset("liveness-to-safety"))
|
194 | 195 | liveness_to_safety(transition_system, properties);
|
195 | 196 |
|
196 |
| - const auto property_map = properties.make_property_map(); |
197 |
| - |
198 | 197 | message.status() << "Building netlist" << messaget::eom;
|
199 | 198 |
|
200 |
| - convert_trans_to_netlist( |
201 |
| - transition_system.symbol_table, |
202 |
| - transition_system.main_symbol->name, |
203 |
| - transition_system.trans_expr, |
204 |
| - property_map, |
205 |
| - netlist, |
206 |
| - message.get_message_handler()); |
| 199 | + netlist = make_netlist( |
| 200 | + transition_system, properties, message.get_message_handler()); |
207 | 201 |
|
208 | 202 | message.statistics() << "Latches: " << netlist.var_map.latches.size()
|
209 | 203 | << ", nodes: " << netlist.number_of_nodes()
|
210 | 204 | << messaget::eom;
|
211 | 205 |
|
| 206 | + const auto property_map = properties.make_property_map(); |
| 207 | + |
212 | 208 | for(const auto &[_, expr] : property_map)
|
213 | 209 | get_atomic_propositions(expr);
|
214 | 210 |
|
|
0 commit comments