Skip to content

Unwindset parser duplicated #1684

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

Closed
NathanJPhillips opened this issue Dec 21, 2017 · 2 comments
Closed

Unwindset parser duplicated #1684

NathanJPhillips opened this issue Dec 21, 2017 · 2 comments

Comments

@NathanJPhillips
Copy link
Contributor

See https://github.com/diffblue/cbmc/blob/develop/src/cbmc/bmc.cpp#L562 and https://github.com/diffblue/cbmc/blob/develop/src/goto-instrument/unwind.cpp#L53. The former is better but is specific to BMC, the latter includes comparisons to signed -1 instead of std::numeric_limits::max. As a result another duplicate has been made in https://github.com/diffblue/test-gen/pull/1236 which should be moved somewhere in CBMC and used by the existing two implementations.

@martin-cs
Copy link
Collaborator

sigh I'd hoped we'd moved on beyond duplicated functionality (remembering that time when we had four loop detection systems...). Yes; it would be good to not have this repeated. If your suggestion with test-gen is to be implemented (and it does sound like a good idea) it will have to be done by someone with access to test-gen (and the delegated legal authority to contribute it under BSD 4 clause).

@tautschnig
Copy link
Collaborator

This was addressed in #2167.

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

No branches or pull requests

3 participants