Skip to content

Comparison chaining evaluates values several times #261

@nielstron

Description

@nielstron

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bb: mediumMedium issue according to bug bounty categorizationbugSomething isn't workingbug bountyThis issue is prized out as part of the Bug Bounty Program

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions