Lines Matching refs:scalar_value
70 ScalarData scalar_value = blueprint.scalar_value(idx); in EnumRandomGen() local
79 scalar_value = Mutate(scalar_value, scalar_type); in EnumRandomGen()
82 *(result.mutable_scalar_value()) = scalar_value; in EnumRandomGen()
96 RandomGen(result.scalar_value(), result.scalar_type()); in ScalarRandomGen()
103 Mutate(result.scalar_value(), result.scalar_type()); in ScalarMutate()
217 ScalarData ProtoFuzzerMutator::RandomGen(const ScalarData &scalar_value, in RandomGen() argument
222 result.set_bool_t(RandomGen(static_cast<bool>(scalar_value.bool_t()))); in RandomGen()
224 result.set_int8_t(RandomGen(scalar_value.int8_t())); in RandomGen()
226 result.set_uint8_t(RandomGen(scalar_value.uint8_t())); in RandomGen()
228 result.set_int16_t(RandomGen(scalar_value.int16_t())); in RandomGen()
230 result.set_uint16_t(RandomGen(scalar_value.uint16_t())); in RandomGen()
232 result.set_int32_t(RandomGen(scalar_value.int32_t())); in RandomGen()
234 result.set_uint32_t(RandomGen(scalar_value.uint32_t())); in RandomGen()
236 result.set_int64_t(RandomGen(scalar_value.int64_t())); in RandomGen()
238 result.set_uint64_t(RandomGen(scalar_value.uint64_t())); in RandomGen()
240 result.set_float_t(RandomGen(scalar_value.float_t())); in RandomGen()
242 result.set_double_t(RandomGen(scalar_value.double_t())); in RandomGen()
250 ScalarData ProtoFuzzerMutator::Mutate(const ScalarData &scalar_value, in Mutate() argument
255 result.set_bool_t(Mutate(static_cast<bool>(scalar_value.bool_t()))); in Mutate()
257 result.set_int8_t(Mutate(scalar_value.int8_t())); in Mutate()
259 result.set_uint8_t(Mutate(scalar_value.uint8_t())); in Mutate()
261 result.set_int16_t(Mutate(scalar_value.int16_t())); in Mutate()
263 result.set_uint16_t(Mutate(scalar_value.uint16_t())); in Mutate()
265 result.set_int32_t(Mutate(scalar_value.int32_t())); in Mutate()
267 result.set_uint32_t(Mutate(scalar_value.uint32_t())); in Mutate()
269 result.set_int64_t(Mutate(scalar_value.int64_t())); in Mutate()
271 result.set_uint64_t(Mutate(scalar_value.uint64_t())); in Mutate()
273 result.set_float_t(Mutate(scalar_value.float_t())); in Mutate()
275 result.set_double_t(Mutate(scalar_value.double_t())); in Mutate()