Skip to content
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

Minor question: Some non-error normal output is output into stderr instead of stdout #24

Open
5nizza opened this issue Feb 3, 2023 · 1 comment

Comments

@5nizza
Copy link

5nizza commented Feb 3, 2023

When the spec is realisable, the tool outputs the result into stderr instead of stdout.
Should it be std::cout instead of std::cerr? It seems as a normal-operation output, not an error. Unless it is by convention.
(when checking the tool performed as expected I check that stderr is empty; here it is not.)

extensionInteractiveStrategy.hpp
56:            std::cerr << "RESULT: Specification is realizable.\n";

extensionNondeterministicMotion.hpp
496:            std::cerr << "RESULT: Specification is realizable.\n";

synthesisContextBasics.cpp
112:        std::cerr << "RESULT: Specification is realizable.\n";
@progirep
Copy link
Contributor

Hi Ayrat.

Good point, but there is a reason. Only the computed strategy is output to STDOUT to allow it to be redirected to a file. Otherwise, the strategy file would have a stray "RESULT: Specification is realizable" at the top.

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

No branches or pull requests

2 participants