Skip to content

Object factory: ensure generated assignments are exactly type-consistent [blocks: #3966] #4126

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

Conversation

smowton
Copy link
Contributor

@smowton smowton commented Feb 8, 2019

No description provided.

Previously the initialiser could have a followed (e.g. struct) type, while the LHS being set up
could have a tag type.
At the moment --validate-goto-model doesn't give this strong a guarantee, but at least within
the object factory we should only be producing exactly type-consistent statements.
@tautschnig
Copy link
Collaborator

Just asking before embarking on the review: does this supersede one or both of #3743, #3744?

@tautschnig tautschnig changed the title Object factory: ensure generated assignments are exactly type-consistent Object factory: ensure generated assignments are exactly type-consistent [blocks: #3966] Feb 8, 2019
@tautschnig
Copy link
Collaborator

Just noting here that these fixes are actually required to make #3966 mergeable (as otherwise a test fails).

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

✔️
Passed Diffblue compatibility checks (cbmc commit: 814426b).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/100219870

@smowton
Copy link
Contributor Author

smowton commented Feb 8, 2019

@tautschnig looks like neither one is superseded, they do independent cleanups around the same area.

@tautschnig
Copy link
Collaborator

Thanks @smowton - @kroening, maybe now is a good time to revive them?

Copy link
Contributor

@thk123 thk123 left a comment

Choose a reason for hiding this comment

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

Changes LGTM - could it get a very quick manual TG bump (I'm assuming @smowton will take care of this, or will let me know if not)

@thk123
Copy link
Contributor

thk123 commented Feb 8, 2019

Manual bump: diffblue/test-gen#3027 (awaiting CI)

Copy link
Contributor

@thk123 thk123 left a comment

Choose a reason for hiding this comment

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

Manual bump passed with no changes as Chris promised, so this is good to go 👍

@tautschnig tautschnig merged commit 6c8d919 into diffblue:develop Feb 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants