-
Notifications
You must be signed in to change notification settings - Fork 280
Remove path strategy chooser from driver #3797
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 path strategy chooser from driver #3797
Conversation
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.
✔️
Passed Diffblue compatibility checks (cbmc commit: eecdb00).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/97178570
|
Yes, right, @smowton. I was a bit lazy and wanted to avoid breaking TG and SS by changing the interface. |
I say break them, this is a pretty new interface, so the sooner it's made right the better! Plus I don't believe TG uses do-language-agnostic anyhow. |
Removes an unnecessary member from *bmc_parse_optionst. To implement an incremental_goto_checker for --paths, we have to encapsulate everything algorithm-specfic inside the incremental_goto_checker. We can only parse the option in the driver, but cannot pass on the path_strategy_chooser instance.
eecdb00
to
903b059
Compare
Since keeping an instance is not an option, we should avoid having to create an instance on every stateless function call.
903b059
to
50a9ef1
Compare
Yes that looks about right |
@smowton, can you approve it? |
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: 50a9ef1).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/97562758
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.
Makes
parse_path_strategy_options
a function. A BMC-algorithm-specific member shouldn't be owned by *bmc_parse_optionst; only the chosen option should be validated and passed.