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

Quantified formula in arguments of macros gets replaced by true #45

Open
5nizza opened this issue Jan 25, 2023 · 0 comments
Open

Quantified formula in arguments of macros gets replaced by true #45

5nizza opened this issue Jan 25, 2023 · 0 comments

Comments

@5nizza
Copy link

5nizza commented Jan 25, 2023

If we pass a quantified expression as an argument to a macro, it gets replaced by true.

$ cat quantification_bug.tlsf
INFO {
  TITLE:       ""
  DESCRIPTION: "Quantification bug"
  SEMANTICS:   Mealy
  TARGET:      Mealy
}

GLOBAL {
  PARAMETERS {
    n = 2;
  }
  DEFINITIONS {
    GR_1(a) = a;   // We will pass a quantified formula to this macro
  }
}

MAIN {
  INPUTS { b[n]; }
  OUTPUTS { serve; }

  GUARANTEES {
    GR_1((&&[0 <= i < n]  b[i]));  // results in 'true' but expected "b[0]&&b[1]"
  }
}

Now run:

$ syfco quantification_bug.tlsf -f ltl
true

However expected "b_0&&b_1".

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

1 participant