mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 06:03:23 +00:00
Added git hashcode information to (get-info :version)
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
e10f256100
commit
06a4a3599d
1 changed files with 8 additions and 1 deletions
|
@ -547,6 +547,9 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define STRINGIZE(x) #x
|
||||||
|
#define STRINGIZE_VALUE_OF(x) STRINGIZE(x)
|
||||||
|
|
||||||
class get_info_cmd : public cmd {
|
class get_info_cmd : public cmd {
|
||||||
symbol m_error_behavior;
|
symbol m_error_behavior;
|
||||||
symbol m_name;
|
symbol m_name;
|
||||||
|
@ -584,7 +587,11 @@ public:
|
||||||
ctx.regular_stream() << "(:authors \"Leonardo de Moura and Nikolaj Bjorner\")" << std::endl;
|
ctx.regular_stream() << "(:authors \"Leonardo de Moura and Nikolaj Bjorner\")" << std::endl;
|
||||||
}
|
}
|
||||||
else if (opt == m_version) {
|
else if (opt == m_version) {
|
||||||
ctx.regular_stream() << "(:version \"" << Z3_MAJOR_VERSION << "." << Z3_MINOR_VERSION << "." << Z3_BUILD_NUMBER << "\")" << std::endl;
|
ctx.regular_stream() << "(:version \"" << Z3_MAJOR_VERSION << "." << Z3_MINOR_VERSION << "." << Z3_BUILD_NUMBER
|
||||||
|
#ifdef Z3GITHASH
|
||||||
|
<< " - build hashcode " << STRINGIZE_VALUE_OF(Z3GITHASH)
|
||||||
|
#endif
|
||||||
|
<< "\")" << std::endl;
|
||||||
}
|
}
|
||||||
else if (opt == m_status) {
|
else if (opt == m_status) {
|
||||||
ctx.regular_stream() << "(:status " << ctx.get_status() << ")" << std::endl;
|
ctx.regular_stream() << "(:status " << ctx.get_status() << ")" << std::endl;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue