Home | History | Annotate | Download | only in testing

Lines Matching refs:atoms

47                                  const vector<string>& atoms,
49 : maxatoms_(maxatoms), maxops_(maxops), atoms_(atoms), ops_(ops) {
95 // atoms: the number of atoms used in the sequence
97 // then nstk = 2, ops = 1, atoms = 3.
102 int ops, int atoms) {
112 // Add atoms if there is room.
113 if (atoms < maxatoms_) {
116 GeneratePostfix(post, nstk + 1, ops, atoms + 1);
128 GeneratePostfix(post, nstk - nargs + 1, ops + 1, atoms);
138 int ops, int atoms) {
141 if (nstk == 1 && acm_->Uniform(maxatoms_ + 1 - atoms) == 0) {
159 ops + 1, atoms);
166 // Add atoms if there is room.
167 if (atoms < maxatoms_ && acm_->Uniform(2) == 0) {
169 bool ret = GenerateRandomPostfix(post, nstk + 1, ops, atoms + 1);