Lines Matching refs:ofst
36 void Reverse(const Fst<Arc> &ifst, MutableFst<RevArc> *ofst) {
41 ofst->DeleteStates();
42 ofst->SetInputSymbols(ifst.InputSymbols());
43 ofst->SetOutputSymbols(ifst.OutputSymbols());
45 StateId ostart = ofst->AddState();
46 ofst->SetStart(ostart);
53 while (ofst->NumStates() <= os)
54 ofst->AddState();
56 ofst->SetFinal(os, RevWeight::One());
61 ofst->AddArc(0, oarc);
70 while (ofst->NumStates() <= nos)
71 ofst->AddState();
72 ofst->AddArc(nos, oarc);
76 uint64 oprops = ofst->Properties(kFstProperties, false);
77 ofst->SetProperties(ReverseProperties(iprops) | oprops, kFstProperties);