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

Updated sierra ap-change finding to be based on final lowering. #6258

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

orizi
Copy link
Collaborator

@orizi orizi commented Aug 22, 2024

This change is Reviewable

@ilyalesokhin-starkware
Copy link
Contributor

crates/cairo-lang-sierra-generator/src/ap_change.rs line 20 at r1 (raw file):

    function_id: ConcreteFunctionWithBodyId,
) -> Maybe<SierraApChange> {
    // The implementation of get_ap_change() may call this function recursively. To guarantee no

Maybe we should just add cycle handling to the function?

Code quote:

 // salsa query cycles are created, we first verify that there are no cycles.

Copy link
Contributor

@ilyalesokhin-starkware ilyalesokhin-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 3 of 5 files at r1.
Reviewable status: 3 of 5 files reviewed, 1 unresolved discussion (waiting on @orizi)

Copy link
Collaborator Author

@orizi orizi 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: 3 of 5 files reviewed, 1 unresolved discussion (waiting on @ilyalesokhin-starkware)


crates/cairo-lang-sierra-generator/src/ap_change.rs line 20 at r1 (raw file):

Previously, ilyalesokhin-starkware wrote…

Maybe we should just add cycle handling to the function?

if we do that - this won't be the function that is actually the entry into the salsa-cycle - it would probably be a random function that generates the sierra code.

Copy link
Contributor

@ilyalesokhin-starkware ilyalesokhin-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 2 of 5 files at r1.
Reviewable status: all files reviewed (commit messages unreviewed), all discussions resolved (waiting on @orizi)

@orizi orizi force-pushed the spr/main/b3643991 branch 2 times, most recently from ce2718e to 8a38fce Compare August 22, 2024 09:05
@orizi orizi changed the base branch from spr/main/f76fc778 to main August 22, 2024 09:35
@orizi orizi enabled auto-merge August 22, 2024 09:40
@orizi orizi added this pull request to the merge queue Aug 22, 2024
Copy link
Contributor

@mkaput mkaput left a comment

Choose a reason for hiding this comment

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

Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @Arcticae, @Draggu, and @piotmag769)

Merged via the queue into main with commit 658b74c Aug 22, 2024
87 checks passed
@orizi orizi deleted the spr/main/b3643991 branch August 28, 2024 05:58
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.

3 participants