mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +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
4 changed files with 9 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue