def handleEdges(self, lm_order, mgram_beg, curr_e_len, curr_state, next_state, tempLst, eTgtLstNew):
        for ante_term in tempLst:
            if ante_term != settings.opts.elider:
                curr_e_len += 1
                continue
            if (mgram_beg - curr_e_len >= lm_order \
                    or curr_state is not None) and mgram_beg != curr_e_len:
                self.phrStateTupLst.append( (' '.join( eTgtLstNew[mgram_beg:curr_e_len] ), curr_state) )
            curr_state = next_state
            if settings.opts.no_lm_state: mgram_beg = curr_e_len + 1
            else: mgram_beg = curr_e_len + lm_order
            break

        return mgram_beg, curr_state
dataset/ETHPy150Open sfu-natlang/Kriya/src/Kriya-Decoder/languageModelManager.py/ConsequentItem.handleEdges/swapped operands of `-`