now detects and warns about output pins used in gate functions