Finding entry points Branch analysis from position: 0 2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 7 Branch analysis from position: 3 2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 286 Branch analysis from position: 8 7 jumps found. (Code = 188) Position 1 = 30, Position 2 = 83, Position 3 = 159, Position 4 = 191, Position 5 = 244, Position 6 = 269, Position 7 = 19 Branch analysis from position: 30 2 jumps found. (Code = 43) Position 1 = 43, Position 2 = 74 Branch analysis from position: 43 1 jumps found. (Code = 42) Position 1 = 82 Branch analysis from position: 82 1 jumps found. (Code = 42) Position 1 = 278 Branch analysis from position: 278 1 jumps found. (Code = 62) Position 1 = -2 Branch analysis from position: 74 1 jumps found. (Code = 42) Position 1 = 278 Branch analysis from position: 278 Branch analysis from position: 83 2 jumps found. (Code = 43) Position 1 = 99, Position 2 = 108 Branch analysis from position: 99 1 jumps found. (Code = 42) Position 1 = 158 Branch analysis from position: 158 1 jumps found. (Code = 42) Position 1 = 278 Branch analysis from position: 278 Branch analysis from position: 108 2 jumps found. (Code = 43) Position 1 = 116, Position 2 = 150 Branch analysis from position: 116 1 jumps found. (Code = 42) Position 1 = 158 Branch analysis from position: 158 Branch analysis from position: 150 1 jumps found. (Code = 42) Position 1 = 278 Branch analysis from position: 278 Branch analysis from position: 159 2 jumps found. (Code = 43) Position 1 = 163, Position 2 = 166 Branch analysis from position: 163 2 jumps found. (Code = 43) Position 1 = 179, Position 2 = 182 Branch analysis from position: 179 1 jumps found. (Code = 42) Position 1 = 186 Branch analysis from position: 186 1 jumps found. (Code = 42) Position 1 = 278 Branch analysis from position: 278 Branch analysis from position: 182 1 jumps found. (Code = 42) Position 1 = 278 Branch analysis from position: 278 Branch analysis from position: 166 Branch analysis from position: 191 2 jumps found. (Code = 43) Position 1 = 204, Position 2 = 235 Branch analysis from position: 204 2 jumps found. (Code = 43) Position 1 = 211, Position 2 = 226 Branch analysis from position: 211 1 jumps found. (Code = 42) Position 1 = 234 Branch analysis from position: 234 1 jumps found. (Code = 42) Position 1 = 243 Branch analysis from position: 243 1 jumps found. (Code = 42) Position 1 = 278 Branch analysis from position: 278 Branch analysis from position: 226 1 jumps found. (Code = 42) Position 1 = 243 Branch analysis from position: 243 Branch analysis from position: 235 1 jumps found. (Code = 42) Position 1 = 278 Branch analysis from position: 278 Branch analysis from position: 244 2 jumps found. (Code = 43) Position 1 = 257, Position 2 = 260 Branch analysis from position: 257 1 jumps found. (Code = 42) Position 1 = 264 Branch analysis from position: 264 1 jumps found. (Code = 42) Position 1 = 278 Branch analysis from position: 278 Branch analysis from position: 260 1 jumps found. (Code = 42) Position 1 = 278 Branch analysis from position: 278 Branch analysis from position: 269 1 jumps found. (Code = 42) Position 1 = 278 Branch analysis from position: 278 Branch analysis from position: 19 2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 30 Branch analysis from position: 21 2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 83 Branch analysis from position: 23 2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 159 Branch analysis from position: 25 2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 191 Branch analysis from position: 27 2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 244 Branch analysis from position: 29 1 jumps found. (Code = 42) Position 1 = 269 Branch analysis from position: 269 Branch analysis from position: 244 Branch analysis from position: 191 Branch analysis from position: 159 Branch analysis from position: 83 Branch analysis from position: 30 Branch analysis from position: 286 Branch analysis from position: 7 filename: /in/4sf1G function name: (null) number of ops: 287 compiled vars: !0 = $db, !1 = $tag, !2 = $response, !3 = $email, !4 = $password, !5 = $user, !6 = $name, !7 = $phoneNumber, !8 = $selectionKey, !9 = $selectionValue, !10 = $StudentID, !11 = $CourseID, !12 = $course, !13 = $courseID, !14 = $studentID, !15 = $result line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 13 0 E > FETCH_IS ~16 '_POST' 1 ISSET_ISEMPTY_DIM_OBJ 0 ~17 ~16, 'tag' 2 > JMPZ_EX ~17 ~17, ->7 3 > FETCH_R global ~18 '_POST' 4 FETCH_DIM_R ~19 ~18, 'tag' 5 IS_NOT_EQUAL ~20 ~19, '' 6 BOOL ~17 ~20 7 > > JMPZ ~17, ->286 16 8 > INCLUDE_OR_EVAL 'include%2FDB_Functions.php', REQUIRE_ONCE 17 9 NEW $22 'DB_Functions' 10 DO_FCALL 0 11 ASSIGN !0, $22 20 12 FETCH_R global ~25 '_POST' 13 FETCH_DIM_R ~26 ~25, 'tag' 14 ASSIGN !1, ~26 23 15 INIT_ARRAY ~28 !1, 'tag' 16 ADD_ARRAY_ELEMENT ~28 <false>, 'error' 17 ASSIGN !2, ~28 25 18 > SWITCH_STRING !1, [ 'login':->30, 'register':->83, 'getCourses':->159, 'addCourse':->191, 'getFriends':->244, ], ->269 26 19 > IS_EQUAL !1, 'login' 20 > JMPNZ ~30, ->30 53 21 > IS_EQUAL !1, 'register' 22 > JMPNZ ~30, ->83 90 23 > IS_EQUAL !1, 'getCourses' 24 > JMPNZ ~30, ->159 109 25 > IS_EQUAL !1, 'addCourse' 26 > JMPNZ ~30, ->191 141 27 > IS_EQUAL !1, 'getFriends' 28 > JMPNZ ~30, ->244 29 > > JMP ->269 28 30 > FETCH_R global ~31 '_POST' 31 FETCH_DIM_R ~32 ~31, 'email' 32 ASSIGN !3, ~32 29 33 FETCH_R global ~34 '_POST' 34 FETCH_DIM_R ~35 ~34, 'password' 35 ASSIGN !4, ~35 32 36 INIT_METHOD_CALL !0, 'getUserByEmailAndPassword' 37 SEND_VAR_EX !3 38 SEND_VAR_EX !4 39 DO_FCALL 0 $37 40 ASSIGN !5, $37 33 41 BOOL ~39 !5 42 > JMPZ ~39, ->74 35 43 > ASSIGN_DIM !2, 'error' 44 OP_DATA <false> 36 45 FETCH_DIM_R ~43 !5, 'unique_id' 46 FETCH_DIM_W $41 !2, 'user' 47 ASSIGN_DIM $41, 'unique_id' 48 OP_DATA ~43 37 49 FETCH_DIM_R ~46 !5, 'name' 50 FETCH_DIM_W $44 !2, 'user' 51 ASSIGN_DIM $44, 'name' 52 OP_DATA ~46 38 53 FETCH_DIM_R ~49 !5, 'email' 54 FETCH_DIM_W $47 !2, 'user' 55 ASSIGN_DIM $47, 'email' 56 OP_DATA ~49 39 57 FETCH_DIM_R ~52 !5, 'created_at' 58 FETCH_DIM_W $50 !2, 'user' 59 ASSIGN_DIM $50, 'created_at' 60 OP_DATA ~52 40 61 FETCH_DIM_R ~55 !5, 'updated_at' 62 FETCH_DIM_W $53 !2, 'user' 63 ASSIGN_DIM $53, 'updated_at' 64 OP_DATA ~55 41 65 FETCH_DIM_R ~58 !5, 'StudentID' 66 FETCH_DIM_W $56 !2, 'user' 67 ASSIGN_DIM $56, 'StudentID' 68 OP_DATA ~58 42 69 INIT_FCALL 'json_encode' 70 SEND_VAR !2 71 DO_ICALL $59 72 ECHO $59 73 > JMP ->82 47 74 > ASSIGN_DIM !2, 'error' 75 OP_DATA <true> 48 76 ASSIGN_DIM !2, 'error_msg' 77 OP_DATA 'Incorrect+email+or+password%21' 49 78 INIT_FCALL 'json_encode' 79 SEND_VAR !2 80 DO_ICALL $62 81 ECHO $62 51 82 > > JMP ->278 56 83 > FETCH_R global ~63 '_POST' 84 FETCH_DIM_R ~64 ~63, 'name' 85 ASSIGN !6, ~64 57 86 FETCH_R global ~66 '_POST' 87 FETCH_DIM_R ~67 ~66, 'email' 88 ASSIGN !3, ~67 58 89 FETCH_R global ~69 '_POST' 90 FETCH_DIM_R ~70 ~69, 'password' 91 ASSIGN !4, ~70 59 92 FETCH_R global ~72 '_POST' 93 FETCH_DIM_R ~73 ~72, 'phoneNumber' 94 ASSIGN !7, ~73 62 95 INIT_METHOD_CALL !0, 'isUserExisted' 96 SEND_VAR_EX !3 97 DO_FCALL 0 $75 98 > JMPZ $75, ->108 64 99 > ASSIGN_DIM !2, 'error' 100 OP_DATA <true> 65 101 ASSIGN_DIM !2, 'error_msg' 102 OP_DATA 'User+already+existed' 66 103 INIT_FCALL 'json_encode' 104 SEND_VAR !2 105 DO_ICALL $78 106 ECHO $78 107 > JMP ->158 69 108 > INIT_METHOD_CALL !0, 'storeUser' 109 SEND_VAR_EX !6 110 SEND_VAR_EX !3 111 SEND_VAR_EX !4 112 SEND_VAR_EX !7 113 DO_FCALL 0 $79 114 ASSIGN !5, $79 70 115 > JMPZ !5, ->150 72 116 > ASSIGN_DIM !2, 'error' 117 OP_DATA <false> 73 118 FETCH_DIM_R ~83 !5, 'unique_id' 119 ASSIGN_DIM !2, 'uid' 120 OP_DATA ~83 74 121 FETCH_DIM_R ~86 !5, 'name' 122 FETCH_DIM_W $84 !2, 'user' 123 ASSIGN_DIM $84, 'name' 124 OP_DATA ~86 75 125 FETCH_DIM_R ~89 !5, 'email' 126 FETCH_DIM_W $87 !2, 'user' 127 ASSIGN_DIM $87, 'email' 128 OP_DATA ~89 76 129 FETCH_DIM_R ~92 !5, 'StudentID' 130 FETCH_DIM_W $90 !2, 'user' 131 ASSIGN_DIM $90, 'StudentID' 132 OP_DATA ~92 77 133 FETCH_DIM_R ~95 !5, 'created_at' 134 FETCH_DIM_W $93 !2, 'user' 135 ASSIGN_DIM $93, 'created_at' 136 OP_DATA ~95 78 137 FETCH_DIM_R ~98 !5, 'updated_at' 138 FETCH_DIM_W $96 !2, 'user' 139 ASSIGN_DIM $96, 'updated_at' 140 OP_DATA ~98 79 141 FETCH_DIM_R ~101 !5, 'phoneNumber' 142 FETCH_DIM_W $99 !2, 'user' 143 ASSIGN_DIM $99, 'phoneNumber' 144 OP_DATA ~101 80 145 INIT_FCALL 'json_encode' 146 SEND_VAR !2 147 DO_ICALL $102 148 ECHO $102 149 > JMP ->158 83 150 > ASSIGN_DIM !2, 'error' 151 OP_DATA <true> 84 152 ASSIGN_DIM !2, 'error_msg' 153 OP_DATA 'Error+occurred+in+registration' 85 154 INIT_FCALL 'json_encode' 155 SEND_VAR !2 156 DO_ICALL $105 157 ECHO $105 88 158 > > JMP ->278 92 159 > ASSIGN !5, <false> 93 160 FETCH_IS ~107 '_POST' 161 ISSET_ISEMPTY_DIM_OBJ 0 ~107, 'StudentID' 162 > JMPZ ~108, ->166 94 163 > FETCH_R global ~109 '_POST' 164 FETCH_DIM_R ~110 ~109, 'StudentID' 165 ASSIGN !5, ~110 96 166 > FETCH_R global ~112 '_POST' 167 FETCH_DIM_R ~113 ~112, 'searchKey' 168 ASSIGN !8, ~113 97 169 FETCH_R global ~115 '_POST' 170 FETCH_DIM_R ~116 ~115, 'searchValue' 171 ASSIGN !9, ~116 99 172 INIT_METHOD_CALL !0, 'getCourses' 173 SEND_VAR_EX !5 174 SEND_VAR_EX !8 175 SEND_VAR_EX !9 176 DO_FCALL 0 $118 177 ASSIGN !2, $118 100 178 > JMPZ !2, ->182 101 179 > ASSIGN_DIM !2, 'error' 180 OP_DATA <false> 181 > JMP ->186 103 182 > ASSIGN_DIM !2, 'error' 183 OP_DATA <true> 104 184 ASSIGN_DIM !2, 'error_mesg' 185 OP_DATA 'Error+occurred+getting+the+courses' 106 186 > INIT_FCALL 'json_encode' 187 SEND_VAR !2 188 DO_ICALL $123 189 ECHO $123 107 190 > JMP ->278 112 191 > FETCH_R global ~124 '_POST' 192 FETCH_DIM_R ~125 ~124, 'StudentID' 193 ASSIGN !10, ~125 113 194 FETCH_R global ~127 '_POST' 195 FETCH_DIM_R ~128 ~127, 'CourseID' 196 ASSIGN !11, ~128 114 197 FETCH_R global ~130 '_POST' 198 FETCH_DIM_R ~131 ~130, 'email' 199 ASSIGN !3, ~131 117 200 INIT_METHOD_CALL !0, 'isUserExisted' 201 SEND_VAR_EX !3 202 DO_FCALL 0 $133 203 > JMPZ $133, ->235 120 204 > INIT_METHOD_CALL !0, 'storeCourse' 205 SEND_VAR_EX !10 206 SEND_VAR_EX !11 207 DO_FCALL 0 $134 208 ASSIGN !12, $134 121 209 BOOL ~136 !12 210 > JMPZ ~136, ->226 123 211 > ASSIGN_DIM !2, 'error' 212 OP_DATA <false> 124 213 FETCH_DIM_R ~140 !12, 'StudentID' 214 FETCH_DIM_W $138 !2, 'course' 215 ASSIGN_DIM $138, 'StudentID' 216 OP_DATA ~140 125 217 FETCH_DIM_R ~143 !12, 'CourseID' 218 FETCH_DIM_W $141 !2, 'course' 219 ASSIGN_DIM $141, 'CourseID' 220 OP_DATA ~143 126 221 INIT_FCALL 'json_encode' 222 SEND_VAR !2 223 DO_ICALL $144 224 ECHO $144 225 > JMP ->234 129 226 > ASSIGN_DIM !2, 'error' 227 OP_DATA <true> 130 228 ASSIGN_DIM !2, 'error_msg' 229 OP_DATA 'Error+occured+adding+courses' 131 230 INIT_FCALL 'json_encode' 231 SEND_VAR !2 232 DO_ICALL $147 233 ECHO $147 234 > > JMP ->243 135 235 > ASSIGN_DIM !2, 'error' 236 OP_DATA <true> 136 237 ASSIGN_DIM !2, 'error_msg' 238 OP_DATA 'User+does+not+exist' 137 239 INIT_FCALL 'json_encode' 240 SEND_VAR !2 241 DO_ICALL $150 242 ECHO $150 139 243 > > JMP ->278 143 244 > FETCH_R global ~151 '_POST' 245 FETCH_DIM_R ~152 ~151, 'courseID' 246 ASSIGN !13, ~152 144 247 FETCH_R global ~154 '_POST' 248 FETCH_DIM_R ~155 ~154, 'studentID' 249 ASSIGN !14, ~155 145 250 INIT_METHOD_CALL !0, 'getFriendsByCourseIdAndStudentId' 251 SEND_VAR_EX !13 252 SEND_VAR_EX !14 253 DO_FCALL 0 $157 254 ASSIGN !15, $157 146 255 BOOL ~159 !15 256 > JMPZ ~159, ->260 147 257 > ASSIGN_DIM !15, 'error' 258 OP_DATA <false> 259 > JMP ->264 149 260 > ASSIGN_DIM !15, 'error' 261 OP_DATA <true> 150 262 ASSIGN_DIM !15, 'error_mesg' 263 OP_DATA 'Error+occurred+retrieving+friends' 152 264 > INIT_FCALL 'json_encode' 265 SEND_VAR !15 266 DO_ICALL $163 267 ECHO $163 153 268 > JMP ->278 157 269 > ASSIGN_DIM !2, 'error' 270 OP_DATA <true> 158 271 ASSIGN_DIM !2, 'error_msg' 272 OP_DATA 'Unknow+%27tag%27+value' 159 273 INIT_FCALL 'json_encode' 274 SEND_VAR !2 275 DO_ICALL $166 276 ECHO $166 160 277 > JMP ->278 163 278 > ASSIGN_DIM !2, 'error' 279 OP_DATA <true> 164 280 ASSIGN_DIM !2, 'error_msg' 281 OP_DATA 'Required+parameter+%27tag%27+is+missing%21' 165 282 INIT_FCALL 'json_encode' 283 SEND_VAR !2 284 DO_ICALL $169 285 ECHO $169 167 286 > > RETURN 1
Generated using Vulcan Logic Dumper, using php 8.0.0