Lines Matching refs:final_arc
144 A final_arc = (*mapper)(A(0, 0, fst->Final(s), kNoStateId)); in ArcMap() local
145 if (final_arc.ilabel != 0 || final_arc.olabel != 0) { in ArcMap()
150 fst->SetFinal(s, final_arc.weight); in ArcMap()
155 A final_arc = (*mapper)(A(0, 0, fst->Final(s), kNoStateId)); in ArcMap() local
156 if (final_arc.ilabel != 0 || final_arc.olabel != 0) { in ArcMap()
162 final_arc.nextstate = superfinal; in ArcMap()
163 fst->AddArc(s, final_arc); in ArcMap()
166 fst->SetFinal(s, final_arc.weight); in ArcMap()
173 A final_arc = (*mapper)(A(0, 0, fst->Final(s), kNoStateId)); in ArcMap() local
174 if (final_arc.ilabel != 0 || final_arc.olabel != 0 || in ArcMap()
175 final_arc.weight != Weight::Zero()) in ArcMap()
176 fst->AddArc(s, A(final_arc.ilabel, final_arc.olabel, in ArcMap()
177 final_arc.weight, superfinal)); in ArcMap()
250 B final_arc = (*mapper)(A(0, 0, ifst.Final(s), kNoStateId)); in ArcMap() local
251 if (final_arc.ilabel != 0 || final_arc.olabel != 0) { in ArcMap()
255 ofst->SetFinal(s, final_arc.weight); in ArcMap()
259 B final_arc = (*mapper)(A(0, 0, ifst.Final(s), kNoStateId)); in ArcMap() local
260 if (final_arc.ilabel != 0 || final_arc.olabel != 0) { in ArcMap()
266 final_arc.nextstate = superfinal; in ArcMap()
267 ofst->AddArc(s, final_arc); in ArcMap()
270 ofst->SetFinal(s, final_arc.weight); in ArcMap()
275 B final_arc = (*mapper)(A(0, 0, ifst.Final(s), kNoStateId)); in ArcMap() local
276 if (final_arc.ilabel != 0 || final_arc.olabel != 0 || in ArcMap()
277 final_arc.weight != B::Weight::Zero()) in ArcMap()
278 ofst->AddArc(s, B(final_arc.ilabel, final_arc.olabel, in ArcMap()
279 final_arc.weight, superfinal)); in ArcMap()
380 B final_arc = (*mapper_)(A(0, 0, fst_->Final(FindIState(s)), in Final() local
382 if (final_arc.ilabel != 0 || final_arc.olabel != 0) { in Final()
386 SetFinal(s, final_arc.weight); in Final()
393 B final_arc = (*mapper_)(A(0, 0, fst_->Final(FindIState(s)), in Final() local
395 if (final_arc.ilabel == 0 && final_arc.olabel == 0) in Final()
396 SetFinal(s, final_arc.weight); in Final()
464 B final_arc = (*mapper_)(A(0, 0, fst_->Final(FindIState(s)), in Expand() local
466 if (final_arc.ilabel != 0 || final_arc.olabel != 0) { in Expand()
469 final_arc.nextstate = superfinal_; in Expand()
470 PushArc(s, final_arc); in Expand()
475 B final_arc = (*mapper_)(A(0, 0, fst_->Final(FindIState(s)), in Expand() local
477 if (final_arc.ilabel != 0 || final_arc.olabel != 0 || in Expand()
478 final_arc.weight != B::Weight::Zero()) in Expand()
479 PushArc(s, B(final_arc.ilabel, final_arc.olabel, in Expand()
480 final_arc.weight, superfinal_)); in Expand()
642 B final_arc = (*impl_->mapper_)(A(0, 0, impl_->fst_->Final(s_), in CheckSuperfinal() local
644 if (final_arc.ilabel != 0 || final_arc.olabel != 0) in CheckSuperfinal()