docs: void optimize(ScriptNode scriptOrFn)
      {
          //  run on one function at a time for now
          int functionCount = scriptOrFn.getFunctionCount();
          for (int i = 0; i != functionCount; ++i) {
              OptFunctionNode f = OptFunctionNode.get(scriptOrFn, i);
              optimizeFunction(f);
          }
      }