Where can I find the specific rules used here?
See the terminating-related videos on PrepSwift: https://www.prepswift.com/gre-quant