• Home
  • Raw
  • Download

Lines Matching refs:uint32_t

35   FuzzerContext(RandomGenerator* random_generator, uint32_t min_fresh_id);
44 bool ChoosePercentage(uint32_t percentage_chance);
50 uint32_t RandomIndex(const HasSizeMethod& sequence) const { in RandomIndex()
53 static_cast<uint32_t>(sequence.size())); in RandomIndex()
60 uint32_t index = RandomIndex(*sequence); in RemoveAtRandomIndex()
81 random_generator_->RandomUint32(static_cast<uint32_t>(i - lo + 1)); in Shuffle()
102 uint32_t GetFreshId();
105 std::vector<uint32_t> GetFreshIds(const uint32_t count);
111 uint32_t GetIdBoundLimit() const;
116 uint32_t GetTransformationLimit() const;
120 uint32_t GetChanceOfAcceptingRepeatedPassRecommendation() const { in GetChanceOfAcceptingRepeatedPassRecommendation()
123 uint32_t GetChanceOfAddingAccessChain() const { in GetChanceOfAddingAccessChain()
126 uint32_t GetChanceOfAddingAnotherPassToPassLoop() const { in GetChanceOfAddingAnotherPassToPassLoop()
129 uint32_t GetChanceOfAddingAnotherStructField() const { in GetChanceOfAddingAnotherStructField()
132 uint32_t GetChanceOfAddingArrayOrStructType() const { in GetChanceOfAddingArrayOrStructType()
135 uint32_t GetChanceOfAddingBitInstructionSynonym() const { in GetChanceOfAddingBitInstructionSynonym()
138 uint32_t GetChanceOfAddingBothBranchesWhenReplacingOpSelect() const { in GetChanceOfAddingBothBranchesWhenReplacingOpSelect()
141 uint32_t GetChanceOfAddingCompositeExtract() const { in GetChanceOfAddingCompositeExtract()
144 uint32_t GetChanceOfAddingCompositeInsert() const { in GetChanceOfAddingCompositeInsert()
147 uint32_t GetChanceOfAddingCopyMemory() const { in GetChanceOfAddingCopyMemory()
150 uint32_t GetChanceOfAddingDeadBlock() const { in GetChanceOfAddingDeadBlock()
153 uint32_t GetChanceOfAddingDeadBreak() const { in GetChanceOfAddingDeadBreak()
156 uint32_t GetChanceOfAddingDeadContinue() const { in GetChanceOfAddingDeadContinue()
159 uint32_t GetChanceOfAddingEquationInstruction() const { in GetChanceOfAddingEquationInstruction()
162 uint32_t GetChanceOfAddingGlobalVariable() const { in GetChanceOfAddingGlobalVariable()
165 uint32_t GetChanceOfAddingImageSampleUnusedComponents() const { in GetChanceOfAddingImageSampleUnusedComponents()
168 uint32_t GetChanceOfAddingLoad() const { return chance_of_adding_load_; } in GetChanceOfAddingLoad()
169 uint32_t GetChanceOfAddingLocalVariable() const { in GetChanceOfAddingLocalVariable()
172 uint32_t GetChanceOfAddingLoopPreheader() const { in GetChanceOfAddingLoopPreheader()
175 uint32_t GetChanceOfAddingMatrixType() const { in GetChanceOfAddingMatrixType()
178 uint32_t GetChanceOfAddingNoContractionDecoration() const { in GetChanceOfAddingNoContractionDecoration()
181 uint32_t GetChanceOfAddingOpPhiSynonym() const { in GetChanceOfAddingOpPhiSynonym()
184 uint32_t GetChanceOfAddingParameters() const { in GetChanceOfAddingParameters()
187 uint32_t GetChanceOfAddingRelaxedDecoration() const { in GetChanceOfAddingRelaxedDecoration()
190 uint32_t GetChanceOfAddingStore() const { return chance_of_adding_store_; } in GetChanceOfAddingStore()
191 uint32_t GetChanceOfAddingSynonyms() const { in GetChanceOfAddingSynonyms()
194 uint32_t GetChanceOfAddingTrueBranchWhenReplacingOpSelect() const { in GetChanceOfAddingTrueBranchWhenReplacingOpSelect()
197 uint32_t GetChanceOfAddingVectorShuffle() const { in GetChanceOfAddingVectorShuffle()
200 uint32_t GetChanceOfAddingVectorType() const { in GetChanceOfAddingVectorType()
203 uint32_t GetChanceOfAdjustingBranchWeights() const { in GetChanceOfAdjustingBranchWeights()
206 uint32_t GetChanceOfAdjustingFunctionControl() const { in GetChanceOfAdjustingFunctionControl()
209 uint32_t GetChanceOfAdjustingLoopControl() const { in GetChanceOfAdjustingLoopControl()
212 uint32_t GetChanceOfAdjustingMemoryOperandsMask() const { in GetChanceOfAdjustingMemoryOperandsMask()
215 uint32_t GetChanceOfAdjustingSelectionControl() const { in GetChanceOfAdjustingSelectionControl()
218 uint32_t GetChanceOfCallingFunction() const { in GetChanceOfCallingFunction()
221 uint32_t GetChanceOfChoosingStructTypeVsArrayType() const { in GetChanceOfChoosingStructTypeVsArrayType()
224 uint32_t GetChanceOfChoosingWorkgroupStorageClass() const { in GetChanceOfChoosingWorkgroupStorageClass()
227 uint32_t GetChanceOfConstructingComposite() const { in GetChanceOfConstructingComposite()
230 uint32_t GetChanceOfCopyingObject() const { in GetChanceOfCopyingObject()
233 uint32_t GetChanceOfCreatingIntSynonymsUsingLoops() const { in GetChanceOfCreatingIntSynonymsUsingLoops()
236 uint32_t GetChanceOfDonatingAdditionalModule() const { in GetChanceOfDonatingAdditionalModule()
239 uint32_t GetChanceOfDuplicatingRegionWithSelection() const { in GetChanceOfDuplicatingRegionWithSelection()
242 uint32_t GetChanceOfExpandingVectorReduction() const { in GetChanceOfExpandingVectorReduction()
245 uint32_t GetChanceOfFlatteningConditionalBranch() const { in GetChanceOfFlatteningConditionalBranch()
248 uint32_t GetChanceOfGoingDeeperToExtractComposite() const { in GetChanceOfGoingDeeperToExtractComposite()
251 uint32_t GetChanceOfGoingDeeperToInsertInComposite() const { in GetChanceOfGoingDeeperToInsertInComposite()
254 uint32_t GetChanceOfGoingDeeperWhenMakingAccessChain() const { in GetChanceOfGoingDeeperWhenMakingAccessChain()
257 uint32_t GetChanceOfHavingTwoBlocksInLoopToCreateIntSynonym() const { in GetChanceOfHavingTwoBlocksInLoopToCreateIntSynonym()
260 uint32_t GetChanceOfInliningFunction() const { in GetChanceOfInliningFunction()
263 uint32_t GetChanceOfInterchangingSignednessOfIntegerOperands() const { in GetChanceOfInterchangingSignednessOfIntegerOperands()
266 uint32_t GetChanceOfInterchangingZeroLikeConstants() const { in GetChanceOfInterchangingZeroLikeConstants()
269 uint32_t GetChanceOfInvertingComparisonOperators() const { in GetChanceOfInvertingComparisonOperators()
272 uint32_t ChanceOfMakingDonorLivesafe() const { in ChanceOfMakingDonorLivesafe()
275 uint32_t GetChanceOfMakingVectorOperationDynamic() const { in GetChanceOfMakingVectorOperationDynamic()
278 uint32_t GetChanceOfMergingBlocks() const { in GetChanceOfMergingBlocks()
281 uint32_t GetChanceOfMergingFunctionReturns() const { in GetChanceOfMergingFunctionReturns()
284 uint32_t GetChanceOfMovingBlockDown() const { in GetChanceOfMovingBlockDown()
287 uint32_t GetChanceOfMutatingPointer() const { in GetChanceOfMutatingPointer()
290 uint32_t GetChanceOfObfuscatingConstant() const { in GetChanceOfObfuscatingConstant()
293 uint32_t GetChanceOfOutliningFunction() const { in GetChanceOfOutliningFunction()
296 uint32_t GetChanceOfPermutingInstructions() const { in GetChanceOfPermutingInstructions()
299 uint32_t GetChanceOfPermutingParameters() const { in GetChanceOfPermutingParameters()
302 uint32_t GetChanceOfPermutingPhiOperands() const { in GetChanceOfPermutingPhiOperands()
305 uint32_t GetChanceOfPropagatingInstructionsDown() const { in GetChanceOfPropagatingInstructionsDown()
308 uint32_t GetChanceOfPropagatingInstructionsUp() const { in GetChanceOfPropagatingInstructionsUp()
311 uint32_t GetChanceOfPushingIdThroughVariable() const { in GetChanceOfPushingIdThroughVariable()
314 uint32_t GetChanceOfReplacingAddSubMulWithCarryingExtended() const { in GetChanceOfReplacingAddSubMulWithCarryingExtended()
317 uint32_t GetChanceOfReplacingBranchFromDeadBlockWithExit() const { in GetChanceOfReplacingBranchFromDeadBlockWithExit()
320 uint32_t GetChanceOfReplacingCopyMemoryWithLoadStore() const { in GetChanceOfReplacingCopyMemoryWithLoadStore()
323 uint32_t GetChanceOfReplacingCopyObjectWithStoreLoad() const { in GetChanceOfReplacingCopyObjectWithStoreLoad()
326 uint32_t GetChanceOfReplacingIdWithSynonym() const { in GetChanceOfReplacingIdWithSynonym()
329 uint32_t GetChanceOfReplacingIrrelevantId() const { in GetChanceOfReplacingIrrelevantId()
332 uint32_t GetChanceOfReplacingLinearAlgebraInstructions() const { in GetChanceOfReplacingLinearAlgebraInstructions()
335 uint32_t GetChanceOfReplacingLoadStoreWithCopyMemory() const { in GetChanceOfReplacingLoadStoreWithCopyMemory()
338 uint32_t GetChanceOfReplacingOpPhiIdFromDeadPredecessor() const { in GetChanceOfReplacingOpPhiIdFromDeadPredecessor()
341 uint32_t GetChanceOfReplacingOpselectWithConditionalBranch() const { in GetChanceOfReplacingOpselectWithConditionalBranch()
344 uint32_t GetChanceOfReplacingParametersWithGlobals() const { in GetChanceOfReplacingParametersWithGlobals()
347 uint32_t GetChanceOfReplacingParametersWithStruct() const { in GetChanceOfReplacingParametersWithStruct()
350 uint32_t GetChanceOfSplittingBlock() const { in GetChanceOfSplittingBlock()
353 uint32_t GetChanceOfSwappingConditionalBranchOperands() const { in GetChanceOfSwappingConditionalBranchOperands()
356 uint32_t GetChanceOfTogglingAccessChainInstruction() const { in GetChanceOfTogglingAccessChainInstruction()
359 uint32_t GetChanceOfWrappingRegionInSelection() const { in GetChanceOfWrappingRegionInSelection()
365 uint32_t GetMaximumEquivalenceClassSizeForDataSynonymFactClosure() const { in GetMaximumEquivalenceClassSizeForDataSynonymFactClosure()
368 uint32_t GetMaximumNumberOfFunctionParameters() const { in GetMaximumNumberOfFunctionParameters()
371 uint32_t GetMaximumNumberOfParametersReplacedWithStruct() const { in GetMaximumNumberOfParametersReplacedWithStruct()
374 std::pair<uint32_t, uint32_t> GetRandomBranchWeights() { in GetRandomBranchWeights()
375 std::pair<uint32_t, uint32_t> branch_weights = {0, 0}; in GetRandomBranchWeights()
386 std::vector<uint32_t> GetRandomComponentsForVectorShuffle( in GetRandomComponentsForVectorShuffle()
387 uint32_t max_component_index) { in GetRandomComponentsForVectorShuffle()
389 std::vector<uint32_t> components(random_generator_->RandomUint32(2) + 2); in GetRandomComponentsForVectorShuffle()
391 for (uint32_t& component : components) { in GetRandomComponentsForVectorShuffle()
397 uint32_t GetRandomCompositeExtractIndex(uint32_t number_of_members) { in GetRandomCompositeExtractIndex()
401 uint32_t GetRandomIndexForAccessChain(uint32_t composite_size_bound) { in GetRandomIndexForAccessChain()
404 uint32_t GetRandomIndexForCompositeInsert(uint32_t number_of_components) { in GetRandomIndexForCompositeInsert()
410 uint32_t GetRandomLoopControlPartialCount() { in GetRandomLoopControlPartialCount()
413 uint32_t GetRandomLoopControlPeelCount() { in GetRandomLoopControlPeelCount()
416 uint32_t GetRandomLoopLimit() { in GetRandomLoopLimit()
419 uint32_t GetRandomNumberOfLoopIterations(uint32_t max_num_iterations) { in GetRandomNumberOfLoopIterations()
422 uint32_t GetRandomNumberOfNewParameters(uint32_t num_of_params) { in GetRandomNumberOfNewParameters()
428 uint32_t GetRandomNumberOfParametersReplacedWithStruct(uint32_t num_params) { in GetRandomNumberOfParametersReplacedWithStruct()
434 uint32_t GetRandomSizeForNewArray() { in GetRandomSizeForNewArray()
439 uint32_t GetRandomUnusedComponentCountForImageSample( in GetRandomUnusedComponentCountForImageSample()
440 uint32_t max_unused_component_count) { in GetRandomUnusedComponentCountForImageSample()
444 bool GoDeeperInConstantObfuscation(uint32_t depth) { in GoDeeperInConstantObfuscation()
452 uint32_t next_fresh_id_;
456 uint32_t chance_of_accepting_repeated_pass_recommendation_;
457 uint32_t chance_of_adding_access_chain_;
458 uint32_t chance_of_adding_another_pass_to_pass_loop_;
459 uint32_t chance_of_adding_another_struct_field_;
460 uint32_t chance_of_adding_array_or_struct_type_;
461 uint32_t chance_of_adding_bit_instruction_synonym_;
462 uint32_t chance_of_adding_both_branches_when_replacing_opselect_;
463 uint32_t chance_of_adding_composite_extract_;
464 uint32_t chance_of_adding_composite_insert_;
465 uint32_t chance_of_adding_copy_memory_;
466 uint32_t chance_of_adding_dead_block_;
467 uint32_t chance_of_adding_dead_break_;
468 uint32_t chance_of_adding_dead_continue_;
469 uint32_t chance_of_adding_equation_instruction_;
470 uint32_t chance_of_adding_global_variable_;
471 uint32_t chance_of_adding_image_sample_unused_components_;
472 uint32_t chance_of_adding_load_;
473 uint32_t chance_of_adding_local_variable_;
474 uint32_t chance_of_adding_loop_preheader_;
475 uint32_t chance_of_adding_matrix_type_;
476 uint32_t chance_of_adding_no_contraction_decoration_;
477 uint32_t chance_of_adding_opphi_synonym_;
478 uint32_t chance_of_adding_parameters;
479 uint32_t chance_of_adding_relaxed_decoration_;
480 uint32_t chance_of_adding_store_;
481 uint32_t chance_of_adding_synonyms_;
482 uint32_t chance_of_adding_true_branch_when_replacing_opselect_;
483 uint32_t chance_of_adding_vector_shuffle_;
484 uint32_t chance_of_adding_vector_type_;
485 uint32_t chance_of_adjusting_branch_weights_;
486 uint32_t chance_of_adjusting_function_control_;
487 uint32_t chance_of_adjusting_loop_control_;
488 uint32_t chance_of_adjusting_memory_operands_mask_;
489 uint32_t chance_of_adjusting_selection_control_;
490 uint32_t chance_of_calling_function_;
491 uint32_t chance_of_choosing_struct_type_vs_array_type_;
492 uint32_t chance_of_choosing_workgroup_storage_class_;
493 uint32_t chance_of_constructing_composite_;
494 uint32_t chance_of_copying_object_;
495 uint32_t chance_of_creating_int_synonyms_using_loops_;
496 uint32_t chance_of_donating_additional_module_;
497 uint32_t chance_of_duplicating_region_with_selection_;
498 uint32_t chance_of_expanding_vector_reduction_;
499 uint32_t chance_of_flattening_conditional_branch_;
500 uint32_t chance_of_going_deeper_to_extract_composite_;
501 uint32_t chance_of_going_deeper_to_insert_in_composite_;
502 uint32_t chance_of_going_deeper_when_making_access_chain_;
503 uint32_t chance_of_having_two_blocks_in_loop_to_create_int_synonym_;
504 uint32_t chance_of_inlining_function_;
505 uint32_t chance_of_interchanging_signedness_of_integer_operands_;
506 uint32_t chance_of_interchanging_zero_like_constants_;
507 uint32_t chance_of_inverting_comparison_operators_;
508 uint32_t chance_of_making_donor_livesafe_;
509 uint32_t chance_of_making_vector_operation_dynamic_;
510 uint32_t chance_of_merging_blocks_;
511 uint32_t chance_of_merging_function_returns_;
512 uint32_t chance_of_moving_block_down_;
513 uint32_t chance_of_mutating_pointer_;
514 uint32_t chance_of_obfuscating_constant_;
515 uint32_t chance_of_outlining_function_;
516 uint32_t chance_of_permuting_instructions_;
517 uint32_t chance_of_permuting_parameters_;
518 uint32_t chance_of_permuting_phi_operands_;
519 uint32_t chance_of_propagating_instructions_down_;
520 uint32_t chance_of_propagating_instructions_up_;
521 uint32_t chance_of_pushing_id_through_variable_;
522 uint32_t chance_of_replacing_add_sub_mul_with_carrying_extended_;
523 uint32_t chance_of_replacing_branch_from_dead_block_with_exit_;
524 uint32_t chance_of_replacing_copy_memory_with_load_store_;
525 uint32_t chance_of_replacing_copyobject_with_store_load_;
526 uint32_t chance_of_replacing_id_with_synonym_;
527 uint32_t chance_of_replacing_irrelevant_id_;
528 uint32_t chance_of_replacing_linear_algebra_instructions_;
529 uint32_t chance_of_replacing_load_store_with_copy_memory_;
530 uint32_t chance_of_replacing_opphi_id_from_dead_predecessor_;
531 uint32_t chance_of_replacing_opselect_with_conditional_branch_;
532 uint32_t chance_of_replacing_parameters_with_globals_;
533 uint32_t chance_of_replacing_parameters_with_struct_;
534 uint32_t chance_of_splitting_block_;
535 uint32_t chance_of_swapping_conditional_branch_operands_;
536 uint32_t chance_of_toggling_access_chain_instruction_;
537 uint32_t chance_of_wrapping_region_in_selection_;
542 uint32_t max_equivalence_class_size_for_data_synonym_fact_closure_;
543 uint32_t max_loop_control_partial_count_;
544 uint32_t max_loop_control_peel_count_;
545 uint32_t max_loop_limit_;
546 uint32_t max_new_array_size_limit_;
547 uint32_t max_number_of_function_parameters_;
548 uint32_t max_number_of_new_parameters_;
549 uint32_t max_number_of_parameters_replaced_with_struct_;
553 const std::function<bool(uint32_t, RandomGenerator*)>&
558 uint32_t ChooseBetweenMinAndMax(const std::pair<uint32_t, uint32_t>& min_max);