Code for the work in Basu and Sankaranarayanan, Can cut generating functions be good and efficient, SIOPT 29(2), 1190–1210 (2019)