3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +00:00

fix infinite loop in internalize

This commit is contained in:
Nuno Lopes 2022-09-14 11:50:53 +01:00
parent 34969b71ee
commit 16ef89905d
2 changed files with 18 additions and 19 deletions

View file

@ -28,7 +28,7 @@ extern "C" {
RESET_ERROR_CODE();
std::ostringstream buffer;
to_stats_ref(s).display_smt2(buffer);
std::string result = buffer.str();
std::string result = std::move(buffer).str();
// Hack for removing the trailing '\n'
SASSERT(result.size() > 0);
result.resize(result.size()-1);