real vec3_moveTowards_return_x903 real vec3_moveTowards_return_y760 real vec3_moveTowards_return_z124 real vec3_op_plus_return_x196 real vec3_op_plus_return_y540 real vec3_op_plus_return_z159 real vec3_op_minus_return_x456 real vec3_op_minus_return_y102 real vec3_op_minus_return_z318 real vec3_op_mult_return_x181 real vec3_op_mult_return_y333 real vec3_op_mult_return_z178 real real_op_mult_return_x143 real real_op_mult_return_y775 real real_op_mult_return_z573 real vec3_normalizedPointerTo_return_x740 real vec3_normalizedPointerTo_return_y596 real vec3_normalizedPointerTo_return_z200 function initGlobals198() { } function main112() { initGlobals198(); init_test142(); } function config449() { } function init_test142() { local real tuple_temp109 local real tuple_temp528 local real tuple_temp737 local real tuple_temp173 local real tuple_temp151 local real tuple_temp573 tuple_temp_109 = vec3_moveTowards717(0., 0., 0., 1., 2., 3., 10.); tuple_temp_528 = vec3_moveTowards_return_y_760; tuple_temp_737 = vec3_moveTowards_return_z_124; tuple_temp_173 = vec3_moveTowards717(0., 0., 0., 6., 5., 4., 10.); tuple_temp_151 = vec3_moveTowards_return_y_760; tuple_temp_573 = vec3_moveTowards_return_z_124; if (vec3_approxEq139(tuple_temp_109, tuple_temp_528, tuple_temp_737, 2.673, 5.345, 8.018) and vec3_approxEq139(tuple_temp_173, tuple_temp_151, tuple_temp_573, 6.838, 5.698, 4.558)) { testSuccess407(); } else { }; } function vec3_length925(real this_x117, real this_y199, real this_z546) returns real { return SquareRoot236((((this_x_117 * this_x_117) + (this_y_199 * this_y_199)) + (this_z_546 * this_z_546))); } IS_NATIVE IS_EXTERN @extern function SquareRoot236(real x150) returns real { } function vec3_op_plus423(real this_x526, real this_y931, real this_z288, real v_x323, real v_y102, real v_z275) returns real { vec3_op_plus_return_x_196 = (this_x_526 + v_x_323); vec3_op_plus_return_y_540 = (this_y_931 + v_y_102); vec3_op_plus_return_z_159 = (this_z_288 + v_z_275); return vec3_op_plus_return_x_196; } function vec3_op_minus210(real this_x412, real this_y174, real this_z181, real v_x325, real v_y205, real v_z281) returns real { vec3_op_minus_return_x_456 = (this_x_412 - v_x_325); vec3_op_minus_return_y_102 = (this_y_174 - v_y_205); vec3_op_minus_return_z_318 = (this_z_181 - v_z_281); return vec3_op_minus_return_x_456; } function vec3_op_mult465(real this_x905, real this_y682, real this_z131, real factor124) returns real { vec3_op_mult_return_x_181 = (this_x_905 * factor_124); vec3_op_mult_return_y_333 = (this_y_682 * factor_124); vec3_op_mult_return_z_178 = (this_z_131 * factor_124); return vec3_op_mult_return_x_181; } function real_op_mult165(real this491, real v_x736, real v_y648, real v_z565) returns real { real_op_mult_return_x_143 = (v_x_736 * this_491); real_op_mult_return_y_775 = (v_y_648 * this_491); real_op_mult_return_z_573 = (v_z_565 * this_491); return real_op_mult_return_x_143; } function vec3_normalizedPointerTo164(real this_x103, real this_y104, real this_z109, real target_x944, real target_y139, real target_z111) returns real { this_x_103 = vec3_op_minus210(target_x_944, target_y_139, target_z_111, this_x_103, this_y_104, this_z_109); this_y_104 = vec3_op_minus_return_y_102; target_x_944 = vec3_op_minus_return_z_318; this_z_109 = vec3_length925(this_x_103, this_y_104, target_x_944); if (this_z_109 > 0.) { this_y_104 = vec3_op_mult465(this_x_103, this_y_104, target_x_944, (1. / this_z_109)); this_z_109 = vec3_op_mult_return_y_333; this_x_103 = vec3_op_mult_return_z_178; } else { this_y_104 = 1.; this_z_109 = 0.; this_x_103 = 0.; }; vec3_normalizedPointerTo_return_x_740 = this_y_104; vec3_normalizedPointerTo_return_y_596 = this_z_109; vec3_normalizedPointerTo_return_z_200 = this_x_103; return vec3_normalizedPointerTo_return_x_740; } function vec3_moveTowards717(real this_x120, real this_y408, real this_z185, real target_x167, real target_y110, real target_z600, real dist110) returns real { vec3_moveTowards_return_x_903 = vec3_op_plus423(this_x_120, this_y_408, this_z_185, real_op_mult165(dist_110, vec3_normalizedPointerTo164(this_x_120, this_y_408, this_z_185, target_x_167, target_y_110, target_z_600), vec3_normalizedPointerTo_return_y_596, vec3_normalizedPointerTo_return_z_200), real_op_mult_return_y_775, real_op_mult_return_z_573); vec3_moveTowards_return_y_760 = vec3_op_plus_return_y_540; vec3_moveTowards_return_z_124 = vec3_op_plus_return_z_159; return vec3_moveTowards_return_x_903; } function vec3_approxEq139(real this_x164, real this_y458, real this_z213, real o_x109, real o_y203, real o_z199) returns boolean { return (((((((this_x_164 - 0.01) < o_x_109) and (o_x_109 < (this_x_164 + 0.01))) and ((this_y_458 - 0.01) < o_y_203)) and (o_y_203 < (this_y_458 + 0.01))) and ((this_z_213 - 0.01) < o_z_199)) and (o_z_199 < (this_z_213 + 0.01))); } IS_NATIVE function testSuccess407() { }