Repair a verified behavior in llvm/circt.
Repair a verified behavior in llvm/circt.: a task in OriGent-SFT-Data (Harbor dataset). The FIRRTL text importer silently accepts an extmodule / intmodule whose ref statements cover only some of its ref-type ports, emitting a corrupted internalPaths attribute instead of a parse error.
The task
The FIRRTL text importer silently accepts an `extmodule`/`intmodule` whose `ref` statements cover only some of its ref-type ports, emitting a corrupted `internalPaths` attribute instead of a parse error.
Part of henryen/OriGent-SFT-Data.