Repair a verified behavior in chipsalliance/surelog.
Repair a verified behavior in chipsalliance/surelog.: a task in OriGent-SFT-Data (Harbor dataset). SystemVerilog constant folding mishandles the bitwise-negation operator ( ~ ) when the operand is a sized integral constant. Surelog propagates the operand's width to the folded constant, but does…
The task
SystemVerilog constant folding mishandles the bitwise-negation operator (`~`) when the operand is a sized integral constant. Surelog propagates the operand's width to the folded constant, but does not reduce the negated value to that width.
Part of henryen/OriGent-SFT-Data.