3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2023-01-10 13:43:17 -08:00
parent a4d4e2e483
commit c3e31149a5
5 changed files with 15 additions and 23 deletions

View file

@ -516,13 +516,8 @@ namespace smt {
template<typename Ext>
void theory_arith<Ext>::display_bounds_in_smtlib() const {
char buffer[128];
static int id = 0;
#ifdef _WINDOWS
sprintf_s(buffer, Z3_ARRAYSIZE(buffer), "arith_%d.smt", id);
#else
sprintf(buffer, "arith_%d.smt", id);
#endif
std::string buffer = "arith_" + std::to_string(id) + ".smt2";
std::ofstream out(buffer);
display_bounds_in_smtlib(out);
out.close();