Generalize a bunch of code for building predicates about paths.
Generalize a bunch of code for building predicates about paths.

msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler