-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate Bitwise Builtin #395
base: gali/integrate_verify_bitwise_xor
Are you sure you want to change the base?
Integrate Bitwise Builtin #395
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
07640cc
to
5a4dcfb
Compare
d4d6994
to
48597b9
Compare
5a4dcfb
to
23fb46e
Compare
48597b9
to
3f1012f
Compare
23fb46e
to
17a1794
Compare
3f1012f
to
9d6ff55
Compare
9d6ff55
to
5ff2a3d
Compare
17a1794
to
11a54e8
Compare
5ff2a3d
to
0ddff91
Compare
bcde69c
to
227eca8
Compare
0ddff91
to
02b44da
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 4 files reviewed, 2 unresolved discussions (waiting on @Gali-StarkWare and @shaharsamocha7)
stwo_cairo_prover/crates/prover/src/cairo_air/air.rs
line 70 at r1 (raw file):
pub verify_instruction: verify_instruction::Claim, pub builtins: BuiltinsClaim, pub verify_bitwise_xor_9: verify_bitwise_xor_9::Claim,
reorder after range checks ( v > r)
stwo_cairo_prover/crates/prover/src/cairo_air/builtins_air.rs
line 72 at r1 (raw file):
(bitwise.stop_ptr - bitwise.begin_addr).is_power_of_two(), "bitwise segment length is not a power of two" );
try using inspect here, I don't know if it's much nicer. just something I saw while on leave.
Code quote:
let bitwise_builtin_trace_generator = builtin_segments.bitwise.map(|bitwise| {
assert!(
(bitwise.stop_ptr - bitwise.begin_addr).is_power_of_two(),
"bitwise segment length is not a power of two"
);
stwo_cairo_prover/crates/prover/src/cairo_air/builtins_air.rs
line 109 at r1 (raw file):
}; let (bitwise_builtin_claim, bitwise_builtin_interaction_gen) = if let Some(bitwise_builtin_trace_generator) = self.bitwise_builtin_trace_generator {
map?
227eca8
to
c2b33a6
Compare
02b44da
to
045711d
Compare
c2b33a6
to
bc21129
Compare
045711d
to
c61d0c1
Compare
bc21129
to
b2bb977
Compare
c61d0c1
to
25fb0f4
Compare
7489c7e
to
c20ec91
Compare
0175ecd
to
29fe89c
Compare
c20ec91
to
e45fa36
Compare
29fe89c
to
1b5772f
Compare
e45fa36
to
c383598
Compare
1b5772f
to
3cf483f
Compare
c383598
to
07ea5ef
Compare
3cf483f
to
41ebc06
Compare
07ea5ef
to
66eb0e7
Compare
41ebc06
to
1bd9a66
Compare
66eb0e7
to
226c475
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 4 files reviewed, 2 unresolved discussions (waiting on @ohad-starkware and @shaharsamocha7)
stwo_cairo_prover/crates/prover/src/cairo_air/air.rs
line 70 at r1 (raw file):
Previously, ohad-starkware (Ohad) wrote…
reorder after range checks ( v > r)
Done.
stwo_cairo_prover/crates/prover/src/cairo_air/builtins_air.rs
line 72 at r1 (raw file):
Previously, ohad-starkware (Ohad) wrote…
try using inspect here, I don't know if it's much nicer. just something I saw while on leave.
Looks nice but runs on an iterator
stwo_cairo_prover/crates/prover/src/cairo_air/builtins_air.rs
line 109 at r1 (raw file):
Previously, ohad-starkware (Ohad) wrote…
map?
I need a tuple of options here so it doesn't work
1bd9a66
to
936db7d
Compare
226c475
to
6655ae1
Compare
936db7d
to
afb4699
Compare
6655ae1
to
7679d03
Compare
afb4699
to
daa2b18
Compare
7679d03
to
12303d4
Compare
daa2b18
to
9ba0339
Compare
12303d4
to
fa62cd7
Compare
9ba0339
to
1bd00a1
Compare
fa62cd7
to
4bbf182
Compare
1bd00a1
to
6f29c03
Compare
4bbf182
to
e95e0a2
Compare
6f29c03
to
8679c4f
Compare
e95e0a2
to
fbdc64a
Compare
8679c4f
to
4da0272
Compare
fbdc64a
to
3193faa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 2 files at r5.
Reviewable status: 1 of 4 files reviewed, 1 unresolved discussion (waiting on @Gali-StarkWare and @shaharsamocha7)
stwo_cairo_prover/crates/prover/src/cairo_air/builtins_air.rs
line 109 at r1 (raw file):
Previously, Gali-StarkWare wrote…
I need a tuple of options here so it doesn't work
you can have this return an option of a tuple and then do the map from outside
This change is