Skip to content

Commit b7a55de

Browse files
authored
Merge pull request #624 from diffblue/enum1-aig
Netlist conversion: do not convert types
2 parents 284ebda + b5ef662 commit b7a55de

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CORE
2+
enum1.sv
3+
--bound 3 --numbered-trace --aig
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
^\[main\.p1\] always main\.my_light != main.YELLOW2: REFUTED$
7+
^main\.my_light@0 = main\.RED$
8+
^main\.my_light@1 = main\.YELLOW1$
9+
^main\.my_light@2 = main\.GREEN$
10+
^main\.my_light@3 = main\.YELLOW2$
11+
--

src/trans-netlist/trans_to_netlist.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ void convert_trans_to_netlistt::map_vars(
207207
else if (symbol.type.id() == ID_module ||
208208
symbol.type.id() == ID_module_instance)
209209
return; // ignore modules
210+
else if(symbol.is_type)
211+
return; // ignore types
210212
else if (symbol.is_input)
211213
vartype = var_mapt::vart::vartypet::INPUT;
212214
else if (symbol.is_state_var)

0 commit comments

Comments
 (0)