Skip to content

Document all {goto-,j}analyzer options #6929

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 2 commits into from
Jun 14, 2022

Conversation

tautschnig
Copy link
Collaborator

  • Each commit message has a non-empty body, explaining why the change was made.
  • n/a Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • n/a 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.
  • n/a White-space or formatting changes outside the feature-related changed lines are in commits of their own.

It likely never was supported in goto-analyzer and janalyzer, see
a35731b for when it was removed from tools that actually supported it.
This commit completes the --help output of the data-flow analysis tools.
@codecov
Copy link

codecov bot commented Jun 14, 2022

Codecov Report

Merging #6929 (06350a0) into develop (a1053a6) will decrease coverage by 0.00%.
The diff coverage is 75.00%.

@@             Coverage Diff             @@
##           develop    #6929      +/-   ##
===========================================
- Coverage    77.79%   77.79%   -0.01%     
===========================================
  Files         1568     1568              
  Lines       180316   180317       +1     
===========================================
  Hits        140285   140285              
- Misses       40031    40032       +1     
Impacted Files Coverage Δ
jbmc/src/janalyzer/janalyzer_parse_options.cpp 48.58% <0.00%> (-0.16%) ⬇️
src/goto-analyzer/goto_analyzer_parse_options.cpp 72.27% <ø> (ø)
.../goto-instrument/goto_instrument_parse_options.cpp 70.90% <ø> (ø)
src/goto-programs/restrict_function_pointers.h 100.00% <ø> (ø)
src/util/config.h 57.14% <ø> (ø)
src/goto-cc/gcc_mode.cpp 68.66% <85.71%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0532e66...06350a0. Read the comment docs.

@@ -757,8 +759,9 @@ void janalyzer_parse_optionst::help()
"\n"
"Domain options:\n"
" --constants constant domain\n"
" --intervals interval domain\n"
" --non-null non-null domain\n"
" --intervals, --show-intervals\n"
Copy link
Member

Choose a reason for hiding this comment

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

💡 Looks as if there should be a common definition of these options somewhere. Non-blocking.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ack, but actually there's quite a lot more that seems to be duplicated across goto-analyzer and janalyzer. A variant of goto-checker would be nice :-) So I'll leave this as-is for now, but will put it in my backlog.

Copy link
Collaborator

Choose a reason for hiding this comment

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

A. There is a lot that could be refactored between the two. I guess I hadn't because of concern about breaking out-of-tree janalyzer patches. But, yeah, could look at that post-marking.
B. The --show-* options are legacy. The goal is to "orthogonalize" the options so it is --show --intervals. I would rather these were removed (along with their complex option parsing) than documented.

@tautschnig tautschnig merged commit b8e1053 into diffblue:develop Jun 14, 2022
@tautschnig tautschnig deleted the cleanup/analyzers-help branch June 14, 2022 22:00
Copy link
Collaborator

@martin-cs martin-cs left a comment

Choose a reason for hiding this comment

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

Great stuff; minor gripe.

@@ -757,8 +759,9 @@ void janalyzer_parse_optionst::help()
"\n"
"Domain options:\n"
" --constants constant domain\n"
" --intervals interval domain\n"
" --non-null non-null domain\n"
" --intervals, --show-intervals\n"
Copy link
Collaborator

Choose a reason for hiding this comment

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

A. There is a lot that could be refactored between the two. I guess I hadn't because of concern about breaking out-of-tree janalyzer patches. But, yeah, could look at that post-marking.
B. The --show-* options are legacy. The goal is to "orthogonalize" the options so it is --show --intervals. I would rather these were removed (along with their complex option parsing) than documented.

@tautschnig
Copy link
Collaborator Author

I've removed the two --show-* options in #6932 (there's still --show-taint and --show-local-may-alias for these appear to be handled differently).

@martin-cs
Copy link
Collaborator

@tautschnig Thank you!

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.

4 participants