Added support to get path expressions of loop bodies only