OpenCoverage

CheckedArithmetic.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/3rdparty/masm/wtf/CheckedArithmetic.h
Switch to Source codePreprocessed file
LineSourceCount
1namespace WTF {-
2-
3enum class CheckedState-
4{-
5 DidOverflow,-
6 DidNotOverflow-
7} ;-
8-
9class CrashOnOverflow {-
10public:-
11 static void overflowed()-
12 {-
13 (qmlWTFReportBacktrace(), qmlWTFInvokeCrashHook(), (*(int *)(uintptr_t)0xbbadbeef = 0), __builtin_trap());-
14 }
never executed: end of block
0
15-
16 void clearOverflow() { }-
17-
18public:-
19 bool hasOverflowed() const { return
executed 16160016 times by 153 tests: return false;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
false;
executed 16160016 times by 153 tests: return false;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
}
16160016
20};-
21-
22class RecordOverflow {-
23protected:-
24 RecordOverflow()-
25 : m_overflowed(false)-
26 {-
27 }
never executed: end of block
0
28-
29 void overflowed()-
30 {-
31 m_overflowed = true;-
32 }
never executed: end of block
0
33-
34 void clearOverflow()-
35 {-
36 m_overflowed = false;-
37 }
never executed: end of block
0
38-
39public:-
40 bool hasOverflowed() const { return
never executed: return m_overflowed;
m_overflowed;
never executed: return m_overflowed;
}
0
41-
42private:-
43 unsigned char m_overflowed;-
44};-
45-
46template <typename T, class OverflowHandler = CrashOnOverflow> class Checked;-
47template <typename T> struct RemoveChecked;-
48template <typename T> struct RemoveChecked<Checked<T> >;-
49-
50template <typename Target, typename Source, bool targetSigned = std::numeric_limits<Target>::is_signed, bool sourceSigned = std::numeric_limits<Source>::is_signed> struct BoundsChecker;-
51template <typename Target, typename Source> struct BoundsChecker<Target, Source, false, false> {-
52 static bool inBounds(Source value)-
53 {-
54-
55-
56 return
never executed: return value <= std::numeric_limits<Target>::max();
value <= std::numeric_limits<Target>::max();
never executed: return value <= std::numeric_limits<Target>::max();
0
57 }-
58};-
59-
60template <typename Target, typename Source> struct BoundsChecker<Target, Source, true, true> {-
61 static bool inBounds(Source value)-
62 {-
63-
64-
65 return
executed 325 times by 3 tests: return std::numeric_limits<Target>::min() <= value && value <= std::numeric_limits<Target>::max();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
std::numeric_limits<Target>::min() <= value && value <= std::numeric_limits<Target>::max();
executed 325 times by 3 tests: return std::numeric_limits<Target>::min() <= value && value <= std::numeric_limits<Target>::max();
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
325
66 }-
67};-
68-
69template <typename Target, typename Source> struct BoundsChecker<Target, Source, false, true> {-
70 static bool inBounds(Source value)-
71 {-
72-
73 if (value < 0
value < 0Description
TRUEnever evaluated
FALSEevaluated 2379627 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
)
0-2379627
74 return
never executed: return false;
false;
never executed: return false;
0
75-
76-
77 if (sizeof(Target) >= sizeof(Source)
sizeof(Target)...sizeof(Source)Description
TRUEevaluated 2379720 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
FALSEnever evaluated
)
0-2379720
78 return
executed 2379713 times by 9 tests: return static_cast<Target>(value) <= std::numeric_limits<Target>::max();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
static_cast<Target>(value) <= std::numeric_limits<Target>::max();
executed 2379713 times by 9 tests: return static_cast<Target>(value) <= std::numeric_limits<Target>::max();
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
2379713
79-
80-
81 return
never executed: return value <= static_cast<Source>(std::numeric_limits<Target>::max());
value <= static_cast<Source>(std::numeric_limits<Target>::max());
never executed: return value <= static_cast<Source>(std::numeric_limits<Target>::max());
0
82 }-
83};-
84-
85template <typename Target, typename Source> struct BoundsChecker<Target, Source, true, false> {-
86 static bool inBounds(Source value)-
87 {-
88-
89 if (sizeof(Target) <= sizeof(Source)
sizeof(Target)...sizeof(Source)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
90 return
never executed: return value <= static_cast<Source>(std::numeric_limits<Target>::max());
value <= static_cast<Source>(std::numeric_limits<Target>::max());
never executed: return value <= static_cast<Source>(std::numeric_limits<Target>::max());
0
91-
92-
93 return
never executed: return true;
true;
never executed: return true;
0
94 }-
95};-
96-
97template <typename Target, typename Source, bool CanElide = IsSameType<Target, Source>::value || (sizeof(Target) > sizeof(Source)) > struct BoundsCheckElider;-
98template <typename Target, typename Source> struct BoundsCheckElider<Target, Source, true> {-
99 static bool inBounds(Source) { return
executed 3472520 times by 153 tests: return true;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
true;
executed 3472520 times by 153 tests: return true;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
}
3472520
100};-
101template <typename Target, typename Source> struct BoundsCheckElider<Target, Source, false> : public BoundsChecker<Target, Source> {-
102};-
103-
104template <typename Target, typename Source> static inline bool isInBounds(Source value)-
105{-
106 return
executed 5851156 times by 153 tests: return BoundsCheckElider<Target, Source>::inBounds(value);
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
BoundsCheckElider<Target, Source>::inBounds(value);
executed 5851156 times by 153 tests: return BoundsCheckElider<Target, Source>::inBounds(value);
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
5851156
107}-
108-
109template <typename T> struct RemoveChecked {-
110 typedef T CleanType;-
111 static const CleanType DefaultValue = 0;-
112};-
113-
114template <typename T> struct RemoveChecked<Checked<T, CrashOnOverflow> > {-
115 typedef typename RemoveChecked<T>::CleanType CleanType;-
116 static const CleanType DefaultValue = 0;-
117};-
118-
119template <typename T> struct RemoveChecked<Checked<T, RecordOverflow> > {-
120 typedef typename RemoveChecked<T>::CleanType CleanType;-
121 static const CleanType DefaultValue = 0;-
122};-
123-
124-
125-
126template <typename U, typename V, bool uIsBigger = (sizeof(U) > sizeof(V)), bool sameSize = (sizeof(U) == sizeof(V))> struct ResultBase;-
127template <typename U, typename V> struct ResultBase<U, V, true, false> {-
128 typedef U ResultType;-
129};-
130-
131template <typename U, typename V> struct ResultBase<U, V, false, false> {-
132 typedef V ResultType;-
133};-
134-
135template <typename U> struct ResultBase<U, U, false, true> {-
136 typedef U ResultType;-
137};-
138-
139template <typename U, typename V, bool uIsSigned = std::numeric_limits<U>::is_signed, bool vIsSigned = std::numeric_limits<V>::is_signed> struct SignednessSelector;-
140template <typename U, typename V> struct SignednessSelector<U, V, true, true> {-
141 typedef U ResultType;-
142};-
143-
144template <typename U, typename V> struct SignednessSelector<U, V, false, false> {-
145 typedef U ResultType;-
146};-
147-
148template <typename U, typename V> struct SignednessSelector<U, V, true, false> {-
149 typedef V ResultType;-
150};-
151-
152template <typename U, typename V> struct SignednessSelector<U, V, false, true> {-
153 typedef U ResultType;-
154};-
155-
156template <typename U, typename V> struct ResultBase<U, V, false, true> {-
157 typedef typename SignednessSelector<U, V>::ResultType ResultType;-
158};-
159-
160template <typename U, typename V> struct Result : ResultBase<typename RemoveChecked<U>::CleanType, typename RemoveChecked<V>::CleanType> {-
161};-
162-
163template <typename LHS, typename RHS, typename ResultType = typename Result<LHS, RHS>::ResultType,-
164 bool lhsSigned = std::numeric_limits<LHS>::is_signed, bool rhsSigned = std::numeric_limits<RHS>::is_signed> struct ArithmeticOperations;-
165-
166template <typename LHS, typename RHS, typename ResultType> struct ArithmeticOperations<LHS, RHS, ResultType, true, true> {-
167-
168-
169-
170 static inline bool signsMatch(LHS lhs, RHS rhs)-
171 {-
172 return
executed 647 times by 3 tests: return (lhs ^ rhs) >= 0;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
(lhs ^ rhs) >= 0;
executed 647 times by 3 tests: return (lhs ^ rhs) >= 0;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
647
173 }-
174-
175 static inline bool add(LHS lhs, RHS rhs, ResultType& result) __attribute__ ((warn_unused_result))-
176 {-
177 if (signsMatch(lhs, rhs)
signsMatch(lhs, rhs)Description
TRUEnever evaluated
FALSEevaluated 326 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
) {
0-326
178 if (lhs >= 0
lhs >= 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
179 if ((
(std::numeric_...) - rhs) < lhsDescription
TRUEnever evaluated
FALSEnever evaluated
std::numeric_limits<ResultType>::max() - rhs) < lhs
(std::numeric_...) - rhs) < lhsDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
180 return
never executed: return false;
false;
never executed: return false;
0
181 }
never executed: end of block
else {
0
182 ResultType temp = lhs - std::numeric_limits<ResultType>::min();-
183 if (rhs < -temp
rhs < -tempDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
184 return
never executed: return false;
false;
never executed: return false;
0
185 }
never executed: end of block
0
186 }-
187 result = lhs + rhs;-
188 return
executed 323 times by 3 tests: return true;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
true;
executed 323 times by 3 tests: return true;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
323
189 }-
190-
191 static inline bool sub(LHS lhs, RHS rhs, ResultType& result) __attribute__ ((warn_unused_result))-
192 {-
193 if (!signsMatch(lhs, rhs)
!signsMatch(lhs, rhs)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
194 if (lhs >= 0
lhs >= 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
195 if (lhs > std::numeric_limits<ResultType>::max() + rhs
lhs > std::num...>::max() + rhsDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
196 return
never executed: return false;
false;
never executed: return false;
0
197 }
never executed: end of block
else {
0
198 if (rhs > std::numeric_limits<ResultType>::max() + lhs
rhs > std::num...>::max() + lhsDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
199 return
never executed: return false;
false;
never executed: return false;
0
200 }
never executed: end of block
0
201 }-
202 result = lhs - rhs;-
203 return
never executed: return true;
true;
never executed: return true;
0
204 }-
205-
206 static inline bool multiply(LHS lhs, RHS rhs, ResultType& result) __attribute__ ((warn_unused_result))-
207 {-
208 if (signsMatch(lhs, rhs)
signsMatch(lhs, rhs)Description
TRUEevaluated 230 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
FALSEevaluated 92 times by 1 test
Evaluated by:
  • tst_ecmascripttests
) {
92-230
209 if (lhs >= 0
lhs >= 0Description
TRUEevaluated 233 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
FALSEnever evaluated
) {
0-233
210 if (lhs
lhsDescription
TRUEnever evaluated
FALSEevaluated 230 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
&& (
(std::numeric_...) / lhs) < rhsDescription
TRUEnever evaluated
FALSEnever evaluated
std::numeric_limits<ResultType>::max() / lhs) < rhs
(std::numeric_...) / lhs) < rhsDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-230
211 return
never executed: return false;
false;
never executed: return false;
0
212 }
executed 230 times by 3 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
else {
230
213 if (static_cast<
static_cast<Re...ltType>::min()Description
TRUEnever evaluated
FALSEnever evaluated
ResultType>(lhs) == std::numeric_limits<ResultType>::min()
static_cast<Re...ltType>::min()Description
TRUEnever evaluated
FALSEnever evaluated
|| static_cast<
static_cast<Re...ltType>::min()Description
TRUEnever evaluated
FALSEnever evaluated
ResultType>(rhs) == std::numeric_limits<ResultType>::min()
static_cast<Re...ltType>::min()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
214 return
never executed: return false;
false;
never executed: return false;
0
215 if ((
(std::numeric_.../ -lhs) < -rhsDescription
TRUEnever evaluated
FALSEnever evaluated
std::numeric_limits<ResultType>::max() / -lhs) < -rhs
(std::numeric_.../ -lhs) < -rhsDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
216 return
never executed: return false;
false;
never executed: return false;
0
217 }
never executed: end of block
0
218 } else {-
219 if (lhs < 0
lhs < 0Description
TRUEevaluated 92 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEnever evaluated
) {
0-92
220 if (rhs
rhsDescription
TRUEevaluated 92 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEnever evaluated
&& lhs < (std::numeric_limits<ResultType>::min() / rhs)
lhs < (std::nu...::min() / rhs)Description
TRUEnever evaluated
FALSEevaluated 92 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
0-92
221 return
never executed: return false;
false;
never executed: return false;
0
222 }
executed 92 times by 1 test: end of block
Executed by:
  • tst_ecmascripttests
else {
92
223 if (lhs
lhsDescription
TRUEnever evaluated
FALSEnever evaluated
&& rhs < (std::numeric_limits<ResultType>::min() / lhs)
rhs < (std::nu...::min() / lhs)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
224 return
never executed: return false;
false;
never executed: return false;
0
225 }
never executed: end of block
0
226 }-
227 result = lhs * rhs;-
228 return
executed 322 times by 3 tests: return true;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
true;
executed 322 times by 3 tests: return true;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
322
229 }-
230-
231 static inline bool equals(LHS lhs, RHS rhs) { return
never executed: return lhs == rhs;
lhs == rhs;
never executed: return lhs == rhs;
}
0
232-
233};-
234-
235template <typename LHS, typename RHS, typename ResultType> struct ArithmeticOperations<LHS, RHS, ResultType, false, false> {-
236-
237 static inline bool add(LHS lhs, RHS rhs, ResultType& result) __attribute__ ((warn_unused_result))-
238 {-
239 ResultType temp = lhs + rhs;-
240 if (temp < lhs
temp < lhsDescription
TRUEnever evaluated
FALSEevaluated 2374303 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
)
0-2374303
241 return
never executed: return false;
false;
never executed: return false;
0
242 result = temp;-
243 return
executed 2374285 times by 9 tests: return true;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
true;
executed 2374285 times by 9 tests: return true;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
2374285
244 }-
245-
246 static inline bool sub(LHS lhs, RHS rhs, ResultType& result) __attribute__ ((warn_unused_result))-
247 {-
248 ResultType temp = lhs - rhs;-
249 if (temp > lhs
temp > lhsDescription
TRUEnever evaluated
FALSEevaluated 1154659 times by 153 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
)
0-1154659
250 return
never executed: return false;
false;
never executed: return false;
0
251 result = temp;-
252 return
executed 1154827 times by 153 tests: return true;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
true;
executed 1154827 times by 153 tests: return true;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
1154827
253 }-
254-
255 static inline bool multiply(LHS lhs, RHS rhs, ResultType& result) __attribute__ ((warn_unused_result))-
256 {-
257 if (!lhs
!lhsDescription
TRUEnever evaluated
FALSEnever evaluated
|| !rhs
!rhsDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
258 result = 0;-
259 return
never executed: return true;
true;
never executed: return true;
0
260 }-
261 if (std::numeric_limits<ResultType>::max() / lhs < rhs
std::numeric_l...() / lhs < rhsDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
262 return
never executed: return false;
false;
never executed: return false;
0
263 result = lhs * rhs;-
264 return
never executed: return true;
true;
never executed: return true;
0
265 }-
266-
267 static inline bool equals(LHS lhs, RHS rhs) { return
executed 2199 times by 8 tests: return lhs == rhs;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
lhs == rhs;
executed 2199 times by 8 tests: return lhs == rhs;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
}
2199
268-
269};-
270-
271template <typename ResultType> struct ArithmeticOperations<int, unsigned, ResultType, true, false> {-
272 static inline bool add(int64_t lhs, int64_t rhs, ResultType& result)-
273 {-
274 int64_t temp = lhs + rhs;-
275 if (temp < std::numeric_limits<ResultType>::min()
temp < std::nu...ltType>::min()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
276 return
never executed: return false;
false;
never executed: return false;
0
277 if (temp > std::numeric_limits<ResultType>::max()
temp > std::nu...ltType>::max()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
278 return
never executed: return false;
false;
never executed: return false;
0
279 result = static_cast<ResultType>(temp);-
280 return
never executed: return true;
true;
never executed: return true;
0
281 }-
282-
283 static inline bool sub(int64_t lhs, int64_t rhs, ResultType& result)-
284 {-
285 int64_t temp = lhs - rhs;-
286 if (temp < std::numeric_limits<ResultType>::min()
temp < std::nu...ltType>::min()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
287 return
never executed: return false;
false;
never executed: return false;
0
288 if (temp > std::numeric_limits<ResultType>::max()
temp > std::nu...ltType>::max()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
289 return
never executed: return false;
false;
never executed: return false;
0
290 result = static_cast<ResultType>(temp);-
291 return
never executed: return true;
true;
never executed: return true;
0
292 }-
293-
294 static inline bool multiply(int64_t lhs, int64_t rhs, ResultType& result)-
295 {-
296 int64_t temp = lhs * rhs;-
297 if (temp < std::numeric_limits<ResultType>::min()
temp < std::nu...ltType>::min()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
298 return
never executed: return false;
false;
never executed: return false;
0
299 if (temp > std::numeric_limits<ResultType>::max()
temp > std::nu...ltType>::max()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
300 return
never executed: return false;
false;
never executed: return false;
0
301 result = static_cast<ResultType>(temp);-
302 return
never executed: return true;
true;
never executed: return true;
0
303 }-
304-
305 static inline bool equals(int lhs, unsigned rhs)-
306 {-
307 return
executed 5548009 times by 9 tests: return static_cast<int64_t>(lhs) == static_cast<int64_t>(rhs);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
static_cast<int64_t>(lhs) == static_cast<int64_t>(rhs);
executed 5548009 times by 9 tests: return static_cast<int64_t>(lhs) == static_cast<int64_t>(rhs);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
5548009
308 }-
309};-
310-
311template <typename ResultType> struct ArithmeticOperations<unsigned, int, ResultType, false, true> {-
312 static inline bool add(int64_t lhs, int64_t rhs, ResultType& result)-
313 {-
314 return
never executed: return ArithmeticOperations<int, unsigned, ResultType>::add(rhs, lhs, result);
ArithmeticOperations<int, unsigned, ResultType>::add(rhs, lhs, result);
never executed: return ArithmeticOperations<int, unsigned, ResultType>::add(rhs, lhs, result);
0
315 }-
316-
317 static inline bool sub(int64_t lhs, int64_t rhs, ResultType& result)-
318 {-
319 return
never executed: return ArithmeticOperations<int, unsigned, ResultType>::sub(lhs, rhs, result);
ArithmeticOperations<int, unsigned, ResultType>::sub(lhs, rhs, result);
never executed: return ArithmeticOperations<int, unsigned, ResultType>::sub(lhs, rhs, result);
0
320 }-
321-
322 static inline bool multiply(int64_t lhs, int64_t rhs, ResultType& result)-
323 {-
324 return
never executed: return ArithmeticOperations<int, unsigned, ResultType>::multiply(rhs, lhs, result);
ArithmeticOperations<int, unsigned, ResultType>::multiply(rhs, lhs, result);
never executed: return ArithmeticOperations<int, unsigned, ResultType>::multiply(rhs, lhs, result);
0
325 }-
326-
327 static inline bool equals(unsigned lhs, int rhs)-
328 {-
329 return
executed 5549732 times by 9 tests: return ArithmeticOperations<int, unsigned, ResultType>::equals(rhs, lhs);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
ArithmeticOperations<int, unsigned, ResultType>::equals(rhs, lhs);
executed 5549732 times by 9 tests: return ArithmeticOperations<int, unsigned, ResultType>::equals(rhs, lhs);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
5549732
330 }-
331};-
332-
333template <typename U, typename V, typename R> static inline bool safeAdd(U lhs, V rhs, R& result)-
334{-
335 return
executed 2374703 times by 9 tests: return ArithmeticOperations<U, V, R>::add(lhs, rhs, result);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
ArithmeticOperations<U, V, R>::add(lhs, rhs, result);
executed 2374703 times by 9 tests: return ArithmeticOperations<U, V, R>::add(lhs, rhs, result);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
2374703
336}-
337-
338template <typename U, typename V, typename R> static inline bool safeSub(U lhs, V rhs, R& result)-
339{-
340 return
executed 1154956 times by 153 tests: return ArithmeticOperations<U, V, R>::sub(lhs, rhs, result);
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
ArithmeticOperations<U, V, R>::sub(lhs, rhs, result);
executed 1154956 times by 153 tests: return ArithmeticOperations<U, V, R>::sub(lhs, rhs, result);
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
1154956
341}-
342-
343template <typename U, typename V, typename R> static inline bool safeMultiply(U lhs, V rhs, R& result)-
344{-
345 return
executed 324 times by 3 tests: return ArithmeticOperations<U, V, R>::multiply(lhs, rhs, result);
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
ArithmeticOperations<U, V, R>::multiply(lhs, rhs, result);
executed 324 times by 3 tests: return ArithmeticOperations<U, V, R>::multiply(lhs, rhs, result);
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
324
346}-
347-
348template <typename U, typename V> static inline bool safeEquals(U lhs, V rhs)-
349{-
350 return
executed 5551264 times by 9 tests: return ArithmeticOperations<U, V>::equals(lhs, rhs);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
ArithmeticOperations<U, V>::equals(lhs, rhs);
executed 5551264 times by 9 tests: return ArithmeticOperations<U, V>::equals(lhs, rhs);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
5551264
351}-
352-
353enum ResultOverflowedTag { ResultOverflowed };-
354-
355-
356static inline bool workAroundClangBug() { return
never executed: return true;
true;
never executed: return true;
}
0
357-
358template <typename T, class OverflowHandler> class Checked : public OverflowHandler {-
359public:-
360 template <typename _T, class _OverflowHandler> friend class Checked;-
361 Checked()-
362 : m_value(0)-
363 {-
364 }
executed 2379668 times by 9 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
2379668
365-
366 Checked(ResultOverflowedTag)-
367 : m_value(0)-
368 {-
369-
370 if (workAroundClangBug()
workAroundClangBug()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
371 this->overflowed();
never executed: this->overflowed();
0
372 }
never executed: end of block
0
373-
374 template <typename U> Checked(U value)-
375 {-
376 if (!isInBounds<T>(value)
!isInBounds<T>(value)Description
TRUEnever evaluated
FALSEevaluated 5851402 times by 153 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
)
0-5851402
377 this->overflowed();
never executed: this->overflowed();
0
378 m_value = static_cast<T>(value);-
379 }
executed 5851010 times by 153 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
5851010
380-
381 template <typename V> Checked(const Checked<T, V>& rhs)-
382 : m_value(rhs.m_value)-
383 {-
384 if (rhs.hasOverflowed()
rhs.hasOverflowed()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
385 this->overflowed();
never executed: this->overflowed();
0
386 }
never executed: end of block
0
387-
388 template <typename U> Checked(const Checked<U, OverflowHandler>& rhs)-
389 : OverflowHandler(rhs)-
390 {-
391 if (!isInBounds<T>(rhs.m_value)
!isInBounds<T>(rhs.m_value)Description
TRUEnever evaluated
FALSEevaluated 649 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
)
0-649
392 this->overflowed();
never executed: this->overflowed();
0
393 m_value = static_cast<T>(rhs.m_value);-
394 }
executed 650 times by 3 tests: end of block
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
650
395-
396 template <typename U, typename V> Checked(const Checked<U, V>& rhs)-
397 {-
398 if (rhs.hasOverflowed()
rhs.hasOverflowed()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
399 this->overflowed();
never executed: this->overflowed();
0
400 if (!isInBounds<T>(rhs.m_value)
!isInBounds<T>(rhs.m_value)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
401 this->overflowed();
never executed: this->overflowed();
0
402 m_value = static_cast<T>(rhs.m_value);-
403 }
never executed: end of block
0
404-
405 const Checked& operator=(Checked rhs)-
406 {-
407 this->clearOverflow();-
408 if (rhs.hasOverflowed()
rhs.hasOverflowed()Description
TRUEnever evaluated
FALSEevaluated 2386172 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
)
0-2386172
409 this->overflowed();
never executed: this->overflowed();
0
410 m_value = static_cast<T>(rhs.m_value);-
411 return
executed 2386201 times by 9 tests: return *this;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
*this;
executed 2386201 times by 9 tests: return *this;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
2386201
412 }-
413-
414 template <typename U> const Checked& operator=(U value)-
415 {-
416 return
executed 2384862 times by 9 tests: return *this = Checked(value);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
*this = Checked(value);
executed 2384862 times by 9 tests: return *this = Checked(value);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
2384862
417 }-
418-
419 template <typename U, typename V> const Checked& operator=(const Checked<U, V>& rhs)-
420 {-
421 return
never executed: return *this = Checked(rhs);
*this = Checked(rhs);
never executed: return *this = Checked(rhs);
0
422 }-
423-
424-
425 const Checked& operator++()-
426 {-
427 if (m_value == std::numeric_limits<T>::max()
m_value == std...mits<T>::max()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
428 this->overflowed();
never executed: this->overflowed();
0
429 m_value++;-
430 return
never executed: return *this;
*this;
never executed: return *this;
0
431 }-
432-
433 const Checked& operator--()-
434 {-
435 if (m_value == std::numeric_limits<T>::min()
m_value == std...mits<T>::min()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
436 this->overflowed();
never executed: this->overflowed();
0
437 m_value--;-
438 return
never executed: return *this;
*this;
never executed: return *this;
0
439 }-
440-
441-
442 const Checked operator++(int)-
443 {-
444 if (m_value == std::numeric_limits<T>::max()
m_value == std...mits<T>::max()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
445 this->overflowed();
never executed: this->overflowed();
0
446 return
never executed: return Checked(m_value++);
Checked(m_value++);
never executed: return Checked(m_value++);
0
447 }-
448-
449 const Checked operator--(int)-
450 {-
451 if (m_value == std::numeric_limits<T>::min()
m_value == std...mits<T>::min()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
452 this->overflowed();
never executed: this->overflowed();
0
453 return
never executed: return Checked(m_value--);
Checked(m_value--);
never executed: return Checked(m_value--);
0
454 }-
455-
456-
457 bool operator!() const-
458 {-
459 if (this->hasOverflowed()
this->hasOverflowed()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
460 (
never executed: (qmlWTFReportBacktrace(), qmlWTFInvokeCrashHook(), (*(int *)(uintptr_t)0xbbadbeef = 0), __builtin_trap());
qmlWTFReportBacktrace(), qmlWTFInvokeCrashHook(), (*(int *)(uintptr_t)0xbbadbeef = 0), __builtin_trap());
never executed: (qmlWTFReportBacktrace(), qmlWTFInvokeCrashHook(), (*(int *)(uintptr_t)0xbbadbeef = 0), __builtin_trap());
0
461 return
never executed: return !m_value;
!m_value;
never executed: return !m_value;
0
462 }-
463-
464 typedef void* (Checked::*UnspecifiedBoolType);-
465 operator UnspecifiedBoolType*() const-
466 {-
467 if (this->hasOverflowed()
this->hasOverflowed()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
468 (
never executed: (qmlWTFReportBacktrace(), qmlWTFInvokeCrashHook(), (*(int *)(uintptr_t)0xbbadbeef = 0), __builtin_trap());
qmlWTFReportBacktrace(), qmlWTFInvokeCrashHook(), (*(int *)(uintptr_t)0xbbadbeef = 0), __builtin_trap());
never executed: (qmlWTFReportBacktrace(), qmlWTFInvokeCrashHook(), (*(int *)(uintptr_t)0xbbadbeef = 0), __builtin_trap());
0
469 return
never executed: return (m_value) ? reinterpret_cast<UnspecifiedBoolType*>(1) : 0;
(m_value) ? reinterpret_cast<UnspecifiedBoolType*>(1) : 0;
never executed: return (m_value) ? reinterpret_cast<UnspecifiedBoolType*>(1) : 0;
0
470 }-
471-
472-
473 T unsafeGet() const-
474 {-
475 if (this->hasOverflowed()
this->hasOverflowed()Description
TRUEnever evaluated
FALSEevaluated 3545872 times by 153 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
)
0-3545872
476 (
never executed: (qmlWTFReportBacktrace(), qmlWTFInvokeCrashHook(), (*(int *)(uintptr_t)0xbbadbeef = 0), __builtin_trap());
qmlWTFReportBacktrace(), qmlWTFInvokeCrashHook(), (*(int *)(uintptr_t)0xbbadbeef = 0), __builtin_trap());
never executed: (qmlWTFReportBacktrace(), qmlWTFInvokeCrashHook(), (*(int *)(uintptr_t)0xbbadbeef = 0), __builtin_trap());
0
477 return
executed 3545940 times by 153 tests: return m_value;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
m_value;
executed 3545940 times by 153 tests: return m_value;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
3545940
478 }-
479-
480 inline CheckedState safeGet(T& value) const __attribute__ ((warn_unused_result))-
481 {-
482 value = m_value;-
483 if (this->hasOverflowed()
this->hasOverflowed()Description
TRUEnever evaluated
FALSEevaluated 2310717 times by 153 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
)
0-2310717
484 return
never executed: return CheckedState::DidOverflow;
CheckedState::DidOverflow;
never executed: return CheckedState::DidOverflow;
0
485 return
executed 2310801 times by 153 tests: return CheckedState::DidNotOverflow;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
CheckedState::DidNotOverflow;
executed 2310801 times by 153 tests: return CheckedState::DidNotOverflow;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
2310801
486 }-
487-
488-
489 template <typename U> const Checked operator+=(U rhs)-
490 {-
491 if (!safeAdd(m_value, rhs, m_value)
!safeAdd(m_val... rhs, m_value)Description
TRUEnever evaluated
FALSEevaluated 2374335 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
)
0-2374335
492 this->overflowed();
never executed: this->overflowed();
0
493 return
executed 2374282 times by 9 tests: return *this;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
*this;
executed 2374282 times by 9 tests: return *this;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
2374282
494 }-
495-
496 template <typename U> const Checked operator-=(U rhs)-
497 {-
498 if (!safeSub(m_value, rhs, m_value)
!safeSub(m_val... rhs, m_value)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
499 this->overflowed();
never executed: this->overflowed();
0
500 return
never executed: return *this;
*this;
never executed: return *this;
0
501 }-
502-
503 template <typename U> const Checked operator*=(U rhs)-
504 {-
505 if (!safeMultiply(m_value, rhs, m_value)
!safeMultiply(... rhs, m_value)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
506 this->overflowed();
never executed: this->overflowed();
0
507 return
never executed: return *this;
*this;
never executed: return *this;
0
508 }-
509-
510 const Checked operator*=(double rhs)-
511 {-
512 double result = rhs * m_value;-
513-
514 if (!(std::numeric_limits<T>::min() <= result
std::numeric_l...in() <= resultDescription
TRUEnever evaluated
FALSEnever evaluated
&& std::numeric_limits<T>::max() >= result
std::numeric_l...ax() >= resultDescription
TRUEnever evaluated
FALSEnever evaluated
))
0
515 this->overflowed();
never executed: this->overflowed();
0
516 m_value = (T)result;-
517 return
never executed: return *this;
*this;
never executed: return *this;
0
518 }-
519-
520 const Checked operator*=(float rhs)-
521 {-
522 return
never executed: return *this *= (double)rhs;
*this *= (double)rhs;
never executed: return *this *= (double)rhs;
0
523 }-
524-
525 template <typename U, typename V> const Checked operator+=(Checked<U, V> rhs)-
526 {-
527 if (rhs.hasOverflowed()
rhs.hasOverflowed()Description
TRUEnever evaluated
FALSEevaluated 2371625 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
)
0-2371625
528 this->overflowed();
never executed: this->overflowed();
0
529 return
executed 2371600 times by 9 tests: return *this += rhs.m_value;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
*this += rhs.m_value;
executed 2371600 times by 9 tests: return *this += rhs.m_value;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
2371600
530 }-
531-
532 template <typename U, typename V> const Checked operator-=(Checked<U, V> rhs)-
533 {-
534 if (rhs.hasOverflowed()
rhs.hasOverflowed()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
535 this->overflowed();
never executed: this->overflowed();
0
536 return
never executed: return *this -= rhs.m_value;
*this -= rhs.m_value;
never executed: return *this -= rhs.m_value;
0
537 }-
538-
539 template <typename U, typename V> const Checked operator*=(Checked<U, V> rhs)-
540 {-
541 if (rhs.hasOverflowed()
rhs.hasOverflowed()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
542 this->overflowed();
never executed: this->overflowed();
0
543 return
never executed: return *this *= rhs.m_value;
*this *= rhs.m_value;
never executed: return *this *= rhs.m_value;
0
544 }-
545-
546-
547 template <typename V> bool operator==(Checked<T, V> rhs)-
548 {-
549 return
never executed: return unsafeGet() == rhs.unsafeGet();
unsafeGet() == rhs.unsafeGet();
never executed: return unsafeGet() == rhs.unsafeGet();
0
550 }-
551-
552 template <typename U> bool operator==(U rhs)-
553 {-
554 if (this->hasOverflowed()
this->hasOverflowed()Description
TRUEnever evaluated
FALSEevaluated 5551254 times by 9 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
)
0-5551254
555 this->overflowed();
never executed: this->overflowed();
0
556 return
executed 5551322 times by 9 tests: return safeEquals(m_value, rhs);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
safeEquals(m_value, rhs);
executed 5551322 times by 9 tests: return safeEquals(m_value, rhs);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
5551322
557 }-
558-
559 template <typename U, typename V> const Checked operator==(Checked<U, V> rhs)-
560 {-
561 return
never executed: return unsafeGet() == Checked(rhs.unsafeGet());
unsafeGet() == Checked(rhs.unsafeGet());
never executed: return unsafeGet() == Checked(rhs.unsafeGet());
0
562 }-
563-
564 template <typename U> bool operator!=(U rhs)-
565 {-
566 return
executed 791344 times by 8 tests: return !(*this == rhs);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
!(*this == rhs);
executed 791344 times by 8 tests: return !(*this == rhs);
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlxmlhttprequest
  • tst_qquicklistview
  • tst_qquicktextinput
  • tst_qquickworkerscript
791344
567 }-
568-
569private:-
570-
571 Checked(float);-
572 Checked(double);-
573 void operator=(float);-
574 void operator=(double);-
575 void operator+=(float);-
576 void operator+=(double);-
577 void operator-=(float);-
578 void operator-=(double);-
579 T m_value;-
580};-
581-
582template <typename U, typename V, typename OverflowHandler> static inline Checked<typename Result<U, V>::ResultType, OverflowHandler> operator+(Checked<U, OverflowHandler> lhs, Checked<V, OverflowHandler> rhs)-
583{-
584 U x = 0;-
585 V y = 0;-
586 bool overflowed = lhs.safeGet(x) == CheckedState::DidOverflow
lhs.safeGet(x)...e::DidOverflowDescription
TRUEnever evaluated
FALSEevaluated 323 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
|| rhs.safeGet(y) == CheckedState::DidOverflow
rhs.safeGet(y)...e::DidOverflowDescription
TRUEnever evaluated
FALSEevaluated 325 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
;
0-325
587 typename Result<U, V>::ResultType result = 0;-
588 overflowed |= !safeAdd(x, y, result);-
589 if (overflowed
overflowedDescription
TRUEnever evaluated
FALSEevaluated 323 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
)
0-323
590 return
never executed: return ResultOverflowed;
ResultOverflowed;
never executed: return ResultOverflowed;
0
591 return
executed 325 times by 3 tests: return result;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
result;
executed 325 times by 3 tests: return result;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
325
592}-
593-
594template <typename U, typename V, typename OverflowHandler> static inline Checked<typename Result<U, V>::ResultType, OverflowHandler> operator-(Checked<U, OverflowHandler> lhs, Checked<V, OverflowHandler> rhs)-
595{-
596 U x = 0;-
597 V y = 0;-
598 bool overflowed = lhs.safeGet(x) == CheckedState::DidOverflow
lhs.safeGet(x)...e::DidOverflowDescription
TRUEnever evaluated
FALSEevaluated 1154537 times by 153 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
|| rhs.safeGet(y) == CheckedState::DidOverflow
rhs.safeGet(y)...e::DidOverflowDescription
TRUEnever evaluated
FALSEevaluated 1155001 times by 153 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
;
0-1155001
599 typename Result<U, V>::ResultType result = 0;-
600 overflowed |= !safeSub(x, y, result);-
601 if (overflowed
overflowedDescription
TRUEnever evaluated
FALSEevaluated 1154104 times by 153 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
)
0-1154104
602 return
never executed: return ResultOverflowed;
ResultOverflowed;
never executed: return ResultOverflowed;
0
603 return
executed 1154018 times by 153 tests: return result;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
result;
executed 1154018 times by 153 tests: return result;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
1154018
604}-
605-
606template <typename U, typename V, typename OverflowHandler> static inline Checked<typename Result<U, V>::ResultType, OverflowHandler> operator*(Checked<U, OverflowHandler> lhs, Checked<V, OverflowHandler> rhs)-
607{-
608 U x = 0;-
609 V y = 0;-
610 bool overflowed = lhs.safeGet(x) == CheckedState::DidOverflow
lhs.safeGet(x)...e::DidOverflowDescription
TRUEnever evaluated
FALSEevaluated 323 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
|| rhs.safeGet(y) == CheckedState::DidOverflow
rhs.safeGet(y)...e::DidOverflowDescription
TRUEnever evaluated
FALSEevaluated 322 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
;
0-323
611 typename Result<U, V>::ResultType result = 0;-
612 overflowed |= !safeMultiply(x, y, result);-
613 if (overflowed
overflowedDescription
TRUEnever evaluated
FALSEevaluated 322 times by 3 tests
Evaluated by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
)
0-322
614 return
never executed: return ResultOverflowed;
ResultOverflowed;
never executed: return ResultOverflowed;
0
615 return
executed 323 times by 3 tests: return result;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
result;
executed 323 times by 3 tests: return result;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
323
616}-
617-
618template <typename U, typename V, typename OverflowHandler> static inline Checked<typename Result<U, V>::ResultType, OverflowHandler> operator+(Checked<U, OverflowHandler> lhs, V rhs)-
619{-
620 return
never executed: return lhs + Checked<V, OverflowHandler>(rhs);
lhs + Checked<V, OverflowHandler>(rhs);
never executed: return lhs + Checked<V, OverflowHandler>(rhs);
0
621}-
622-
623template <typename U, typename V, typename OverflowHandler> static inline Checked<typename Result<U, V>::ResultType, OverflowHandler> operator-(Checked<U, OverflowHandler> lhs, V rhs)-
624{-
625 return
executed 1154917 times by 153 tests: return lhs - Checked<V, OverflowHandler>(rhs);
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
lhs - Checked<V, OverflowHandler>(rhs);
executed 1154917 times by 153 tests: return lhs - Checked<V, OverflowHandler>(rhs);
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • ...
1154917
626}-
627-
628template <typename U, typename V, typename OverflowHandler> static inline Checked<typename Result<U, V>::ResultType, OverflowHandler> operator*(Checked<U, OverflowHandler> lhs, V rhs)-
629{-
630 return
executed 323 times by 3 tests: return lhs * Checked<V, OverflowHandler>(rhs);
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
lhs * Checked<V, OverflowHandler>(rhs);
executed 323 times by 3 tests: return lhs * Checked<V, OverflowHandler>(rhs);
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
323
631}-
632-
633template <typename U, typename V, typename OverflowHandler> static inline Checked<typename Result<U, V>::ResultType, OverflowHandler> operator+(U lhs, Checked<V, OverflowHandler> rhs)-
634{-
635 return
executed 324 times by 3 tests: return Checked<U, OverflowHandler>(lhs) + rhs;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
Checked<U, OverflowHandler>(lhs) + rhs;
executed 324 times by 3 tests: return Checked<U, OverflowHandler>(lhs) + rhs;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qquicktextinput
324
636}-
637-
638template <typename U, typename V, typename OverflowHandler> static inline Checked<typename Result<U, V>::ResultType, OverflowHandler> operator-(U lhs, Checked<V, OverflowHandler> rhs)-
639{-
640 return
never executed: return Checked<U, OverflowHandler>(lhs) - rhs;
Checked<U, OverflowHandler>(lhs) - rhs;
never executed: return Checked<U, OverflowHandler>(lhs) - rhs;
0
641}-
642-
643template <typename U, typename V, typename OverflowHandler> static inline Checked<typename Result<U, V>::ResultType, OverflowHandler> operator*(U lhs, Checked<V, OverflowHandler> rhs)-
644{-
645 return
never executed: return Checked<U, OverflowHandler>(lhs) * rhs;
Checked<U, OverflowHandler>(lhs) * rhs;
never executed: return Checked<U, OverflowHandler>(lhs) * rhs;
0
646}-
647-
648}-
649-
650using WTF::Checked;-
651using WTF::CheckedState;-
652using WTF::RecordOverflow;-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0