Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/fd5qV
function name: (null)
number of ops: 13
compiled vars: !0 = $questions, !1 = $answers
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
161 0 E > INIT_FCALL 'createquestions'
1 DO_FCALL 0 $2
2 ASSIGN !0, $2
162 3 ASSIGN !1, <array>
163 4 INIT_FCALL 'printquestions'
5 SEND_VAR !0
6 DO_FCALL 0
165 7 FETCH_DIM_R ~6 !0, 0
8 INIT_METHOD_CALL ~6, 'checkAnswers'
9 SEND_VAR_EX !0
10 SEND_VAR_EX !1
11 DO_FCALL 0
12 > RETURN 1
Function createquestions:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/fd5qV
function name: createQuestions
number of ops: 61
compiled vars: !0 = $questions, !1 = $q1, !2 = $q2, !3 = $q3, !4 = $q4
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
109 0 E > ASSIGN !0, <array>
111 1 NEW $6 'ChoiceQuestion'
2 DO_FCALL 0
3 ASSIGN !1, $6
112 4 ASSIGN_OBJ !1, 'text'
5 OP_DATA '%D0%9A%D0%B0%D0%BA%D0%B0%D1%8F+%D0%BF%D0%BB%D0%B0%D0%BD%D0%B5%D1%82%D0%B0+%D1%80%D0%B0%D1%81%D0%BF%D0%BE%D0%BB%D0%B0%D0%B3%D0%B0%D0%B5%D1%82%D1%81%D1%8F+%D1%87%D0%B5%D1%82%D0%B2%D0%B5%D1%80%D1%82%D0%BE%D0%B9+%D0%BF%D0%BE+%D1%81%D1%87%D0%B5%D1%82%D1%83+%D0%BE%D1%82+%D0%A1%D0%BE%D0%BB%D0%BD%D1%86%D0%B0%3F'
113 6 ASSIGN_OBJ !1, 'points'
7 OP_DATA 10
114 8 ASSIGN_OBJ !1, 'options'
9 OP_DATA <array>
115 10 ASSIGN_OBJ !1, 'correctOption'
11 OP_DATA 'b'
116 12 ASSIGN_OBJ !1, 'hint'
13 OP_DATA '%D0%A1%D0%BD%D0%B8%D0%BA%D0%B5%D1%80%D1%81'
117 14 ASSIGN_DIM !0
15 OP_DATA !1
119 16 NEW $15 'ChoiceQuestion'
17 DO_FCALL 0
18 ASSIGN !2, $15
120 19 ASSIGN_OBJ !2, 'text'
20 OP_DATA '%D0%9A%D0%B0%D0%BA%D0%BE%D0%B9+%D0%B3%D0%BE%D1%80%D0%BE%D0%B4+%D1%8F%D0%B2%D0%BB%D1%8F%D0%B5%D1%82%D1%81%D1%8F+%D1%81%D1%82%D0%BE%D0%BB%D0%B8%D1%86%D0%B5%D0%B9+%D0%92%D0%B5%D0%BB%D0%B8%D0%BA%D0%BE%D0%B1%D1%80%D0%B8%D1%82%D0%B0%D0%BD%D0%B8%D0%B8%3F'
121 21 ASSIGN_OBJ !2, 'points'
22 OP_DATA 5
122 23 ASSIGN_OBJ !2, 'options'
24 OP_DATA <array>
123 25 ASSIGN_OBJ !2, 'correctOption'
26 OP_DATA 'd'
124 27 ASSIGN_OBJ !2, 'hint'
28 OP_DATA 'London+is+the+capital+of+Great+Britain'
125 29 ASSIGN_DIM !0
30 OP_DATA !2
127 31 NEW $24 'ChoiceQuestion'
32 DO_FCALL 0
33 ASSIGN !3, $24
128 34 ASSIGN_OBJ !3, 'text'
35 OP_DATA '%D0%9A%D1%82%D0%BE+%D0%BF%D1%80%D0%B8%D0%B4%D1%83%D0%BC%D0%B0%D0%BB+%D1%82%D0%B5%D0%BE%D1%80%D0%B8%D1%8E+%D0%BE%D1%82%D0%BD%D0%BE%D1%81%D0%B8%D1%82%D0%B5%D0%BB%D1%8C%D0%BD%D0%BE%D1%81%D1%82%D0%B8%3F'
129 36 ASSIGN_OBJ !3, 'points'
37 OP_DATA 30
130 38 ASSIGN_OBJ !3, 'options'
39 OP_DATA <array>
131 40 ASSIGN_OBJ !3, 'correctOption'
41 OP_DATA 'c'
132 42 ASSIGN_OBJ !3, 'hint'
43 OP_DATA '%D0%9A%D0%B0%D0%BA%D0%BE%D0%B9-%D1%82%D0%BE+%D0%B5%D0%B2%D1%80%D0%B5%D0%B9...+%D0%9F%D0%BE%D0%B4%D0%BE%D0%B6%D0%B4%D0%B8%D1%82%D0%B5...+%D0%9E%D1%85%2C+%D0%BD%D0%B5%D1%82...'
133 44 ASSIGN_DIM !0
45 OP_DATA !3
135 46 NEW $33 'NumericQuestion'
47 DO_FCALL 0
48 ASSIGN !4, $33
136 49 ASSIGN_OBJ !4, 'text'
50 OP_DATA '%D0%9D%D0%B0%D0%BF%D0%B8%D1%88%D0%B8%D1%82%D0%B5+%D1%87%D0%B8%D1%81%D0%BB%D0%BE+%D0%9F%D0%B8+%D0%B4%D0%BE+%D1%82%D1%8B%D1%81%D1%8F%D1%87%D0%BD%D1%8B%D1%85+%D0%B8%D0%BB%D0%B8+%D1%85%D0%BE%D1%82%D1%8F+%D0%B1%D1%8B+%D1%81%D0%BE%D1%82%D1%8B%D1%85.'
137 51 ASSIGN_OBJ !4, 'points'
52 OP_DATA 30
138 53 ASSIGN_OBJ !4, 'correctAnswer'
54 OP_DATA 3.14
139 55 ASSIGN_OBJ !4, 'hint'
56 OP_DATA '%D0%AD%D1%82%D0%BE+3%2C14%D0%B7%D0%B4%D0%B5%D1%86+%D0%BA%D0%B0%D0%BA%D0%BE%D0%B9-%D1%82%D0%BE...'
140 57 ASSIGN_DIM !0
58 OP_DATA !4
141 59 > RETURN !0
142 60* > RETURN null
End of function createquestions
Function printquestions:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 28
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 28
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 26
Branch analysis from position: 13
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 25
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 25
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 25
Branch analysis from position: 26
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
filename: /in/fd5qV
function name: printQuestions
number of ops: 30
compiled vars: !0 = $questions, !1 = $number, !2 = $question, !3 = $answer, !4 = $letter
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
144 0 E > RECV !0
146 1 ASSIGN !1, 1
148 2 > FE_RESET_R $6 !0, ->28
3 > > FE_FETCH_R $6, !2, ->28
149 4 > ROPE_INIT 5 ~9 '%0A'
5 ROPE_ADD 1 ~9 ~9, !1
6 ROPE_ADD 2 ~9 ~9, '.+'
7 FETCH_OBJ_R ~7 !2, 'text'
8 ROPE_ADD 3 ~9 ~9, ~7
9 ROPE_END 4 ~8 ~9, '%0A%0A'
10 ECHO ~8
150 11 ISSET_ISEMPTY_PROP_OBJ !2, 'options'
12 > JMPZ ~12, ->26
151 13 > ECHO '%D0%92%D0%B0%D1%80%D0%B8%D0%B0%D0%BD%D1%82%D1%8B+%D0%BE%D1%82%D0%B2%D0%B5%D1%82%D0%BE%D0%B2%3A%0A'
153 14 FETCH_OBJ_R ~13 !2, 'options'
15 > FE_RESET_R $14 ~13, ->25
16 > > FE_FETCH_R ~15 $14, !3, ->25
17 > ASSIGN !4, ~15
154 18 ROPE_INIT 5 ~18 '++'
19 ROPE_ADD 1 ~18 ~18, !4
20 ROPE_ADD 2 ~18 ~18, '.+'
21 ROPE_ADD 3 ~18 ~18, !3
22 ROPE_END 4 ~17 ~18, '%0A'
23 ECHO ~17
153 24 > JMP ->16
25 > FE_FREE $14
157 26 > PRE_INC !1
148 27 > JMP ->3
28 > FE_FREE $6
159 29 > RETURN null
End of function printquestions
Class Question: [no user functions]
Class ChoiceQuestion:
Function checkanswers:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
2 jumps found. (Code = 44) Position 1 = 45, Position 2 = 14
Branch analysis from position: 45
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 27
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
2 jumps found. (Code = 44) Position 1 = 45, Position 2 = 14
Branch analysis from position: 45
Branch analysis from position: 14
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 45, Position 2 = 14
Branch analysis from position: 45
Branch analysis from position: 14
filename: /in/fd5qV
function name: checkAnswers
number of ops: 56
compiled vars: !0 = $questions, !1 = $answers, !2 = $pointsTotal, !3 = $pointsMax, !4 = $correctAnswers, !5 = $totalQuestions, !6 = $i, !7 = $question, !8 = $answer, !9 = $number
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
15 0 E > RECV !0
1 RECV !1
18 2 COUNT ~10 !0
3 COUNT ~11 !1
4 IS_NOT_EQUAL ~10, ~11
5 > JMPZ ~12, ->7
19 6 > > EXIT '%D0%A7%D0%B8%D1%81%D0%BB%D0%BE+%D0%BE%D1%82%D0%B2%D0%B5%D1%82%D0%BE%D0%B2+%D0%B8+%D0%B2%D0%BE%D0%BF%D1%80%D0%BE%D1%81%D0%BE%D0%B2+%D0%BD%D0%B5+%D1%81%D0%BE%D0%B2%D0%BF%D0%B0%D0%B4%D0%B0%D0%B5%D1%82%0A'
22 7 > ASSIGN !2, 0
25 8 ASSIGN !3, 0
27 9 ASSIGN !4, 0
29 10 COUNT ~16 !0
11 ASSIGN !5, ~16
32 12 ASSIGN !6, 0
13 > JMP ->42
33 14 > FETCH_DIM_R ~19 !0, !6
15 ASSIGN !7, ~19
34 16 FETCH_DIM_R ~21 !1, !6
17 ASSIGN !8, ~21
37 18 FETCH_OBJ_R ~23 !7, 'points'
19 ASSIGN_OP 1 !3, ~23
40 20 FETCH_OBJ_R ~25 !7, 'correctOption'
21 IS_EQUAL !8, ~25
22 > JMPZ ~26, ->27
42 23 > PRE_INC !4
43 24 FETCH_OBJ_R ~28 !7, 'points'
25 ASSIGN_OP 1 !2, ~28
40 26 > JMP ->41
46 27 > ADD ~30 !6, 1
28 ASSIGN !9, ~30
47 29 ROPE_INIT 5 ~34 '%D0%9D%D0%B5%D0%BF%D1%80%D0%B0%D0%B2%D0%B8%D0%BB%D1%8C%D0%BD%D1%8B%D0%B9+%D0%BE%D1%82%D0%B2%D0%B5%D1%82+%D0%BD%D0%B0+%D0%B2%D0%BE%D0%BF%D1%80%D0%BE%D1%81+%E2%84%96'
30 ROPE_ADD 1 ~34 ~34, !9
31 ROPE_ADD 2 ~34 ~34, '+%28'
32 FETCH_OBJ_R ~32 !7, 'text'
33 ROPE_ADD 3 ~34 ~34, ~32
34 ROPE_END 4 ~33 ~34, '%29%0A'
35 ECHO ~33
48 36 ROPE_INIT 3 ~39 '%D0%9F%D0%BE%D0%B4%D1%81%D0%BA%D0%B0%D0%B7%D0%BA%D0%B0%3A+'
37 FETCH_OBJ_R ~37 !7, 'hint'
38 ROPE_ADD 1 ~39 ~39, ~37
39 ROPE_END 2 ~38 ~39, '%0A'
40 ECHO ~38
32 41 > PRE_INC !6
42 > COUNT ~42 !0
43 IS_SMALLER !6, ~42
44 > JMPNZ ~43, ->14
54 45 > ROPE_INIT 9 ~45 '%D0%9F%D1%80%D0%B0%D0%B2%D0%B8%D0%BB%D1%8C%D0%BD%D1%8B%D1%85+%D0%BE%D1%82%D0%B2%D0%B5%D1%82%D0%BE%D0%B2%3A+'
46 ROPE_ADD 1 ~45 ~45, !4
47 ROPE_ADD 2 ~45 ~45, '+%D0%B8%D0%B7+'
48 ROPE_ADD 3 ~45 ~45, !5
49 ROPE_ADD 4 ~45 ~45, '%2C+%D0%B1%D0%B0%D0%BB%D0%BB%D0%BE%D0%B2+%D0%BD%D0%B0%D0%B1%D1%80%D0%B0%D0%BD%D0%BE%3A+'
50 ROPE_ADD 5 ~45 ~45, !2
51 ROPE_ADD 6 ~45 ~45, '+%D0%B8%D0%B7+'
52 ROPE_ADD 7 ~45 ~45, !3
53 ROPE_END 8 ~44 ~45, '%0A'
54 ECHO ~44
55 55 > RETURN null
End of function checkanswers
End of class ChoiceQuestion.
Class NumericQuestion:
Function checkanswers:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
2 jumps found. (Code = 44) Position 1 = 45, Position 2 = 14
Branch analysis from position: 45
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 27
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
2 jumps found. (Code = 44) Position 1 = 45, Position 2 = 14
Branch analysis from position: 45
Branch analysis from position: 14
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 45, Position 2 = 14
Branch analysis from position: 45
Branch analysis from position: 14
filename: /in/fd5qV
function name: checkAnswers
number of ops: 56
compiled vars: !0 = $questions, !1 = $answers, !2 = $pointsTotal, !3 = $pointsMax, !4 = $correctAnswers, !5 = $totalQuestions, !6 = $i, !7 = $question, !8 = $answer, !9 = $number
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
64 0 E > RECV !0
1 RECV !1
67 2 COUNT ~10 !0
3 COUNT ~11 !1
4 IS_NOT_EQUAL ~10, ~11
5 > JMPZ ~12, ->7
68 6 > > EXIT '%D0%A7%D0%B8%D1%81%D0%BB%D0%BE+%D0%BE%D1%82%D0%B2%D0%B5%D1%82%D0%BE%D0%B2+%D0%B8+%D0%B2%D0%BE%D0%BF%D1%80%D0%BE%D1%81%D0%BE%D0%B2+%D0%BD%D0%B5+%D1%81%D0%BE%D0%B2%D0%BF%D0%B0%D0%B4%D0%B0%D0%B5%D1%82%0A'
71 7 > ASSIGN !2, 0
74 8 ASSIGN !3, 0
76 9 ASSIGN !4, 0
78 10 COUNT ~16 !0
11 ASSIGN !5, ~16
81 12 ASSIGN !6, 0
13 > JMP ->42
82 14 > FETCH_DIM_R ~19 !0, !6
15 ASSIGN !7, ~19
83 16 FETCH_DIM_R ~21 !1, !6
17 ASSIGN !8, ~21
86 18 FETCH_OBJ_R ~23 !7, 'points'
19 ASSIGN_OP 1 !3, ~23
89 20 FETCH_OBJ_R ~25 !7, 'correctAnswer'
21 IS_EQUAL !8, ~25
22 > JMPZ ~26, ->27
91 23 > PRE_INC !4
92 24 FETCH_OBJ_R ~28 !7, 'points'
25 ASSIGN_OP 1 !2, ~28
89 26 > JMP ->41
95 27 > ADD ~30 !6, 1
28 ASSIGN !9, ~30
96 29 ROPE_INIT 5 ~34 '%D0%9D%D0%B5%D0%BF%D1%80%D0%B0%D0%B2%D0%B8%D0%BB%D1%8C%D0%BD%D1%8B%D0%B9+%D0%BE%D1%82%D0%B2%D0%B5%D1%82+%D0%BD%D0%B0+%D0%B2%D0%BE%D0%BF%D1%80%D0%BE%D1%81+%E2%84%96'
30 ROPE_ADD 1 ~34 ~34, !9
31 ROPE_ADD 2 ~34 ~34, '+%28'
32 FETCH_OBJ_R ~32 !7, 'text'
33 ROPE_ADD 3 ~34 ~34, ~32
34 ROPE_END 4 ~33 ~34, '%29%0A'
35 ECHO ~33
97 36 ROPE_INIT 3 ~39 '%D0%9F%D0%BE%D0%B4%D1%81%D0%BA%D0%B0%D0%B7%D0%BA%D0%B0%3A+'
37 FETCH_OBJ_R ~37 !7, 'hint'
38 ROPE_ADD 1 ~39 ~39, ~37
39 ROPE_END 2 ~38 ~39, '%0A'
40 ECHO ~38
81 41 > PRE_INC !6
42 > COUNT ~42 !0
43 IS_SMALLER !6, ~42
44 > JMPNZ ~43, ->14
102 45 > ROPE_INIT 9 ~45 '%D0%9F%D1%80%D0%B0%D0%B2%D0%B8%D0%BB%D1%8C%D0%BD%D1%8B%D1%85+%D0%BE%D1%82%D0%B2%D0%B5%D1%82%D0%BE%D0%B2%3A+'
46 ROPE_ADD 1 ~45 ~45, !4
47 ROPE_ADD 2 ~45 ~45, '+%D0%B8%D0%B7+'
48 ROPE_ADD 3 ~45 ~45, !5
49 ROPE_ADD 4 ~45 ~45, '%2C+%D0%B1%D0%B0%D0%BB%D0%BB%D0%BE%D0%B2+%D0%BD%D0%B0%D0%B1%D1%80%D0%B0%D0%BD%D0%BE%3A+'
50 ROPE_ADD 5 ~45 ~45, !2
51 ROPE_ADD 6 ~45 ~45, '+%D0%B8%D0%B7+'
52 ROPE_ADD 7 ~45 ~45, !3
53 ROPE_END 8 ~44 ~45, '%0A'
54 ECHO ~44
103 55 > RETURN null
End of function checkanswers
End of class NumericQuestion.
Generated using Vulcan Logic Dumper, using php 8.0.0