Fix printing of stats when aborted. (#6362)
authorGereon Kremer <gereon.kremer@cs.rwth-aachen.de>
Thu, 15 Apr 2021 19:30:49 +0000 (21:30 +0200)
committerGitHub <noreply@github.com>
Thu, 15 Apr 2021 19:30:49 +0000 (19:30 +0000)
commit63647b1d79df6f287ea6599958b16fce44b8271d
treeb16d4c6c76f74a63c7695fdd7c03c4bd05501ee2
parent1bbcce82a9b8c122a0921a46265534e796047faa
Fix printing of stats when aborted. (#6362)

This PR improves/fixes printing of statistics when the solver has been aborted, i.e. when we use printSafe(), and a few other minor issues with the new statistics setup.

add toString() methods for TypeConstant, api::Kind to allow for automatic printing by print_safe<>()
improve kindToString() to avoid std::stringstream
fix newlines between statistics in printSafe()
make printing of histograms consistent
make --stats-all, --stats-expert and --stats-every-check automatically enable --stats (and vice versa)
src/api/cpp/cvc5.cpp
src/expr/kind_template.cpp
src/expr/kind_template.h
src/expr/mkkind
src/options/base_options.toml
src/options/options_handler.cpp
src/options/options_handler.h
src/util/statistics_registry.cpp
src/util/statistics_value.h