Skip to content

[codex] Support slices in Thrust#151

Closed
coord-e wants to merge 3 commits into
mainfrom
codex/slice-support
Closed

[codex] Support slices in Thrust#151
coord-e wants to merge 3 commits into
mainfrom
codex/slice-support

Conversation

@coord-e

@coord-e coord-e commented Jun 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • make Seq offset-aware and add prepend/subsequence operations
  • model [T] as Seq<T::Ty> and specify slice length, emptiness, element access, and mutable access operations
  • reconstruct first-class MIR slice indexing as Index/IndexMut calls, and route slice metadata length through the registered extern spec
  • add paired passing/failing UI coverage for each step

Motivation

Slice representation belongs in std.rs; the basic-block analyzer should not know that slices are modeled by Seq. Reconstructing erased MIR operations as calls keeps slice semantics in the extern specs and lets the analyzer reuse normal function-type application.

Validation

  • cargo check
  • targeted PCSAT pass/fail tests for sequence views, slice methods, slice indexing, mutable slice indexing, and out-of-bounds rejection
  • targeted Seq and Vec regression tests

@coord-e

coord-e commented Jun 28, 2026

Copy link
Copy Markdown
Owner Author

#152 #153

@coord-e coord-e closed this Jun 28, 2026
@coord-e coord-e deleted the codex/slice-support branch June 28, 2026 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant