Lines Matching refs:nstk
101 void RegexpGenerator::GeneratePostfix(vector<string>* post, int nstk, in GeneratePostfix() argument
103 if (nstk == 1) in GeneratePostfix()
109 if (ops + nstk - 1 > maxops_) in GeneratePostfix()
116 GeneratePostfix(post, nstk + 1, ops, atoms + 1); in GeneratePostfix()
126 if (nargs <= nstk) { in GeneratePostfix()
128 GeneratePostfix(post, nstk - nargs + 1, ops + 1, atoms); in GeneratePostfix()
137 bool RegexpGenerator::GenerateRandomPostfix(vector<string> *post, int nstk, in GenerateRandomPostfix() argument
141 if (nstk == 1 && acm_->Uniform(maxatoms_ + 1 - atoms) == 0) { in GenerateRandomPostfix()
149 if (ops + nstk - 1 > maxops_) in GenerateRandomPostfix()
156 if (nargs <= nstk) { in GenerateRandomPostfix()
158 bool ret = GenerateRandomPostfix(post, nstk - nargs + 1, in GenerateRandomPostfix()
169 bool ret = GenerateRandomPostfix(post, nstk + 1, ops, atoms + 1); in GenerateRandomPostfix()