Home | History | Annotate | Download | only in fst

Lines Matching refs:allow_zero_

53       : allow_zero_(allow_zero) {
58 int n = rand() % (kNumRandomWeights + allow_zero_);
59 if (allow_zero_ && n == kNumRandomWeights)
69 bool allow_zero_; // permit Zero() and zero divisors
85 : allow_zero_(allow_zero) {
90 int n = rand() % (kNumRandomWeights + allow_zero_);
91 if (allow_zero_ && n == kNumRandomWeights)
101 bool allow_zero_; // permit Zero() and zero divisors
118 : allow_zero_(allow_zero) {
123 int n = (rand() % (2*kNumRandomWeights + allow_zero_)) - kNumRandomWeights;
124 if (allow_zero_ && n == kNumRandomWeights)
136 bool allow_zero_; // permit Zero() and zero divisors
152 : allow_zero_(allow_zero) {
157 int n = rand() % (kMaxStringLength + allow_zero_);
158 if (allow_zero_ && n == kMaxStringLength)
173 bool allow_zero_; // permit Zero() and zero
220 allow_zero_(allow_zero) {}
223 if (allow_zero_) {
224 int n = rand() % (kNumRandomWeights + allow_zero_);
237 bool allow_zero_;
294 : allow_zero_(allow_zero) {
300 int n = rand() % (kNumRandomWeights + allow_zero_);
306 (allow_zero_ && n == kNumRandomWeights) ?
314 bool allow_zero_; // permit Zero() and zero divisors