sbool ai_ruleProducesOutput(IfThen r) { ret r != null && containsOneOf(nlLogic_constructNames(r.out), 'output); }