| 17 | namespace { |
| 18 | |
| 19 | bool is_opr_mutable(OperatorNodeBase* opr) { |
| 20 | for (auto&& i : opr->input()) { |
| 21 | if (!is_const_var_value(i)) { |
| 22 | return true; |
| 23 | } |
| 24 | } |
| 25 | for (auto&& i : opr->output()) { |
| 26 | if (!i->contain_flag(VarNode::Flag::VOLATILE_CONTENT) && |
| 27 | !is_const_var_value(i)) { |
| 28 | return true; |
| 29 | } |
| 30 | } |
| 31 | return false; |
| 32 | } |
| 33 | |
| 34 | } // namespace |
| 35 |
no test coverage detected