MCPcopy Create free account
hub / github.com/csmith-project/csmith / make_print_index_str

Method make_print_index_str

src/ArrayVariable.cpp:755–772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

753}
754
755string
756ArrayVariable::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

Callers

nothing calls this directly

Calls 1

get_actual_nameMethod · 0.80

Tested by

no test coverage detected