public override bool Match(HlslTreeNode node) { return(node is AddOperation add && ((_templateMatcher.IsNegative(add.Addend1) && !_templateMatcher.IsNegative(add.Addend2)) || (!_templateMatcher.IsNegative(add.Addend1) && _templateMatcher.IsNegative(add.Addend2)))); }