Skip to content

Commit cb1090a

Browse files
committed
Print all versions systematically
1 parent 6585594 commit cb1090a

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

src/main.cpp

Lines changed: 10 additions & 12 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,20 +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-
#ifdef __GNUC__
104-
ss << "c o GANAK compiled with gcc version " << __VERSION__ << endl;
105-
#else
106-
ss << "c o GANAK compiled with non-gcc compiler" << endl;
107-
#endif
108-
ss << "c o CMS revision: " << CMSat::SATSolver::get_text_version_info() << endl;
109-
ss << "c o Arjun SHA revision: " << ArjunNS::Arjun ::get_version_info() << endl;
110-
ss << "c o Arjun SBVA SHA revision: " << ArjunNS::Arjun::get_sbva_version_info() << endl;
111-
ss << "c o GANAK compilation env " << GANAK::get_compilation_env() << endl;
112-
ss << "c o Using Graph library by Tuukka Korhonen" << endl;
113-
ss << "c o Using Flowcutter by Ben Strasser" << endl;
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;
114109
ss << ArjunNS::Arjun::get_thanks_info("c o ") << endl;
115110
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;
116114
return ss.str();
117115
}
118116

0 commit comments

Comments
 (0)