Coverage Report

Created: 2025-09-27 06:26

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
1.16M
#define MAY_BE_GUARD                (1<<28) /* needs type guard */
34
35
#define MAY_HAVE_DTOR \
36
3.96k
  (MAY_BE_OBJECT|MAY_BE_RESOURCE \
37
3.96k
  |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
287k
  { \
42
287k
    if (opline->opN##_type == IS_CONST) { \
43
37.7k
      zval *zv = CRT_CONSTANT(opline->opN); \
44
37.7k
      return (Z_TYPE_P(zv) == IS_LONG); \
45
249k
    } else { \
46
249k
      return (opline->opN##_type != IS_UNUSED && \
47
249k
            ssa->var_info && \
48
249k
            ssa_op->opN##_use >= 0 && \
49
249k
          ssa->var_info[ssa_op->opN##_use].has_range); \
50
249k
    } \
51
287k
    return 0; \
52
287k
  } \
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
168k
  { \
42
168k
    if (opline->opN##_type == IS_CONST) { \
43
17.3k
      zval *zv = CRT_CONSTANT(opline->opN); \
44
17.3k
      return (Z_TYPE_P(zv) == IS_LONG); \
45
151k
    } else { \
46
151k
      return (opline->opN##_type != IS_UNUSED && \
47
151k
            ssa->var_info && \
48
151k
            ssa_op->opN##_use >= 0 && \
49
151k
          ssa->var_info[ssa_op->opN##_use].has_range); \
50
151k
    } \
51
168k
    return 0; \
52
168k
  } \
zend_inference.c:_ssa_op2_has_range
Line
Count
Source
41
118k
  { \
42
118k
    if (opline->opN##_type == IS_CONST) { \
43
20.4k
      zval *zv = CRT_CONSTANT(opline->opN); \
44
20.4k
      return (Z_TYPE_P(zv) == IS_LONG); \
45
98.3k
    } else { \
46
98.3k
      return (opline->opN##_type != IS_UNUSED && \
47
98.3k
            ssa->var_info && \
48
98.3k
            ssa_op->opN##_use >= 0 && \
49
98.3k
          ssa->var_info[ssa_op->opN##_use].has_range); \
50
98.3k
    } \
51
118k
    return 0; \
52
118k
  } \
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
217k
  { \
57
217k
    if (opline->opN##_type == IS_CONST) { \
58
17.4k
      zval *zv = CRT_CONSTANT(opline->opN); \
59
17.4k
      if (Z_TYPE_P(zv) == IS_LONG) { \
60
17.4k
        return Z_LVAL_P(zv); \
61
17.4k
      } \
62
200k
    } else if (opline->opN##_type != IS_UNUSED && \
63
200k
        ssa->var_info && \
64
200k
        ssa_op->opN##_use >= 0 && \
65
200k
        ssa->var_info[ssa_op->opN##_use].has_range) { \
66
200k
      return ssa->var_info[ssa_op->opN##_use].range.min; \
67
200k
    } \
68
217k
    return ZEND_LONG_MIN; \
69
217k
  } \
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
217k
  { \
74
217k
    if (opline->opN##_type == IS_CONST) { \
75
17.1k
      zval *zv = CRT_CONSTANT(opline->opN); \
76
17.1k
      if (Z_TYPE_P(zv) == IS_LONG) { \
77
17.1k
        return Z_LVAL_P(zv); \
78
17.1k
      } \
79
200k
    } else if (opline->opN##_type != IS_UNUSED && \
80
200k
        ssa->var_info && \
81
200k
        ssa_op->opN##_use >= 0 && \
82
200k
        ssa->var_info[ssa_op->opN##_use].has_range) { \
83
200k
      return ssa->var_info[ssa_op->opN##_use].range.max; \
84
200k
    } \
85
217k
    return ZEND_LONG_MAX; \
86
217k
  } \
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
190k
  { \
91
190k
    if (opline->opN##_type == IS_CONST) { \
92
12.6k
      zval *zv = CRT_CONSTANT(opline->opN); \
93
12.6k
      if (Z_TYPE_P(zv) == IS_LONG) { \
94
12.6k
        return 0; \
95
12.6k
      } \
96
177k
    } else if (opline->opN##_type != IS_UNUSED && \
97
177k
        ssa->var_info && \
98
177k
        ssa_op->opN##_use >= 0 && \
99
177k
        ssa->var_info[ssa_op->opN##_use].has_range) { \
100
177k
      return ssa->var_info[ssa_op->opN##_use].range.underflow; \
101
177k
    } \
102
190k
    return 1; \
103
190k
  } \
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
135k
  { \
91
135k
    if (opline->opN##_type == IS_CONST) { \
92
4.66k
      zval *zv = CRT_CONSTANT(opline->opN); \
93
4.66k
      if (Z_TYPE_P(zv) == IS_LONG) { \
94
4.66k
        return 0; \
95
4.66k
      } \
96
131k
    } else if (opline->opN##_type != IS_UNUSED && \
97
131k
        ssa->var_info && \
98
131k
        ssa_op->opN##_use >= 0 && \
99
131k
        ssa->var_info[ssa_op->opN##_use].has_range) { \
100
131k
      return ssa->var_info[ssa_op->opN##_use].range.underflow; \
101
131k
    } \
102
135k
    return 1; \
103
135k
  } \
zend_inference.c:_ssa_op2_range_underflow
Line
Count
Source
90
54.4k
  { \
91
54.4k
    if (opline->opN##_type == IS_CONST) { \
92
8.02k
      zval *zv = CRT_CONSTANT(opline->opN); \
93
8.02k
      if (Z_TYPE_P(zv) == IS_LONG) { \
94
8.02k
        return 0; \
95
8.02k
      } \
96
46.4k
    } else if (opline->opN##_type != IS_UNUSED && \
97
46.4k
        ssa->var_info && \
98
46.4k
        ssa_op->opN##_use >= 0 && \
99
46.4k
        ssa->var_info[ssa_op->opN##_use].has_range) { \
100
46.4k
      return ssa->var_info[ssa_op->opN##_use].range.underflow; \
101
46.4k
    } \
102
54.4k
    return 1; \
103
54.4k
  } \
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
158k
  { \
108
158k
    if (opline->opN##_type == IS_CONST) { \
109
12.2k
      zval *zv = CRT_CONSTANT(opline->opN); \
110
12.2k
      if (Z_TYPE_P(zv) == IS_LONG) { \
111
12.2k
        return 0; \
112
12.2k
      } \
113
146k
    } else if (opline->opN##_type != IS_UNUSED && \
114
146k
        ssa->var_info && \
115
146k
        ssa_op->opN##_use >= 0 && \
116
146k
        ssa->var_info[ssa_op->opN##_use].has_range) { \
117
146k
      return ssa->var_info[ssa_op->opN##_use].range.overflow; \
118
146k
    } \
119
158k
    return 1; \
120
158k
  } \
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
106k
  { \
108
106k
    if (opline->opN##_type == IS_CONST) { \
109
4.25k
      zval *zv = CRT_CONSTANT(opline->opN); \
110
4.25k
      if (Z_TYPE_P(zv) == IS_LONG) { \
111
4.25k
        return 0; \
112
4.25k
      } \
113
102k
    } else if (opline->opN##_type != IS_UNUSED && \
114
102k
        ssa->var_info && \
115
102k
        ssa_op->opN##_use >= 0 && \
116
102k
        ssa->var_info[ssa_op->opN##_use].has_range) { \
117
102k
      return ssa->var_info[ssa_op->opN##_use].range.overflow; \
118
102k
    } \
119
106k
    return 1; \
120
106k
  } \
zend_inference.c:_ssa_op2_range_overflow
Line
Count
Source
107
52.3k
  { \
108
52.3k
    if (opline->opN##_type == IS_CONST) { \
109
7.99k
      zval *zv = CRT_CONSTANT(opline->opN); \
110
7.99k
      if (Z_TYPE_P(zv) == IS_LONG) { \
111
7.99k
        return 0; \
112
7.99k
      } \
113
44.3k
    } else if (opline->opN##_type != IS_UNUSED && \
114
44.3k
        ssa->var_info && \
115
44.3k
        ssa_op->opN##_use >= 0 && \
116
44.3k
        ssa->var_info[ssa_op->opN##_use].has_range) { \
117
44.3k
      return ssa->var_info[ssa_op->opN##_use].range.overflow; \
118
44.3k
    } \
119
52.3k
    return 1; \
120
52.3k
  } \
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
124k
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
124k
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
93.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
93.2k
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
253k
#define OP1_HAS_RANGE()       (_ssa_op1_has_range (op_array, ssa, opline, ssa_op))
134
124k
#define OP1_MIN_RANGE()       (_ssa_op1_min_range (op_array, ssa, opline, ssa_op))
135
124k
#define OP1_MAX_RANGE()       (_ssa_op1_max_range (op_array, ssa, opline, ssa_op))
136
227k
#define OP1_RANGE_UNDERFLOW() (_ssa_op1_range_underflow (op_array, ssa, opline, ssa_op))
137
167k
#define OP1_RANGE_OVERFLOW()  (_ssa_op1_range_overflow (op_array, ssa, opline, ssa_op))
138
119k
#define OP2_HAS_RANGE()       (_ssa_op2_has_range (op_array, ssa, opline, ssa_op))
139
93.5k
#define OP2_MIN_RANGE()       (_ssa_op2_min_range (op_array, ssa, opline, ssa_op))
140
93.2k
#define OP2_MAX_RANGE()       (_ssa_op2_max_range (op_array, ssa, opline, ssa_op))
141
116k
#define OP2_RANGE_UNDERFLOW() (_ssa_op2_range_underflow (op_array, ssa, opline, ssa_op))
142
101k
#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
999k
static zend_always_inline uint32_t _const_op_type(const zval *zv) {
149
999k
  if (Z_TYPE_P(zv) == IS_CONSTANT_AST) {
150
1.27k
    return MAY_BE_RC1 | MAY_BE_RCN | MAY_BE_ANY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY;
151
997k
  } else if (Z_TYPE_P(zv) == IS_ARRAY) {
152
14.5k
    return zend_array_type_info(zv);
153
983k
  } else {
154
983k
    uint32_t tmp = (1 << Z_TYPE_P(zv));
155
156
983k
    if (Z_REFCOUNTED_P(zv)) {
157
112k
      tmp |= MAY_BE_RC1 | MAY_BE_RCN;
158
870k
    } else if (Z_TYPE_P(zv) == IS_STRING) {
159
593k
      tmp |= MAY_BE_RCN;
160
593k
    }
161
983k
    return tmp;
162
983k
  }
163
999k
}
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
3.04k
static zend_always_inline uint32_t _const_op_type(const zval *zv) {
149
3.04k
  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
3.04k
  } else if (Z_TYPE_P(zv) == IS_ARRAY) {
152
0
    return zend_array_type_info(zv);
153
3.04k
  } else {
154
3.04k
    uint32_t tmp = (1 << Z_TYPE_P(zv));
155
156
3.04k
    if (Z_REFCOUNTED_P(zv)) {
157
561
      tmp |= MAY_BE_RC1 | MAY_BE_RCN;
158
2.48k
    } else if (Z_TYPE_P(zv) == IS_STRING) {
159
2.48k
      tmp |= MAY_BE_RCN;
160
2.48k
    }
161
3.04k
    return tmp;
162
3.04k
  }
163
3.04k
}
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
449
static zend_always_inline uint32_t _const_op_type(const zval *zv) {
149
449
  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
449
  } else if (Z_TYPE_P(zv) == IS_ARRAY) {
152
0
    return zend_array_type_info(zv);
153
449
  } else {
154
449
    uint32_t tmp = (1 << Z_TYPE_P(zv));
155
156
449
    if (Z_REFCOUNTED_P(zv)) {
157
0
      tmp |= MAY_BE_RC1 | MAY_BE_RCN;
158
449
    } else if (Z_TYPE_P(zv) == IS_STRING) {
159
28
      tmp |= MAY_BE_RCN;
160
28
    }
161
449
    return tmp;
162
449
  }
163
449
}
zend_inference.c:_const_op_type
Line
Count
Source
148
485k
static zend_always_inline uint32_t _const_op_type(const zval *zv) {
149
485k
  if (Z_TYPE_P(zv) == IS_CONSTANT_AST) {
150
613
    return MAY_BE_RC1 | MAY_BE_RCN | MAY_BE_ANY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY;
151
485k
  } else if (Z_TYPE_P(zv) == IS_ARRAY) {
152
6.82k
    return zend_array_type_info(zv);
153
478k
  } else {
154
478k
    uint32_t tmp = (1 << Z_TYPE_P(zv));
155
156
478k
    if (Z_REFCOUNTED_P(zv)) {
157
61.8k
      tmp |= MAY_BE_RC1 | MAY_BE_RCN;
158
416k
    } else if (Z_TYPE_P(zv) == IS_STRING) {
159
276k
      tmp |= MAY_BE_RCN;
160
276k
    }
161
478k
    return tmp;
162
478k
  }
163
485k
}
zend_optimizer.c:_const_op_type
Line
Count
Source
148
510k
static zend_always_inline uint32_t _const_op_type(const zval *zv) {
149
510k
  if (Z_TYPE_P(zv) == IS_CONSTANT_AST) {
150
662
    return MAY_BE_RC1 | MAY_BE_RCN | MAY_BE_ANY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY;
151
509k
  } else if (Z_TYPE_P(zv) == IS_ARRAY) {
152
7.68k
    return zend_array_type_info(zv);
153
501k
  } else {
154
501k
    uint32_t tmp = (1 << Z_TYPE_P(zv));
155
156
501k
    if (Z_REFCOUNTED_P(zv)) {
157
50.5k
      tmp |= MAY_BE_RC1 | MAY_BE_RCN;
158
451k
    } else if (Z_TYPE_P(zv) == IS_STRING) {
159
314k
      tmp |= MAY_BE_RCN;
160
314k
    }
161
501k
    return tmp;
162
501k
  }
163
510k
}
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
4.47M
{
167
4.47M
  if (ssa->var_info && ssa_var_num >= 0) {
168
3.25M
    return ssa->var_info[ssa_var_num].type;
169
3.25M
  } else {
170
1.21M
    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
1.21M
  }
172
4.47M
}
Unexecuted instantiation: zend_jit.c:get_ssa_var_info
dce.c:get_ssa_var_info
Line
Count
Source
166
5.35k
{
167
5.35k
  if (ssa->var_info && ssa_var_num >= 0) {
168
5.35k
    return ssa->var_info[ssa_var_num].type;
169
5.35k
  } 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
5.35k
}
dfa_pass.c:get_ssa_var_info
Line
Count
Source
166
40.6k
{
167
40.6k
  if (ssa->var_info && ssa_var_num >= 0) {
168
40.6k
    return ssa->var_info[ssa_var_num].type;
169
40.6k
  } 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
40.6k
}
escape_analysis.c:get_ssa_var_info
Line
Count
Source
166
9.01k
{
167
9.01k
  if (ssa->var_info && ssa_var_num >= 0) {
168
9.01k
    return ssa->var_info[ssa_var_num].type;
169
9.01k
  } 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
9.01k
}
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
zend_func_info.c:get_ssa_var_info
Line
Count
Source
166
43
{
167
43
  if (ssa->var_info && ssa_var_num >= 0) {
168
43
    return ssa->var_info[ssa_var_num].type;
169
43
  } 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
43
}
zend_inference.c:get_ssa_var_info
Line
Count
Source
166
1.96M
{
167
1.96M
  if (ssa->var_info && ssa_var_num >= 0) {
168
1.30M
    return ssa->var_info[ssa_var_num].type;
169
1.30M
  } else {
170
659k
    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
659k
  }
172
1.96M
}
zend_optimizer.c:get_ssa_var_info
Line
Count
Source
166
2.45M
{
167
2.45M
  if (ssa->var_info && ssa_var_num >= 0) {
168
1.89M
    return ssa->var_info[ssa_var_num].type;
169
1.89M
  } else {
170
553k
    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
553k
  }
172
2.45M
}
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
4.38M
  {                                   \
177
4.38M
    if (opline->opN##_type == IS_CONST) {             \
178
999k
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
3.38M
    } else { \
180
3.38M
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
3.38M
    } \
182
4.38M
  } \
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
3.66k
  {                                   \
177
3.66k
    if (opline->opN##_type == IS_CONST) {             \
178
0
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
3.66k
    } else { \
180
3.66k
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
3.66k
    } \
182
3.66k
  } \
dce.c:_ssa_op1_info
Line
Count
Source
176
1.68k
  {                                   \
177
1.68k
    if (opline->opN##_type == IS_CONST) {             \
178
0
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
1.68k
    } else { \
180
1.68k
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
1.68k
    } \
182
1.68k
  } \
Unexecuted instantiation: dce.c:_ssa_result_info
dfa_pass.c:_ssa_op2_info
Line
Count
Source
176
11.7k
  {                                   \
177
11.7k
    if (opline->opN##_type == IS_CONST) {             \
178
1.69k
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
10.0k
    } else { \
180
10.0k
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
10.0k
    } \
182
11.7k
  } \
dfa_pass.c:_ssa_op1_info
Line
Count
Source
176
31.9k
  {                                   \
177
31.9k
    if (opline->opN##_type == IS_CONST) {             \
178
1.34k
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
30.5k
    } else { \
180
30.5k
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
30.5k
    } \
182
31.9k
  } \
Unexecuted instantiation: dfa_pass.c:_ssa_result_info
escape_analysis.c:_ssa_op1_info
Line
Count
Source
176
8.34k
  {                                   \
177
8.34k
    if (opline->opN##_type == IS_CONST) {             \
178
0
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
8.34k
    } else { \
180
8.34k
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
8.34k
    } \
182
8.34k
  } \
escape_analysis.c:_ssa_op2_info
Line
Count
Source
176
674
  {                                   \
177
674
    if (opline->opN##_type == IS_CONST) {             \
178
0
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
674
    } else { \
180
674
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
674
    } \
182
674
  } \
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
492
  {                                   \
177
492
    if (opline->opN##_type == IS_CONST) {             \
178
449
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
449
    } else { \
180
43
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
43
    } \
182
492
  } \
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
33.7k
  {                                   \
177
33.7k
    if (opline->opN##_type == IS_CONST) {             \
178
0
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
33.7k
    } else { \
180
33.7k
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
33.7k
    } \
182
33.7k
  } \
zend_inference.c:_ssa_op1_info
Line
Count
Source
176
1.12M
  {                                   \
177
1.12M
    if (opline->opN##_type == IS_CONST) {             \
178
144k
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
979k
    } else { \
180
979k
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
979k
    } \
182
1.12M
  } \
zend_inference.c:_ssa_op2_info
Line
Count
Source
176
1.02M
  {                                   \
177
1.02M
    if (opline->opN##_type == IS_CONST) {             \
178
341k
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
680k
    } else { \
180
680k
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
680k
    } \
182
1.02M
  } \
zend_optimizer.c:_ssa_op1_info
Line
Count
Source
176
1.07M
  {                                   \
177
1.07M
    if (opline->opN##_type == IS_CONST) {             \
178
226k
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
845k
    } else { \
180
845k
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
845k
    } \
182
1.07M
  } \
zend_optimizer.c:_ssa_op2_info
Line
Count
Source
176
1.07M
  {                                   \
177
1.07M
    if (opline->opN##_type == IS_CONST) {             \
178
283k
      return _const_op_type(CRT_CONSTANT(opline->opN)); \
179
788k
    } else { \
180
788k
      return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_use : -1); \
181
788k
    } \
182
1.07M
  } \
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
816k
  { \
187
816k
    return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_def : -1); \
188
816k
  } \
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
5.94k
  { \
187
5.94k
    return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_def : -1); \
188
5.94k
  } \
zend_optimizer.c:_ssa_result_def_info
Line
Count
Source
186
810k
  { \
187
810k
    return get_ssa_var_info(ssa, ssa->var_info ? ssa_op->opN##_def : -1); \
188
810k
  } \
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
2.20M
#define OP1_INFO()           (_ssa_op1_info(op_array, ssa, opline, ssa_op))
199
2.10M
#define OP2_INFO()           (_ssa_op2_info(op_array, ssa, opline, ssa_op))
200
31.1k
#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
33.7k
#define RES_USE_INFO()       (_ssa_result_info(op_array, ssa, opline, ssa_op))
203
5.94k
#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
810k
#define RES_INFO()           (_ssa_result_def_info(op_array, ssa, opline, ssa_op))
208
209
7.94k
static zend_always_inline bool zend_add_will_overflow(zend_long a, zend_long b) {
210
7.94k
  return (b > 0 && a > ZEND_LONG_MAX - b)
211
7.31k
    || (b < 0 && a < ZEND_LONG_MIN - b);
212
7.94k
}
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
2.77k
static zend_always_inline bool zend_add_will_overflow(zend_long a, zend_long b) {
210
2.77k
  return (b > 0 && a > ZEND_LONG_MAX - b)
211
2.15k
    || (b < 0 && a < ZEND_LONG_MIN - b);
212
2.77k
}
Unexecuted instantiation: zend_optimizer.c:zend_add_will_overflow
zend_ssa.c:zend_add_will_overflow
Line
Count
Source
209
5.16k
static zend_always_inline bool zend_add_will_overflow(zend_long a, zend_long b) {
210
5.16k
  return (b > 0 && a > ZEND_LONG_MAX - b)
211
5.16k
    || (b < 0 && a < ZEND_LONG_MIN - b);
212
5.16k
}
213
7.45k
static zend_always_inline bool zend_sub_will_overflow(zend_long a, zend_long b) {
214
7.45k
  return (b > 0 && a < ZEND_LONG_MIN + b)
215
7.13k
    || (b < 0 && a > ZEND_LONG_MAX + b);
216
7.45k
}
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
5.13k
static zend_always_inline bool zend_sub_will_overflow(zend_long a, zend_long b) {
214
5.13k
  return (b > 0 && a < ZEND_LONG_MIN + b)
215
4.81k
    || (b < 0 && a > ZEND_LONG_MAX + b);
216
5.13k
}
Unexecuted instantiation: zend_optimizer.c:zend_sub_will_overflow
zend_ssa.c:zend_sub_will_overflow
Line
Count
Source
213
2.32k
static zend_always_inline bool zend_sub_will_overflow(zend_long a, zend_long b) {
214
2.32k
  return (b > 0 && a < ZEND_LONG_MIN + b)
215
2.32k
    || (b < 0 && a > ZEND_LONG_MAX + b);
216
2.32k
}
217
218
BEGIN_EXTERN_C()
219
220
ZEND_API void zend_ssa_find_false_dependencies(const zend_op_array *op_array, 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, int write, int 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
  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 */