return true if two sets contains same variables
| 151 | |
| 152 | // return true if two sets contains same variables |
| 153 | bool equal_variable_sets(const vector<const Variable*>& set1, const vector<const Variable*>& set2) |
| 154 | { |
| 155 | size_t i; |
| 156 | if (set1.size() == set2.size()) { |
| 157 | for (i=0; i<set1.size(); i++) { |
| 158 | if (!is_variable_in_set(set2, set1[i])) { |
| 159 | return false; |
| 160 | } |
| 161 | } |
| 162 | return true; |
| 163 | } |
| 164 | return false; |
| 165 | } |
| 166 | |
| 167 | // return true if set1 is subset of set2, or equal |
| 168 | bool sub_variable_sets(const vector<const Variable*>& set1, const vector<const Variable*>& set2) |
no test coverage detected