Skip to content

Handle re-used Sierra var IDs #129

Closed
Closed

Description

@integraledelebesgue

For certain Sierra instructions (store_temp, store_local, dup), produced and consumed variables re-use the same IDs. For example: store_temp([0]) -> [0].

Re-used ids result in shadowing of variables. For example, in function:

fn foo(x: felt252) {
    let mut y = x;
    y += 1;
}

we show only y in Variables.

In general, this results in bugs in aliasing and re-binding.

Activity

  1. moved this from Triage to Later in cairo-debuggeron May 21, 2026
  2. moved this from Later to In Progress in cairo-debuggeron May 21, 2026
  3. moved this from In Progress to Todo in cairo-debuggeron May 21, 2026
  4. moved this from Todo to In Progress in cairo-debuggeron May 21, 2026
  5. self-assigned this
    on Jun 8, 2026
  6. linked a pull request that will close this issueAdd params support #151on Jul 24, 2026
  7. moved this from In Progress to Done in cairo-debuggeron Jul 24, 2026
  8. piotmag769 commented on Jul 24, 2026

    @piotmag769
    Collaborator

    The shadowing mainly occurs for params, which is fixed by the logic related to FunctionDebugInfo.parameters field. The broader explanation can be found here

  9. self-assigned this
    on Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions