fix: preserve mutation path in opaque spec calls (#545)#551
fix: preserve mutation path in opaque spec calls (#545)#551andreistefanescu merged 2 commits intomainfrom
Conversation
when calling an opaque spec function with &mut parameters, wrap results with $UpdateMutation to preserve mutation path and location: - function-style (deterministic): use $UpdateMutation wrapper instead of direct assignment - datatypes (multiple returns): wrap &mut src extractions with $UpdateMutation - procedure-style (non-deterministic): save &mut refs before call, restore paths after Co-authored-by: Andrei Stefanescu <andreistefanescu@users.noreply.github.com>
|
You have run out of free Bugbot PR reviews for this billing cycle. This will reset on April 1. To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial. |
|
@claude fix the test |
|
Claude finished @andreistefanescu's task in 5m 46s —— View job Fixed the test
The test Created |
Co-authored-by: Andrei Stefanescu <andreistefanescu@users.noreply.github.com> Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fixes #545
When calling an opaque spec function with
&mutparameters, the mutation's path must be preserved. Three cases fixed:$UpdateMutation&mutextractions with$UpdateMutation&mutrefs before call, restore paths afterNo
seenset needed since all mutable sources are distinct due to Rust borrow rules.Generated with Claude Code) • [
claude/issue-545-20260306-2352](https://github.com/asymptotic-code/sui-prover/tree/claude/issue-545-20260306-2352