Lines Matching refs:Zero
52 // Zero(). The superfinal state is always added (if the input is
164 fst->SetFinal(s, Weight::Zero());
175 final_arc.weight != Weight::Zero())
178 fst->SetFinal(s, Weight::Zero());
268 ofst->SetFinal(s, B::Weight::Zero());
277 final_arc.weight != B::Weight::Zero())
280 ofst->SetFinal(s, B::Weight::Zero());
398 SetFinal(s, Weight::Zero());
403 SetFinal(s, s == superfinal_ ? Weight::One() : Weight::Zero());
458 if (!HasFinal(s) || Final(s) == Weight::Zero())
478 final_arc.weight != B::Weight::Zero())
776 if (arc.nextstate == kNoStateId && arc.weight != AW::Zero())
780 return ToArc(0, 0, GW(SW::Zero(), arc.weight), kNoStateId);
819 if (arc.nextstate == kNoStateId && arc.weight == GW::Zero())
820 return A(arc.ilabel, 0, AW::Zero(), kNoStateId);
891 if (arc.nextstate == kNoStateId && arc.weight == GW::Zero())
892 return A(arc.ilabel, 0, AW::Zero(), kNoStateId);
979 if (arc.weight == Weight::Zero())
1013 if (arc.weight == Weight::Zero())
1034 // Mapper to reciprocate all non-Zero() weights.
1042 if (arc.weight == Weight::Zero())
1060 // Mapper to map all non-Zero() weights to One().
1069 ToWeight w = arc.weight != FromWeight::Zero() ?
1070 ToWeight::One() : ToWeight::Zero();