mirror of
https://github.com/Z3Prover/z3
synced 2025-07-19 10:52:02 +00:00
Forgotten file
This commit is contained in:
parent
2513deb817
commit
c9f2f6f110
1 changed files with 25 additions and 25 deletions
|
@ -2089,31 +2089,31 @@ public:
|
||||||
|
|
||||||
nla::lemma m_lemma;
|
nla::lemma m_lemma;
|
||||||
|
|
||||||
lp::lar_term mk_term(nla::polynomial const& poly) {
|
// lp::lar_term mk_term(nla::polynomial const& poly) {
|
||||||
lp::lar_term term;
|
// lp::lar_term term;
|
||||||
for (auto const& mon : poly) {
|
// for (auto const& mon : poly) {
|
||||||
SASSERT(!mon.empty());
|
// SASSERT(!mon.empty());
|
||||||
if (mon.size() == 1) {
|
// if (mon.size() == 1) {
|
||||||
term.add_var(mon[0]);
|
// term.add_var(mon[0]);
|
||||||
}
|
// }
|
||||||
else {
|
// else {
|
||||||
// create the expression corresponding to the product.
|
// // create the expression corresponding to the product.
|
||||||
// internalize it.
|
// // internalize it.
|
||||||
// extract the theory var representing the product.
|
// // extract the theory var representing the product.
|
||||||
// convert the theory var back to lpvar
|
// // convert the theory var back to lpvar
|
||||||
expr_ref_vector mul(m);
|
// expr_ref_vector mul(m);
|
||||||
for (lpvar v : mon) {
|
// for (lpvar v : mon) {
|
||||||
theory_var w = lp().local_to_external(v);
|
// theory_var w = lp().local_to_external(v);
|
||||||
mul.push_back(get_enode(w)->get_owner());
|
// mul.push_back(get_enode(w)->get_owner());
|
||||||
}
|
// }
|
||||||
app_ref t(a.mk_mul(mul.size(), mul.c_ptr()), m);
|
// app_ref t(a.mk_mul(mul.size(), mul.c_ptr()), m);
|
||||||
VERIFY(internalize_term(t));
|
// VERIFY(internalize_term(t));
|
||||||
theory_var w = ctx().get_enode(t)->get_th_var(get_id());
|
// theory_var w = ctx().get_enode(t)->get_th_var(get_id());
|
||||||
term.add_var(lp().external_to_local(w));
|
// term.add_var(lp().external_to_local(w));
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
return term;
|
// return term;
|
||||||
}
|
// }
|
||||||
|
|
||||||
void false_case_of_check_nla() {
|
void false_case_of_check_nla() {
|
||||||
literal_vector core;
|
literal_vector core;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue