Lines Matching refs:fst1
37 void Union(MutableFst<Arc> *fst1, const Fst<Arc> &fst2) { in Union() argument
46 StateId numstates1 = fst1->NumStates(); in Union()
47 bool initial_acyclic1 = fst1->Properties(kInitialAcyclic, true); in Union()
48 uint64 props1 = fst1->Properties(kFstProperties, false); in Union()
54 StateId s1 = fst1->AddState(); in Union()
56 fst1->SetFinal(s1, fst2.Final(s2)); in Union()
62 fst1->AddArc(s1, arc); in Union()
65 StateId start1 = fst1->Start(); in Union()
67 fst1->SetStart(start2); in Union()
68 fst1->SetProperties(props2, kCopyProperties); in Union()
73 fst1->AddArc(start1, Arc(0, 0, Weight::One(), start2 + numstates1)); in Union()
75 StateId nstart1 = fst1->AddState(); in Union()
76 fst1->SetStart(nstart1); in Union()
77 fst1->AddArc(nstart1, Arc(0, 0, Weight::One(), start1)); in Union()
78 fst1->AddArc(nstart1, Arc(0, 0, Weight::One(), start2 + numstates1)); in Union()
80 fst1->SetProperties(UnionProperties(props1, props2), kFstProperties); in Union()
87 void Union(RationalFst<Arc> *fst1, const Fst<Arc> &fst2) { in Union() argument
88 fst1->Impl()->AddUnion(fst2); in Union()
115 UnionFst(const Fst<A> &fst1, const Fst<A> &fst2) { in UnionFst() argument
116 Impl()->InitUnion(fst1, fst2); in UnionFst()
119 UnionFst(const Fst<A> &fst1, const Fst<A> &fst2, const UnionFstOptions &opts) in UnionFst() argument
121 Impl()->InitUnion(fst1, fst2); in UnionFst()