Repair a verified behavior in amaranth-lang/amaranth.
Repair a verified behavior in amaranth-lang/amaranth.: a task in OriGent-RL-Data (Harbor dataset). The public Const(value, shape) constructor does not enforce the documented ShapeCastable.const() contract. When shape is a custom ShapeCastable , the constructor returns whatever value…
The task
The public `Const(value, shape)` constructor does not enforce the documented `ShapeCastable.const()` contract. When `shape` is a custom `ShapeCastable`, the constructor returns whatever value `shape.const(value)` produces without checking that the returned constant-castable object has the shape to which `shape`…
Part of henryen/OriGent-RL-Data.