Occurrence analyser takes account of the phase when handing RULES