Skip to content

Commit 92f2e90

Browse files
committed
More complete version
Better version printing Print all versions systematically
1 parent f506278 commit 92f2e90

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

src/main.cpp

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ THE SOFTWARE.
4646
#include "mparity.hpp"
4747
#include "mcomplex.hpp"
4848
#include "mcomplex-mpfr.hpp"
49+
#include "approxmc.h"
4950

5051
using CMSat::StreamBuffer;
5152
using CMSat::DimacsParser;
@@ -99,17 +100,17 @@ FG fg = nullptr;
99100
string print_version()
100101
{
101102
std::stringstream ss;
102-
ss << "c o GANAK SHA revision " << GANAK::get_version_sha1() << endl;
103-
ss << "c o GANAK compilation env " << GANAK::get_compilation_env() << endl;
104-
#ifdef __GNUC__
105-
ss << "c o GANAK compiled with gcc version " << __VERSION__ << endl;
106-
#else
107-
ss << "c o GANAK compiled with non-gcc compiler" << endl;
108-
#endif
109-
ss << "c o CMS revision: " << CMSat::SATSolver::get_version_sha1() << endl;
110-
ss << "c o Arjun SHA revision: " << ArjunNS::Arjun ::get_version_info() << endl;
111-
ss << "c o Arjun SBVA SHA revision: " << ArjunNS::Arjun::get_sbva_version_info() << endl;
112-
103+
ss << "c o Ganak SHA: " << GANAK::get_version_sha1() << endl;
104+
ss << "c o Arjun SHA1: " << ArjunNS::Arjun::get_version_sha1() << endl;
105+
ss << "c o SBVA SHA1: " << ArjunNS::Arjun::get_sbva_version_sha1() << endl;
106+
ss << "c o CMS SHA1: " << CMSat::SATSolver::get_version_sha1() << endl;
107+
ss << "c o ApproxMC SHA1: " << ApproxMC::AppMC::get_version_sha1() << endl;
108+
ss << "c o BreakID SHA1: " << BID::BreakID::get_version_sha1() << endl;
109+
ss << ArjunNS::Arjun::get_thanks_info("c o ") << endl;
110+
ss << CMSat::SATSolver::get_thanks_info("c o ") << endl;
111+
ss << "c o Using Graph library by Tuukka Korhonen and Matti Jarvisalo" << endl;
112+
ss << "c o Using Flowcutter by Ben Strasser" << endl;
113+
ss << "c o Ganak compilation env " << GANAK::get_compilation_env() << endl;
113114
return ss.str();
114115
}
115116

0 commit comments

Comments
 (0)