Lines Matching refs:ops
34 static const char *ops[] = { in EgrepOps() local
42 static vector<string> v(ops, ops + arraysize(ops)); in EgrepOps()
48 const vector<string>& ops) in RegexpGenerator() argument
49 : maxatoms_(maxatoms), maxops_(maxops), atoms_(atoms), ops_(ops) { in RegexpGenerator()
102 int ops, int atoms) { in GeneratePostfix() argument
109 if (ops + nstk - 1 > maxops_) in GeneratePostfix()
116 GeneratePostfix(post, nstk + 1, ops, atoms + 1); in GeneratePostfix()
122 if (ops < maxops_) { in GeneratePostfix()
128 GeneratePostfix(post, nstk - nargs + 1, ops + 1, atoms); in GeneratePostfix()
138 int ops, int atoms) { in GenerateRandomPostfix() argument
149 if (ops + nstk - 1 > maxops_) in GenerateRandomPostfix()
153 if (ops < maxops_ && acm_->Uniform(2) == 0) { in GenerateRandomPostfix()
159 ops + 1, atoms); in GenerateRandomPostfix()
169 bool ret = GenerateRandomPostfix(post, nstk + 1, ops, atoms + 1); in GenerateRandomPostfix()