Skip to content

Utilities for reporting overall result/status/exit code [depends: 3583, blocks: 3585] #3584

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 7 commits into from
Jan 14, 2019

Conversation

peterschrammel
Copy link
Member

@peterschrammel peterschrammel commented Dec 16, 2018

Based on #3583, only review last 4 commits.

  • Each commit message has a non-empty body, explaining why the change was made.
  • Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
  • 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).
  • [n/a] 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.

@peterschrammel peterschrammel changed the title Overall reporting utils [depends: 3584] Utilities for reporting overall result/status/exit code [depends: 3584] Dec 16, 2018
@peterschrammel peterschrammel changed the title Utilities for reporting overall result/status/exit code [depends: 3584] Utilities for reporting overall result/status/exit code [depends: 3583, blocks: 3585] Dec 16, 2018
@peterschrammel peterschrammel force-pushed the overall-reporting-utils branch from 89c7580 to 2c92ab1 Compare December 17, 2018 10:39
report_error(ui_message_handler);
break;
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Missing newline

@@ -71,6 +71,62 @@ void report_failure(ui_message_handlert &ui_message_handler)
}
}

void report_inconclusive(ui_message_handlert &ui_message_handler)
Copy link
Collaborator

Choose a reason for hiding this comment

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

The commit message talks about the wrong file.

void report_inconclusive(ui_message_handlert &ui_message_handler)
{
messaget msg(ui_message_handler);
msg.result() << "INCONCLUSIVE" << messaget::eom;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't we already use "UNKNOWN" in places (goto-analyzer, for example)?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't mind. Any preferences?

void report_error(ui_message_handlert &ui_message_handler)
{
messaget msg(ui_message_handler);
msg.result() << "VERIFICATION ERROR" << messaget::eom;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Applies to all the report* functions: do we print both formatted and unformatted output in case of both XML and JSON?!

Copy link
Member Author

Choose a reason for hiding this comment

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

To count how many properties have a certain status.
This will be used in property reporting.
Plain text, XML and JSON output for property results.
Prints the property report in plain text, JSON or XML.
@peterschrammel peterschrammel force-pushed the overall-reporting-utils branch from 6516d1f to 323f131 Compare January 13, 2019 16:50
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: 323f131).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/97168736

Enable consistent result-dependent exit codes across all
driver programs.
Enable consistent overall status reporting
across all driver programs.
@peterschrammel peterschrammel force-pushed the overall-reporting-utils branch from 323f131 to b1587fa Compare January 14, 2019 00:43
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: b1587fa).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/97183590

@tautschnig tautschnig merged commit ce577d8 into diffblue:develop Jan 14, 2019
@peterschrammel peterschrammel deleted the overall-reporting-utils branch January 14, 2019 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants