@@ -662,7 +662,8 @@ void testNames() {
662662 printf ("Row %" HIGHSINT_FORMAT " has name %s\n" , iRow , name_p );
663663 }
664664
665- // Check extraction of names for the presolved LP
665+ // Check extraction of names for the presolved LP, in which the
666+ // first row is removed
666667 Highs_presolve (highs );
667668 if (dev_run ) Highs_writePresolvedModel (highs , "" );
668669
@@ -671,25 +672,23 @@ void testNames() {
671672 assert (presolved_num_col == num_col );
672673 assert (presolved_num_row == num_row - 1 );
673674 for (HighsInt iCol = 0 ; iCol < presolved_num_col ; iCol ++ ) {
674- char name [5 ];
675- char * name_p = name ;
676- return_status = Highs_getPresolvedColName (highs , iCol , name_p );
675+ char presolved_name [5 ];
676+ char * presolved_name_p = presolved_name ;
677+ return_status = Highs_getPresolvedColName (highs , iCol , presolved_name_p );
677678 assert (return_status == kHighsStatusOk );
678679 if (dev_run )
679- printf ("Presolved column %" HIGHSINT_FORMAT " has name %s\n" , iCol , name_p );
680+ printf ("Presolved column %" HIGHSINT_FORMAT " has name %s\n" , iCol , presolved_name_p );
680681 }
681682
682683 for (HighsInt iRow = 0 ; iRow < presolved_num_row ; iRow ++ ) {
683- char name [5 ];
684- char * name_p = name ;
685- return_status = Highs_getPresolvedRowName (highs , iRow , name_p );
684+ char presolved_name [5 ];
685+ char * presolved_name_p = presolved_name ;
686+ return_status = Highs_getPresolvedRowName (highs , iRow , presolved_name_p );
686687 assert (return_status == kHighsStatusOk );
687688 if (dev_run )
688- printf ("Presolved row %" HIGHSINT_FORMAT " has name %s\n" , iRow , name_p );
689+ printf ("Presolved row %" HIGHSINT_FORMAT " has name %s\n" , iRow , presolved_name_p );
689690 }
690691
691-
692-
693692 Highs_destroy (highs );
694693}
695694
0 commit comments