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

Report results as UNDETERMINED instead of SUCCESS if an unwinding assertion fails #889

Merged

Conversation

zhassan-aws
Copy link
Contributor

Description of changes:

When an insufficient unwind value is specified and an unwinding assertion fails, Kani may report some checks as "SUCCESS" even though they may fail with a larger unwinding. To prevent giving this somewhat misleading result to the user, Kani will now report UNDETERMINED instead of SUCCESS if any unwinding assertion fails. The unwind tip that also gets emitted when an unwinding assertion fails:

[Kani] info: Verification output shows one or more unwinding failures.
[Kani] tip: Consider increasing the unwinding value or disabling `--unwinding-assertions`.

should prompt the user to increase the unwind value.

Resolved issues:

Resolves #746

Call-outs:

Testing:

  • How is this change tested? Added one test

  • Is this a refactor change? No

Checklist

  • Each commit message has a non-empty body, explaining why the change was made
  • Methods or procedures are documented
  • Regression or unit tests are included, or existing tests cover the modified code
  • My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

@zhassan-aws zhassan-aws requested a review from a team as a code owner March 4, 2022 17:34
@@ -1,2 +1,3 @@
UNDTERMINED
Copy link
Contributor

@jaisnan jaisnan Mar 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this is a typo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, fixed.

Copy link
Contributor

@jaisnan jaisnan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@zhassan-aws zhassan-aws merged commit e741b2c into model-checking:main Mar 4, 2022
@zhassan-aws zhassan-aws deleted the insufficient-unwind-report branch March 4, 2022 22:51
tedinski pushed a commit to tedinski/rmc that referenced this pull request Apr 22, 2022
tedinski pushed a commit to tedinski/rmc that referenced this pull request Apr 25, 2022
tedinski pushed a commit to tedinski/rmc that referenced this pull request Apr 26, 2022
tedinski pushed a commit that referenced this pull request Apr 27, 2022
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

Successfully merging this pull request may close these issues.

Misleading success when unwinding assertions fail
3 participants