Skip to content

Functions for outputting options #3129

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 3 commits into from
Oct 23, 2018

Conversation

peterschrammel
Copy link
Member

@peterschrammel peterschrammel commented Oct 9, 2018

This can be used to output the options set at the beginning
of an analysis in order to understand the settings.

  • Each commit message has a non-empty body, explaining why the change was made.
  • My contribution is formatted in line with CODING_STANDARD.md.
  • Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
  • My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • White-space or formatting changes outside the feature-related changed lines are in commits of their own.

@smowton
Copy link
Contributor

smowton commented Oct 9, 2018

Should probably add a simple user / test at the same time?

@martin-cs
Copy link
Collaborator

FWIW I'm planning on not only doing this but also dumping a check sum of the analyzer binary and the input goto-program to help make the chain of reproducibility as strong as possible.

So, +1, sounds good to me.

@peterschrammel
Copy link
Member Author

Added XML support and JBMC as example user.

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: f11668b).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/87405251

@smowton
Copy link
Contributor

smowton commented Oct 10, 2018

Great, now it's easy to add a simple regression test ;)

switch(ui_message_handler.get_ui())
{
case ui_message_handlert::uit::PLAIN:
options.output(debug());
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe you could use conditional_output(debug(), options.output);

This can be used to output the options set at the beginning
of an analysis in order to understand the settings.
@peterschrammel
Copy link
Member Author

@smowton, added.

@tautschnig
Copy link
Collaborator

@peterschrammel: That newly added test is failing, it seems the options are not actually printed.

4 similar comments
@tautschnig
Copy link
Collaborator

@peterschrammel: That newly added test is failing, it seems the options are not actually printed.

@tautschnig
Copy link
Collaborator

@peterschrammel: That newly added test is failing, it seems the options are not actually printed.

@tautschnig
Copy link
Collaborator

@peterschrammel: That newly added test is failing, it seems the options are not actually printed.

@tautschnig
Copy link
Collaborator

@peterschrammel: That newly added test is failing, it seems the options are not actually printed.

@tautschnig
Copy link
Collaborator

@peterschrammel: That newly added test is failing, it seems the options are not actually printed.

1 similar comment
@tautschnig
Copy link
Collaborator

@peterschrammel: That newly added test is failing, it seems the options are not actually printed.

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: 5b8d9a3).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/88728095

@peterschrammel peterschrammel merged commit 084fc14 into diffblue:develop Oct 23, 2018
@peterschrammel peterschrammel deleted the output-options branch October 23, 2018 09:46
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