mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
create as_bin as_hex wrappers for display
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
999e67df0d
commit
59b18d4a14
3 changed files with 33 additions and 9 deletions
|
@ -188,7 +188,7 @@ extern "C" {
|
|||
bool ok = Z3_get_numeral_rational(c, a, r);
|
||||
if (ok && r.is_int() && !r.is_neg()) {
|
||||
std::stringstream strm;
|
||||
r.display_bin(strm, r.get_num_bits());
|
||||
strm << r.as_bin(r.get_num_bits());
|
||||
return mk_c(c)->mk_external_string(std::move(strm).str());
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue