Returns true iff net is the same Logic as an input or output port of this Module with the same name.
net
bool isPort(Logic net) => isInput(net) || isOutput(net);