-
Notifications
You must be signed in to change notification settings - Fork 277
Remove cmdlinet from init/lazy_goto_model #3518
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
Remove cmdlinet from init/lazy_goto_model #3518
Conversation
779832d
to
e2d75fa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫
This PR failed Diffblue compatibility checks (cbmc commit: e2d75fa).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/93300370
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.
Common spurious failures:
- the cbmc commit has disappeared in the mean time (e.g. in a force-push)
- the author is not in the list of contributors (e.g. first-time contributors).
The incompatibility may have been introduced by an earlier PR. In that case merging this
PR should be avoided unless it fixes the current incompatibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A nice step forward! I am assuming TG just needs a genuine update due to the API change.
jbmc/src/jbmc/jbmc_parse_options.cpp
Outdated
@@ -106,8 +106,11 @@ void jbmc_parse_optionst::get_command_line_options(optionst &options) | |||
usage_error(); | |||
exit(1); // should contemplate EX_USAGE from sysexits.h | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit pick: unrelated change?
optionst options; | ||
parse_java_language_options(command_line, options); | ||
options.set_option("java-cp-include-files", "CustomVSATest.class"); | ||
std::vector<std::string> files = {"pointer-analysis/CustomVSATest.jar"}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit pick: it may make things easier to read if just passing this directly to initialize_goto_model
instead of adding this files
local variable. Just less context for the reader to remember.
@@ -112,8 +113,12 @@ bool language_uit::final() | |||
{ | |||
language_files.set_message_handler(*message_handler); | |||
|
|||
// TODO: This should be moved elsewhere because it is not used in | |||
// this repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe create an issue for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already got one that is passing. |
It should be possible to build a goto model without requiring a cmdlinet, e.g. in unit tests.
to make clang-format happy
e2d75fa
to
7183e66
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫
This PR failed Diffblue compatibility checks (cbmc commit: 7183e66).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/93331192
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.
Common spurious failures:
- the cbmc commit has disappeared in the mean time (e.g. in a force-push)
- the author is not in the list of contributors (e.g. first-time contributors).
The incompatibility may have been introduced by an earlier PR. In that case merging this
PR should be avoided unless it fixes the current incompatibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a nice cleanup.
bool stubs_enabled=_cmdline.isset("generate-opaque-stubs"); | ||
bool stubs_enabled = false; | ||
if(options != nullptr) | ||
stubs_enabled = options->is_set("generate-opaque-stubs"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this any easier to read if written as bool stubs_enabled = options != nullptr ? options->is_set(..) : false;
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be removed in #3520 anyway.
It should be possible to build a goto model without requiring a cmdlinet, e.g. in unit tests.
Caution! This breaks most driver programs.