Searched refs:nstk (Results 1 - 4 of 4) sorted by relevance

/external/regex-re2/re2/testing/
H A Dregexp_generator.h48 void GeneratePostfix(vector<string>* post, int nstk, int ops, int lits);
49 bool GenerateRandomPostfix(vector<string>* post, int nstk, int ops, int lits);
H A Dregexp_generator.cc92 // 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, argument
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, argument
141 if (nstk
[all...]
/external/regex-re2/re2/
H A Dnfa.cc196 int nstk = 0; local
198 stk[nstk++] = AddState(id0);
200 while (nstk > 0) {
201 DCHECK_LE(nstk, nastack_);
202 const AddState& a = stk[--nstk];
242 stk[nstk++] = AddState(ip->out1());
243 stk[nstk++] = AddState(ip->out());
248 stk[nstk++] = AddState(ip->out());
255 stk[nstk++] = AddState(0, capture[j], j);
260 stk[nstk
[all...]
H A Ddfa.cc816 int nstk = 0; local
818 stk[nstk++] = id;
819 while (nstk > 0) {
820 DCHECK_LE(nstk, nastack_);
821 id = stk[--nstk];
853 stk[nstk++] = ip->out();
864 stk[nstk++] = ip->out1();
867 stk[nstk++] = Mark;
868 stk[nstk++] = ip->out();
873 stk[nstk
[all...]

Completed in 769 milliseconds