MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / GetFreshIds

Method GetFreshIds

source/fuzz/fuzzer_context.cpp:387–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385uint32_t FuzzerContext::GetFreshId() { return next_fresh_id_++; }
386
387std::vector<uint32_t> FuzzerContext::GetFreshIds(const uint32_t count) {
388 std::vector<uint32_t> fresh_ids(count);
389
390 for (uint32_t& fresh_id : fresh_ids) {
391 fresh_id = next_fresh_id_++;
392 }
393
394 return fresh_ids;
395}
396
397bool FuzzerContext::ChooseEven() { return random_generator_->RandomBool(); }
398

Callers 5

ApplyMethod · 0.45
ApplyMethod · 0.45
RunMethod · 0.45
ApplyMethod · 0.45
ApplyAndCheckFreshIdsFunction · 0.45

Calls

no outgoing calls

Tested by 1

ApplyAndCheckFreshIdsFunction · 0.36