| 753 | } |
| 754 | |
| 755 | string |
| 756 | ArrayVariable::make_print_index_str(const vector<const Variable *> &cvs) const |
| 757 | { |
| 758 | size_t i; |
| 759 | string str = "printf(\"index = "; |
| 760 | for (i=0; i<get_dimension(); i++) { |
| 761 | str += "[%d]"; |
| 762 | } |
| 763 | str += "\\n\", "; |
| 764 | for (i=0; i<get_dimension(); i++) { |
| 765 | if (i) { |
| 766 | str += ", "; |
| 767 | } |
| 768 | str += cvs[i]->get_actual_name(); |
| 769 | } |
| 770 | str += ");"; |
| 771 | return str; |
| 772 | } |
| 773 | |
| 774 | /* ------------------------------------------------------------- |
| 775 | * hash all array items |
nothing calls this directly
no test coverage detected