| 1739 | } |
| 1740 | |
| 1741 | bool Expr::isConstant() const { |
| 1742 | if (!isDeterministic()) { |
| 1743 | return false; |
| 1744 | } |
| 1745 | for (auto& input : inputs_) { |
| 1746 | if (!input->is<ConstantExpr>()) { |
| 1747 | return false; |
| 1748 | } |
| 1749 | } |
| 1750 | return true; |
| 1751 | } |
| 1752 | |
| 1753 | namespace { |
| 1754 |
no test coverage detected