mirror of
https://github.com/Z3Prover/z3
synced 2025-07-19 19:02:02 +00:00
simplify th_rewriter::mk_eq_value()
This commit is contained in:
parent
9e4b9ea98b
commit
0286cee450
1 changed files with 5 additions and 8 deletions
|
@ -212,15 +212,12 @@ struct th_rewriter_cfg : public default_rewriter_cfg {
|
||||||
|
|
||||||
// auxiliary function for pull_ite_core
|
// auxiliary function for pull_ite_core
|
||||||
expr * mk_eq_value(expr * lhs, expr * value) {
|
expr * mk_eq_value(expr * lhs, expr * value) {
|
||||||
SASSERT(m().is_value(value));
|
|
||||||
if (m().is_value(lhs)) {
|
|
||||||
if (m().are_equal(lhs, value)) {
|
if (m().are_equal(lhs, value)) {
|
||||||
return m().mk_true();
|
return m().mk_true();
|
||||||
}
|
}
|
||||||
else if (m().are_distinct(lhs, value)) {
|
else if (m().are_distinct(lhs, value)) {
|
||||||
return m().mk_false();
|
return m().mk_false();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return m().mk_eq(lhs, value);
|
return m().mk_eq(lhs, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue