If the range lies in this segment
if ( ns >= us and ne <= ue ) : NEW_LINE INDENT seg [ ind ] = UpdateUtil ( seg [ ind ] ) NEW_LINE if ( ns != ne ) : NEW_LINE INDENT lazy [ ind * 2 ] ^= 1 NEW_LINE lazy [ ind * 2 + 1 ] ^= 1 NEW_LINE DEDENT return NEW_LINE DEDENT