Title: `isl.Set.move_dims` segfault when destination position is out of bounds · Issue #201 · inducer/islpy · GitHub
Open Graph Title: `isl.Set.move_dims` segfault when destination position is out of bounds · Issue #201 · inducer/islpy
X Title: `isl.Set.move_dims` segfault when destination position is out of bounds · Issue #201 · inducer/islpy
Description: 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.di...
Open Graph Description: 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...
X Description: 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...
Opengraph URL: https://github.com/inducer/islpy/issues/201
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`isl.Set.move_dims` segfault when destination position is out of bounds","articleBody":"**Describe the bug**\n`isl.Set.move_dims` segfaults when destination position is greater than `isl.Set.dim` for a particular `isl.dim_type`.\n\n**To Reproduce**\n```python\nimport islpy as isl\n\n\ns = isl.Set(\"{ [d_0, n] : d_0 \u003e= 0 and n \u003e d_0 }\")\n\ns = s.move_dims(\n isl.dim_type.param, 1,\n isl.dim_type.set, 0, 1\n)\n```\n\n**Expected behavior**\nRaise an error when destination is out of bounds. \n\n**Environment (please complete the following information):**\n - OS: Linux\n - Python version: 3.13\n","author":{"url":"https://github.com/a-alveyblanc","@type":"Person","name":"a-alveyblanc"},"datePublished":"2026-01-27T05:50:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/201/islpy/issues/201"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:01a84cb4-af1f-0a2b-a724-d07f3d34f7d3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A792:14CAC9:1BB48AA:25E4000:6A4C0B06 |
| html-safe-nonce | 18f21744319414ca1e9eab8f9a5ee59d83e8f96d69c37ae09702584ce96d1676 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzkyOjE0Q0FDOToxQkI0OEFBOjI1RTQwMDA6NkE0QzBCMDYiLCJ2aXNpdG9yX2lkIjoiNTYyMDEwODQ5MTIxOTUzNjY0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5b972fd7f6e7e6f1d429245aa15959f62447501d91d6528427f225a8f6694284 |
| hovercard-subject-tag | issue:3858947473 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/inducer/islpy/201/issue_layout |
| twitter:image | https://opengraph.githubassets.com/33e1955cca20dbb79f8b7b006175b4f21bf8216d48e993abb1dd072c2ce8f7f9/inducer/islpy/issues/201 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/33e1955cca20dbb79f8b7b006175b4f21bf8216d48e993abb1dd072c2ce8f7f9/inducer/islpy/issues/201 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | a-alveyblanc |
| hostname | github.com |
| expected-hostname | github.com |
| None | 940b0dbb4d0fe72558ee760b2ff0f25a504383fdfe404f3a7691ec853b8dc17f |
| turbo-cache-control | no-preview |
| go-import | github.com/inducer/islpy git https://github.com/inducer/islpy.git |
| octolytics-dimension-user_id | 352067 |
| octolytics-dimension-user_login | inducer |
| octolytics-dimension-repository_id | 2021524 |
| octolytics-dimension-repository_nwo | inducer/islpy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2021524 |
| octolytics-dimension-repository_network_root_nwo | inducer/islpy |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b0267d17ea43e55446153a7e2c60bb6ac3cffd6b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width