PHP_METHOD(Test_SpectralNorm, process) { zend_function *_8 = NULL, *_9 = NULL, *_10 = NULL, *_14 = NULL, *_15 = NULL, *_19 = NULL, *_21 = NULL, *_23 = NULL, *_24 = NULL; zend_bool _4, _11, _16; zend_class_entry *_0, *_2, *_3; zval *n_param = NULL, *u, *v, *w, *_1 = NULL, *_7 = NULL, *_20 = NULL, *_22 = NULL, *_25 = NULL, _26; int n, i, vv = 0, vBv = 0, _5, _6, _12, _13, _17, _18; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &n_param); n = zephir_get_intval(n_param); ZEPHIR_INIT_VAR(u); _0 = zend_fetch_class(SL("SplFixedArray"), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(u, _0); ZEPHIR_INIT_VAR(_1); ZVAL_LONG(_1, n); zephir_call_method_p1_noret(u, "__construct", _1); ZEPHIR_INIT_VAR(v); _2 = zend_fetch_class(SL("SplFixedArray"), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(v, _2); ZEPHIR_INIT_BNVAR(_1); ZVAL_LONG(_1, n); zephir_call_method_p1_noret(v, "__construct", _1); ZEPHIR_INIT_VAR(w); _3 = zend_fetch_class(SL("SplFixedArray"), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); object_init_ex(w, _3); ZEPHIR_INIT_BNVAR(_1); ZVAL_LONG(_1, n); zephir_call_method_p1_noret(w, "__construct", _1); _6 = (n - 1); _5 = 0; _4 = 0; if ((_5 <= _6)) { while (1) { if (_4) { _5++; if (!((_5 <= _6))) { break; } } else { _4 = 1; } i = _5; ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, i); ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 1); zephir_call_method_p2_cache_noret(u, "offsetset", &_8, _1, _7); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, i); ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 1); zephir_call_method_p2_cache_noret(v, "offsetset", &_9, _1, _7); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, i); ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, 1); zephir_call_method_p2_cache_noret(w, "offsetset", &_10, _1, _7); } } _13 = 9; _12 = 0; _11 = 0; if ((_12 <= _13)) { while (1) { if (_11) { _12++; if (!((_12 <= _13))) { break; } } else { _11 = 1; } i = _12; ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, n); zephir_call_method_p4_cache_noret(this_ptr, "atau", &_14, _1, u, v, w); ZEPHIR_INIT_NVAR(_1); ZVAL_LONG(_1, n); zephir_call_method_p4_cache_noret(this_ptr, "atau", &_15, _1, v, u, w); } } _18 = (n - 1); _17 = 0; _16 = 0; if ((_17 <= _18)) { while (1) { if (_16) { _17++; if (!((_17 <= _18))) { break; } } else { _16 = 1; } i = _17; ZEPHIR_INIT_NVAR(_1); ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, i); zephir_call_method_p1_cache(_1, u, "offsetget", &_19, _7); ZEPHIR_INIT_NVAR(_7); ZEPHIR_INIT_NVAR(_20); ZVAL_LONG(_20, i); zephir_call_method_p1_cache(_7, v, "offsetget", &_21, _20); ZEPHIR_INIT_LNVAR(_22); mul_function(_22, _1, _7 TSRMLS_CC); vBv += zephir_get_numberval(_22); ZEPHIR_INIT_NVAR(_1); ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, i); zephir_call_method_p1_cache(_1, v, "offsetget", &_23, _7); ZEPHIR_INIT_NVAR(_7); ZEPHIR_INIT_NVAR(_20); ZVAL_LONG(_20, i); zephir_call_method_p1_cache(_7, v, "offsetget", &_24, _20); ZEPHIR_INIT_LNVAR(_25); mul_function(_25, _1, _7 TSRMLS_CC); vv += zephir_get_numberval(_25); } } ZEPHIR_SINIT_VAR(_26); ZVAL_LONG(&_26, (vBv / vv)); zephir_call_func_p1(return_value, "sqrt", &_26); RETURN_MM(); }
/** * Handles routing information received from the rewrite engine * *<code> * //Read the info from the rewrite engine * $router->handle(); * * //Manually passing an URL * $router->handle('/posts/edit/1'); *</code> * * @param string uri */ PHP_METHOD(Test_Router, handle) { zend_function *_8 = NULL, *_9 = NULL, *_11 = NULL, *_12 = NULL, *_14 = NULL; HashTable *_3, *_16; HashPosition _2, _15; zval *uri = NULL, *realUri = NULL, *request = NULL, *currentHostName = NULL, *routeFound = NULL, *parts = NULL, *params, *matches, *notFoundPaths, *vnamespace, *module, *controller, *action, *paramsStr, *strParams, *paramsMerge = NULL, *route = NULL, *methods = NULL, *dependencyInjector = NULL, *hostname = NULL, *regexHostName = NULL, *matched = NULL, *pattern = NULL, *handledUri = NULL, *beforeMatch = NULL, *paths = NULL, *converters = NULL, *part = NULL, *position = NULL, *matchPosition = NULL, *_0, *_1, **_4, *_5, *_6 = NULL, *_7 = NULL, *_10 = NULL, *_13 = NULL, **_17, *_18, *_19, *_20, *_21, *_22; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 0, 1, &uri); if (!uri) { uri = ZEPHIR_GLOBAL(global_null); } if (!(zephir_is_true(uri))) { ZEPHIR_INIT_VAR(realUri); zephir_call_method(realUri, this_ptr, "getrewriteuri"); } else { ZEPHIR_CPY_WRT(realUri, uri); } _0 = zephir_fetch_nproperty_this(this_ptr, SL("_removeExtraSlashes"), PH_NOISY_CC); if (zephir_is_true(_0)) { ZEPHIR_INIT_VAR(handledUri); zephir_call_method_p1(handledUri, this_ptr, "doremoveextraslashes", realUri); } else { ZEPHIR_CPY_WRT(handledUri, realUri); } ZEPHIR_INIT_VAR(request); ZVAL_NULL(request); ZEPHIR_INIT_VAR(currentHostName); ZVAL_NULL(currentHostName); ZEPHIR_INIT_VAR(routeFound); ZVAL_BOOL(routeFound, 0); ZEPHIR_INIT_VAR(parts); array_init(parts); ZEPHIR_INIT_VAR(params); array_init(params); ZEPHIR_INIT_VAR(matches); ZVAL_NULL(matches); zephir_update_property_this(this_ptr, SL("_wasMatched"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); zephir_update_property_this(this_ptr, SL("_matchedRoute"), ZEPHIR_GLOBAL(global_null) TSRMLS_CC); _1 = zephir_fetch_nproperty_this(this_ptr, SL("_routes"), PH_NOISY_CC); zephir_is_iterable(_1, &_3, &_2, 0, 1); for ( ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zend_hash_move_backwards_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(route, _4); ZEPHIR_INIT_NVAR(methods); zephir_call_method(methods, route, "gethttpmethods"); if ((Z_TYPE_P(methods) != IS_NULL)) { if ((Z_TYPE_P(request) == IS_NULL)) { _5 = zephir_fetch_nproperty_this(this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); ZEPHIR_CPY_WRT(dependencyInjector, _5); if ((Z_TYPE_P(dependencyInjector) != IS_OBJECT)) { ZEPHIR_INIT_LNVAR(_6); object_init_ex(_6, test_router_exception_ce); ZEPHIR_INIT_NVAR(_7); ZVAL_STRING(_7, "A dependency injection container is required to access the 'request' service", 1); zephir_call_method_p1_cache_noret(_6, "__construct", &_8, _7); zephir_throw_exception(_6 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } ZEPHIR_INIT_NVAR(_7); ZVAL_STRING(_7, "request", 1); ZEPHIR_INIT_NVAR(request); zephir_call_method_p1_cache(request, dependencyInjector, "getshared", &_9, _7); } ZEPHIR_INIT_NVAR(_7); zephir_call_method_p1(_7, request, "ismethod", methods); if (ZEPHIR_IS_FALSE(_7)) { continue; } } ZEPHIR_INIT_NVAR(hostname); zephir_call_method(hostname, route, "gethostname"); if ((Z_TYPE_P(hostname) != IS_NULL)) { if ((Z_TYPE_P(request) == IS_NULL)) { ZEPHIR_OBS_NVAR(dependencyInjector); zephir_read_property_this(&dependencyInjector, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); if ((Z_TYPE_P(dependencyInjector) != IS_OBJECT)) { ZEPHIR_INIT_LNVAR(_6); object_init_ex(_6, test_router_exception_ce); ZEPHIR_INIT_NVAR(_10); ZVAL_STRING(_10, "A dependency injection container is required to access the 'request' service", 1); zephir_call_method_p1_cache_noret(_6, "__construct", &_11, _10); zephir_throw_exception(_6 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } ZEPHIR_INIT_NVAR(_7); ZVAL_STRING(_7, "request", 1); ZEPHIR_INIT_NVAR(request); zephir_call_method_p1_cache(request, dependencyInjector, "getshared", &_12, _7); } if ((Z_TYPE_P(currentHostName) != IS_OBJECT)) { ZEPHIR_INIT_NVAR(currentHostName); zephir_call_method(currentHostName, request, "gethttphost"); } if ((Z_TYPE_P(currentHostName) != IS_NULL)) { continue; } ZEPHIR_INIT_NVAR(matched); if (zephir_memnstr_str(hostname, SL("("), "test/router.zep", 381)) { if (zephir_memnstr_str(hostname, SL("#"), "test/router.zep", 382)) { ZEPHIR_INIT_NVAR(regexHostName); ZEPHIR_CONCAT_SVS(regexHostName, "#^", hostname, "$#"); } else { ZEPHIR_CPY_WRT(regexHostName, hostname); } ZEPHIR_INIT_NVAR(_13); zephir_preg_match(matched, &(matched), regexHostName, currentHostName, _13, 0, 0 , 0 TSRMLS_CC); } else { ZVAL_BOOL(matched, ZEPHIR_IS_EQUAL(currentHostName, hostname)); } if (!(zephir_is_true(matched))) { continue; } } ZEPHIR_INIT_NVAR(pattern); zephir_call_method(pattern, route, "getcompiledpattern"); ZEPHIR_INIT_NVAR(routeFound); if (zephir_memnstr_str(pattern, SL("^"), "test/router.zep", 400)) { zephir_preg_match(routeFound, &(routeFound), pattern, handledUri, matches, 0, 0 , 0 TSRMLS_CC); } else { ZVAL_BOOL(routeFound, ZEPHIR_IS_EQUAL(pattern, handledUri)); } if (zephir_is_true(routeFound)) { ZEPHIR_INIT_NVAR(beforeMatch); zephir_call_method(beforeMatch, route, "getbeforematch"); if ((Z_TYPE_P(beforeMatch) != IS_NULL)) { if (zephir_is_callable(beforeMatch TSRMLS_CC)) { ZEPHIR_INIT_LNVAR(_6); object_init_ex(_6, test_router_exception_ce); ZEPHIR_INIT_NVAR(_7); ZVAL_STRING(_7, "Before-Match callback is not callable in matched route", 1); zephir_call_method_p1_cache_noret(_6, "__construct", &_14, _7); zephir_throw_exception(_6 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } } } if (zephir_is_true(routeFound)) { ZEPHIR_INIT_NVAR(paths); zephir_call_method(paths, route, "getpaths"); ZEPHIR_CPY_WRT(parts, paths); if ((Z_TYPE_P(matches) == IS_ARRAY)) { ZEPHIR_INIT_NVAR(converters); zephir_call_method(converters, route, "getconverters"); zephir_is_iterable(paths, &_16, &_15, 0, 0); for ( ; zend_hash_get_current_data_ex(_16, (void**) &_17, &_15) == SUCCESS ; zephir_hash_move_forward_ex(_16, &_15) ) { ZEPHIR_GET_HMKEY(part, _16, _15); ZEPHIR_GET_HVALUE(position, _17); ZEPHIR_OBS_NVAR(matchPosition); if (zephir_array_isset_fetch(&matchPosition, matches, position, 0 TSRMLS_CC)) { if ((Z_TYPE_P(converters) == IS_ARRAY)) { if (zephir_array_isset(converters, part)) { continue; } } zephir_array_update_zval(&parts, part, &matchPosition, PH_COPY | PH_SEPARATE); } else { if ((Z_TYPE_P(converters) == IS_ARRAY)) { if (zephir_array_isset(converters, part)) { } } } } zephir_update_property_this(this_ptr, SL("_matches"), matches TSRMLS_CC); } zephir_update_property_this(this_ptr, SL("_matchedRoute"), route TSRMLS_CC); break; } } if (zephir_is_true(routeFound)) { zephir_update_property_this(this_ptr, SL("_wasMatched"), (1) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); } else { zephir_update_property_this(this_ptr, SL("_wasMatched"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC); } if (!(zephir_is_true(routeFound))) { ZEPHIR_OBS_VAR(notFoundPaths); zephir_read_property_this(¬FoundPaths, this_ptr, SL("_notFoundPaths"), PH_NOISY_CC); if ((Z_TYPE_P(notFoundPaths) != IS_NULL)) { ZEPHIR_CPY_WRT(parts, notFoundPaths); ZEPHIR_INIT_BNVAR(routeFound); ZVAL_BOOL(routeFound, 1); } } if (zephir_is_true(routeFound)) { ZEPHIR_OBS_VAR(vnamespace); if (zephir_array_isset_string_fetch(&vnamespace, parts, SS("namespace"), 0 TSRMLS_CC)) { if (!(zephir_is_numeric(vnamespace))) { zephir_update_property_this(this_ptr, SL("_namespace"), vnamespace TSRMLS_CC); } zephir_array_fetch_string(&_18, parts, SL("namespace"), PH_NOISY | PH_READONLY TSRMLS_CC); zephir_array_unset(&parts, _18, PH_SEPARATE); } else { _5 = zephir_fetch_nproperty_this(this_ptr, SL("_defaultNamespace"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_namespace"), _5 TSRMLS_CC); } ZEPHIR_OBS_VAR(module); if (zephir_array_isset_string_fetch(&module, parts, SS("module"), 0 TSRMLS_CC)) { if (!(zephir_is_numeric(module))) { zephir_update_property_this(this_ptr, SL("_module"), module TSRMLS_CC); } zephir_array_fetch_string(&_18, parts, SL("module"), PH_NOISY | PH_READONLY TSRMLS_CC); zephir_array_unset(&parts, _18, PH_SEPARATE); } else { _5 = zephir_fetch_nproperty_this(this_ptr, SL("_defaultModule"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_module"), _5 TSRMLS_CC); } ZEPHIR_OBS_VAR(controller); if (zephir_array_isset_string_fetch(&controller, parts, SS("controller"), 0 TSRMLS_CC)) { if (!(zephir_is_numeric(controller))) { zephir_update_property_this(this_ptr, SL("_controller"), controller TSRMLS_CC); } zephir_array_fetch_string(&_18, parts, SL("controller"), PH_NOISY | PH_READONLY TSRMLS_CC); zephir_array_unset(&parts, _18, PH_SEPARATE); } else { _5 = zephir_fetch_nproperty_this(this_ptr, SL("_defaultController"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_controller"), _5 TSRMLS_CC); } ZEPHIR_OBS_VAR(action); if (zephir_array_isset_string_fetch(&action, parts, SS("action"), 0 TSRMLS_CC)) { if (!(zephir_is_numeric(action))) { zephir_update_property_this(this_ptr, SL("_action"), action TSRMLS_CC); } zephir_array_fetch_string(&_18, parts, SL("action"), PH_NOISY | PH_READONLY TSRMLS_CC); zephir_array_unset(&parts, _18, PH_SEPARATE); } else { _5 = zephir_fetch_nproperty_this(this_ptr, SL("_defaultAction"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_action"), _5 TSRMLS_CC); } ZEPHIR_OBS_VAR(paramsStr); if (zephir_array_isset_string_fetch(¶msStr, parts, SS("params"), 0 TSRMLS_CC)) { ZEPHIR_INIT_VAR(strParams); zephir_substr(strParams, paramsStr, 1 , 0 ); if (zephir_is_true(strParams)) { ZEPHIR_INIT_BNVAR(params); zephir_fast_explode_str(params, SL("/"), strParams, LONG_MAX TSRMLS_CC); } zephir_array_fetch_string(&_18, parts, SL("params"), PH_NOISY | PH_READONLY TSRMLS_CC); zephir_array_unset(&parts, _18, PH_SEPARATE); } if (zephir_fast_count_int(params TSRMLS_CC)) { ZEPHIR_INIT_VAR(paramsMerge); zephir_fast_array_merge(paramsMerge, &(params), &(parts) TSRMLS_CC); } else { ZEPHIR_CPY_WRT(paramsMerge, parts); } zephir_update_property_this(this_ptr, SL("_params"), paramsMerge TSRMLS_CC); } else { _5 = zephir_fetch_nproperty_this(this_ptr, SL("_defaultNamespace"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_namespace"), _5 TSRMLS_CC); _19 = zephir_fetch_nproperty_this(this_ptr, SL("_defaultModule"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_module"), _19 TSRMLS_CC); _20 = zephir_fetch_nproperty_this(this_ptr, SL("_defaultController"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_controller"), _20 TSRMLS_CC); _21 = zephir_fetch_nproperty_this(this_ptr, SL("_defaultAction"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_action"), _21 TSRMLS_CC); _22 = zephir_fetch_nproperty_this(this_ptr, SL("_defaultParams"), PH_NOISY_CC); zephir_update_property_this(this_ptr, SL("_params"), _22 TSRMLS_CC); } ZEPHIR_MM_RESTORE(); }
PHP_METHOD(Test_SpectralNorm, Au) { zend_function *_9 = NULL, *_10 = NULL, *_12 = NULL; zend_bool _0, _3; zval *n_param = NULL, *u, *v, *_6 = NULL, *_7 = NULL, *_8 = NULL, *_11 = NULL; int n, t, i, j, _1, _2, _4, _5; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &n_param, &u, &v); n = zephir_get_intval(n_param); _2 = (n - 1); _1 = 0; _0 = 0; if ((_1 <= _2)) { while (1) { if (_0) { _1++; if (!((_1 <= _2))) { break; } } else { _0 = 1; } i = _1; t = 0; _5 = (n - 1); _4 = 0; _3 = 0; if ((_4 <= _5)) { while (1) { if (_3) { _4++; if (!((_4 <= _5))) { break; } } else { _3 = 1; } j = _4; ZEPHIR_INIT_NVAR(_6); ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, i); ZEPHIR_INIT_NVAR(_8); ZVAL_LONG(_8, j); zephir_call_method_p2_cache(_6, this_ptr, "ax", &_9, _7, _8); ZEPHIR_INIT_NVAR(_7); ZEPHIR_INIT_NVAR(_8); ZVAL_LONG(_8, j); zephir_call_method_p1_cache(_7, u, "offsetge", &_10, _8); ZEPHIR_INIT_LNVAR(_11); mul_function(_11, _6, _7 TSRMLS_CC); t += zephir_get_numberval(_11); } } ZEPHIR_INIT_NVAR(_6); ZVAL_LONG(_6, i); ZEPHIR_INIT_NVAR(_7); ZVAL_LONG(_7, t); zephir_call_method_p2_cache_noret(v, "offsetset", &_12, _6, _7); } } ZEPHIR_MM_RESTORE(); }
PHP_METHOD(Test_SpectralNorm, process) { zend_function *_5 = NULL, *_6 = NULL, *_7 = NULL, *_11 = NULL, *_12 = NULL, *_16 = NULL, *_18 = NULL, *_20 = NULL, *_21 = NULL; zend_bool _1, _8, _13; zval *n_param = NULL, *u, *v, *w, *_0 = NULL, *_4 = NULL, *_17 = NULL, *_19 = NULL, *_22 = NULL, _23; int n, i, vv = 0, vBv = 0, _2, _3, _9, _10, _14, _15; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &n_param); n = zephir_get_intval(n_param); ZEPHIR_INIT_VAR(u); object_init_ex(u, spl_ce_SplFixedArray); ZEPHIR_INIT_VAR(_0); ZVAL_LONG(_0, n); zephir_call_method_p1_noret(u, "__construct", _0); ZEPHIR_INIT_VAR(v); object_init_ex(v, spl_ce_SplFixedArray); ZEPHIR_INIT_BNVAR(_0); ZVAL_LONG(_0, n); zephir_call_method_p1_noret(v, "__construct", _0); ZEPHIR_INIT_VAR(w); object_init_ex(w, spl_ce_SplFixedArray); ZEPHIR_INIT_BNVAR(_0); ZVAL_LONG(_0, n); zephir_call_method_p1_noret(w, "__construct", _0); _3 = (n - 1); _2 = 0; _1 = 0; if ((_2 <= _3)) { while (1) { if (_1) { _2++; if (!((_2 <= _3))) { break; } } else { _1 = 1; } i = _2; ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, i); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, 1); zephir_call_method_p2_cache_noret(u, "offsetset", &_5, _0, _4); ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, i); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, 1); zephir_call_method_p2_cache_noret(v, "offsetset", &_6, _0, _4); ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, i); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, 1); zephir_call_method_p2_cache_noret(w, "offsetset", &_7, _0, _4); } } _10 = 9; _9 = 0; _8 = 0; if ((_9 <= _10)) { while (1) { if (_8) { _9++; if (!((_9 <= _10))) { break; } } else { _8 = 1; } i = _9; ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, n); zephir_call_method_p4_cache_noret(this_ptr, "atau", &_11, _0, u, v, w); ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, n); zephir_call_method_p4_cache_noret(this_ptr, "atau", &_12, _0, v, u, w); } } _15 = (n - 1); _14 = 0; _13 = 0; if ((_14 <= _15)) { while (1) { if (_13) { _14++; if (!((_14 <= _15))) { break; } } else { _13 = 1; } i = _14; ZEPHIR_INIT_NVAR(_0); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, i); zephir_call_method_p1_cache(_0, u, "offsetget", &_16, _4); ZEPHIR_INIT_NVAR(_4); ZEPHIR_INIT_NVAR(_17); ZVAL_LONG(_17, i); zephir_call_method_p1_cache(_4, v, "offsetget", &_18, _17); ZEPHIR_INIT_LNVAR(_19); mul_function(_19, _0, _4 TSRMLS_CC); vBv += zephir_get_numberval(_19); ZEPHIR_INIT_NVAR(_0); ZEPHIR_INIT_NVAR(_4); ZVAL_LONG(_4, i); zephir_call_method_p1_cache(_0, v, "offsetget", &_20, _4); ZEPHIR_INIT_NVAR(_4); ZEPHIR_INIT_NVAR(_17); ZVAL_LONG(_17, i); zephir_call_method_p1_cache(_4, v, "offsetget", &_21, _17); ZEPHIR_INIT_LNVAR(_22); mul_function(_22, _0, _4 TSRMLS_CC); vv += zephir_get_numberval(_22); } } ZEPHIR_SINIT_VAR(_23); ZVAL_LONG(&_23, (vBv / vv)); zephir_call_func_p1(return_value, "sqrt", &_23); RETURN_MM(); }