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

Prune recursion fixes for nested logic #677

Merged
merged 1 commit into from
Apr 6, 2023

Conversation

TristonianJones
Copy link
Collaborator

In expressions where the logic is nested and the residual state would result in the production of a constant value in the expression, ensure that the intermediate state for the expression is updated to reflect the constant value.

Also, ensure that special cases of pruning for logical operators happen after argument pruning has happened to ensure that the prune steps are properly recursive.

In expressions where the logic is nested and the residual
state would result in the production of a constant value
in the expression, ensure that the intermediate state for
the expression is updated to reflect the constant value.

Also, ensure that special cases of pruning for logical
operators happen after argument pruning has happened to
ensure that the prune steps are properly recursive.
@TristonianJones TristonianJones requested a review from jcking April 6, 2023 01:28
@TristonianJones TristonianJones merged commit b081aea into google:master Apr 6, 2023
@TristonianJones TristonianJones deleted the prune-recursion-fix branch April 6, 2023 15:52
TristonianJones added a commit to TristonianJones/cel-go that referenced this pull request Apr 12, 2023
In expressions where the logic is nested and the residual
state would result in the production of a constant value
in the expression, ensure that the intermediate state for
the expression is updated to reflect the constant value.

Also, ensure that special cases of pruning for logical
operators happen after argument pruning has happened to
ensure that the prune steps are properly recursive.
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