Skip to content

feat: make kani::any::<bool>() non-det bit pattern more intuitive - #1539

Merged
sanjit-bhat merged 2 commits into
model-checking:mainfrom
sanjit-bhat:new-bool
Aug 17, 2022
Merged

sanjit-bhat merged 2 commits into
model-checking:mainfrom
sanjit-bhat:new-bool

Conversation

@sanjit-bhat

Copy link
Copy Markdown
Contributor

Description of changes:

See #1490 for a description of the changes and their use case. The bottom-most comment in the thread also has a performance evaluation. Based on that evaluation, I don't think it adds that much overhead, and I recommend that we implement it given that it will make the concrete value more clear when using the --gen-exe-trace and --visualize flags.

Resolved issues:

Resolves #1490.

Testing:

  • How is this change tested?

This change clearly still results in bool::any() returning a bool. Also, I modified the concrete playback tests given that they now have reliable concrete values for bool.

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.

@sanjit-bhat
sanjit-bhat requested a review from celinval August 17, 2022 18:32
@sanjit-bhat
sanjit-bhat requested a review from a team as a code owner August 17, 2022 18:32
@sanjit-bhat sanjit-bhat self-assigned this Aug 17, 2022

@zhassan-aws zhassan-aws left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. Thanks!

@sanjit-bhat
sanjit-bhat merged commit b6a748d into model-checking:main Aug 17, 2022
@sanjit-bhat
sanjit-bhat deleted the new-bool branch August 17, 2022 19:49
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.

Change kani::any::<bool>() to make the non-det bit pattern more intuitive

3 participants