Skip to content

Incorrect handling of reflective argument in PIR #1312

Open

Description

@rihafilip

For the given code

f <- function(x) c(x, x)
g <- function() {
    e <- sys.frame(-1)
    e$x <- 1
    42
}
h <- function() f(g())

When executing the function h, the expected output is vector of [42, 1].
But after invoking it a couple of times and compiling to native, it is returning [42, 42].

Tested with PIR_WARMUP=3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions