Skip to content

Codegen cannot handle negative steps in maps #2333

@Spielopoly

Description

@Spielopoly

Description
I think there are actually two separate bugs here, but they are related.

  1. Codegen produces wrong code for negative steps in maps with sequential schedule.
  2. Codegen produces wrong code for symbolic steps, which are negative at runtime with default schedule.

To Reproduce
reproduce.py

Expected behavior
All testcases above should pass

Desktop (please complete the following information):

  • OS: Ubuntu 24.04.3 LTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions