| 703 | } |
| 704 | |
| 705 | void |
| 706 | Reducer::reduce_const_binary_ops(vector<const FunctionInvocationBinary*>& ops) |
| 707 | { |
| 708 | size_t i; |
| 709 | size_t len = ops.size(); |
| 710 | for (i=0; i<len; i++) { |
| 711 | const FunctionInvocationBinary* fi = ops[i]; |
| 712 | if (reduce_const_binary_op(fi)) { |
| 713 | ops.erase(ops.begin() + i); |
| 714 | i--; |
| 715 | len--; |
| 716 | } |
| 717 | } |
| 718 | } |
| 719 | |
| 720 | int |
| 721 | Reducer::find_binary_operations(const Statement* stm, vector<const FunctionInvocationBinary*>& ops, vector<int>& ids, bool no_ptr_cmp) |