2 #include <symengine/assumptions.h>
4 #include <symengine/test_visitors.h>
17 : assumptions_(assumptions)
21 void bvisit(
const Basic &x){};
24 is_zero_ = tribool::indeterminate;
29 is_zero_ = tribool::trifalse;
34 is_zero_ = tribool::tritrue;
39 tribool current = tribool::tritrue;
40 for (
auto &e : x.get_container()) {
41 tribool next = is_zero(*e, assumptions_);
46 current = andwk_tribool(current, next);
54 is_zero_ = tribool::tritrue;
55 for (
auto &e : x.get_values()) {
56 is_zero_ = and_tribool(is_zero_, visitor.apply(*e));
57 if (is_false(is_zero_)) {
65 is_zero_ = tribool::indeterminate;
78 return visitor.apply(m);
The base class for SymEngine.
The lowest unit of symbolic representation.
Main namespace for SymEngine package.