mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-17 16:11:26 -05:00
For `ExtractSliceOp` and `InsertSliceOp`, the code performing the hoisting of indexed operations in the batching pass derives the indexes of the hoisted operation from the indexes provided by `ExtractSliceOp::getOffsets()` and `InsertSliceOp::getOffsets()`. However, these methods only return dynamic indexes, such that operations with mixed, dynamic and static offsets are hoisted incorrectly. This patch replaces the invocations of `ExtractSliceOp::getOffsets()` and `InsertSliceOp::getOffsets()` with invocations of `ExtractSliceOp::getMixedOffsets()` and `InsertSliceOp::getMixedOffsets()`, respectively in order to take into account both static and dynamic indexes.