Lib/Liveness/LiveSet.cpp
/**
 * Debug function to output the contents of the possible-vector
 *
 * Returns a string of 0's and 1's for each slot in the possible-vector.
 * - '0' - in use, not available for assignment for variable with index 'index'.
 * - '1' - not in use, available for assignment
 *
 * This falls under the category "You probably don't need it, but when you need it, you need it bad".
 *
 * @param index - index value of current variable displayed. If `-1`, don't show. For display purposes only.
 */
Debug function to output the contents of the possible-vector
Returns a string of 0's and 1's for each slot in the possible-vector.
- '0' - in use, not available for assignment for variable with index 'index'.
- '1' - not in use, available for assignment

This falls under the category "You probably don't need it, but when you need it, you need it bad".

@param index - index value of current variable displayed.
Debug function to output the contents of the possible - vector Returns a string of 0 ' s and 1 ' s for each slot in the possible - vector . - ' 0 ' - in use not available for assignment for variable with index ' index ' . - ' 1 ' - not in use available for assignment This falls under the category " You probably don ' t need it but when you need it you need it bad " . @param index - index value of current variable displayed .
void LiveSets::dump_possible(std::vector<bool> &possible, int index) {
  std::string buf = "possible: ";
  if (index >= 0) {
    if (index < 10) buf << "  ";
    else if (index < 100) buf << " ";
    buf << index;
  }
  buf << ": ";
  for (int j = 0; j < (int) possible.size(); j++) {
    buf << (possible[j]?"1":"0");
  }
  debug(buf.c_str());
}
void LiveSets :: dump_possible ( std :: vector < bool > & possible , int index ) { std :: string buf = " " ; if ( index >= 0 ) { if ( index < 10 ) buf << " " ; else if ( index < 100 ) buf << " " ; buf << index ; } buf << " " ; for ( int j = 0 ; j < ( int ) possible . size ( ) ; j ++ ) { buf << ( possible [ j ] ? " " : " " ) ; } debug ( buf . c_str ( ) ) ; }
Debug function to output the contents of the possible-vector
 Returns a string of 0's and 1's for each slot in the possible-vector.
Debug function to output the contents of the possible - vector Returns a string of 0 ' s and 1 ' s for each slot in the possible - vector .