function process (source_scope) {
  var scope_instances_count = source_scope.get_instance_count();
  var computable_count = source_scope.get_computable_count();
  var computables = [];
  var input_computables = [];
  var i, computable;

  // Seperate out input computables and internal computables
  for (i = 0; i < computable_count; i++) {
    computable = source_scope.get_computable(i);
    if (source_scope.is_input(computable)) {
      input_computables.push(computable);
    } else {
      computables.push(computable);
    }
  }

  computables = topologically_sort_computables(computables);
  for (i = scope_instances_count - 1; i !== -1;  i--) {
    var instance = source_scope.get_instance(i);
    if (instance_is_valid(instance)) {
      inline_scope_instance(source_scope, instance, computables, input_computables);
    }
  }
}
/**
 * Take a scope that can be inlined and clone all of its computables
 * into the scopes containing its instances.
 *
 * @param {Scope} source_scope The scope to inline
 */
Take a scope that can be inlined and clone all of its computables
into the scopes containing its instances.

@param {Scope} source_scope The scope to inline
Take a scope that can be inlined and clone all of its computables into the scopes containing its instances . @param { Scope } source_scope The scope to inline
function process (source_scope) {
  var scope_instances_count = source_scope.get_instance_count();
  var computable_count = source_scope.get_computable_count();
  var computables = [];
  var input_computables = [];
  var i, computable;
  for (i = 0; i < computable_count; i++) {
    computable = source_scope.get_computable(i);
    if (source_scope.is_input(computable)) {
      input_computables.push(computable);
    } else {
      computables.push(computable);
    }
  }
  computables = topologically_sort_computables(computables);
  for (i = scope_instances_count - 1; i !== -1;  i--) {
    var instance = source_scope.get_instance(i);
    if (instance_is_valid(instance)) {
      inline_scope_instance(source_scope, instance, computables, input_computables);
    }
  }
}
function process ( source_scope ) { var scope_instances_count = source_scope . get_instance_count ( ) ; var computable_count = source_scope . get_computable_count ( ) ; var computables = [ ] ; var input_computables = [ ] ; var i , computable ; for ( i = 0 ; i < computable_count ; i ++ ) { computable = source_scope . get_computable ( i ) ; if ( source_scope . is_input ( computable ) ) { input_computables . push ( computable ) ; } else { computables . push ( computable ) ; } } computables = topologically_sort_computables ( computables ) ; for ( i = scope_instances_count - 1 ; i !== - 1 ; i -- ) { var instance = source_scope . get_instance ( i ) ; if ( instance_is_valid ( instance ) ) { inline_scope_instance ( source_scope , instance , computables , input_computables ) ; } } }
Take a scope that can be inlined and clone all of its computables
 into the scopes containing its instances.
Take a scope that can be inlined and clone all of its computables into the scopes containing its instances .
// Seperate out input computables and internal computables