Commit 8ef9f65
committed
syz-verifier: refactor fuzzingLoop into smaller helper functions
Split the large fuzzingLoop function into focused helpers to improve
readability and maintainability:
- fetchNextRequest: handle request retrieval with context cancellation
- isDistributableRequest: check if request should be compared across kernels
- buildRequestCopies: construct kernel-specific request copies with callbacks
- dispatchAndCollect: submit requests to all kernels and collect results
The main fuzzing loop is now cleaner with clear separation of concerns:
fetch → filter → build → dispatch → feedback → compare.
No functional changes, purely refactoring for code clarity.1 parent bc33237 commit 8ef9f65
3 files changed
+311
-340
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | 53 | | |
55 | | - | |
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
| |||
81 | 79 | | |
82 | 80 | | |
83 | 81 | | |
84 | | - | |
| 82 | + | |
85 | 83 | | |
86 | 84 | | |
87 | 85 | | |
88 | 86 | | |
89 | 87 | | |
90 | | - | |
| 88 | + | |
91 | 89 | | |
92 | 90 | | |
93 | 91 | | |
| 92 | + | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
0 commit comments