Skip to content

Fix RCA panic #2017

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

Merged
merged 4 commits into from
Nov 13, 2024
Merged

Fix RCA panic #2017

merged 4 commits into from
Nov 13, 2024

Conversation

orpuente-MS
Copy link
Contributor

@orpuente-MS orpuente-MS commented Nov 12, 2024

Fixes #1925

Notes for reviewers

The issue was that a helper function analyzing binary operations was assuming that operands were element values (non-arrays). I just updated it to also consider arrays.

The logic I added to handle binary ops in arrays is marking the output of a binary operation as Dynamic if either:

  1. The elements of the array are Dynamic.
  2. The size of the array is Dynamic.

Dynamic in this context means that it cannot be known at compile time.

@orpuente-MS orpuente-MS added this pull request to the merge queue Nov 13, 2024
Merged via the queue into main with commit a6e4b32 Nov 13, 2024
18 checks passed
@orpuente-MS orpuente-MS deleted the oscarpuente/fix-rca-panic branch November 13, 2024 23:52
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.

RCA panics when comparing arrays
4 participants