HF RL Explorer

Repair a verified behavior in llvm/circt.

Repair a verified behavior in llvm/circt.: a task in OriGent-SFT-Data (Harbor dataset). The FIRRTL FlattenMemory pass ( firrtl-flatten-memory , run by circt-opt ) flattens the aggregate data type of a firrtl.mem into a single UInt and inserts appropriate bitcasts to access the data. It currently…

The task

The FIRRTL `FlattenMemory` pass (`firrtl-flatten-memory`, run by `circt-opt`) flattens the aggregate data type of a `firrtl.mem` into a single `UInt` and inserts appropriate bitcasts to access the data. It currently mishandles memories whose data field is trivial, in two observable ways:

Part of henryen/OriGent-SFT-Data.