Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/41ebV
function name: (null)
number of ops: 7
compiled vars: none
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
25 0 E > INIT_FCALL 'incorrect'
1 SEND_VAL 3
2 DO_FCALL 0
26 3 INIT_FCALL 'correct'
4 SEND_VAL 3
5 DO_FCALL 0
6 > RETURN 1
Function incorrect:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename: /in/41ebV
function name: incorrect
number of ops: 13
compiled vars: !0 = $flags
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
3 0 E > RECV !0
5 1 BW_AND ~1 !0, 1
2 > JMPZ ~1, ->5
6 3 > ECHO 'LOCK_SH%0A'
5 4 > JMP ->12
7 5 > BW_AND ~2 !0, 2
6 > JMPZ ~2, ->9
8 7 > ECHO 'LOCK_EX%0A'
7 8 > JMP ->12
9 9 > BW_AND ~3 !0, 3
10 > JMPZ ~3, ->12
10 11 > ECHO 'LOCK_UN%0A'
12 12 > > RETURN null
End of function incorrect
Function correct:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename: /in/41ebV
function name: correct
number of ops: 15
compiled vars: !0 = $flags, !1 = $mode
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
14 0 E > RECV !0
15 1 BW_AND ~2 !0, -5
2 ASSIGN !1, ~2
16 3 IS_IDENTICAL !1, 1
4 > JMPZ ~4, ->7
17 5 > ECHO 'LOCK_SH%0A'
16 6 > JMP ->14
18 7 > IS_IDENTICAL !1, 2
8 > JMPZ ~5, ->11
19 9 > ECHO 'LOCK_EX%0A'
18 10 > JMP ->14
20 11 > IS_IDENTICAL !1, 3
12 > JMPZ ~6, ->14
21 13 > ECHO 'LOCK_UN%0A'
23 14 > > RETURN null
End of function correct
Generated using Vulcan Logic Dumper, using php 8.0.0