svoid nlLogic_collectExecutedRulesWithOutputOrFacts(L<ExecutedRule> in, L<ExecutedRule> out) { for (ExecutedRule r : in) if (nempty(r.output) || nempty(r.facts)) out.add(r); }