Commit 3d2c773
committed
fix: rebase PR #505 onto current main
Adapt the inline-PC work to two intervening main commits:
1. #514 replaced the old `TransitionEvaluationContext` Prover/Verifier split
with a single generic `evaluate<F,E>(&self, step: &TableView<F,E>) ->
FieldElement<F>`. Rewrite the two new constraints
(`PcDoubleReadRs1Constraint`, `PcDoubleReadBorrowConstraint`) to this
shape and use `.boxed()` for the `TransitionConstraintEvaluator`
adapter instead of `Box::new(...)`. The evaluate<F,E> body is
field-parametric, so the old to_extension / explicit GoldilocksExtension
paths collapse into a single generic implementation.
2. The later commit `perf: eliminate REGISTER table by computing bus
contributions in verifier` removed the `register` field from the
`Traces` struct but left a dangling `register` pattern in two
destructurings plus a `register.num_rows() * (REGISTER_COLS - ...)`
expression. Drop the pattern, the unused `REGISTER_COLS` /
`REGISTER_PREPROCESSED` imports, the `let n_register = ...` binding,
and the contribution line. Add a short NOTE comment explaining the
REGISTER table is now verifier-computed.
Also run `cargo fmt --all` over the tree to clear the remaining CI fmt
diffs introduced during the rebase (prover/src/lib.rs:257,452,528 and a
few others).
Verified:
- cargo check --workspace
- cargo clippy --workspace (default features + debug-checks) -- -D warnings
- cargo fmt --check --all
- cargo test -p stark --release --lib: 121/121 pass1 parent 18f435b commit 3d2c773
4 files changed
Lines changed: 65 additions & 72 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1033 | 1033 | | |
1034 | 1034 | | |
1035 | 1035 | | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
1036 | 1049 | | |
1037 | 1050 | | |
1038 | 1051 | | |
| |||
1044 | 1057 | | |
1045 | 1058 | | |
1046 | 1059 | | |
1047 | | - | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
1051 | | - | |
1052 | | - | |
1053 | | - | |
1054 | | - | |
1055 | | - | |
1056 | | - | |
1057 | | - | |
1058 | | - | |
1059 | | - | |
1060 | | - | |
1061 | | - | |
1062 | | - | |
1063 | | - | |
1064 | | - | |
1065 | | - | |
1066 | | - | |
1067 | | - | |
1068 | | - | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
1069 | 1066 | | |
1070 | 1067 | | |
1071 | 1068 | | |
| |||
1079 | 1076 | | |
1080 | 1077 | | |
1081 | 1078 | | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
1082 | 1093 | | |
1083 | 1094 | | |
1084 | 1095 | | |
| |||
1090 | 1101 | | |
1091 | 1102 | | |
1092 | 1103 | | |
1093 | | - | |
1094 | | - | |
1095 | | - | |
1096 | | - | |
1097 | | - | |
1098 | | - | |
1099 | | - | |
1100 | | - | |
1101 | | - | |
1102 | | - | |
1103 | | - | |
1104 | | - | |
1105 | | - | |
1106 | | - | |
1107 | | - | |
1108 | | - | |
1109 | | - | |
1110 | | - | |
1111 | | - | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
1112 | 1110 | | |
1113 | 1111 | | |
1114 | 1112 | | |
| |||
1240 | 1238 | | |
1241 | 1239 | | |
1242 | 1240 | | |
1243 | | - | |
| 1241 | + | |
1244 | 1242 | | |
1245 | | - | |
| 1243 | + | |
1246 | 1244 | | |
1247 | 1245 | | |
1248 | 1246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
| 260 | + | |
| 261 | + | |
266 | 262 | | |
267 | 263 | | |
268 | 264 | | |
| |||
452 | 448 | | |
453 | 449 | | |
454 | 450 | | |
455 | | - | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
541 | 537 | | |
542 | 538 | | |
543 | 539 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
723 | 723 | | |
724 | 724 | | |
725 | 725 | | |
726 | | - | |
727 | | - | |
| 726 | + | |
| 727 | + | |
728 | 728 | | |
729 | 729 | | |
730 | 730 | | |
| |||
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
775 | | - | |
776 | | - | |
| 775 | + | |
| 776 | + | |
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
| |||
1985 | 1985 | | |
1986 | 1986 | | |
1987 | 1987 | | |
1988 | | - | |
1989 | | - | |
1990 | 1988 | | |
1991 | 1989 | | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
1992 | 1993 | | |
1993 | 1994 | | |
1994 | 1995 | | |
| |||
2001 | 2002 | | |
2002 | 2003 | | |
2003 | 2004 | | |
2004 | | - | |
2005 | 2005 | | |
2006 | 2006 | | |
2007 | 2007 | | |
| |||
2042 | 2042 | | |
2043 | 2043 | | |
2044 | 2044 | | |
2045 | | - | |
2046 | 2045 | | |
2047 | 2046 | | |
2048 | 2047 | | |
| |||
2077 | 2076 | | |
2078 | 2077 | | |
2079 | 2078 | | |
2080 | | - | |
2081 | 2079 | | |
2082 | 2080 | | |
2083 | 2081 | | |
| |||
2094 | 2092 | | |
2095 | 2093 | | |
2096 | 2094 | | |
2097 | | - | |
2098 | 2095 | | |
2099 | 2096 | | |
2100 | 2097 | | |
| |||
2135 | 2132 | | |
2136 | 2133 | | |
2137 | 2134 | | |
2138 | | - | |
2139 | 2135 | | |
2140 | 2136 | | |
2141 | 2137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1042 | 1042 | | |
1043 | 1043 | | |
1044 | 1044 | | |
1045 | | - | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
1046 | 1049 | | |
1047 | 1050 | | |
1048 | 1051 | | |
| |||
0 commit comments