Coverage Report

Created: 2025-12-31 07:28

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/php-src/Zend/Optimizer/zend_inference.h
Line
Count
Source
1
/*
2
   +----------------------------------------------------------------------+
3
   | Zend Engine, e-SSA based Type & Range Inference                      |
4
   +----------------------------------------------------------------------+
5
   | Copyright (c) The PHP Group                                          |
6
   +----------------------------------------------------------------------+
7
   | This source file is subject to version 3.01 of the PHP license,      |
8
   | that is bundled with this package in the file LICENSE, and is        |
9
   | available through the world-wide-web at the following url:           |
10
   | https://www.php.net/license/3_01.txt                                 |
11
   | If you did not receive a copy of the PHP license and are unable to   |
12
   | obtain it through the world-wide-web, please send a note to          |
13
   | license@php.net so we can mail you a copy immediately.               |
14
   +----------------------------------------------------------------------+
15
   | Authors: Dmitry Stogov <dmitry@php.net>                              |
16
   +----------------------------------------------------------------------+
17
*/
18
19
#ifndef ZEND_INFERENCE_H
20
#define ZEND_INFERENCE_H
21
22
#include "zend_optimizer.h"
23
#include "zend_ssa.h"
24
#include "zend_bitset.h"
25
26
/* Bitmask for type inference (zend_ssa_var_info.type) */
27
#include "zend_type_info.h"
28
29
#include <stdint.h>
30
31
0
#define MAY_BE_PACKED_GUARD         (1<<27) /* needs packed array guard */
32
0
#define MAY_BE_CLASS_GUARD          (1<<27) /* needs class guard */
33
559k
#define MAY_BE_GUARD                (1<<28) /* needs type guard */
34
35
#define MAY_HAVE_DTOR \
36
1.76k
  (MAY_BE_OBJECT|MAY_BE_RESOURCE \
37
1.76k
  |MAY_BE_ARRAY_OF_ARRAY|MAY_BE_ARRAY_OF_OBJECT|MAY_BE_ARRAY_OF_RESOURCE)
38
39
#define DEFINE_SSA_OP_HAS_RANGE(opN) \
40
  static zend_always_inline bool _ssa_##opN##_has_range(const zend_op_array *op_array, const zend_ssa *ssa, const zend_op *opline, const zend_ssa_op *ssa_op) \
41
118k
  { \
42
118k
    if (opline->opN##_type == IS_CONST) { \
43
13.4k
      zval *zv = CRT_CONSTANT(opline->opN); \
44
13.4k
      return (Z_TYPE_P(zv) == IS_LONG); \
45
104k
    } else { \
46
104k
      return (opline->opN##_type != IS_UNUSED && \
47
104k
            ssa->var_info && \
48
104k
            ssa_op->opN##_use >= 0 && \
49
104k
          ssa->var_info[ssa_op->opN##_use].has_range); \
50
104k
    } \
51
118k
    return 0; \
52
118k
  } \
Unexecuted instantiation: zend_jit.c:_ssa_op1_has_range
Unexecuted instantiation: zend_jit.c:_ssa_op2_has_range
Unexecuted instantiation: dce.c:_ssa_op1_has_range
Unexecuted instantiation: dce.c:_ssa_op2_has_range
Unexecuted instantiation: dfa_pass.c:_ssa_op1_has_range
Unexecuted instantiation: dfa_pass.c:_ssa_op2_has_range
Unexecuted instantiation: escape_analysis.c:_ssa_op1_has_range
Unexecuted instantiation: escape_analysis.c:_ssa_op2_has_range
Unexecuted instantiation: sccp.c:_ssa_op1_has_range
Unexecuted instantiation: sccp.c:_ssa_op2_has_range
Unexecuted instantiation: zend_call_graph.c:_ssa_op1_has_range
Unexecuted instantiation: zend_call_graph.c:_ssa_op2_has_range
Unexecuted instantiation: zend_dump.c:_ssa_op1_has_range
Unexecuted instantiation: zend_dump.c:_ssa_op2_has_range
Unexecuted instantiation: zend_func_info.c:_ssa_op1_has_range
Unexecuted instantiation: zend_func_info.c:_ssa_op2_has_range
zend_inference.c:_ssa_op1_has_range
Line
Count
Source
41
72.5k
  { \
42
72.5k
    if (opline->opN##_type == IS_CONST) { \
43
7.47k
      zval *zv = CRT_CONSTANT(opline->opN); \
44
7.47k
      return (Z_TYPE_P(zv) == IS_LONG); \
45
65.0k
    } else { \
46
65.0k
      return (opline->opN##_type != IS_UNUSED && \
47
65.0k
            ssa->var_info && \
48
65.0k
            ssa_op->opN##_use >= 0 && \
49
65.0k
          ssa->var_info[ssa_op->opN##_use].has_range); \
50
65.0k
    } \
51
72.5k
    return 0; \
52
72.5k
  } \
zend_inference.c:_ssa_op2_has_range
Line
Count
Source
41
45.5k
  { \
42
45.5k
    if (opline->opN##_type == IS_CONST) { \
43
5.95k
      zval *zv = CRT_CONSTANT(opline->opN); \
44
5.95k
      return (Z_TYPE_P(zv) == IS_LONG); \
45
39.6k
    } else { \
46
39.6k
      return (opline->opN##_type != IS_UNUSED && \
47
39.6k
            ssa->var_info && \
48
39.6k
            ssa_op->opN##_use >= 0 && \
49
39.6k
          ssa->var_info[ssa_op->opN##_use].has_range); \
50
39.6k
    } \
51
45.5k
    return 0; \
52
45.5k
  } \
Unexecuted instantiation: zend_optimizer.c:_ssa_op1_has_range
Unexecuted instantiation: zend_optimizer.c:_ssa_op2_has_range
Unexecuted instantiation: zend_ssa.c:_ssa_op1_has_range
Unexecuted instantiation: zend_ssa.c:_ssa_op2_has_range
53
54
#define DEFINE_SSA_OP_MIN_RANGE(opN) \
55
  static zend_always_inline zend_long _ssa_##opN##_min_range(const zend_op_array *op_array, const zend_ssa *ssa, const zend_op *opline, const zend_ssa_op *ssa_op) \
56
92.2k
  { \
57
92.2k
    if (opline->opN##_type == IS_CONST) { \
58
5.18k
      zval *zv = CRT_CONSTANT(opline->opN); \
59
5.18k
      if (Z_TYPE_P(zv) == IS_LONG) { \
60
5.18k
        return Z_LVAL_P(zv); \
61
5.18k
      } \
62
87.0k
    } else if (opline->opN##_type != IS_UNUSED && \
63
87.0k
        ssa->var_info && \
64
87.0k
        ssa_op->opN##_use >= 0 && \
65
87.0k
        ssa->var_info[ssa_op->opN##_use].has_range) { \
66
87.0k
      return ssa->var_info[ssa_op->opN##_use].range.min; \
67
87.0k
    } \
68
92.2k
    return ZEND_LONG_MIN; \
69
92.2k
  } \
Unexecuted instantiation: dce.c:_ssa_op1_min_range
Unexecuted instantiation: dce.c:_ssa_op2_min_range
Unexecuted instantiation: dfa_pass.c:_ssa_op1_min_range
Unexecuted instantiation: dfa_pass.c:_ssa_op2_min_range
Unexecuted instantiation: escape_analysis.c:_ssa_op1_min_range
Unexecuted instantiation: escape_analysis.c:_ssa_op2_min_range
Unexecuted instantiation: sccp.c:_ssa_op1_min_range
Unexecuted instantiation: sccp.c:_ssa_op2_min_range
Unexecuted instantiation: zend_call_graph.c:_ssa_op1_min_range
Unexecuted instantiation: zend_call_graph.c:_ssa_op2_min_range
Unexecuted instantiation: zend_dump.c:_ssa_op1_min_range
Unexecuted instantiation: zend_dump.c:_ssa_op2_min_range
Unexecuted instantiation: zend_func_info.c:_ssa_op1_min_range
Unexecuted instantiation: zend_func_info.c:_ssa_op2_min_range
Unexecuted instantiation: zend_optimizer.c:_ssa_op1_min_range
Unexecuted instantiation: zend_optimizer.c:_ssa_op2_min_range
Unexecuted instantiation: zend_ssa.c:_ssa_op1_min_range
Unexecuted instantiation: zend_ssa.c:_ssa_op2_min_range
70
71
#define DEFINE_SSA_OP_MAX_RANGE(opN) \
72
  static zend_always_inline zend_long _ssa_##opN##_max_range(const zend_op_array *op_array, const zend_ssa *ssa, const zend_op *opline, const zend_ssa_op *ssa_op) \
73
92.1k
  { \
74
92.1k
    if (opline->opN##_type == IS_CONST) { \
75
5.10k
      zval *zv = CRT_CONSTANT(opline->opN); \
76
5.10k
      if (Z_TYPE_P(zv) == IS_LONG) { \
77
5.10k
        return Z_LVAL_P(zv); \
78
5.10k
      } \
79
87.0k
    } else if (opline->opN##_type != IS_UNUSED && \
80
87.0k
        ssa->var_info && \
81
87.0k
        ssa_op->opN##_use >= 0 && \
82
87.0k
        ssa->var_info[ssa_op->opN##_use].has_range) { \
83
87.0k
      return ssa->var_info[ssa_op->opN##_use].range.max; \
84
87.0k
    } \
85
92.1k
    return ZEND_LONG_MAX; \
86
92.1k
  } \
Unexecuted instantiation: dce.c:_ssa_op1_max_range
Unexecuted instantiation: dce.c:_ssa_op2_max_range
Unexecuted instantiation: dfa_pass.c:_ssa_op1_max_range
Unexecuted instantiation: dfa_pass.c:_ssa_op2_max_range
Unexecuted instantiation: escape_analysis.c:_ssa_op1_max_range
Unexecuted instantiation: escape_analysis.c:_ssa_op2_max_range
Unexecuted instantiation: sccp.c:_ssa_op1_max_range
Unexecuted instantiation: sccp.c:_ssa_op2_max_range
Unexecuted instantiation: zend_call_graph.c:_ssa_op1_max_range
Unexecuted instantiation: zend_call_graph.c:_ssa_op2_max_range
Unexecuted instantiation: zend_dump.c:_ssa_op1_max_range
Unexecuted instantiation: zend_dump.c:_ssa_op2_max_range
Unexecuted instantiation: zend_func_info.c:_ssa_op1_max_range
Unexecuted instantiation: zend_func_info.c:_ssa_op2_max_range
Unexecuted instantiation: zend_optimizer.c:_ssa_op1_max_range
Unexecuted instantiation: zend_optimizer.c:_ssa_op2_max_range
Unexecuted instantiation: zend_ssa.c:_ssa_op1_max_range
Unexecuted instantiation: zend_ssa.c:_ssa_op2_max_range
87
88
#define DEFINE_SSA_OP_RANGE_UNDERFLOW(opN) \
89
  static zend_always_inline char _ssa_##opN##_range_underflow(const zend_op_array *op_array, const zend_ssa *ssa, const zend_op *opline, const zend_ssa_op *ssa_op) \
90
75.5k
  { \
91
75.5k
    if (opline->opN##_type == IS_CONST) { \
92
3.31k
      zval *zv = CRT_CONSTANT(opline->opN); \
93
3.31k
      if (Z_TYPE_P(zv) == IS_LONG) { \
94
3.31k
        return 0; \
95
3.31k
      } \
96
72.2k
    } else if (opline->opN##_type != IS_UNUSED && \
97
72.2k
        ssa->var_info && \
98
72.2k
        ssa_op->opN##_use >= 0 && \
99
72.2k
        ssa->var_info[ssa_op->opN##_use].has_range) { \
100
72.2k
      return ssa->var_info[ssa_op->opN##_use].range.underflow; \
101
72.2k
    } \
102
75.5k
    return 1; \
103
75.5k
  } \
Unexecuted instantiation: zend_jit.c:_ssa_op1_range_underflow
Unexecuted instantiation: zend_jit.c:_ssa_op2_range_underflow
Unexecuted instantiation: dce.c:_ssa_op1_range_underflow
Unexecuted instantiation: dce.c:_ssa_op2_range_underflow
Unexecuted instantiation: dfa_pass.c:_ssa_op1_range_underflow
Unexecuted instantiation: dfa_pass.c:_ssa_op2_range_underflow
Unexecuted instantiation: escape_analysis.c:_ssa_op1_range_underflow
Unexecuted instantiation: escape_analysis.c:_ssa_op2_range_underflow
Unexecuted instantiation: sccp.c:_ssa_op1_range_underflow
Unexecuted instantiation: sccp.c:_ssa_op2_range_underflow
Unexecuted instantiation: zend_call_graph.c:_ssa_op1_range_underflow
Unexecuted instantiation: zend_call_graph.c:_ssa_op2_range_underflow
Unexecuted instantiation: zend_dump.c:_ssa_op1_range_underflow
Unexecuted instantiation: zend_dump.c:_ssa_op2_range_underflow
Unexecuted instantiation: zend_func_info.c:_ssa_op1_range_underflow
Unexecuted instantiation: zend_func_info.c:_ssa_op2_range_underflow
zend_inference.c:_ssa_op1_range_underflow
Line
Count
Source
90
57.0k
  { \
91
57.0k
    if (opline->opN##_type == IS_CONST) { \
92
1.40k
      zval *zv = CRT_CONSTANT(opline->opN); \
93
1.40k
      if (Z_TYPE_P(zv) == IS_LONG) { \
94
1.40k
        return 0; \
95
1.40k
      } \
96
55.6k
    } else if (opline->opN##_type != IS_UNUSED && \
97
55.6k
        ssa->var_info && \
98
55.6k
        ssa_op->opN##_use >= 0 && \
99
55.6k
        ssa->var_info[ssa_op->opN##_use].has_range) { \
100
55.6k
      return ssa->var_info[ssa_op->opN##_use].range.underflow; \
101
55.6k
    } \
102
57.0k
    return 1; \
103
57.0k
  } \
zend_inference.c:_ssa_op2_range_underflow
Line
Count
Source
90
18.5k
  { \
91
18.5k
    if (opline->opN##_type == IS_CONST) { \
92
1.91k
      zval *zv = CRT_CONSTANT(opline->opN); \
93
1.91k
      if (Z_TYPE_P(zv) == IS_LONG) { \
94
1.91k
        return 0; \
95
1.91k
      } \
96
16.6k
    } else if (opline->opN##_type != IS_UNUSED && \
97
16.6k
        ssa->var_info && \
98
16.6k
        ssa_op->opN##_use >= 0 && \
99
16.6k
        ssa->var_info[ssa_op->opN##_use].has_range) { \
100
16.6k
      return ssa->var_info[ssa_op->opN##_use].range.underflow; \
101
16.6k
    } \
102
18.5k
    return 1; \
103
18.5k
  } \
Unexecuted instantiation: zend_optimizer.c:_ssa_op1_range_underflow
Unexecuted instantiation: zend_optimizer.c:_ssa_op2_range_underflow
Unexecuted instantiation: zend_ssa.c:_ssa_op1_range_underflow
Unexecuted instantiation: zend_ssa.c:_ssa_op2_range_underflow
104
105
#define DEFINE_SSA_OP_RANGE_OVERFLOW(opN) \
106
  static zend_always_inline char _ssa_##opN##_range_overflow(const zend_op_array *op_array, const zend_ssa *ssa, const zend_op *opline, const zend_ssa_op *ssa_op) \
107
66.3k
  { \
108
66.3k
    if (opline->opN##_type == IS_CONST) { \
109
3.24k
      zval *zv = CRT_CONSTANT(opline->opN); \
110
3.24k
      if (Z_TYPE_P(zv) == IS_LONG) { \
111
3.24k
        return 0; \
112
3.24k
      } \
113
63.1k
    } else if (opline->opN##_type != IS_UNUSED && \
114
63.1k
        ssa->var_info && \
115
63.1k
        ssa_op->opN##_use >= 0 && \
116
63.1k
        ssa->var_info[ssa_op->opN##_use].has_range) { \
117
63.1k
      return ssa->var_info[ssa_op->opN##_use].range.overflow; \
118
63.1k
    } \
119
66.3k
    return 1; \
120
66.3k
  } \
Unexecuted instantiation: zend_jit.c:_ssa_op1_range_overflow
Unexecuted instantiation: zend_jit.c:_ssa_op2_range_overflow
Unexecuted instantiation: dce.c:_ssa_op1_range_overflow
Unexecuted instantiation: dce.c:_ssa_op2_range_overflow
Unexecuted instantiation: dfa_pass.c:_ssa_op1_range_overflow
Unexecuted instantiation: dfa_pass.c:_ssa_op2_range_overflow
Unexecuted instantiation: escape_analysis.c:_ssa_op1_range_overflow
Unexecuted instantiation: escape_analysis.c:_ssa_op2_range_overflow
Unexecuted instantiation: sccp.c:_ssa_op1_range_overflow
Unexecuted instantiation: sccp.c:_ssa_op2_range_overflow
Unexecuted instantiation: zend_call_graph.c:_ssa_op1_range_overflow
Unexecuted instantiation: zend_call_graph.c:_ssa_op2_range_overflow
Unexecuted instantiation: zend_dump.c:_ssa_op1_range_overflow
Unexecuted instantiation: zend_dump.c:_ssa_op2_range_overflow
Unexecuted instantiation: zend_func_info.c:_ssa_op1_range_overflow
Unexecuted instantiation: zend_func_info.c:_ssa_op2_range_overflow
zend_inference.c:_ssa_op1_range_overflow
Line
Count
Source
107
47.4k
  { \
108
47.4k
    if (opline->opN##_type == IS_CONST) { \
109
1.33k
      zval *zv = CRT_CONSTANT(opline->opN); \
110
1.33k
      if (Z_TYPE_P(zv) == IS_LONG) { \
111
1.33k
        return 0; \
112
1.33k
      } \
113
46.1k
    } else if (opline->opN##_type != IS_UNUSED && \
114
46.1k
        ssa->var_info && \
115
46.1k
        ssa_op->opN##_use >= 0 && \
116
46.1k
        ssa->var_info[ssa_op->opN##_use].has_range) { \
117
46.1k
      return ssa->var_info[ssa_op->opN##_use].range.overflow; \
118
46.1k
    } \
119
47.4k
    return 1; \
120
47.4k
  } \
zend_inference.c:_ssa_op2_range_overflow
Line
Count
Source
107
18.8k
  { \
108
18.8k
    if (opline->opN##_type == IS_CONST) { \
109
1.91k
      zval *zv = CRT_CONSTANT(opline->opN); \
110
1.91k
      if (Z_TYPE_P(zv) == IS_LONG) { \
111
1.91k
        return 0; \
112
1.91k
      } \
113
16.9k
    } else if (opline->opN##_type != IS_UNUSED && \
114
16.9k
        ssa->var_info && \
115
16.9k
        ssa_op->opN##_use >= 0 && \
116
16.9k
        ssa->var_info[ssa_op->opN##_use].has_range) { \
117
16.9k
      return ssa->var_info[ssa_op->opN##_use].range.overflow; \
118
16.9k
    } \
119
18.8k
    return 1; \
120
18.8k
  } \
Unexecuted instantiation: zend_optimizer.c:_ssa_op1_range_overflow
Unexecuted instantiation: zend_optimizer.c:_ssa_op2_range_overflow
Unexecuted instantiation: zend_ssa.c:_ssa_op1_range_overflow
Unexecuted instantiation: zend_ssa.c:_ssa_op2_range_overflow
121
122
DEFINE_SSA_OP_HAS_RANGE(op1)
123
54.6k
DEFINE_SSA_OP_MIN_RANGE(op1)
Unexecuted instantiation: zend_jit.c:_ssa_op1_min_range
Unexecuted instantiation: zend_inference.c:_ssa_op1_min_range
124
54.6k
DEFINE_SSA_OP_MAX_RANGE(op1)
Unexecuted instantiation: zend_jit.c:_ssa_op1_max_range
Unexecuted instantiation: zend_inference.c:_ssa_op1_max_range
125
DEFINE_SSA_OP_RANGE_UNDERFLOW(op1)
126
DEFINE_SSA_OP_RANGE_OVERFLOW(op1)
127
DEFINE_SSA_OP_HAS_RANGE(op2)
128
37.5k
DEFINE_SSA_OP_MIN_RANGE(op2)
Unexecuted instantiation: zend_jit.c:_ssa_op2_min_range
Unexecuted instantiation: zend_inference.c:_ssa_op2_min_range
129
37.4k
DEFINE_SSA_OP_MAX_RANGE(op2)
Unexecuted instantiation: zend_jit.c:_ssa_op2_max_range
Unexecuted instantiation: zend_inference.c:_ssa_op2_max_range
130
DEFINE_SSA_OP_RANGE_UNDERFLOW(op2)
131
DEFINE_SSA_OP_RANGE_OVERFLOW(op2)
132
133
107k
#define OP1_HAS_RANGE()       (_ssa_op1_has_range (op_array, ssa, opline, ssa_op))
134
54.6k
#define OP1_MIN_RANGE()       (_ssa_op1_min_range (op_array, ssa, opline, ssa_op))
135
54.6k
#define OP1_MAX_RANGE()       (_ssa_op1_max_range (op_array, ssa, opline, ssa_op))
136
100k
#define OP1_RANGE_UNDERFLOW() (_ssa_op1_range_underflow (op_array, ssa, opline, ssa_op))
137
71.7k
#define OP1_RANGE_OVERFLOW()  (_ssa_op1_range_overflow (op_array, ssa, opline, ssa_op))
138
45.8k
#define OP2_HAS_RANGE()       (_ssa_op2_has_range (op_array, ssa, opline, ssa_op))
139
37.5k
#define OP2_MIN_RANGE()       (_ssa_op2_min_range (op_array, ssa, opline, ssa_op))
140
37.4k
#define OP2_MAX_RANGE()       (_ssa_op2_max_range (op_array, ssa, opline, ssa_op))
141
42.7k
#define OP2_RANGE_UNDERFLOW() (_ssa_op2_range_underflow (op_array, ssa, opline, ssa_op))
142
40.9k
#define OP2_RANGE_OVERFLOW()  (_ssa_op2_range_overflow (op_array, ssa, opline, ssa_op))
143
144
BEGIN_EXTERN_C()
145
ZEND_API uint32_t ZEND_FASTCALL zend_array_type_info(const zval *zv);
146
END_EXTERN_C()
147
148
378k
static zend_always_inline uint32_t _const_op_type(const zval *zv) {
149
378k
  if (Z_TYPE_P(zv) == IS_CONSTANT_AST) {
150
90
    return MAY_BE_RC1 | MAY_BE_RCN | MAY_BE_ANY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY;
151
378k
  } else if (Z_TYPE_P(zv) == IS_ARRAY) {
152
1.94k
    return zend_array_type_info(zv);
153
376k
  } else {
154
376k
    uint32_t tmp = (1 << Z_TYPE_P(zv));
155
156
376k
    if (Z_REFCOUNTED_P(zv)) {
157
47.2k
      tmp |= MAY_BE_RC1 | MAY_BE_RCN;
158
329k
    } else if (Z_TYPE_P(zv) == IS_STRING) {
159
287k
      tmp |= MAY_BE_RCN;
160
287k
    }
161
376k
    return tmp;
162
376k
  }
163
378k
}
Unexecuted instantiation: zend_jit.c:_const_op_type
Unexecuted instantiation: dce.c:_const_op_type
dfa_pass.c:_const_op_type
Line
Count
Source
148
851
static zend_always_inline uint32_t _const_op_type(const zval *zv) {
149
851
  if (Z_TYPE_P(zv) == IS_CONSTANT_AST) {
150
0
    return MAY_BE_RC1 | MAY_BE_RCN | MAY_BE_ANY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY;
151
851
  } else if (Z_TYPE_P(zv) == IS_ARRAY) {
152
0
    return zend_array_type_info(zv);
153
851
  } else {
154
851
    uint32_t tmp = (1 << Z_TYPE_P(zv));
155
156
851
    if (Z_REFCOUNTED_P(zv)) {
157
132
      tmp |= MAY_BE_RC1 | MAY_BE_RCN;
158
719
    } else if (Z_TYPE_P(zv) == IS_STRING) {
159
719
      tmp |= MAY_BE_RCN;
160
719
    }
161
851
    return tmp;
162
851
  }
163
851
}
Unexecuted instantiation: escape_analysis.c:_const_op_type
Unexecuted instantiation: sccp.c:_const_op_type
Unexecuted instantiation: zend_call_graph.c:_const_op_type
Unexecuted instantiation: zend_dump.c:_const_op_type
zend_func_info.c:_const_op_type
Line
Count
Source
148
116
static zend_always_inline uint32_t _const_op_type(const zval *zv) {
149
116
  if (Z_TYPE_P(zv) == IS_CONSTANT_AST) {
150
0
    return MAY_BE_RC1 | MAY_BE_RCN | MAY_BE_ANY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY;
151
116
  } else if (Z_TYPE_P(zv) == IS_ARRAY) {
152
0
    return zend_array_type_info(zv);
153
116
  } else {
154
116
    uint32_t tmp = (1 << Z_TYPE_P(zv));
155
156
116
    if (Z_REFCOUNTED_P(zv)) {
157
0
      tmp |= MAY_BE_RC1 | MAY_BE_RCN;
158
116
    } else if (Z_TYPE_P(zv) == IS_STRING) {
159
0
      tmp |= MAY_BE_RCN;
160
0
    }
161
116
    return tmp;
162
116
  }
163
116
}
zend_inference.c:_const_op_type
Line
Count
Source
148
197k
static zend_always_inline uint32_t _const_op_type(const zval *zv) {
149
197k
  if (Z_TYPE_P(zv) == IS_CONSTANT_AST) {
150
90
    return MAY_BE_RC1 | MAY_BE_RCN | MAY_BE_ANY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY;
151
197k
  } else if (Z_TYPE_P(zv) == IS_ARRAY) {
152
996
    return zend_array_type_info(zv);
153
196k
  } else {
154
196k
    uint32_t tmp = (1 << Z_TYPE_P(zv));
155
156
196k
    if (Z_REFCOUNTED_P(zv)) {
157
30.1k
      tmp |= MAY_BE_RC1 | MAY_BE_RCN;
158
166k
    } else if (Z_TYPE_P(zv) == IS_STRING) {
159
142k
      tmp |= MAY_BE_RCN;
160
142k
    }
161
196k
    return tmp;
162
196k
  }
163
197k
}
zend_optimizer.c:_const_op_type
Line
Count
Source
148
180k
static zend_always_inline uint32_t _const_op_type(const zval *zv) {
149
180k
  if (Z_TYPE_P(zv) == IS_CONSTANT_AST) {
150
0
    return MAY_BE_RC1 | MAY_BE_RCN | MAY_BE_ANY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY;
151
180k
  } else if (Z_TYPE_P(zv) == IS_ARRAY) {
152
949
    return zend_array_type_info(zv);
153
179k
  } else {
154
179k
    uint32_t tmp = (1 << Z_TYPE_P(zv));
155
156
179k
    if (Z_REFCOUNTED_P(zv)) {
157
16.9k
      tmp |= MAY_BE_RC1 | MAY_BE_RCN;
158
162k
    } else if (Z_TYPE_P(zv) == IS_STRING) {
159
143k
      tmp |= MAY_BE_RCN;
160
143k
    }
161
179k
    return tmp;
162
179k
  }
163
180k
}
Unexecuted instantiation: zend_ssa.c:_const_op_type
164
165
static zend_always_inline uint32_t get_ssa_var_info(const zend_ssa *ssa, int ssa_var_num)
166
2.03M
{
167
2.03M
  if (ssa->var_info && ssa_var_num >= 0) {
168
1.61M
    return ssa->var_info[ssa_var_num].type;
169
1.61M
  } else {
170
417k
    return MAY_BE_UNDEF | MAY_BE_RC1 | MAY_BE_RCN | MAY_BE_REF | MAY_BE_INDIRECT | MAY_BE_ANY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF;
171
417k
  }
172
2.03M
}
Unexecuted instantiation: zend_jit.c:get_ssa_var_info
dce.c:get_ssa_var_info
Line
Count
Source
166
2.31k
{
167
2.31k
  if (ssa->var_info && ssa_var_num >= 0) {
168
2.31k
    return ssa->var_info[ssa_var_num].type;
169
2.31k
  } else {
170
0
    return MAY_BE_UNDEF | MAY_BE_RC1 | MAY_BE_RCN | MAY_BE_REF | MAY_BE_INDIRECT | MAY_BE_ANY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF;
171
0
  }
172
2.31k
}
dfa_pass.c:get_ssa_var_info
Line
Count
Source
166
12.8k
{
167
12.8k
  if (ssa->var_info && ssa_var_num >= 0) {
168
12.8k
    return ssa->var_info[ssa_var_num].type;
169
12.8k
  } else {
170
0
    return MAY_BE_UNDEF | MAY_BE_RC1 | MAY_BE_RCN | MAY_BE_REF | MAY_BE_INDIRECT | MAY_BE_ANY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF;
171
0
  }
172
12.8k
}
escape_analysis.c:get_ssa_var_info
Line
Count
Source
166
1.37k
{
167
1.37k
  if (ssa->var_info && ssa_var_num >= 0) {
168
1.37k
    return ssa->var_info[ssa_var_num].type;
169
1.37k
  } else {
170
0
    return MAY_BE_UNDEF | MAY_BE_RC1 | MAY_BE_RCN | MAY_BE_REF | MAY_BE_INDIRECT | MAY_BE_ANY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF;
171
0
  }
172
1.37k
}
Unexecuted instantiation: sccp.c:get_ssa_var_info
Unexecuted instantiation: zend_call_graph.c:get_ssa_var_info
Unexecuted instantiation: zend_dump.c:get_ssa_var_info
Unexecuted instantiation: zend_func_info.c:get_ssa_var_info
zend_inference.c:get_ssa_var_info
Line
Count
Source
166
943k
{
167
943k
  if (ssa->var_info && ssa_var_num >= 0) {
168
693k
    return ssa->var_info[ssa_var_num].type;
169
693k
  } else {
170
249k
    return MAY_BE_UNDEF | MAY_BE_RC1 | MAY_BE_RCN | MAY_BE_REF | MAY_BE_INDIRECT | MAY_BE_ANY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF;
171
249k
  }
172
943k
}
zend_optimizer.c:get_ssa_var_info
Line
Count
Source
166
1.07M
{
167
1.07M
  if (ssa->var_info && ssa_var_num >= 0) {
168
907k
    return ssa->var_info[ssa_var_num].type;
169
907k
  } else {
170
168k
    return MAY_BE_UNDEF | MAY_BE_RC1 | MAY_BE_RCN | MAY_BE_REF | MAY_BE_INDIRECT | MAY_BE_ANY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF;
171
168k
  }
172
1.07M
}
Unexecuted instantiation: zend_ssa.c:get_ssa_var_info
173
174
#define DEFINE_SSA_OP_INFO(opN) \
175
  static zend_always_inline uint32_t _ssa_##opN##_info(const zend_op_array *op_array, const zend_ssa *ssa, const zend_op *opline, const zend_ssa_op *ssa_op) \
176
1.83M
  {                                   \
177
1.83M
    if (opline->opN##_type == IS_CONST) {             \
178
378k
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
1.45M
    } else { \
180
1.45M
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
1.45M
    } \
182
1.83M
  } \
Unexecuted instantiation: zend_jit.c:_ssa_op1_info
Unexecuted instantiation: zend_jit.c:_ssa_op2_info
Unexecuted instantiation: zend_jit.c:_ssa_result_info
dce.c:_ssa_op2_info
Line
Count
Source
176
1.70k
  {                                   \
177
1.70k
    if (opline->opN##_type == IS_CONST) {             \
178
0
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
1.70k
    } else { \
180
1.70k
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
1.70k
    } \
182
1.70k
  } \
dce.c:_ssa_op1_info
Line
Count
Source
176
610
  {                                   \
177
610
    if (opline->opN##_type == IS_CONST) {             \
178
0
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
610
    } else { \
180
610
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
610
    } \
182
610
  } \
Unexecuted instantiation: dce.c:_ssa_result_info
dfa_pass.c:_ssa_op2_info
Line
Count
Source
176
5.07k
  {                                   \
177
5.07k
    if (opline->opN##_type == IS_CONST) {             \
178
459
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
4.61k
    } else { \
180
4.61k
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
4.61k
    } \
182
5.07k
  } \
dfa_pass.c:_ssa_op1_info
Line
Count
Source
176
8.58k
  {                                   \
177
8.58k
    if (opline->opN##_type == IS_CONST) {             \
178
392
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
8.19k
    } else { \
180
8.19k
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
8.19k
    } \
182
8.58k
  } \
Unexecuted instantiation: dfa_pass.c:_ssa_result_info
escape_analysis.c:_ssa_op1_info
Line
Count
Source
176
1.26k
  {                                   \
177
1.26k
    if (opline->opN##_type == IS_CONST) {             \
178
0
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
1.26k
    } else { \
180
1.26k
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
1.26k
    } \
182
1.26k
  } \
escape_analysis.c:_ssa_op2_info
Line
Count
Source
176
112
  {                                   \
177
112
    if (opline->opN##_type == IS_CONST) {             \
178
0
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
112
    } else { \
180
112
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
112
    } \
182
112
  } \
Unexecuted instantiation: escape_analysis.c:_ssa_result_info
Unexecuted instantiation: sccp.c:_ssa_op1_info
Unexecuted instantiation: sccp.c:_ssa_op2_info
Unexecuted instantiation: sccp.c:_ssa_result_info
Unexecuted instantiation: zend_call_graph.c:_ssa_op1_info
Unexecuted instantiation: zend_call_graph.c:_ssa_op2_info
Unexecuted instantiation: zend_call_graph.c:_ssa_result_info
Unexecuted instantiation: zend_dump.c:_ssa_op1_info
Unexecuted instantiation: zend_dump.c:_ssa_op2_info
Unexecuted instantiation: zend_dump.c:_ssa_result_info
zend_func_info.c:_ssa_op1_info
Line
Count
Source
176
116
  {                                   \
177
116
    if (opline->opN##_type == IS_CONST) {             \
178
116
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
116
    } else { \
180
0
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
0
    } \
182
116
  } \
Unexecuted instantiation: zend_func_info.c:_ssa_op2_info
Unexecuted instantiation: zend_func_info.c:_ssa_result_info
zend_inference.c:_ssa_result_info
Line
Count
Source
176
20.7k
  {                                   \
177
20.7k
    if (opline->opN##_type == IS_CONST) {             \
178
0
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
20.7k
    } else { \
180
20.7k
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
20.7k
    } \
182
20.7k
  } \
zend_inference.c:_ssa_op1_info
Line
Count
Source
176
476k
  {                                   \
177
476k
    if (opline->opN##_type == IS_CONST) {             \
178
27.9k
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
448k
    } else { \
180
448k
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
448k
    } \
182
476k
  } \
zend_inference.c:_ssa_op2_info
Line
Count
Source
176
461k
  {                                   \
177
461k
    if (opline->opN##_type == IS_CONST) {             \
178
169k
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
292k
    } else { \
180
292k
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
292k
    } \
182
461k
  } \
zend_optimizer.c:_ssa_op1_info
Line
Count
Source
176
427k
  {                                   \
177
427k
    if (opline->opN##_type == IS_CONST) {             \
178
37.8k
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
389k
    } else { \
180
389k
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
389k
    } \
182
427k
  } \
zend_optimizer.c:_ssa_op2_info
Line
Count
Source
176
427k
  {                                   \
177
427k
    if (opline->opN##_type == IS_CONST) {             \
178
142k
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
284k
    } else { \
180
284k
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
284k
    } \
182
427k
  } \
Unexecuted instantiation: zend_optimizer.c:_ssa_result_info
Unexecuted instantiation: zend_ssa.c:_ssa_op1_info
Unexecuted instantiation: zend_ssa.c:_ssa_op2_info
Unexecuted instantiation: zend_ssa.c:_ssa_result_info
183
184
#define DEFINE_SSA_OP_DEF_INFO(opN) \
185
  static zend_always_inline uint32_t _ssa_##opN##_def_info(const zend_op_array *op_array, const zend_ssa *ssa, const zend_op *opline, const zend_ssa_op *ssa_op) \
186
401k
  { \
187
401k
    return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_def : -1); \
188
401k
  } \
Unexecuted instantiation: zend_jit.c:_ssa_result_def_info
Unexecuted instantiation: zend_jit.c:_ssa_op1_def_info
Unexecuted instantiation: zend_jit.c:_ssa_op2_def_info
Unexecuted instantiation: dce.c:_ssa_op1_def_info
Unexecuted instantiation: dce.c:_ssa_op2_def_info
Unexecuted instantiation: dce.c:_ssa_result_def_info
Unexecuted instantiation: dfa_pass.c:_ssa_op1_def_info
Unexecuted instantiation: dfa_pass.c:_ssa_op2_def_info
Unexecuted instantiation: dfa_pass.c:_ssa_result_def_info
Unexecuted instantiation: escape_analysis.c:_ssa_op1_def_info
Unexecuted instantiation: escape_analysis.c:_ssa_op2_def_info
Unexecuted instantiation: escape_analysis.c:_ssa_result_def_info
Unexecuted instantiation: sccp.c:_ssa_op1_def_info
Unexecuted instantiation: sccp.c:_ssa_op2_def_info
Unexecuted instantiation: sccp.c:_ssa_result_def_info
Unexecuted instantiation: zend_call_graph.c:_ssa_op1_def_info
Unexecuted instantiation: zend_call_graph.c:_ssa_op2_def_info
Unexecuted instantiation: zend_call_graph.c:_ssa_result_def_info
Unexecuted instantiation: zend_dump.c:_ssa_op1_def_info
Unexecuted instantiation: zend_dump.c:_ssa_op2_def_info
Unexecuted instantiation: zend_dump.c:_ssa_result_def_info
Unexecuted instantiation: zend_func_info.c:_ssa_op1_def_info
Unexecuted instantiation: zend_func_info.c:_ssa_op2_def_info
Unexecuted instantiation: zend_func_info.c:_ssa_result_def_info
Unexecuted instantiation: zend_inference.c:_ssa_op1_def_info
Unexecuted instantiation: zend_inference.c:_ssa_op2_def_info
Unexecuted instantiation: zend_inference.c:_ssa_result_def_info
zend_optimizer.c:_ssa_op1_def_info
Line
Count
Source
186
1.15k
  { \
187
1.15k
    return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_def : -1); \
188
1.15k
  } \
zend_optimizer.c:_ssa_result_def_info
Line
Count
Source
186
400k
  { \
187
400k
    return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_def : -1); \
188
400k
  } \
Unexecuted instantiation: zend_optimizer.c:_ssa_op2_def_info
Unexecuted instantiation: zend_ssa.c:_ssa_op1_def_info
Unexecuted instantiation: zend_ssa.c:_ssa_op2_def_info
Unexecuted instantiation: zend_ssa.c:_ssa_result_def_info
189
190
191
DEFINE_SSA_OP_INFO(op1)
192
DEFINE_SSA_OP_INFO(op2)
193
DEFINE_SSA_OP_INFO(result)
194
DEFINE_SSA_OP_DEF_INFO(op1)
195
DEFINE_SSA_OP_DEF_INFO(op2)
196
DEFINE_SSA_OP_DEF_INFO(result)
197
198
906k
#define OP1_INFO()           (_ssa_op1_info(op_array, ssa, opline, ssa_op))
199
896k
#define OP2_INFO()           (_ssa_op2_info(op_array, ssa, opline, ssa_op))
200
8.32k
#define OP1_DATA_INFO()      (_ssa_op1_info(op_array, ssa, (opline+1), ssa_op ? (ssa_op+1) : NULL))
201
#define OP2_DATA_INFO()      (_ssa_op2_info(op_array, ssa, (opline+1), ssa_op ? (ssa_op+1) : NULL))
202
20.7k
#define RES_USE_INFO()       (_ssa_result_info(op_array, ssa, opline, ssa_op))
203
1.15k
#define OP1_DEF_INFO()       (_ssa_op1_def_info(op_array, ssa, opline, ssa_op))
204
#define OP2_DEF_INFO()       (_ssa_op2_def_info(op_array, ssa, opline, ssa_op))
205
#define OP1_DATA_DEF_INFO()  (_ssa_op1_def_info(op_array, ssa, (opline+1), ssa_op ? (ssa_op+1) : NULL))
206
#define OP2_DATA_DEF_INFO()  (_ssa_op2_def_info(op_array, ssa, (opline+1), ssa_op ? (ssa_op+1) : NULL))
207
400k
#define RES_INFO()           (_ssa_result_def_info(op_array, ssa, opline, ssa_op))
208
209
1.41k
static zend_always_inline bool zend_add_will_overflow(zend_long a, zend_long b) {
210
1.41k
  return (b > 0 && a > ZEND_LONG_MAX - b)
211
1.26k
    || (b < 0 && a < ZEND_LONG_MIN - b);
212
1.41k
}
Unexecuted instantiation: zend_jit.c:zend_add_will_overflow
Unexecuted instantiation: dce.c:zend_add_will_overflow
Unexecuted instantiation: dfa_pass.c:zend_add_will_overflow
Unexecuted instantiation: escape_analysis.c:zend_add_will_overflow
Unexecuted instantiation: sccp.c:zend_add_will_overflow
Unexecuted instantiation: zend_call_graph.c:zend_add_will_overflow
Unexecuted instantiation: zend_dump.c:zend_add_will_overflow
Unexecuted instantiation: zend_func_info.c:zend_add_will_overflow
zend_inference.c:zend_add_will_overflow
Line
Count
Source
209
456
static zend_always_inline bool zend_add_will_overflow(zend_long a, zend_long b) {
210
456
  return (b > 0 && a > ZEND_LONG_MAX - b)
211
309
    || (b < 0 && a < ZEND_LONG_MIN - b);
212
456
}
Unexecuted instantiation: zend_optimizer.c:zend_add_will_overflow
zend_ssa.c:zend_add_will_overflow
Line
Count
Source
209
957
static zend_always_inline bool zend_add_will_overflow(zend_long a, zend_long b) {
210
957
  return (b > 0 && a > ZEND_LONG_MAX - b)
211
957
    || (b < 0 && a < ZEND_LONG_MIN - b);
212
957
}
213
2.53k
static zend_always_inline bool zend_sub_will_overflow(zend_long a, zend_long b) {
214
2.53k
  return (b > 0 && a < ZEND_LONG_MIN + b)
215
2.43k
    || (b < 0 && a > ZEND_LONG_MAX + b);
216
2.53k
}
Unexecuted instantiation: zend_jit.c:zend_sub_will_overflow
Unexecuted instantiation: dce.c:zend_sub_will_overflow
Unexecuted instantiation: dfa_pass.c:zend_sub_will_overflow
Unexecuted instantiation: escape_analysis.c:zend_sub_will_overflow
Unexecuted instantiation: sccp.c:zend_sub_will_overflow
Unexecuted instantiation: zend_call_graph.c:zend_sub_will_overflow
Unexecuted instantiation: zend_dump.c:zend_sub_will_overflow
Unexecuted instantiation: zend_func_info.c:zend_sub_will_overflow
zend_inference.c:zend_sub_will_overflow
Line
Count
Source
213
1.97k
static zend_always_inline bool zend_sub_will_overflow(zend_long a, zend_long b) {
214
1.97k
  return (b > 0 && a < ZEND_LONG_MIN + b)
215
1.87k
    || (b < 0 && a > ZEND_LONG_MAX + b);
216
1.97k
}
Unexecuted instantiation: zend_optimizer.c:zend_sub_will_overflow
zend_ssa.c:zend_sub_will_overflow
Line
Count
Source
213
556
static zend_always_inline bool zend_sub_will_overflow(zend_long a, zend_long b) {
214
556
  return (b > 0 && a < ZEND_LONG_MIN + b)
215
556
    || (b < 0 && a > ZEND_LONG_MAX + b);
216
556
}
217
218
BEGIN_EXTERN_C()
219
220
ZEND_API void zend_ssa_find_false_dependencies(const zend_op_array *op_array, const zend_ssa *ssa);
221
ZEND_API void zend_ssa_find_sccs(const zend_op_array *op_array, zend_ssa *ssa);
222
ZEND_API zend_result zend_ssa_inference(zend_arena **raena, const zend_op_array *op_array, const zend_script *script, zend_ssa *ssa, zend_long optimization_level);
223
224
ZEND_API uint32_t zend_array_element_type(uint32_t t1, uint8_t op_type, bool write, bool insert);
225
226
ZEND_API bool zend_inference_propagate_range(const zend_op_array *op_array, const zend_ssa *ssa, const zend_op *opline, const zend_ssa_op* ssa_op, int var, zend_ssa_range *tmp);
227
228
ZEND_API uint32_t zend_fetch_arg_info_type(
229
  const zend_script *script, const zend_arg_info *arg_info, zend_class_entry **pce);
230
ZEND_API void zend_init_func_return_info(
231
  const zend_op_array *op_array, const zend_script *script, zend_ssa_var_info *ret);
232
uint32_t zend_get_return_info_from_signature_only(
233
    const zend_function *func, const zend_script *script,
234
    zend_class_entry **ce, bool *ce_is_instanceof, bool use_tentative_return_info);
235
236
ZEND_API bool zend_may_throw_ex(const zend_op *opline, const zend_ssa_op *ssa_op, const zend_op_array *op_array, const zend_ssa *ssa, uint32_t t1, uint32_t t2);
237
ZEND_API bool zend_may_throw(const zend_op *opline, const zend_ssa_op *ssa_op, const zend_op_array *op_array, const zend_ssa *ssa);
238
239
ZEND_API zend_result zend_update_type_info(
240
  const zend_op_array *op_array, zend_ssa *ssa, const zend_script *script,
241
  const zend_op *opline, zend_ssa_op *ssa_op, const zend_op **ssa_opcodes,
242
  zend_long optimization_level);
243
244
END_EXTERN_C()
245
246
#endif /* ZEND_INFERENCE_H */