mirror of
https://github.com/Z3Prover/z3
synced 2026-06-02 15:17:54 +00:00
more logging for when arith_value fails
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
a5c01dcddb
commit
af2769dbc0
1 changed files with 2 additions and 0 deletions
|
|
@ -513,6 +513,7 @@ namespace smt {
|
||||||
expr_ref len_expr(m_seq.str.mk_length(var->get_expr()), m);
|
expr_ref len_expr(m_seq.str.mk_length(var->get_expr()), m);
|
||||||
rational len_val;
|
rational len_val;
|
||||||
bool has_len = avalue.get_value(len_expr, len_val);
|
bool has_len = avalue.get_value(len_expr, len_val);
|
||||||
|
CTRACE(seq, !has_len, tout << "no value associated with " << mk_pp(len_expr, m) << "\n";);
|
||||||
|
|
||||||
if (has_len && len_val.is_unsigned()) {
|
if (has_len && len_val.is_unsigned()) {
|
||||||
unsigned n = len_val.get_unsigned();
|
unsigned n = len_val.get_unsigned();
|
||||||
|
|
@ -542,6 +543,7 @@ namespace smt {
|
||||||
arith_value avalue(m);
|
arith_value avalue(m);
|
||||||
avalue.init(&m_ctx);
|
avalue.init(&m_ctx);
|
||||||
bool has_len = avalue.get_value(len_expr, len_val);
|
bool has_len = avalue.get_value(len_expr, len_val);
|
||||||
|
CTRACE(seq, !has_len, tout << "no value associated with " << mk_pp(len_expr, m) << "\n";);
|
||||||
|
|
||||||
|
|
||||||
if (has_len) {
|
if (has_len) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue