mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
016732aa59
commit
39edf73e78
16 changed files with 222 additions and 162 deletions
|
@ -333,13 +333,8 @@ struct evaluator_cfg : public default_rewriter_cfg {
|
|||
return BR_REWRITE_FULL;
|
||||
}
|
||||
|
||||
rational r;
|
||||
if (is_decl_of(f, m_au.get_family_id(), OP_DIV) && m_au.is_numeral(args[1], r) && r.is_zero()) {
|
||||
result = m_au.mk_real(0);
|
||||
return BR_DONE;
|
||||
}
|
||||
if (is_decl_of(f, m_au.get_family_id(), OP_IDIV) && m_au.is_numeral(args[1], r) && r.is_zero()) {
|
||||
result = m_au.mk_int(0);
|
||||
if (m_au.is_considered_uninterpreted(f, num, args)) {
|
||||
result = m_au.mk_numeral(rational(0), f->get_range());
|
||||
return BR_DONE;
|
||||
}
|
||||
return BR_FAILED;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue