substituteList (circCell) {
  while (*libCell = iterator.getnext()) {
    if ((cell = HVT) && (circCellFunction = libCellFunction)
    && (libCellFanout < circCellFanout) && (libCellFanout >
    circCellFanout/2)) {
      substituteList.insert(iterator++, libCell).
    }
Algorithm 2: Pseudocode for the creation of the list of substitute candidates.