Translate "Termination-Checking for Recursive Functions"