File tree Expand file tree Collapse file tree 4 files changed +15
-1
lines changed
regression/ebmc/smv-netlist Expand file tree Collapse file tree 4 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 11# EBMC 5.8
22
3+ * AIG/netlist engine: fix for conversion of extract bits operator
34* Verilog: semantic fix for output register ports
45* SystemVerilog: cover sequence
56* SystemVerilog: labeled immediate assert/assume/cover statements
Original file line number Diff line number Diff line change 1+ CORE
2+ verilog3.sv
3+ --smv-netlist
4+ ^EXIT=0$
5+ ^SIGNAL=0$
Original file line number Diff line number Diff line change 1+ module main ;
2+ wire [7 : 0 ] some_wire;
3+ wire [31 : 0 ] something_else;
4+ assign something_else = some_wire[7 : 1 ];
5+ endmodule
Original file line number Diff line number Diff line change @@ -594,7 +594,10 @@ void convert_trans_to_netlistt::convert_lhs_rec(
594594 if (!to_integer_non_constant (to_extractbits_expr (expr).index (), new_from))
595595 {
596596 boolbv_widtht boolbv_width (ns);
597- mp_integer new_to = new_from + boolbv_width (expr.type ());
597+ const auto width = boolbv_width (expr.type ());
598+ DATA_INVARIANT (
599+ width != 0 , " trans_to_netlist got extractbits with zero-width operand" );
600+ mp_integer new_to = new_from + width - 1 ;
598601
599602 from = new_from.to_ulong ();
600603 to = new_to.to_ulong ();
You can’t perform that action at this time.
0 commit comments