mirror of
https://github.com/Z3Prover/z3
synced 2025-06-13 09:26:15 +00:00
add to_string method to make it easier to use without <<
This commit is contained in:
parent
7ce4be8455
commit
0c53c139da
2 changed files with 2 additions and 0 deletions
|
@ -599,6 +599,7 @@ namespace z3 {
|
||||||
iterator begin() const noexcept { return iterator(this, 0); }
|
iterator begin() const noexcept { return iterator(this, 0); }
|
||||||
iterator end() const { return iterator(this, size()); }
|
iterator end() const { return iterator(this, size()); }
|
||||||
friend std::ostream & operator<<(std::ostream & out, ast_vector_tpl const & v) { out << Z3_ast_vector_to_string(v.ctx(), v); return out; }
|
friend std::ostream & operator<<(std::ostream & out, ast_vector_tpl const & v) { out << Z3_ast_vector_to_string(v.ctx(), v); return out; }
|
||||||
|
std::string to_string() const { return std::string(Z3_ast_vector_to_string(ctx(), m_vector); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -451,6 +451,7 @@ namespace array {
|
||||||
expr_ref alpha(a.mk_select(args), m);
|
expr_ref alpha(a.mk_select(args), m);
|
||||||
expr_ref beta(alpha);
|
expr_ref beta(alpha);
|
||||||
rewrite(beta);
|
rewrite(beta);
|
||||||
|
TRACE("array", tout << alpha << " == " << beta << "\n";);
|
||||||
return ctx.propagate(e_internalize(alpha), e_internalize(beta), array_axiom());
|
return ctx.propagate(e_internalize(alpha), e_internalize(beta), array_axiom());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue