mirror of
https://github.com/Z3Prover/z3
synced 2025-04-25 10:05:32 +00:00
work on horner form
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
b6a99d515b
commit
54be45d818
3 changed files with 4 additions and 3 deletions
|
@ -72,7 +72,8 @@ void test_cn() {
|
|||
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 t = a*a*d + a*b*c*d + a*c*c*d + e*a*e + e*a*c + e*d;
|
||||
nex t = a*a*d + a*b*c*d + a*c*c*d + a*d*d + e*a*e + e*a*c + e*d;
|
||||
std::cout << "t = " << t << "\n";
|
||||
TRACE("nla_cn", tout << "t=" << t << '\n';);
|
||||
cross_nested cn(t, [](const nex& n) { std::cout << n << "\n"; } );
|
||||
cn.run();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue