optimize path matcher for ci not ci and special case with #predicates==0