mirror of
https://github.com/Z3Prover/z3
synced 2025-04-06 01:24:08 +00:00
add some version information (and date) to log file to make it easier to trap version mismatch on log files
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
e4a00f6f6f
commit
b303fd59c0
|
@ -34,7 +34,7 @@ project(Z3 C CXX)
|
|||
set(Z3_VERSION_MAJOR 4)
|
||||
set(Z3_VERSION_MINOR 4)
|
||||
set(Z3_VERSION_PATCH 2)
|
||||
set(Z3_VERSION_TWEAK 0)
|
||||
set(Z3_VERSION_TWEAK 1)
|
||||
set(Z3_VERSION "${Z3_VERSION_MAJOR}.${Z3_VERSION_MINOR}.${Z3_VERSION_PATCH}.${Z3_VERSION_TWEAK}")
|
||||
message(STATUS "Z3 version ${Z3_VERSION}")
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ from mk_util import *
|
|||
|
||||
# Z3 Project definition
|
||||
def init_project_def():
|
||||
set_version(4, 4, 2, 0)
|
||||
set_version(4, 4, 2, 1)
|
||||
add_lib('util', [])
|
||||
add_lib('polynomial', ['util'], 'math/polynomial')
|
||||
add_lib('sat', ['util'])
|
||||
|
|
|
@ -20,6 +20,7 @@ Revision History:
|
|||
#include"z3.h"
|
||||
#include"api_log_macros.h"
|
||||
#include"util.h"
|
||||
#include"version.h"
|
||||
|
||||
std::ostream * g_z3_log = 0;
|
||||
bool g_z3_log_enabled = false;
|
||||
|
@ -35,6 +36,8 @@ extern "C" {
|
|||
g_z3_log = 0;
|
||||
return Z3_FALSE;
|
||||
}
|
||||
*g_z3_log << "V \"" << Z3_MAJOR_VERSION << "." << Z3_MINOR_VERSION << "." << Z3_BUILD_NUMBER << "." << Z3_REVISION_NUMBER << " " << __DATE__ << "\"\n";
|
||||
g_z3_log->flush();
|
||||
return Z3_TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -415,6 +415,10 @@ struct z3_replayer::imp {
|
|||
if (c == EOF)
|
||||
return;
|
||||
switch (c) {
|
||||
case 'V':
|
||||
// version
|
||||
next(); skip_blank(); read_string();
|
||||
break;
|
||||
case 'R':
|
||||
// reset
|
||||
next();
|
||||
|
|
Loading…
Reference in a new issue