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

Checking whether a precondition is strengthening a super-defined precondition seems to be to strict in case of using external contract classes. #54

Open
timmr opened this issue Nov 20, 2017 · 0 comments

Comments

@timmr
Copy link
Member

timmr commented Nov 20, 2017

Given the following scenario

  1. Having a SuperClass with external contract class SuperContractClass and methode void method(int a)
  2. TargetClass, a sub class of SuperClass, with external contract TargetContractClass
  3. no if (precondition()) block inside the definition of method method of SuperContractClass
  4. but a if (precondition()) inside the overrided method method in TargetContractClass
  5. setting the configuration variable <default-precondition> to `undefined

` (or omitting it)

Expected behaviour: no "Found strengthening pre-condition" error

Observed behaviour: "Found strengthening pre-condition in method(int)" error is raised

timmr added a commit to timmr/C4J that referenced this issue Nov 20, 2017
…dition is given in super-contract and default-precondition configuration is undefined
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