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:
parent
083e4a4169
commit
4681c51413
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue