Provide a weight based on the number of available operations.
Synopsis
Declared in <llvm/FuzzMutate/IRMutator.h>
virtual
uint64_t
getWeight(
size_t CurrentSize,
size_t MaxSize,
uint64_t CurrentWeight) override;
Return Value
Number of available operations, used as this strategy's weight.
Parameters
Name |
Description |
CurrentSize |
Current size of the module being mutated. |
MaxSize |
Maximum allowed module size. |
CurrentWeight |
Combined weight of strategies already considered. |
Created with MrDocs