Commit b8e3df6
cleanup: dead code, duplication and comment slop across the workspace
A review pass over every crate, then applied per crate. Net -2.9k lines
(95 files, +3585/-7523, of which 1036 lines moved into three new files
rather than disappearing).
Removed: unused pub items, fields and enum variants; superseded kernels
and benchmark-only variants; write-only accumulators and debug
scaffolding; a dead compiler macro and a never-called guest function the
compiler was lowering into the bytecode regardless.
Deduplicated: eight copies of the OOD/fold transcript replay in ligerito;
prover/verifier `_base`/`_ext` function pairs behind small traits; the
four `memory*` flush builders; `col_kappas`, now derived from
`col_kappa_sources` instead of hand-maintained alongside it; two
compile-time integer evaluators in the parser; and fifteen hand-rolled
test PRNGs, now one helper over `rand::StdRng` behind a `test-util`
feature so `rand` stays out of the production graph.
Split `ligerito.rs` (4150 lines) into itself plus `ligerito_ntt_ext.rs`
and `ligerito_induce.rs`.
Tests: deleted those that restate a constructor or call a pure function
twice, and folded standalone tamper tests into the table that already
runs at two sizes. Ported the one uncovered case out of a deleted
program first.
Behavior is unchanged and pinned as such: bytecode byte-identical for
all test programs and both guests, proof wire format byte-identical,
FAMILY_DIGEST unchanged, guest cycles unchanged.
Three hot paths are deliberately left duplicated, with comments saying
so, because merging them cost measurable time: the per-arch inv_table
SIMD kernels (a trait stopped them inlining into flock under thin LTO,
worth 2.3%), the interpreter's memory accessors, and `table_message`.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 18dc000 commit b8e3df6
100 files changed
Lines changed: 5014 additions & 8582 deletions
File tree
- crates
- fiat_shamir/src
- flock
- src
- zerocheck
- tests
- lean_compiler
- src
- tests
- programs
- lean_vm/src
- cpu
- parallel
- src
- tests
- pcs
- src
- merkle
- ntt
- tests
- primitives
- src
- field
- tests
- rec_aggregation
- guests
- src
- tests
- xmss
- src
- tests
- zk_alloc
- src
- tests
- src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
87 | 90 | | |
88 | | - | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
96 | 103 | | |
97 | 104 | | |
98 | 105 | | |
| |||
103 | 110 | | |
104 | 111 | | |
105 | 112 | | |
106 | | - | |
| 113 | + | |
107 | 114 | | |
108 | 115 | | |
109 | 116 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
34 | | - | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
9 | | - | |
10 | | - | |
11 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 2 | + | |
6 | 3 | | |
7 | 4 | | |
8 | 5 | | |
| |||
20 | 17 | | |
21 | 18 | | |
22 | 19 | | |
23 | | - | |
24 | | - | |
| 20 | + | |
| 21 | + | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
| |||
32 | 29 | | |
33 | 30 | | |
34 | 31 | | |
35 | | - | |
| 32 | + | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
| |||
55 | 52 | | |
56 | 53 | | |
57 | 54 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
62 | 58 | | |
63 | 59 | | |
64 | 60 | | |
| |||
79 | 75 | | |
80 | 76 | | |
81 | 77 | | |
82 | | - | |
| 78 | + | |
83 | 79 | | |
84 | 80 | | |
85 | 81 | | |
| |||
92 | 88 | | |
93 | 89 | | |
94 | 90 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 91 | | |
102 | 92 | | |
103 | 93 | | |
| |||
130 | 120 | | |
131 | 121 | | |
132 | 122 | | |
133 | | - | |
| 123 | + | |
134 | 124 | | |
135 | 125 | | |
136 | 126 | | |
| |||
164 | 154 | | |
165 | 155 | | |
166 | 156 | | |
167 | | - | |
| 157 | + | |
168 | 158 | | |
169 | 159 | | |
170 | 160 | | |
171 | 161 | | |
172 | | - | |
| 162 | + | |
173 | 163 | | |
174 | 164 | | |
175 | 165 | | |
| |||
233 | 223 | | |
234 | 224 | | |
235 | 225 | | |
236 | | - | |
| 226 | + | |
237 | 227 | | |
238 | 228 | | |
239 | 229 | | |
| |||
276 | 266 | | |
277 | 267 | | |
278 | 268 | | |
279 | | - | |
| 269 | + | |
280 | 270 | | |
281 | 271 | | |
282 | 272 | | |
| |||
359 | 349 | | |
360 | 350 | | |
361 | 351 | | |
362 | | - | |
| 352 | + | |
363 | 353 | | |
364 | 354 | | |
365 | 355 | | |
366 | | - | |
| 356 | + | |
367 | 357 | | |
368 | 358 | | |
369 | 359 | | |
| |||
373 | 363 | | |
374 | 364 | | |
375 | 365 | | |
376 | | - | |
377 | | - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
378 | 372 | | |
379 | 373 | | |
380 | 374 | | |
| |||
0 commit comments