function process_ir (scope_data) {
  var replaced = 0;

  scope_data.scopes.forEach(function (scope) {
    for (var i = 0; i < scope.get_computable_count(); i++) {
      var computable = scope.get_computable(i);
      if (removeable(computable)) {
        remove_and_replace(computable);
        replaced++;
      }
    }
  });

  if (replaced) {
    var name = 'InsertInitializedElement' + (replaced === 1 ? '' : 's');
    console.log('Replaced', replaced, name + '.');
  }

  return scope_data;
}
/**
 * This optimization locates any InsertInitializedElement computables that
 * exist in the same scope as their element input, then removes and/or
 * replaces those InsertInitializedElement computables by wiring the input
 * element directly.
 *
 * @param {Object} scope_data
 * @returns {Object} optimized scope_data
 */
This optimization locates any InsertInitializedElement computables that
exist in the same scope as their element input, then removes and/or
replaces those InsertInitializedElement computables by wiring the input
element directly.

@param {Object} scope_data
@returns {Object} optimized scope_data
This optimization locates any InsertInitializedElement computables that exist in the same scope as their element input then removes and / or replaces those InsertInitializedElement computables by wiring the input element directly . @param { Object } scope_data @returns { Object } optimized scope_data
function process_ir (scope_data) {
  var replaced = 0;
  scope_data.scopes.forEach(function (scope) {
    for (var i = 0; i < scope.get_computable_count(); i++) {
      var computable = scope.get_computable(i);
      if (removeable(computable)) {
        remove_and_replace(computable);
        replaced++;
      }
    }
  });
  if (replaced) {
    var name = 'InsertInitializedElement' + (replaced === 1 ? '' : 's');
    console.log('Replaced', replaced, name + '.');
  }
  return scope_data;
}
function process_ir ( scope_data ) { var replaced = 0 ; scope_data . scopes . forEach ( function ( scope ) { for ( var i = 0 ; i < scope . get_computable_count ( ) ; i ++ ) { var computable = scope . get_computable ( i ) ; if ( removeable ( computable ) ) { remove_and_replace ( computable ) ; replaced ++ ; } } } ) ; if ( replaced ) { var name = 'InsertInitializedElement' + ( replaced === 1 ? '' : 's' ) ; console . log ( 'Replaced' , replaced , name + '.' ) ; } return scope_data ; }
This optimization locates any InsertInitializedElement computables that
 exist in the same scope as their element input, then removes and/or
 replaces those InsertInitializedElement computables by wiring the input
 element directly.
This optimization locates any InsertInitializedElement computables that exist in the same scope as their element input then removes and / or replaces those InsertInitializedElement computables by wiring the input element directly .