Returns true iff net is the same Logic as the input port of this Module with the same name.
net
bool isInput(Logic net) => _inputs[net.name] == net || (net.isArrayMember && isInput(net.parentStructure!));