If y is less than 0 , then shift solution
if ( y < 0 ) shift_solution ( a , b , - sign_a ) ; let minx2 = x ; if ( minx2 > x ) { let temp = minx2 ; minx2 = x ; x = temp ; } let minx = Math . max ( minx1 , minx2 ) ;