private function x($d, $m, $over)
    {
        if ($d > $over) {
            return PHP_INT_MAX;
        }
        if ($d < -$over) {
            return -PHP_INT_MAX -1;
        }
        return $d * $m;
    }