3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-01-23 18:44:02 +00:00

Fix missing newline after attributes in benchmark_to_smtlib_string (#8276)

Without this, when the attributes parameter doesn't end with a newline, the
subsequent (assert ...) statement gets concatenated to the attributes
comment line, producing invalid SMT-LIB.

Signed-off-by: Josh Berdine <josh@berdine.net>
This commit is contained in:
Josh Berdine 2026-01-22 03:45:48 +00:00 committed by GitHub
parent 083e4a4169
commit 4681c51413
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -977,7 +977,7 @@ void ast_smt_pp::display_smt2(std::ostream& strm, expr* n) {
strm << "(set-logic " << m_logic << ")\n";
}
if (!m_attributes.empty()) {
strm << "; " << m_attributes;
strm << "; " << m_attributes << "\n";
}
#if 0