Repair a verified behavior in yosyshq/yosys.
Repair a verified behavior in yosyshq/yosys.: a task in OriGent-RL-Data (Harbor dataset). The peepopt shift optimization is unsound when the amount of a right-shift cell is computed by subtracting a constant from an unsigned signal. If the subtraction underflows, Verilog's modulo arithmetic…
The task
The `peepopt` shift optimization is unsound when the amount of a right-shift cell is computed by subtracting a constant from an unsigned signal. If the subtraction underflows, Verilog's modulo arithmetic produces a large unsigned shift amount; for example, an 8-bit value shifted by a 3-bit amount equal to `3'b000 -…
Part of henryen/OriGent-RL-Data.