Skip to content

Cleanup/java object factory #693

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

Conversation

owen-mc-diffblue
Copy link
Contributor

I've been reading this code as we're making an equivalent for C. I noticed a few things that could be tidied up. There are no functional changes.

@owen-mc-diffblue
Copy link
Contributor Author

@mgudemann You seem to have written quite a lot of the code in this file, so you might be a good person to review. On the other hand you seem to be on holiday next week.

symbol_table,
loc,
message_handler);
state.gen_nondet_init_rec(
Copy link
Member

Choose a reason for hiding this comment

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

Was the renaming necessary then?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, I guess not. It was useful to be certain that the function was okay to remove. I'll add a commit to rename the remaining function back.

Copy link
Collaborator

Choose a reason for hiding this comment

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

You might just drop that earlier commit and rebase?

Owen Jones added 2 commits March 24, 2017 15:02
skip_classid was always false, so there wasn't any point having it.
gen_nondet_init() is only used once, and is only two lines long,
so get rid of it and just put those two lines. This also avoids
confusion with java_object_factory::gen_nondet_init().
@owen-mc-diffblue owen-mc-diffblue force-pushed the cleanup/java-object-factory branch from 1c6676d to 9a1dae0 Compare March 24, 2017 15:13
@owen-mc-diffblue
Copy link
Contributor Author

I've dropped the renaming commit.

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.

Looks good to me.

@kroening kroening merged commit cf17239 into diffblue:master Mar 25, 2017
@owen-mc-diffblue owen-mc-diffblue deleted the cleanup/java-object-factory branch March 27, 2017 08:13
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.

4 participants