Skip to content

Implement the copy locator #20

@ReedOei

Description

@ReedOei

This will need to recursively perform a true "deep copy" on the locators. For example:

type T is { x : any nat, y : any nat }
{ x : any nat |-> 0, y : any nat |-> 1 } --> t : T
copy(t) --> var newT : T

should generate code equivalent to (this is just the copy(t) --> var newT : T part).

T newT = T(true, t.x, t.y);

We will need to handle lists and maps similarly (for maps, using the store list of keys to iterate through it).

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