Home
last modified time | relevance | path

Searched refs:field_size2 (Results 1 – 1 of 1) sorted by relevance

/external/libprotobuf-mutator/src/
Dmutator.cc519 int field_size2 = reflection->FieldSize(*message2, field); in CrossOverImpl() local
522 FieldInstance destination(message2, field, field_size2++); in CrossOverImpl()
526 assert(field_size2 == reflection->FieldSize(*message2, field)); in CrossOverImpl()
529 for (int j = 0; j < field_size2; ++j) { in CrossOverImpl()
530 if (int k = GetRandomIndex(random_, field_size2 - j)) { in CrossOverImpl()
535 int keep = GetRandomIndex(random_, field_size2 + 1); in CrossOverImpl()
538 int remove = field_size2 - keep; in CrossOverImpl()
550 for (int j = keep; j < field_size2; ++j) in CrossOverImpl()