mirror of
https://github.com/Z3Prover/z3
synced 2025-04-25 18:15:32 +00:00
add compare() to nla_expr
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
0b86a282e4
commit
8ed865e447
4 changed files with 59 additions and 10 deletions
|
@ -84,11 +84,12 @@ void test_cn() {
|
|||
typedef horner::nex nex;
|
||||
enable_trace("nla_cn");
|
||||
enable_trace("nla_cn_details");
|
||||
enable_trace("nla_cn_cn");
|
||||
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*a*c*c*d + a*d*d + e*a*e + e*a*c + e*d;
|
||||
test_cn_on_expr(t);
|
||||
test_cn_on_expr(a*b*d + a*b*c);
|
||||
test_cn_on_expr(a*b*d + a*b*c + c*b*d);
|
||||
// nex t = a*a*d + a*b*c*d + a*a*c*c*d + a*d*d + e*a*e + e*a*c + e*d;
|
||||
// test_cn_on_expr(t);
|
||||
}
|
||||
|
||||
} // end of namespace nla
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue