Skip to content

Move magic "compiled" string behind an API in symbolt #2717

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
merged 1 commit into from
Sep 19, 2018

Conversation

tautschnig
Copy link
Collaborator

No description provided.

@tautschnig
Copy link
Collaborator Author

Factored out from #1987.

@@ -107,6 +107,16 @@ class symbolt
{
return !is_type && !is_macro && type.id()==ID_code;
}

bool is_compiled() const
Copy link
Contributor

Choose a reason for hiding this comment

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

Document what this means here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Documentation (and additional invariants) added.


/// Set the symbol's value to "compiled"; to be used once the code-typed value
/// has been converted to a goto program.
void mark_compiled()
Copy link
Member

Choose a reason for hiding this comment

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

Maybe better set_compiled?

@tautschnig
Copy link
Collaborator Author

Travis is currently failing with what looks like an instance of travis-ci/travis-ci#9361. I'll re-try in the morning.

Magic strings yield a risk of inconsistency, and fail to provide
documentation.
Copy link
Contributor

@allredj allredj left a 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: 9082573).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/85254753
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).

Copy link
Contributor

@allredj allredj left a 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: 637b17b).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/85259736

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