Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

instance procedure calls use modified values #156

Open
adwait opened this issue Feb 21, 2022 · 1 comment
Open

instance procedure calls use modified values #156

adwait opened this issue Feb 21, 2022 · 1 comment
Assignees

Comments

@adwait
Copy link
Contributor

adwait commented Feb 21, 2022

Procedure proc1 modifies x and proc2 uses x.
The following results in proc2 using the value of x from the previous step (as expected).

module m {
  ...
  next {
    call () = proc1();
    call () = proc2();
  }
  ...
}

The following results in proc2 using the new value of x.

module main {
  instance m1 : m ();
  ...
  next {
    call () = m1.proc1();
    call () = m1.proc2();
  }
  ...
}

See file test/test-instance-procedure-calls-1.ucl.

@polgreen
Copy link
Contributor

polgreen commented May 9, 2024

Fixed by this: #238

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants