If dist ⁡ ( t ) = ∞ {\displaystyle \operatorname {dist} (t)=\infty } , stop and output f {\displaystyle f} .
Если dist ⁡ ( t ) = ∞ {\displaystyle \operatorname {dist} (t)=\infty } , остановиться и вывести f {\displaystyle f} .