/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | fuzzer_pass_add_composite_types.cpp | 37 while (GetFuzzerContext()->ChoosePercentage( in Apply() 38 GetFuzzerContext()->GetChanceOfAddingArrayOrStructType())) { in Apply() 39 if (GetFuzzerContext()->ChoosePercentage( in Apply() 40 GetFuzzerContext()->GetChanceOfChoosingStructTypeVsArrayType())) { in Apply() 71 if (GetFuzzerContext()->ChoosePercentage( in MaybeAddMissingVectorTypes() 72 GetFuzzerContext()->GetChanceOfAddingVectorType())) { in MaybeAddMissingVectorTypes() 87 if (GetFuzzerContext()->ChoosePercentage( in MaybeAddMissingMatrixTypes() 88 GetFuzzerContext()->GetChanceOfAddingMatrixType())) { in MaybeAddMissingMatrixTypes() 97 GetFuzzerContext()->GetFreshId(), ChooseScalarOrCompositeType(), in AddNewArrayType() 99 {GetFuzzerContext()->GetRandomSizeForNewArray()}, 32, false, false))); in AddNewArrayType() [all …]
|
D | fuzzer_pass_outline_functions.cpp | 41 if (!GetFuzzerContext()->ChoosePercentage( in Apply() 42 GetFuzzerContext()->GetChanceOfOutliningFunction())) { in Apply() 50 blocks[GetFuzzerContext()->RandomIndex(blocks)]); in Apply() 79 candidate_exit_blocks[GetFuzzerContext()->RandomIndex( in Apply() 92 input_id_to_fresh_id[id] = GetFuzzerContext()->GetFreshId(); in Apply() 97 output_id_to_fresh_id[id] = GetFuzzerContext()->GetFreshId(); in Apply() 102 GetFuzzerContext()->GetFreshId(), in Apply() 103 /*new_function_type_id*/ GetFuzzerContext()->GetFreshId(), in Apply() 104 /*new_function_id*/ GetFuzzerContext()->GetFreshId(), in Apply() 106 GetFuzzerContext()->GetFreshId(), in Apply() [all …]
|
D | fuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp | 43 if (!GetFuzzerContext()->ChoosePercentage( in Apply() 44 GetFuzzerContext()->GetChanceOfCreatingIntSynonymsUsingLoops())) { in Apply() 97 uint32_t block_id = blocks[GetFuzzerContext()->RandomIndex(blocks)]; in Apply() 139 : GetFuzzerContext()->GetRandomNumberOfLoopIterations( in Apply() 215 GetFuzzerContext()->ChoosePercentage( in Apply() 216 GetFuzzerContext() in Apply() 218 ? GetFuzzerContext()->GetFreshId() in Apply() 224 block_id, GetFuzzerContext()->GetFreshId(), in Apply() 225 GetFuzzerContext()->GetFreshId(), GetFuzzerContext()->GetFreshId(), in Apply() 226 GetFuzzerContext()->GetFreshId(), GetFuzzerContext()->GetFreshId(), in Apply() [all …]
|
D | fuzzer_pass_duplicate_regions_with_selections.cpp | 37 if (!GetFuzzerContext()->ChoosePercentage( in Apply() 38 GetFuzzerContext()->GetChanceOfDuplicatingRegionWithSelection())) { in Apply() 58 auto entry_block = candidate_entry_blocks[GetFuzzerContext()->RandomIndex( in Apply() 81 auto exit_block = candidate_exit_blocks[GetFuzzerContext()->RandomIndex( in Apply() 96 GetFuzzerContext()->GetFreshId(); in Apply() 100 GetFuzzerContext()->GetFreshId(); in Apply() 110 GetFuzzerContext()->GetFreshId(); in Apply() 119 FindOrCreateBoolConstant(GetFuzzerContext()->ChooseEven(), true); in Apply() 123 GetFuzzerContext()->GetFreshId(), condition_id, in Apply() 124 GetFuzzerContext()->GetFreshId(), entry_block->id(), in Apply()
|
D | fuzzer_pass_add_access_chains.cpp | 50 if (!GetFuzzerContext()->ChoosePercentage( in Apply() 51 GetFuzzerContext()->GetChanceOfAddingAccessChain())) { in Apply() 91 relevant_pointer_instructions[GetFuzzerContext()->RandomIndex( in Apply() 108 if (!GetFuzzerContext()->ChoosePercentage( in Apply() 109 GetFuzzerContext() in Apply() 140 GetFuzzerContext()->GetRandomIndexForAccessChain(bound); in Apply() 148 bool is_signed = GetFuzzerContext()->ChooseEven(); in Apply() 158 GetFuzzerContext()->GetFreshId(), in Apply() 159 GetFuzzerContext()->GetFreshId()}; in Apply() 169 {index_value}, 32, GetFuzzerContext()->ChooseEven(), false)); in Apply() [all …]
|
D | fuzzer_pass_flatten_conditional_branches.cpp | 43 if (!GetFuzzerContext()->ChoosePercentage( in Apply() 44 GetFuzzerContext()->GetChanceOfFlatteningConditionalBranch())) { in Apply() 119 GetFuzzerContext()->ChooseEven(); in Apply() 121 GetFuzzerContext()->ChooseEven(); in Apply() 123 GetFuzzerContext()->ChooseEven(); in Apply() 189 wrapper_info.set_merge_block_id(GetFuzzerContext()->GetFreshId()); in Apply() 190 wrapper_info.set_execute_block_id(GetFuzzerContext()->GetFreshId()); in Apply() 197 wrapper_info.set_actual_result_id(GetFuzzerContext()->GetFreshId()); in Apply() 199 GetFuzzerContext()->GetFreshId()); in Apply() 201 GetFuzzerContext()->GetFreshId()); in Apply() [all …]
|
D | fuzzer_pass_add_global_variables.cpp | 38 GetFuzzerContext()->ChoosePercentage( in Apply() 39 GetFuzzerContext()->GetChanceOfChoosingWorkgroupStorageClass()) in Apply() 62 while (GetFuzzerContext()->ChoosePercentage( in Apply() 63 GetFuzzerContext()->GetChanceOfAddingGlobalVariable())) { in Apply() 67 basic_types[GetFuzzerContext()->RandomIndex(basic_types)]; in Apply() 76 pointer_type_id = GetFuzzerContext()->GetFreshId(); in Apply() 83 available_pointers_to_basic_type[GetFuzzerContext()->RandomIndex( in Apply() 88 GetFuzzerContext()->GetFreshId(), pointer_type_id, in Apply()
|
D | fuzzer_pass_adjust_loop_controls.cpp | 42 if (!GetFuzzerContext()->ChoosePercentage( in Apply() 43 GetFuzzerContext()->GetChanceOfAdjustingLoopControl())) { in Apply() 55 basic_masks[GetFuzzerContext()->RandomIndex(basic_masks)]; in Apply() 66 if ((existing_mask & mask_bit) && GetFuzzerContext()->ChooseEven()) { in Apply() 90 GetFuzzerContext()->ChooseEven()) { in Apply() 94 peel_count = GetFuzzerContext()->GetRandomLoopControlPeelCount(); in Apply() 99 GetFuzzerContext()->ChooseEven()) { in Apply() 102 GetFuzzerContext()->GetRandomLoopControlPartialCount(); in Apply()
|
/third_party/spirv-tools/source/fuzz/ |
D | fuzzer_pass_add_composite_types.cpp | 36 while (GetFuzzerContext()->ChoosePercentage( in Apply() 37 GetFuzzerContext()->GetChanceOfAddingArrayOrStructType())) { in Apply() 38 if (GetFuzzerContext()->ChoosePercentage( in Apply() 39 GetFuzzerContext()->GetChanceOfChoosingStructTypeVsArrayType())) { in Apply() 70 if (GetFuzzerContext()->ChoosePercentage( in MaybeAddMissingVectorTypes() 71 GetFuzzerContext()->GetChanceOfAddingVectorType())) { in MaybeAddMissingVectorTypes() 86 if (GetFuzzerContext()->ChoosePercentage( in MaybeAddMissingMatrixTypes() 87 GetFuzzerContext()->GetChanceOfAddingMatrixType())) { in MaybeAddMissingMatrixTypes() 96 GetFuzzerContext()->GetFreshId(), ChooseScalarOrCompositeType(), in AddNewArrayType() 98 {GetFuzzerContext()->GetRandomSizeForNewArray()}, 32, false, false))); in AddNewArrayType() [all …]
|
D | fuzzer_pass_outline_functions.cpp | 40 if (!GetFuzzerContext()->ChoosePercentage( in Apply() 41 GetFuzzerContext()->GetChanceOfOutliningFunction())) { in Apply() 49 blocks[GetFuzzerContext()->RandomIndex(blocks)]); in Apply() 78 candidate_exit_blocks[GetFuzzerContext()->RandomIndex( in Apply() 91 input_id_to_fresh_id[id] = GetFuzzerContext()->GetFreshId(); in Apply() 96 output_id_to_fresh_id[id] = GetFuzzerContext()->GetFreshId(); in Apply() 101 GetFuzzerContext()->GetFreshId(), in Apply() 102 /*new_function_type_id*/ GetFuzzerContext()->GetFreshId(), in Apply() 103 /*new_function_id*/ GetFuzzerContext()->GetFreshId(), in Apply() 105 GetFuzzerContext()->GetFreshId(), in Apply() [all …]
|
D | fuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp | 42 if (!GetFuzzerContext()->ChoosePercentage( in Apply() 43 GetFuzzerContext()->GetChanceOfCreatingIntSynonymsUsingLoops())) { in Apply() 96 uint32_t block_id = blocks[GetFuzzerContext()->RandomIndex(blocks)]; in Apply() 138 : GetFuzzerContext()->GetRandomNumberOfLoopIterations( in Apply() 214 GetFuzzerContext()->ChoosePercentage( in Apply() 215 GetFuzzerContext() in Apply() 217 ? GetFuzzerContext()->GetFreshId() in Apply() 223 block_id, GetFuzzerContext()->GetFreshId(), in Apply() 224 GetFuzzerContext()->GetFreshId(), GetFuzzerContext()->GetFreshId(), in Apply() 225 GetFuzzerContext()->GetFreshId(), GetFuzzerContext()->GetFreshId(), in Apply() [all …]
|
D | fuzzer_pass_duplicate_regions_with_selections.cpp | 36 if (!GetFuzzerContext()->ChoosePercentage( in Apply() 37 GetFuzzerContext()->GetChanceOfDuplicatingRegionWithSelection())) { in Apply() 57 auto entry_block = candidate_entry_blocks[GetFuzzerContext()->RandomIndex( in Apply() 80 auto exit_block = candidate_exit_blocks[GetFuzzerContext()->RandomIndex( in Apply() 95 GetFuzzerContext()->GetFreshId(); in Apply() 99 GetFuzzerContext()->GetFreshId(); in Apply() 109 GetFuzzerContext()->GetFreshId(); in Apply() 118 FindOrCreateBoolConstant(GetFuzzerContext()->ChooseEven(), true); in Apply() 122 GetFuzzerContext()->GetFreshId(), condition_id, in Apply() 123 GetFuzzerContext()->GetFreshId(), entry_block->id(), in Apply()
|
D | fuzzer_pass_add_access_chains.cpp | 49 if (!GetFuzzerContext()->ChoosePercentage( in Apply() 50 GetFuzzerContext()->GetChanceOfAddingAccessChain())) { in Apply() 90 relevant_pointer_instructions[GetFuzzerContext()->RandomIndex( in Apply() 107 if (!GetFuzzerContext()->ChoosePercentage( in Apply() 108 GetFuzzerContext() in Apply() 139 GetFuzzerContext()->GetRandomIndexForAccessChain(bound); in Apply() 147 bool is_signed = GetFuzzerContext()->ChooseEven(); in Apply() 157 GetFuzzerContext()->GetFreshId(), in Apply() 158 GetFuzzerContext()->GetFreshId()}; in Apply() 168 {index_value}, 32, GetFuzzerContext()->ChooseEven(), false)); in Apply() [all …]
|
D | fuzzer_pass_flatten_conditional_branches.cpp | 42 if (!GetFuzzerContext()->ChoosePercentage( in Apply() 43 GetFuzzerContext()->GetChanceOfFlatteningConditionalBranch())) { in Apply() 118 GetFuzzerContext()->ChooseEven(); in Apply() 120 GetFuzzerContext()->ChooseEven(); in Apply() 122 GetFuzzerContext()->ChooseEven(); in Apply() 188 wrapper_info.set_merge_block_id(GetFuzzerContext()->GetFreshId()); in Apply() 189 wrapper_info.set_execute_block_id(GetFuzzerContext()->GetFreshId()); in Apply() 196 wrapper_info.set_actual_result_id(GetFuzzerContext()->GetFreshId()); in Apply() 198 GetFuzzerContext()->GetFreshId()); in Apply() 200 GetFuzzerContext()->GetFreshId()); in Apply() [all …]
|
D | fuzzer_pass_add_global_variables.cpp | 37 GetFuzzerContext()->ChoosePercentage( in Apply() 38 GetFuzzerContext()->GetChanceOfChoosingWorkgroupStorageClass()) in Apply() 57 while (GetFuzzerContext()->ChoosePercentage( in Apply() 58 GetFuzzerContext()->GetChanceOfAddingGlobalVariable())) { in Apply() 62 basic_types[GetFuzzerContext()->RandomIndex(basic_types)]; in Apply() 71 pointer_type_id = GetFuzzerContext()->GetFreshId(); in Apply() 78 available_pointers_to_basic_type[GetFuzzerContext()->RandomIndex( in Apply() 83 GetFuzzerContext()->GetFreshId(), pointer_type_id, in Apply()
|
D | fuzzer_pass_adjust_loop_controls.cpp | 41 if (!GetFuzzerContext()->ChoosePercentage( in Apply() 42 GetFuzzerContext()->GetChanceOfAdjustingLoopControl())) { in Apply() 54 basic_masks[GetFuzzerContext()->RandomIndex(basic_masks)]; in Apply() 65 if ((existing_mask & mask_bit) && GetFuzzerContext()->ChooseEven()) { in Apply() 89 GetFuzzerContext()->ChooseEven()) { in Apply() 93 peel_count = GetFuzzerContext()->GetRandomLoopControlPeelCount(); in Apply() 98 GetFuzzerContext()->ChooseEven()) { in Apply() 101 GetFuzzerContext()->GetRandomLoopControlPartialCount(); in Apply()
|
D | fuzzer_pass_replace_opselects_with_conditional_branches.cpp | 59 if (!GetFuzzerContext()->ChoosePercentage( in Apply() 60 GetFuzzerContext() in Apply() 109 GetFuzzerContext()->GetFreshId())); in Apply() 113 bool two_branches = GetFuzzerContext()->ChoosePercentage( in Apply() 114 GetFuzzerContext() in Apply() 121 GetFuzzerContext()->ChoosePercentage( in Apply() 122 GetFuzzerContext() in Apply() 127 true_branch_id_zero ? 0 : GetFuzzerContext()->GetFreshId(); in Apply() 129 false_branch_id_zero ? 0 : GetFuzzerContext()->GetFreshId(); in Apply()
|
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/ |
D | fuzzer_pass_add_composite_types.cpp | 37 while (GetFuzzerContext()->ChoosePercentage( in Apply() 38 GetFuzzerContext()->GetChanceOfAddingArrayOrStructType())) { in Apply() 39 if (GetFuzzerContext()->ChoosePercentage( in Apply() 40 GetFuzzerContext()->GetChanceOfChoosingStructTypeVsArrayType())) { in Apply() 71 if (GetFuzzerContext()->ChoosePercentage( in MaybeAddMissingVectorTypes() 72 GetFuzzerContext()->GetChanceOfAddingVectorType())) { in MaybeAddMissingVectorTypes() 87 if (GetFuzzerContext()->ChoosePercentage( in MaybeAddMissingMatrixTypes() 88 GetFuzzerContext()->GetChanceOfAddingMatrixType())) { in MaybeAddMissingMatrixTypes() 97 GetFuzzerContext()->GetFreshId(), ChooseScalarOrCompositeType(), in AddNewArrayType() 99 {GetFuzzerContext()->GetRandomSizeForNewArray()}, 32, false, false))); in AddNewArrayType() [all …]
|
D | fuzzer_pass_outline_functions.cpp | 41 if (!GetFuzzerContext()->ChoosePercentage( in Apply() 42 GetFuzzerContext()->GetChanceOfOutliningFunction())) { in Apply() 50 blocks[GetFuzzerContext()->RandomIndex(blocks)]); in Apply() 79 candidate_exit_blocks[GetFuzzerContext()->RandomIndex( in Apply() 92 input_id_to_fresh_id[id] = GetFuzzerContext()->GetFreshId(); in Apply() 97 output_id_to_fresh_id[id] = GetFuzzerContext()->GetFreshId(); in Apply() 102 GetFuzzerContext()->GetFreshId(), in Apply() 103 /*new_function_type_id*/ GetFuzzerContext()->GetFreshId(), in Apply() 104 /*new_function_id*/ GetFuzzerContext()->GetFreshId(), in Apply() 106 GetFuzzerContext()->GetFreshId(), in Apply() [all …]
|
D | fuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp | 43 if (!GetFuzzerContext()->ChoosePercentage( in Apply() 44 GetFuzzerContext()->GetChanceOfCreatingIntSynonymsUsingLoops())) { in Apply() 97 uint32_t block_id = blocks[GetFuzzerContext()->RandomIndex(blocks)]; in Apply() 139 : GetFuzzerContext()->GetRandomNumberOfLoopIterations( in Apply() 215 GetFuzzerContext()->ChoosePercentage( in Apply() 216 GetFuzzerContext() in Apply() 218 ? GetFuzzerContext()->GetFreshId() in Apply() 224 block_id, GetFuzzerContext()->GetFreshId(), in Apply() 225 GetFuzzerContext()->GetFreshId(), GetFuzzerContext()->GetFreshId(), in Apply() 226 GetFuzzerContext()->GetFreshId(), GetFuzzerContext()->GetFreshId(), in Apply() [all …]
|
D | fuzzer_pass_duplicate_regions_with_selections.cpp | 37 if (!GetFuzzerContext()->ChoosePercentage( in Apply() 38 GetFuzzerContext()->GetChanceOfDuplicatingRegionWithSelection())) { in Apply() 58 auto entry_block = candidate_entry_blocks[GetFuzzerContext()->RandomIndex( in Apply() 81 auto exit_block = candidate_exit_blocks[GetFuzzerContext()->RandomIndex( in Apply() 96 GetFuzzerContext()->GetFreshId(); in Apply() 100 GetFuzzerContext()->GetFreshId(); in Apply() 110 GetFuzzerContext()->GetFreshId(); in Apply() 119 FindOrCreateBoolConstant(GetFuzzerContext()->ChooseEven(), true); in Apply() 123 GetFuzzerContext()->GetFreshId(), condition_id, in Apply() 124 GetFuzzerContext()->GetFreshId(), entry_block->id(), in Apply()
|
D | fuzzer_pass_add_access_chains.cpp | 50 if (!GetFuzzerContext()->ChoosePercentage( in Apply() 51 GetFuzzerContext()->GetChanceOfAddingAccessChain())) { in Apply() 91 relevant_pointer_instructions[GetFuzzerContext()->RandomIndex( in Apply() 108 if (!GetFuzzerContext()->ChoosePercentage( in Apply() 109 GetFuzzerContext() in Apply() 140 GetFuzzerContext()->GetRandomIndexForAccessChain(bound); in Apply() 148 bool is_signed = GetFuzzerContext()->ChooseEven(); in Apply() 158 GetFuzzerContext()->GetFreshId(), in Apply() 159 GetFuzzerContext()->GetFreshId()}; in Apply() 169 {index_value}, 32, GetFuzzerContext()->ChooseEven(), false)); in Apply() [all …]
|
D | fuzzer_pass_flatten_conditional_branches.cpp | 43 if (!GetFuzzerContext()->ChoosePercentage( in Apply() 44 GetFuzzerContext()->GetChanceOfFlatteningConditionalBranch())) { in Apply() 119 GetFuzzerContext()->ChooseEven(); in Apply() 121 GetFuzzerContext()->ChooseEven(); in Apply() 123 GetFuzzerContext()->ChooseEven(); in Apply() 189 wrapper_info.set_merge_block_id(GetFuzzerContext()->GetFreshId()); in Apply() 190 wrapper_info.set_execute_block_id(GetFuzzerContext()->GetFreshId()); in Apply() 197 wrapper_info.set_actual_result_id(GetFuzzerContext()->GetFreshId()); in Apply() 199 GetFuzzerContext()->GetFreshId()); in Apply() 201 GetFuzzerContext()->GetFreshId()); in Apply() [all …]
|
D | fuzzer_pass_add_global_variables.cpp | 38 GetFuzzerContext()->ChoosePercentage( in Apply() 39 GetFuzzerContext()->GetChanceOfChoosingWorkgroupStorageClass()) in Apply() 62 while (GetFuzzerContext()->ChoosePercentage( in Apply() 63 GetFuzzerContext()->GetChanceOfAddingGlobalVariable())) { in Apply() 67 basic_types[GetFuzzerContext()->RandomIndex(basic_types)]; in Apply() 76 pointer_type_id = GetFuzzerContext()->GetFreshId(); in Apply() 83 available_pointers_to_basic_type[GetFuzzerContext()->RandomIndex( in Apply() 88 GetFuzzerContext()->GetFreshId(), pointer_type_id, in Apply()
|
D | fuzzer_pass_adjust_loop_controls.cpp | 42 if (!GetFuzzerContext()->ChoosePercentage( in Apply() 43 GetFuzzerContext()->GetChanceOfAdjustingLoopControl())) { in Apply() 55 basic_masks[GetFuzzerContext()->RandomIndex(basic_masks)]; in Apply() 66 if ((existing_mask & mask_bit) && GetFuzzerContext()->ChooseEven()) { in Apply() 90 GetFuzzerContext()->ChooseEven()) { in Apply() 94 peel_count = GetFuzzerContext()->GetRandomLoopControlPeelCount(); in Apply() 99 GetFuzzerContext()->ChooseEven()) { in Apply() 102 GetFuzzerContext()->GetRandomLoopControlPartialCount(); in Apply()
|