Shaping programs with wide port ranges