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

[BUG] Some contract compositions yield guarantees that only involve inputs #341

Open
iincer opened this issue Oct 19, 2023 · 0 comments
Open

Comments

@iincer
Copy link
Collaborator

iincer commented Oct 19, 2023

Describe the bug
Consider the composition of the following contacts:

C1 = {
inputs: a
outputs: b
assumptions: a < 2
guarantees: b = a, b < 2
}

C2 = {
inputs: b
outputs: c
assumptions: b < 1
guarantees: c = b
}

The composition could generate the guarantee a < 2. This guarantee should not be there. Or is this a sympthom of a problematic specification?

Expected behavior
Pacti should not generate guarantees that only use input variables.

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