| 290 | } |
| 291 | |
| 292 | int |
| 293 | Reducer::find_missing_labels(const Statement* stm, const Statement* alt_stm, vector<string>& labels) |
| 294 | { |
| 295 | labels.clear(); |
| 296 | vector<string> labels1, labels2; |
| 297 | stm->find_contained_labels(labels1); |
| 298 | if (alt_stm) { |
| 299 | alt_stm->find_contained_labels(labels2); |
| 300 | } |
| 301 | size_t i; |
| 302 | for (i=0; i<labels1.size(); i++) { |
| 303 | string l = labels1[i]; |
| 304 | if (is_label_used(l)) { |
| 305 | if (std::find(labels2.begin(), labels2.end(), l) == labels2.end()) { |
| 306 | labels.push_back(l); |
| 307 | } |
| 308 | } |
| 309 | } |
| 310 | return labels.size(); |
| 311 | } |
| 312 | |
| 313 | void |
| 314 | Reducer::output_block_skeleton(const Block* blk, vector<const Block*>& work_blks, vector<const Function*>& work_funcs, std::ostream& out) |
no test coverage detected