3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-29 23:43:15 +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

@ -1245,12 +1245,8 @@ void proof_checker::dump_proof(proof const* pr) {
}
void proof_checker::dump_proof(unsigned num_antecedents, expr * const * antecedents, expr * consequent) {
char buffer[128];
#ifdef _WINDOWS
sprintf_s(buffer, Z3_ARRAYSIZE(buffer), "proof_lemma_%d.smt2", m_proof_lemma_id);
#else
sprintf(buffer, "proof_lemma_%d.smt2", m_proof_lemma_id);
#endif
std::string buffer;
buffer = "proof_lemma_" + std::to_string(m_proof_lemma_id) + ".smt2";
std::ofstream out(buffer);
ast_smt_pp pp(m);
pp.set_benchmark_name("lemma");