HomeSort by relevance Sort by last modified time
    Searched refs:nstk (Results 1 - 4 of 4) sorted by null

  /external/regex-re2/re2/testing/
regexp_generator.h 48 void GeneratePostfix(vector<string>* post, int nstk, int ops, int lits);
49 bool GenerateRandomPostfix(vector<string>* post, int nstk, int ops, int lits);
regexp_generator.cc 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)
    [all...]
  /external/regex-re2/re2/
nfa.cc 196 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++] = AddState(ip->out())
    [all...]
dfa.cc 816 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++] = ip->out()
    [all...]

Completed in 122 milliseconds