Skip to content

Remove java dependency in string solver #1872

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

romainbrenguier
Copy link
Contributor

This removes the dependencies on java_bytecode from the solver (see #1869)

Copy link
Member

@peterschrammel peterschrammel left a comment

Choose a reason for hiding this comment

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

@tautschnig
Copy link
Collaborator

The CMake failure highlights that there is a problem in unit/CMakeLists.txt that now needs to be addressed: because of the way the Linux linker works, target_link_libraries now needs to list goto-programs above java_bytecode. Though maybe the problem can also be solved differently:

$ git grep java_lang_object_type
goto-programs/remove_instanceof.cpp:  symbol_typet jlo=to_symbol_type(java_lang_object_type().subtype());
java_bytecode/java_types.cpp:reference_typet java_lang_object_type()
java_bytecode/java_types.h:reference_typet java_lang_object_type();

Having a single user of java_lang_object_type(), which in turn only picks out the subtype() is weird. Add to that that the single user is outside the java_bytecode folder.

Copy link
Collaborator

@martin-cs martin-cs left a comment

Choose a reason for hiding this comment

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

Fine once the other issues have been addressed.

@kroening
Copy link
Member

Cherry-picked two commits to make this move.

@peterschrammel
Copy link
Member

@kroening, the develop build is broken now.
I'm working on the java deps issue in #1935 / #1869.
Cherry-picking without waiting for CI is not the way forward.

@romainbrenguier
Copy link
Contributor Author

closing as the changes are in develop now

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.

5 participants