mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
properly quote symbols #1061
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
f0fa439c48
commit
6bce173248
|
@ -149,7 +149,14 @@ ATOMIC_CMD(get_assignment_cmd, "get-assignment", "retrieve assignment", {
|
||||||
first = false;
|
first = false;
|
||||||
else
|
else
|
||||||
ctx.regular_stream() << " ";
|
ctx.regular_stream() << " ";
|
||||||
ctx.regular_stream() << "(" << escaped(name.str().c_str()) << " " << (ctx.m().is_true(val) ? "true" : "false") << ")";
|
ctx.regular_stream() << "(";
|
||||||
|
if (is_smt2_quoted_symbol(name)) {
|
||||||
|
ctx.regular_stream() << mk_smt2_quoted_symbol(name);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
ctx.regular_stream() << name;
|
||||||
|
}
|
||||||
|
ctx.regular_stream() << " " << (ctx.m().is_true(val) ? "true" : "false") << ")";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue