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:
parent
34969b71ee
commit
16ef89905d
2 changed files with 18 additions and 19 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue