Lines Matching defs:ofst
106 int64 dest; // 'ofst' state to append
117 void RandGen(const Fst<Arc> &ifst, MutableFst<Arc> *ofst,
125 ofst->DeleteStates();
126 ofst->SetInputSymbols(ifst.InputSymbols());
127 ofst->SetOutputSymbols(ifst.OutputSymbols());
128 ofst->SetStart(ofst->AddState());
131 nopts.dest = ofst->Start();
133 RandGen(ifst, ofst, nopts);
141 ofst->SetFinal(opts.dest, Weight::One());
146 Arc oarc(iarc.ilabel, iarc.olabel, Weight::One(), ofst->AddState());
147 ofst->AddArc(opts.dest, oarc);
153 RandGen(ifst, ofst, nopts);
161 void RandGen(const Fst<Arc> &ifst, MutableFst<Arc> *ofst) {
164 RandGen(ifst, ofst, opts);