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

Fix array closurization just forgetting common contracts #1678

Merged
merged 2 commits into from
Oct 13, 2023

Conversation

yannham
Copy link
Member

@yannham yannham commented Oct 12, 2023

As the title says. The logic of the previous PR introducing array contracts dedup (#1674) was wrong, and just dropped a contract if it was common to two operands of array concatenation.

Additionally, the index calculation was wrong, as it was performed on the array after having filtered None elements out, but was then used to perform the deletion in the original array, which is incorrect.

@yannham yannham requested review from Radvendii, jneem and vkleen October 12, 2023 13:01
@github-actions github-actions bot temporarily deployed to pull request October 12, 2023 13:05 Inactive
core/src/eval/operation.rs Outdated Show resolved Hide resolved
@yannham yannham requested a review from jneem October 13, 2023 10:49
@github-actions github-actions bot temporarily deployed to pull request October 13, 2023 10:52 Inactive
@yannham yannham added this pull request to the merge queue Oct 13, 2023
Merged via the queue into master with commit 7e4ecd9 Oct 13, 2023
4 checks passed
@yannham yannham deleted the fix/array-cloz branch October 13, 2023 15:28
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