Skip to content

bug: addresses being used mutiple times if their op's get put into a while-do loop condition #53

@farkon00

Description

@farkon00

The following code makes the compiler generate malformed assembly, because when duplicating the operations, when desugaring the while-do loop their addresses don't get changed.

var i int = 0;
while if i 1 < do 1 else 0 end do
  *i inc
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions