Skip to content

test and fix yul codegen name conflicts #1195

@sbillig

Description

@sbillig

We probably have name conflict issues in our yul codgen. For example, we use the user-supplied fn arg names, which might conflict with our v0, v1, .. var names.

fn foo(v0: u256) {
  let x = 1
  ..

probably becomes

function foo(v0) {
  let v0 := 1
  ..

There are almost certainly other possible name collision cases, eg if two fe functions have the same name but are in different modules, they (probably) end up in yul with the same name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions