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

Modal model without cyclic dependencies is rejected because cyclic dependencies #2364

Open
NiklasRentzCAU opened this issue Jul 15, 2024 · 0 comments
Assignees

Comments

@NiklasRentzCAU
Copy link

The following model is seen by LF to have cyclic dependencies, whereas the modes break that cycle and the model should be accepted instead.

target C

reactor R {
  input in: bool
  output out: bool

  reaction(in) -> out {=
    lf_set(out, 0.0f);
  =}

}

main reactor {
  r = new R()

  initial mode A {

    reaction(r.out) {==}
  }

  mode B {
    reaction(startup) -> r.in {=
      lf_set(r.in, true)
    =}
  }

}

cyclic-modes

Both modes are unconnected and it can never be the case that the reaction in mode A happens in the same tick before the reaction in mode B.

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