mirror of
https://github.com/Z3Prover/z3
synced 2025-07-30 16:03:16 +00:00
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
afaef63bfa
commit
7eaa5562d8
2 changed files with 5 additions and 0 deletions
|
@ -55,6 +55,8 @@ Version 4.3.2
|
||||||
|
|
||||||
- Fixed bug reported at http://stackoverflow.com/questions/14307692/unknown-when-using-defs
|
- Fixed bug reported at http://stackoverflow.com/questions/14307692/unknown-when-using-defs
|
||||||
|
|
||||||
|
- Relax check_logic procedure. Now, it accepts coercions (to_real) automatically introduced by Z3. (Thanks to Paul Jackson). This is a fix for http://z3.codeplex.com/workitem/19.
|
||||||
|
|
||||||
Version 4.3.1
|
Version 4.3.1
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
|
|
@ -228,6 +228,9 @@ struct check_logic::imp {
|
||||||
bool is_int(expr * t) {
|
bool is_int(expr * t) {
|
||||||
if (m_a_util.is_uminus(t))
|
if (m_a_util.is_uminus(t))
|
||||||
t = to_app(t)->get_arg(0);
|
t = to_app(t)->get_arg(0);
|
||||||
|
// Take care of coercions automatically added by Z3
|
||||||
|
if (m_a_util.is_to_real(t))
|
||||||
|
t = to_app(t)->get_arg(0);
|
||||||
return m_a_util.is_numeral(t);
|
return m_a_util.is_numeral(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue