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

Comparison chaining evaluates values several times #261

Open
nielstron opened this issue Sep 12, 2023 · 0 comments
Open

Comparison chaining evaluates values several times #261

nielstron opened this issue Sep 12, 2023 · 0 comments
Labels
bb: medium Medium issue according to bug bounty categorization bug bounty This issue is prized out as part of the Bug Bounty Program bug Something isn't working

Comments

@nielstron
Copy link
Contributor

nielstron commented Sep 12, 2023

Currently comparison chaining is internally just rewritten such that x < y < z becomes x < y and y < z. In the case where y is not a constant, this actually breaks the semantics of python which state that the inner value should only be computed once. It does not matter here, since the only side effect is tracing - but should still be fixed also for reducing computation cost

Bug bounty: 500 ADA

@nielstron nielstron added the bug Something isn't working label Sep 12, 2023
@nielstron nielstron added bb: medium Medium issue according to bug bounty categorization bug bounty This issue is prized out as part of the Bug Bounty Program labels Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bb: medium Medium issue according to bug bounty categorization bug bounty This issue is prized out as part of the Bug Bounty Program bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant