3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-28 00:48:45 +00:00

work on horner

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2019-07-11 16:03:54 -07:00
parent ad9ecad73c
commit 23a825aff8
4 changed files with 51 additions and 219 deletions

View file

@ -69,11 +69,10 @@ void test_basic_lemma_for_mon_neutral_from_factors_to_monomial();
void test_cn() {
typedef horner::nex nex;
enable_trace("nla_cn");
// (a(a+(b+c)c+d)d + e(a(e+c)+d)
nex a = nex::var(0), b = nex::var(1), c = nex::var(2), d = nex::var(3), e = nex::var(4);
nex aad = nex::mul(a, a, d);
nex t = a*a*d + a*b*c*d + a*c*c*d + e*a*e + e*a*c + e*d;
TRACE("nla_cn", tout << "t=" << t << '\n';);
}
}