spcl / spcl/dace

Codegen cannot handle negative steps in maps

Open
#2,333 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
593
Forks
163
Avg merge
2d 23h
Merged PRs (30d)
60

Description

**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](https://github.com/user-attachments/files/26718256/reproduce.py)

**Expected behavior**
All testcases above should pass

**Desktop (please complete the following information):**
- OS: Ubuntu 24.04.3 LTS

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.