Skip to content

Add an output stream to goto-harness for parse_options_baset #3984

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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/goto-harness/goto_harness_parse_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ void goto_harness_parse_optionst::help()
goto_harness_parse_optionst::goto_harness_parse_optionst(
int argc,
const char *argv[])
: parse_options_baset{GOTO_HARNESS_OPTIONS, argc, argv}
: parse_options_baset{GOTO_HARNESS_OPTIONS, argc, argv, ui_message_handler},
ui_message_handler(cmdline, std::string("GOTO-HARNESS ") + CBMC_VERSION)
{
}
9 changes: 9 additions & 0 deletions src/goto-harness/goto_harness_parse_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Author: Diffblue Ltd.
#define CPROVER_GOTO_HARNESS_GOTO_HARNESS_PARSE_OPTIONS_H

#include <util/parse_options.h>
#include <util/ui_message.h>

#define GOTO_HARNESS_OPTIONS "(version)" // end GOTO_HARNESS_OPTIONS

Expand All @@ -20,6 +21,14 @@ class goto_harness_parse_optionst : public parse_options_baset
void help() override;

goto_harness_parse_optionst(int argc, const char *argv[]);

protected:
ui_message_handlert ui_message_handler;

ui_message_handlert::uit get_ui()
{
return ui_message_handler.get_ui();
}
};

#endif // CPROVER_GOTO_HARNESS_GOTO_HARNESS_PARSE_OPTIONS_H