Lines Matching refs:nstk
92 // nstk: the number of elements that would be on the stack after executing
97 // then nstk = 2, ops = 1, atoms = 3.
101 void RegexpGenerator::GeneratePostfix(vector<string>* post, int nstk,
103 if (nstk == 1)
109 if (ops + nstk - 1 > maxops_)
116 GeneratePostfix(post, nstk + 1, ops, atoms + 1);
126 if (nargs <= nstk) {
128 GeneratePostfix(post, nstk - nargs + 1, ops + 1, atoms);
137 bool RegexpGenerator::GenerateRandomPostfix(vector<string> *post, int nstk,
141 if (nstk == 1 && acm_->Uniform(maxatoms_ + 1 - atoms) == 0) {
149 if (ops + nstk - 1 > maxops_)
156 if (nargs <= nstk) {
158 bool ret = GenerateRandomPostfix(post, nstk - nargs + 1,
169 bool ret = GenerateRandomPostfix(post, nstk + 1, ops, atoms + 1);