Skip to content

isl.Set.move_dims segfault when destination position is out of bounds #201

@a-alveyblanc

Description

@a-alveyblanc

Describe the bug
isl.Set.move_dims segfaults when destination position is greater than isl.Set.dim for a particular isl.dim_type.

To Reproduce

import islpy as isl


s = isl.Set("{ [d_0, n] : d_0 >= 0 and n > d_0 }")

s = s.move_dims(
    isl.dim_type.param, 1,
    isl.dim_type.set, 0, 1
)

Expected behavior
Raise an error when destination is out of bounds.

Environment (please complete the following information):

  • OS: Linux
  • Python version: 3.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions