Skip to content

check-invariant option doesn't exist anymore but is still in the help file #5227

Closed
@polgreen

Description

@polgreen

The check-invariant cmdline option is in the help file of goto-instrument and isn't actually implemented. Not sure if it got removed at some point or was never implemented.

CBMC version: 5.12 (cbmc-5.12-d8598f8-1417-gcccdfd9ba)
Operating system: MacOS

The command line option --check-invariant function instruments invariant checking function\n" is outputted when i run goto-instrument --help, but, as far as I can tell, it's not implemented in the code base anywhere. Trying to run goto-instrument with this command line option just results in goto-instrument outputting the help file.

I didgit grep check-invariant and it returns only the help file, so I don't think this cmdline option is actually implemented

goto-instrument/goto_instrument_parse_options.cpp:    " --check-invariant function   instruments invariant checking function\n"

Exact command line resulting in the issue: goto-instrument --check-invariant function file.gb
What behaviour did you expect: I don't know, but it should at least be a valid command line option
What happened instead: outputted the help file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions