3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 17:44:08 +00:00

Display version number using new format

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2012-11-10 19:03:16 -08:00
parent caced62f40
commit a6db55d21f

View file

@ -214,16 +214,7 @@ void parse_cmd_line_args(int argc, char ** argv) {
exit(0);
}
if (strcmp(opt_name, "version") == 0) {
#ifdef _EXTERNAL_RELEASE
std::cout << "Z3 version " << Z3_MAJOR_VERSION << "." << Z3_MINOR_VERSION << "\n";
#else
std::cout
<< "Z3 version (major minor build revision): "
<< Z3_MAJOR_VERSION << " "
<< Z3_MINOR_VERSION << " "
<< Z3_BUILD_NUMBER << " "
<< Z3_REVISION_NUMBER << "\n";
#endif
std::cout << "Z3 version " << Z3_MAJOR_VERSION << "." << Z3_MINOR_VERSION << "." << Z3_BUILD_NUMBER << "\n";
exit(0);
}
else if (strcmp(opt_name, "smt") == 0) {