Changeset fd9ae1d for src/BasicTypesgen.cc
 Timestamp:
 Feb 24, 2019, 4:32:17 PM (3 years ago)
 Branches:
 aaronthesis, armeh, cleanupdtors, jacob/cs343translation, jenkinssandbox, master, newast, newastuniqueexpr, persistentindexer
 Children:
 5509ff4, 734ceb3e, 7abee38
 Parents:
 6ca6811
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

src/BasicTypesgen.cc
r6ca6811 rfd9ae1d 313 313 code << "\t" << BYMK << endl; 314 314 code << "\tstatic const int costMatrix[BasicType::NUMBER_OF_BASIC_TYPES][BasicType::NUMBER_OF_BASIC_TYPES] = { // path length from root to node" << endl 315 << "\t\t/* ";315 << "\t\t/* "; 316 316 for ( int r = 0; r < NUMBER_OF_BASIC_TYPES; r += 1 ) { // titles 317 code << setw( 4) << graph[r].abbrev << ' ';318 } // for 319 code << " */" << endl;317 code << setw(5) << graph[r].abbrev; 318 } // for 319 code << " */" << endl; 320 320 for ( int r = 0; r < NUMBER_OF_BASIC_TYPES; r += 1 ) { // costs 321 code << "\t\t/*" << setw(6) << graph[r].abbrev << "*/ ";321 code << "\t\t/*" << setw(6) << graph[r].abbrev << "*/ {"; 322 322 for ( int c = 0; c < NUMBER_OF_BASIC_TYPES; c += 1 ) { 323 code << setw( 3) << costMatrix[r][c] << ",";323 code << setw(4) << costMatrix[r][c] << ","; 324 324 } // for 325 code << endl;325 code << " }," << endl; 326 326 } // for 327 327 code << "\t}; // costMatrix" << endl; … … 335 335 code << "\t" << BYMK << endl; 336 336 code << "\tstatic const int signMatrix[BasicType::NUMBER_OF_BASIC_TYPES][BasicType::NUMBER_OF_BASIC_TYPES] = { // number of sign changes in safe conversion" << endl 337 << "\t\t/* ";337 << "\t\t/* "; 338 338 for ( int r = 0; r < NUMBER_OF_BASIC_TYPES; r += 1 ) { // titles 339 code << setw( 4) << graph[r].abbrev << ' ';340 } // for 341 code << " */" << endl;339 code << setw(5) << graph[r].abbrev; 340 } // for 341 code << " */" << endl; 342 342 for ( int r = 0; r < NUMBER_OF_BASIC_TYPES; r += 1 ) { // costs 343 code << "\t\t/*" << setw(6) << graph[r].abbrev << "*/ ";343 code << "\t\t/*" << setw(6) << graph[r].abbrev << "*/ {"; 344 344 for ( int c = 0; c < NUMBER_OF_BASIC_TYPES; c += 1 ) { 345 code << setw( 3) << signMatrix[r][c] << ",";345 code << setw(4) << signMatrix[r][c] << ","; 346 346 } // for 347 code << endl;347 code << " }," << endl; 348 348 } // for 349 349 code << "\t}; // signMatrix" << endl; … … 387 387 code << "}," << endl; 388 388 } // for 389 code << "\t}; " << endl;389 code << "\t}; // commonTypes" << endl; 390 390 code << "\t#undef BT" << endl; 391 391 code << "\t"; // indentation for end marker
Note: See TracChangeset
for help on using the changeset viewer.