Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# EBMC 5.8

* AIG/netlist engine: fix for conversion of extract bits operator
* Verilog: semantic fix for output register ports
* SystemVerilog: cover sequence
* SystemVerilog: labeled immediate assert/assume/cover statements
Expand Down
5 changes: 5 additions & 0 deletions regression/ebmc/smv-netlist/verilog3.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CORE
verilog3.sv
--smv-netlist
^EXIT=0$
^SIGNAL=0$
5 changes: 5 additions & 0 deletions regression/ebmc/smv-netlist/verilog3.sv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module main;
wire [7:0] some_wire;
wire [31:0] something_else;
assign something_else = some_wire[7:1];
endmodule
5 changes: 4 additions & 1 deletion src/trans-netlist/trans_to_netlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,10 @@ void convert_trans_to_netlistt::convert_lhs_rec(
if(!to_integer_non_constant(to_extractbits_expr(expr).index(), new_from))
{
boolbv_widtht boolbv_width(ns);
mp_integer new_to = new_from + boolbv_width(expr.type());
const auto width = boolbv_width(expr.type());
DATA_INVARIANT(
width != 0, "trans_to_netlist got extractbits with zero-width operand");
mp_integer new_to = new_from + width - 1;

from = new_from.to_ulong();
to = new_to.to_ulong();
Expand Down
Loading