mirror of
https://github.com/Z3Prover/z3
synced 2025-11-06 14:26:03 +00:00
remove some non-deterministic behavior in theory_lra.cpp
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
a1918c4630
commit
37c9f1c7c2
53 changed files with 217 additions and 11 deletions
|
|
@ -1714,7 +1714,7 @@ ast * ast_manager::register_node_core(ast * n) {
|
|||
}
|
||||
|
||||
n->m_id = is_decl(n) ? m_decl_id_gen.mk() : m_expr_id_gen.mk();
|
||||
|
||||
|
||||
// track_id(*this, n, 9213);
|
||||
|
||||
// TRACE(ast, tout << (s_count++) << " Object " << n->m_id << " was created.\n";);
|
||||
|
|
@ -2131,8 +2131,10 @@ expr* ast_manager::coerce_to(expr* e, sort* s) {
|
|||
if (s != se && s->get_family_id() == arith_family_id && is_bool(e)) {
|
||||
arith_util au(*this);
|
||||
if (s->get_decl_kind() == REAL_SORT)
|
||||
// TODO: non-deterministic parameter evaluation
|
||||
return mk_ite(e, au.mk_real(1), au.mk_real(0));
|
||||
else
|
||||
// TODO: non-deterministic parameter evaluation
|
||||
return mk_ite(e, au.mk_int(1), au.mk_int(0));
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue