Skip to content

Commit f5276fe

Browse files
authored
Merge pull request #1361 from diffblue/property_and1-aig
Netlist engine: ignore various Verilog symbols
2 parents 736cc9e + 9e57388 commit f5276fe

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

regression/verilog/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ test:
77

88
test-z3:
99
@$(TEST_PL) -e -p -c "../../../src/ebmc/ebmc --z3" -X broken-smt-backend
10+
11+
test-aig:
12+
@$(TEST_PL) -e -p -c "../../../src/ebmc/ebmc --aig"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CORE
2+
property_and1.sv
3+
--aig --bound 5
4+
^\[.*\] always \(main\.P1 and main\.P1\): PROVED up to bound 5$
5+
^EXIT=0$
6+
^SIGNAL=0$
7+
--
8+
^warning: ignoring
9+
--

src/trans-netlist/trans_to_netlist.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,18 @@ void convert_trans_to_netlistt::map_vars(
211211

212212
if (symbol.is_property)
213213
return; // ignore properties
214+
else if(
215+
symbol.type.id() == ID_verilog_sva_sequence ||
216+
symbol.type.id() == ID_verilog_sva_property)
217+
{
218+
return; // ignore properties
219+
}
220+
else if(
221+
symbol.type.id() == ID_natural || symbol.type.id() == ID_integer ||
222+
symbol.type.id() == ID_verilog_genvar)
223+
{
224+
return; // ignore
225+
}
214226
else if(
215227
symbol.type.id() == ID_module || symbol.type.id() == ID_module_instance ||
216228
symbol.type.id() == ID_primitive_module_instance)

0 commit comments

Comments
 (0)