Skip to content

Bugfix/overflow test #771

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

Merged
merged 2 commits into from
Apr 13, 2017

Conversation

owen-mc-diffblue
Copy link
Contributor

This fixes a test that isn't really doing anything.

Copy link
Collaborator

@tautschnig tautschnig left a comment

Choose a reason for hiding this comment

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

Minor change, please: The second commit message speaks about "assertions", when those should be "assumptions".

@owen-mc-diffblue
Copy link
Contributor Author

I have changed the commit message

@tautschnig
Copy link
Collaborator

@owen-jones-diffblue Would you mind rebasing to get a green light on all tests?

Owen Jones added 2 commits April 7, 2017 14:06
CBMC can't cope with arrays as parameters to C functions yet. It
assumes they are null pointers. I'm not sure why this test was
passing, but refactoring it to not use arrays makes it clear it
shouldn't be. (Also remove some unneeded whitespace.)
Three assumptions were missing. Now the test works and we can turn
it back on.
@owen-mc-diffblue
Copy link
Contributor Author

Done

@kroening
Copy link
Member

kroening commented Apr 8, 2017

Do we know where that test came from?

@owen-mc-diffblue
Copy link
Contributor Author

owen-mc-diffblue commented Apr 10, 2017

git blame points to commit 2e773cf by Michael Tautschnig. Here is the commit message:

Author: Michael Tautschnig [email protected]
Date: Tue Jan 10 00:50:58 2017 +0100

Fix typo in definition of unsigned __int128

Includes regression test provided by Vladimir Klebanov.

@tautschnig
Copy link
Collaborator

@tautschnig
Copy link
Collaborator

It may be worth noting that the change is in line with what the comment in the original file said:

Requires in[i] < 2^126

@tautschnig tautschnig merged commit a17063d into diffblue:master Apr 13, 2017
@owen-mc-diffblue owen-mc-diffblue deleted the bugfix/overflow-test branch April 13, 2017 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants