Skip to content
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

update the names of add_ap opcodes #341

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

ohad-nir-starkware
Copy link
Collaborator

@ohad-nir-starkware ohad-nir-starkware commented Jan 10, 2025

This change is Reviewable

Comment on lines 149 to 155
let (mut trace, mut lookup_data, mut sub_components_inputs) = unsafe {
(
ComponentTrace::<N_TRACE_COLUMNS>::uninitialized(log_size),
LookupData::uninitialized(log_n_packed_rows),
SubComponentInputs::uninitialized(log_size),
)
};
Copy link

@semgrep-code-starkware-libs semgrep-code-starkware-libs bot Jan 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Detected 'unsafe' usage, please audit for secure usage

Ignore this finding from unsafe-usage.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@ohad-nir-starkware ohad-nir-starkware force-pushed the ohadn/update-opcodes-names-add_ap_opcode branch 3 times, most recently from eedc13c to 3a4c6c0 Compare January 10, 2025 22:10
Copy link
Collaborator Author

@ohad-nir-starkware ohad-nir-starkware left a 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 21 files reviewed, 1 unresolved discussion (waiting on @semgrep-code-starkware-libs[bot] and @shaharsamocha7)

Comment on lines 149 to 155
let (mut trace, mut lookup_data, mut sub_components_inputs) = unsafe {
(
ComponentTrace::<N_TRACE_COLUMNS>::uninitialized(log_size),
LookupData::uninitialized(log_n_packed_rows),
SubComponentInputs::uninitialized(log_size),
)
};
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor

@ohad-starkware ohad-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed all commit messages.
Reviewable status: 0 of 21 files reviewed, 2 unresolved discussions (waiting on @DavidLevitGurevich, @ohad-nir-starkware, @semgrep-code-starkware-libs[bot], and @shaharsamocha7)


stwo_cairo_prover/crates/prover/src/cairo_air/opcodes_air.rs line 99 at r2 (raw file):

            self.add_ap.iter().map(|c| c.log_sizes()),
            self.add_ap_op_1_base_fp.iter().map(|c| c.log_sizes()),
            self.add_ap_imm.iter().map(|c| c.log_sizes()),

sort alphabetically everywhere,
you can do this with ctrl+shift+p+"sort ascending"

Code quote:

            self.add_ap_op_1_base_fp.iter().map(|c| c.log_sizes()),
            self.add_ap_imm.iter().map(|c| c.log_sizes()),

@ohad-nir-starkware ohad-nir-starkware force-pushed the ohadn/update-opcodes-names-add_ap_opcode branch from 3a4c6c0 to 294c250 Compare January 13, 2025 21:01
Copy link
Collaborator Author

@ohad-nir-starkware ohad-nir-starkware left a 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 21 files reviewed, 2 unresolved discussions (waiting on @DavidLevitGurevich, @ohad-starkware, @semgrep-code-starkware-libs[bot], and @shaharsamocha7)


stwo_cairo_prover/crates/prover/src/cairo_air/opcodes_air.rs line 99 at r2 (raw file):

Previously, ohad-starkware (Ohad) wrote…

sort alphabetically everywhere,
you can do this with ctrl+shift+p+"sort ascending"

that is a nontrivial amount of work and I would have to repeat that 7 times.
the order might change as each PR merges, so I rather just do it once on the 7th PR or even make an 8th PR for that.

@ohad-starkware
Copy link
Contributor

stwo_cairo_prover/crates/prover/src/cairo_air/opcodes_air.rs line 99 at r2 (raw file):

Previously, ohad-nir-starkware (Ohad Nir) wrote…

that is a nontrivial work and I would have to repeat that 7 times.
the order might change as each PR merges, so I rather just do it once on the 7th PR or even make an 8th PR for that.

alright

Copy link
Contributor

@ohad-starkware ohad-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 6 of 21 files at r1, 3 of 5 files at r2, 6 of 8 files at r3, all commit messages.
Reviewable status: 15 of 21 files reviewed, 1 unresolved discussion (waiting on @DavidLevitGurevich, @semgrep-code-starkware-libs[bot], and @shaharsamocha7)

Copy link
Contributor

@ohad-starkware ohad-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 21 files at r1, 1 of 5 files at r2, 2 of 8 files at r3.
Reviewable status: 20 of 21 files reviewed, 1 unresolved discussion (waiting on @DavidLevitGurevich, @semgrep-code-starkware-libs[bot], and @shaharsamocha7)

Copy link
Collaborator Author

@ohad-nir-starkware ohad-nir-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dismissed @semgrep-code-starkware-libs[bot] from a discussion.
Reviewable status: 20 of 21 files reviewed, all discussions resolved (waiting on @DavidLevitGurevich and @shaharsamocha7)

Copy link
Collaborator Author

@ohad-nir-starkware ohad-nir-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 8 of 21 files at r1, 5 of 5 files at r2, 8 of 8 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @DavidLevitGurevich and @shaharsamocha7)

@ohad-nir-starkware ohad-nir-starkware merged commit dd968cc into main Jan 14, 2025
7 checks passed
@ohad-nir-starkware ohad-nir-starkware deleted the ohadn/update-opcodes-names-add_ap_opcode branch January 14, 2025 07:56
@ohad-starkware
Copy link
Contributor

stwo_cairo_prover/crates/prover/src/cairo_air/opcodes_air.rs line 1597 at r3 (raw file):

            })
            .collect_vec();
        let add_ap_f_f_components = claim

sorry missed that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants