GCC Middle and Back End API Reference
range-op-mixed.h
Go to the documentation of this file.
1/* Header file for mixed range operator class.
2 Copyright (C) 2017-2025 Free Software Foundation, Inc.
3 Contributed by Andrew MacLeod <amacleod@redhat.com>
4 and Aldy Hernandez <aldyh@redhat.com>.
5
6This file is part of GCC.
7
8GCC is free software; you can redistribute it and/or modify it under
9the terms of the GNU General Public License as published by the Free
10Software Foundation; either version 3, or (at your option) any later
11version.
12
13GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14WARRANTY; without even the implied warranty of MERCHANTABILITY or
15FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 for more details.
17
18You should have received a copy of the GNU General Public License
19along with GCC; see the file COPYING3. If not see
20<http://www.gnu.org/licenses/>. */
21
22#ifndef GCC_RANGE_OP_MIXED_H
23#define GCC_RANGE_OP_MIXED_H
24
25void update_known_bitmask (vrange &, tree_code, const vrange &, const vrange &);
27 const irange &, const irange &,
28 relation_kind rel);
29
30
31// Return TRUE if 0 is within [WMIN, WMAX].
32
33inline bool
34wi_includes_zero_p (tree type, const wide_int &wmin, const wide_int &wmax)
35{
36 signop sign = TYPE_SIGN (type);
37 return wi::le_p (wmin, 0, sign) && wi::ge_p (wmax, 0, sign);
38}
39
40// Return TRUE if [WMIN, WMAX] is the singleton 0.
41
42inline bool
43wi_zero_p (tree type, const wide_int &wmin, const wide_int &wmax)
44{
45 unsigned prec = TYPE_PRECISION (type);
46 return wmin == wmax && wi::eq_p (wmin, wi::zero (prec));
47}
48
49
51bool_range_state get_bool_state (vrange &r, const vrange &lhs, tree val_type);
52
53// If the range of either op1 or op2 is undefined, set the result to
54// varying and return TRUE. If the caller truly cares about a result,
55// they should pass in a varying if it has an undefined that it wants
56// treated as a varying.
57
58inline bool
60 const vrange &op1, const vrange & op2)
61{
62 if (op1.undefined_p () || op2.undefined_p ())
63 {
64 r.set_varying (type);
65 return true;
66 }
67 else
68 return false;
69}
70
71// For relation opcodes, first try to see if the supplied relation
72// forces a true or false result, and return that.
73// Then check for undefined operands. If none of this applies,
74// return false.
75
76inline bool
78 const vrange &op2, relation_trio trio,
79 relation_kind my_rel)
80{
81 relation_kind rel = trio.op1_op2 ();
82 // If known relation is a complete subset of this relation, always true.
83 if (relation_union (rel, my_rel) == my_rel)
84 {
85 r = range_true (type);
86 return true;
87 }
88
89 // If known relation has no subset of this relation, always false.
90 if (relation_intersect (rel, my_rel) == VREL_UNDEFINED)
91 {
92 r = range_false (type);
93 return true;
94 }
95
96 // If either operand is undefined, return VARYING.
97 if (empty_range_varying (r, type, op1, op2))
98 return true;
99
100 return false;
101}
102
103// ----------------------------------------------------------------------
104// Mixed Mode Operators.
105// ----------------------------------------------------------------------
106
108{
109public:
115 bool fold_range (irange &r, tree type,
116 const irange &op1, const irange &op2,
117 relation_trio = TRIO_VARYING) const final override;
118 bool fold_range (irange &r, tree type,
119 const prange &op1, const prange &op2,
120 relation_trio = TRIO_VARYING) const final override;
121 bool fold_range (irange &r, tree type,
122 const frange &op1, const frange &op2,
123 relation_trio = TRIO_VARYING) const final override;
124
125 bool op1_range (irange &r, tree type,
126 const irange &lhs, const irange &val,
127 relation_trio = TRIO_VARYING) const final override;
128 bool op1_range (prange &r, tree type,
129 const irange &lhs, const prange &val,
130 relation_trio = TRIO_VARYING) const final override;
131 bool op1_range (frange &r, tree type,
132 const irange &lhs, const frange &op2,
133 relation_trio = TRIO_VARYING) const final override;
134
135 bool op2_range (irange &r, tree type,
136 const irange &lhs, const irange &val,
137 relation_trio = TRIO_VARYING) const final override;
138 bool op2_range (prange &r, tree type,
139 const irange &lhs, const prange &val,
140 relation_trio = TRIO_VARYING) const final override;
141 bool op2_range (frange &r, tree type,
142 const irange &lhs, const frange &op1,
143 relation_trio rel = TRIO_VARYING) const final override;
144
145 relation_kind op1_op2_relation (const irange &lhs, const irange &,
146 const irange &) const final override;
147 relation_kind op1_op2_relation (const irange &lhs, const prange &,
148 const prange &) const final override;
149 relation_kind op1_op2_relation (const irange &lhs, const frange &,
150 const frange &) const final override;
151 void update_bitmask (irange &r, const irange &lh,
152 const irange &rh) const final override;
153 // Check op1 and op2 for compatibility.
154 bool operand_check_p (tree t1, tree t2, tree t3) const final override
155 { return range_compatible_p (t2, t3) && INTEGRAL_TYPE_P (t1); }
156};
157
159{
160public:
166 bool fold_range (irange &r, tree type,
167 const irange &op1, const irange &op2,
168 relation_trio = TRIO_VARYING) const final override;
169 bool fold_range (irange &r, tree type,
170 const prange &op1, const prange &op2,
171 relation_trio rel = TRIO_VARYING) const final override;
172 bool fold_range (irange &r, tree type,
173 const frange &op1, const frange &op2,
174 relation_trio rel = TRIO_VARYING) const final override;
175
176 bool op1_range (irange &r, tree type,
177 const irange &lhs, const irange &op2,
178 relation_trio = TRIO_VARYING) const final override;
179 bool op1_range (prange &r, tree type,
180 const irange &lhs, const prange &op2,
181 relation_trio = TRIO_VARYING) const final override;
182 bool op1_range (frange &r, tree type,
183 const irange &lhs, const frange &op2,
184 relation_trio = TRIO_VARYING) const final override;
185
186 bool op2_range (irange &r, tree type,
187 const irange &lhs, const irange &op1,
188 relation_trio = TRIO_VARYING) const final override;
189 bool op2_range (prange &r, tree type,
190 const irange &lhs, const prange &op1,
191 relation_trio = TRIO_VARYING) const final override;
192 bool op2_range (frange &r, tree type,
193 const irange &lhs, const frange &op1,
194 relation_trio = TRIO_VARYING) const final override;
195
196 relation_kind op1_op2_relation (const irange &lhs, const irange &,
197 const irange &) const final override;
198 relation_kind op1_op2_relation (const irange &lhs, const prange &,
199 const prange &) const final override;
200 relation_kind op1_op2_relation (const irange &lhs, const frange &,
201 const frange &) const final override;
202 void update_bitmask (irange &r, const irange &lh,
203 const irange &rh) const final override;
204 // Check op1 and op2 for compatibility.
205 bool operand_check_p (tree t0, tree t1, tree t2) const final override
206 { return range_compatible_p (t1, t2) && INTEGRAL_TYPE_P (t0); }
207};
208
210{
211public:
217 bool fold_range (irange &r, tree type,
218 const irange &op1, const irange &op2,
219 relation_trio = TRIO_VARYING) const final override;
220 bool fold_range (irange &r, tree type,
221 const prange &op1, const prange &op2,
222 relation_trio = TRIO_VARYING) const final override;
223 bool fold_range (irange &r, tree type,
224 const frange &op1, const frange &op2,
225 relation_trio = TRIO_VARYING) const final override;
226 bool op1_range (irange &r, tree type,
227 const irange &lhs, const irange &op2,
228 relation_trio = TRIO_VARYING) const final override;
229 bool op1_range (prange &r, tree type,
230 const irange &lhs, const prange &op2,
231 relation_trio = TRIO_VARYING) const final override;
232 bool op1_range (frange &r, tree type,
233 const irange &lhs, const frange &op2,
234 relation_trio = TRIO_VARYING) const final override;
235 bool op2_range (irange &r, tree type,
236 const irange &lhs, const irange &op1,
237 relation_trio = TRIO_VARYING) const final override;
238 bool op2_range (prange &r, tree type,
239 const irange &lhs, const prange &op1,
240 relation_trio = TRIO_VARYING) const final override;
241 bool op2_range (frange &r, tree type,
242 const irange &lhs, const frange &op1,
243 relation_trio = TRIO_VARYING) const final override;
244 relation_kind op1_op2_relation (const irange &lhs, const irange &,
245 const irange &) const final override;
246 relation_kind op1_op2_relation (const irange &lhs, const prange &,
247 const prange &) const final override;
248 relation_kind op1_op2_relation (const irange &lhs, const frange &,
249 const frange &) const final override;
250 void update_bitmask (irange &r, const irange &lh,
251 const irange &rh) const final override;
252 // Check op1 and op2 for compatibility.
253 bool operand_check_p (tree t1, tree t2, tree t3) const final override
254 { return range_compatible_p (t2, t3) && INTEGRAL_TYPE_P (t1); }
255};
256
258{
259public:
265 bool fold_range (irange &r, tree type,
266 const irange &op1, const irange &op2,
267 relation_trio = TRIO_VARYING) const final override;
268 bool fold_range (irange &r, tree type,
269 const prange &op1, const prange &op2,
270 relation_trio = TRIO_VARYING) const final override;
271 bool fold_range (irange &r, tree type,
272 const frange &op1, const frange &op2,
273 relation_trio rel = TRIO_VARYING) const final override;
274
275 bool op1_range (irange &r, tree type,
276 const irange &lhs, const irange &op2,
277 relation_trio = TRIO_VARYING) const final override;
278 bool op1_range (prange &r, tree type,
279 const irange &lhs, const prange &op2,
280 relation_trio = TRIO_VARYING) const final override;
281 bool op1_range (frange &r, tree type,
282 const irange &lhs, const frange &op2,
283 relation_trio rel = TRIO_VARYING) const final override;
284
285 bool op2_range (irange &r, tree type,
286 const irange &lhs, const irange &op1,
287 relation_trio = TRIO_VARYING) const final override;
288 bool op2_range (prange &r, tree type,
289 const irange &lhs, const prange &op1,
290 relation_trio = TRIO_VARYING) const final override;
291 bool op2_range (frange &r, tree type,
292 const irange &lhs, const frange &op1,
293 relation_trio rel = TRIO_VARYING) const final override;
294
295 relation_kind op1_op2_relation (const irange &lhs, const irange &,
296 const irange &) const final override;
297 relation_kind op1_op2_relation (const irange &lhs, const prange &,
298 const prange &) const final override;
299 relation_kind op1_op2_relation (const irange &lhs, const frange &,
300 const frange &) const final override;
301 void update_bitmask (irange &r, const irange &lh,
302 const irange &rh) const final override;
303 // Check op1 and op2 for compatibility.
304 bool operand_check_p (tree t1, tree t2, tree t3) const final override
305 { return range_compatible_p (t2, t3) && INTEGRAL_TYPE_P (t1); }
306};
307
309{
310public:
316 bool fold_range (irange &r, tree type,
317 const irange &op1, const irange &op2,
318 relation_trio = TRIO_VARYING) const final override;
319 bool fold_range (irange &r, tree type,
320 const prange &op1, const prange &op2,
321 relation_trio = TRIO_VARYING) const final override;
322 bool fold_range (irange &r, tree type,
323 const frange &op1, const frange &op2,
324 relation_trio = TRIO_VARYING) const final override;
325
326 bool op1_range (irange &r, tree type,
327 const irange &lhs, const irange &op2,
328 relation_trio = TRIO_VARYING) const final override;
329 bool op1_range (prange &r, tree type,
330 const irange &lhs, const prange &op2,
331 relation_trio = TRIO_VARYING) const final override;
332 bool op1_range (frange &r, tree type,
333 const irange &lhs, const frange &op2,
334 relation_trio = TRIO_VARYING) const final override;
335
336 bool op2_range (irange &r, tree type,
337 const irange &lhs, const irange &op1,
338 relation_trio = TRIO_VARYING) const final override;
339 bool op2_range (prange &r, tree type,
340 const irange &lhs, const prange &op1,
341 relation_trio = TRIO_VARYING) const final override;
342 bool op2_range (frange &r, tree type,
343 const irange &lhs, const frange &op1,
344 relation_trio = TRIO_VARYING) const final override;
345 relation_kind op1_op2_relation (const irange &lhs, const irange &,
346 const irange &) const final override;
347 relation_kind op1_op2_relation (const irange &lhs, const prange &,
348 const prange &) const final override;
349 relation_kind op1_op2_relation (const irange &lhs, const frange &,
350 const frange &) const final override;
351 void update_bitmask (irange &r, const irange &lh,
352 const irange &rh) const final override;
353 // Check op1 and op2 for compatibility.
354 bool operand_check_p (tree t1, tree t2, tree t3) const final override
355 { return range_compatible_p (t2, t3) && INTEGRAL_TYPE_P (t1); }
356};
357
359{
360public:
366 bool fold_range (irange &r, tree type,
367 const irange &op1, const irange &op2,
368 relation_trio = TRIO_VARYING) const final override;
369 bool fold_range (irange &r, tree type,
370 const prange &op1, const prange &op2,
371 relation_trio = TRIO_VARYING) const final override;
372 bool fold_range (irange &r, tree type,
373 const frange &op1, const frange &op2,
374 relation_trio = TRIO_VARYING) const final override;
375
376 bool op1_range (irange &r, tree type,
377 const irange &lhs, const irange &op2,
378 relation_trio = TRIO_VARYING) const final override;
379 bool op1_range (prange &r, tree type,
380 const irange &lhs, const prange &op2,
381 relation_trio = TRIO_VARYING) const final override;
382 bool op1_range (frange &r, tree type,
383 const irange &lhs, const frange &op2,
384 relation_trio = TRIO_VARYING) const final override;
385
386 bool op2_range (irange &r, tree type,
387 const irange &lhs, const irange &op1,
388 relation_trio = TRIO_VARYING) const final override;
389 bool op2_range (prange &r, tree type,
390 const irange &lhs, const prange &op1,
391 relation_trio = TRIO_VARYING) const final override;
392 bool op2_range (frange &r, tree type,
393 const irange &lhs, const frange &op1,
394 relation_trio = TRIO_VARYING) const final override;
395
396 relation_kind op1_op2_relation (const irange &lhs, const irange &,
397 const irange &) const final override;
398 relation_kind op1_op2_relation (const irange &lhs, const prange &,
399 const prange &) const final override;
400 relation_kind op1_op2_relation (const irange &lhs, const frange &,
401 const frange &) const final override;
402 void update_bitmask (irange &r, const irange &lh,
403 const irange &rh) const final override;
404 // Check op1 and op2 for compatibility.
405 bool operand_check_p (tree t1, tree t2, tree t3) const final override
406 { return range_compatible_p (t2, t3) && INTEGRAL_TYPE_P (t1); }
407};
408
410{
411public:
415 bool fold_range (irange &r, tree type,
416 const irange &op1, const irange &op2,
417 relation_trio rel = TRIO_VARYING) const final override;
418 bool fold_range (prange &r, tree type,
419 const prange &op1, const prange &op2,
420 relation_trio rel = TRIO_VARYING) const final override;
421 bool fold_range (frange &r, tree type ATTRIBUTE_UNUSED,
422 const frange &op1, const frange &op2 ATTRIBUTE_UNUSED,
423 relation_trio = TRIO_VARYING) const final override;
424 bool op1_range (irange &r, tree type,
425 const irange &lhs, const irange &op2,
426 relation_trio rel = TRIO_VARYING) const final override;
427 bool op1_range (prange &r, tree type,
428 const prange &lhs, const prange &op2,
429 relation_trio rel = TRIO_VARYING) const final override;
430 bool op1_range (frange &r, tree type ATTRIBUTE_UNUSED,
431 const frange &lhs, const frange &op2 ATTRIBUTE_UNUSED,
432 relation_trio = TRIO_VARYING) const final override;
434 const irange &op1, const irange &op2,
435 relation_kind rel) const final override;
437 const prange &op1, const prange &op2,
438 relation_kind rel) const final override;
439};
440
442{
443public:
445 bool fold_range (irange &r, tree type,
446 const irange &op1, const irange &op2,
447 relation_trio rel = TRIO_VARYING) const final override;
448 bool fold_range (prange &r, tree type,
449 const prange &op1, const prange &op2,
450 relation_trio rel = TRIO_VARYING) const final override;
451 bool fold_range (frange &r, tree type,
452 const frange &op1, const frange &op2,
453 relation_trio = TRIO_VARYING) const final override;
454};
455
456
458{
459public:
464 bool fold_range (irange &r, tree type,
465 const irange &op1, const irange &op2,
466 relation_trio rel = TRIO_VARYING) const final override;
467 bool fold_range (prange &r, tree type,
468 const prange &op1, const prange &op2,
469 relation_trio rel = TRIO_VARYING) const final override;
470 bool fold_range (irange &r, tree type,
471 const prange &op1, const irange &op2,
472 relation_trio rel = TRIO_VARYING) const final override;
473 bool fold_range (prange &r, tree type,
474 const irange &op1, const prange &op2,
475 relation_trio rel = TRIO_VARYING) const final override;
476 bool fold_range (irange &r, tree type,
477 const frange &lh,
478 const irange &rh,
480 bool fold_range (frange &r, tree type,
481 const irange &lh,
482 const frange &rh,
484
485 bool op1_range (irange &r, tree type,
486 const irange &lhs, const irange &op2,
487 relation_trio rel = TRIO_VARYING) const final override;
488 bool op1_range (prange &r, tree type,
489 const prange &lhs, const prange &op2,
490 relation_trio rel = TRIO_VARYING) const final override;
491 bool op1_range (irange &r, tree type,
492 const prange &lhs, const irange &op2,
493 relation_trio rel = TRIO_VARYING) const final override;
494 bool op1_range (prange &r, tree type,
495 const irange &lhs, const prange &op2,
496 relation_trio rel = TRIO_VARYING) const final override;
497 bool op1_range (frange &r, tree type,
498 const irange &lhs,
499 const irange &op2,
501 bool op1_range (irange &r, tree type,
502 const frange &lhs,
503 const frange &op2,
505
507 const irange &op1, const irange &op2,
508 relation_kind) const final override;
510 const prange &op1, const prange &op2,
511 relation_kind) const final override;
513 const irange &op1, const irange &op2,
514 relation_kind) const final override;
516 const prange &op1, const prange &op2,
517 relation_kind) const final override;
518 void update_bitmask (irange &r, const irange &lh,
519 const irange &rh) const final override;
520private:
521 bool truncating_cast_p (const irange &inner, const irange &outer) const;
522 bool inside_domain_p (const wide_int &min, const wide_int &max,
523 const irange &outer) const;
524 void fold_pair (irange &r, unsigned index, const irange &inner,
525 const irange &outer) const;
526};
527
529{
530public:
536 bool op1_range (irange &r, tree type,
537 const irange &lhs, const irange &op2,
538 relation_trio) const final override;
539 bool op1_range (frange &r, tree type,
540 const frange &lhs, const frange &op2,
541 relation_trio = TRIO_VARYING) const final override;
542
543 bool op2_range (irange &r, tree type,
544 const irange &lhs, const irange &op1,
545 relation_trio) const final override;
546 bool op2_range (frange &r, tree type,
547 const frange &lhs, const frange &op1,
548 relation_trio = TRIO_VARYING) const final override;
549
550 relation_kind lhs_op1_relation (const irange &lhs, const irange &op1,
551 const irange &op2,
552 relation_kind rel) const final override;
553 relation_kind lhs_op2_relation (const irange &lhs, const irange &op1,
554 const irange &op2,
555 relation_kind rel) const final override;
556 void update_bitmask (irange &r, const irange &lh,
557 const irange &rh) const final override;
558
559 virtual bool overflow_free_p (const irange &lh, const irange &rh,
561 // Check compatibility of all operands.
562 bool operand_check_p (tree t1, tree t2, tree t3) const final override
563 { return range_compatible_p (t1, t2) && range_compatible_p (t1, t3); }
564private:
565 void wi_fold (irange &r, tree type, const wide_int &lh_lb,
566 const wide_int &lh_ub, const wide_int &rh_lb,
567 const wide_int &rh_ub) const final override;
568 void rv_fold (frange &r, tree type,
569 const REAL_VALUE_TYPE &lh_lb, const REAL_VALUE_TYPE &lh_ub,
570 const REAL_VALUE_TYPE &rh_lb, const REAL_VALUE_TYPE &rh_ub,
571 relation_kind) const final override;
572};
573
575{
576 public:
580 bool fold_range (frange &r, tree type,
581 const frange &op1, const frange &,
582 relation_trio = TRIO_VARYING) const final override;
583
584 bool op1_range (irange &r, tree type, const irange &lhs,
585 const irange &op2, relation_trio) const final override;
586 bool op1_range (frange &r, tree type,
587 const frange &lhs, const frange &op2,
588 relation_trio rel = TRIO_VARYING) const final override;
589 void update_bitmask (irange &r, const irange &lh,
590 const irange &rh) const final override;
591 // Check compatibility of LHS and op1.
592 bool operand_check_p (tree t1, tree t2, tree) const final override
593 { return range_compatible_p (t1, t2); }
594private:
595 void wi_fold (irange &r, tree type, const wide_int &lh_lb,
596 const wide_int &lh_ub, const wide_int &rh_lb,
597 const wide_int &rh_ub) const final override;
598
599};
600
602{
603public:
610 bool op1_range (irange &r, tree type,
611 const irange &lhs, const irange &op2,
612 relation_trio) const final override;
613 bool op1_range (frange &r, tree type,
614 const frange &lhs, const frange &op2,
615 relation_trio = TRIO_VARYING) const final override;
616
617 bool op2_range (irange &r, tree type,
618 const irange &lhs, const irange &op1,
619 relation_trio) const final override;
620 bool op2_range (frange &r, tree type,
621 const frange &lhs,
622 const frange &op1,
623 relation_trio = TRIO_VARYING) const final override;
624
626 const irange &op1, const irange &op2,
627 relation_kind rel) const final override;
628 bool op1_op2_relation_effect (irange &lhs_range, tree type,
629 const irange &op1_range,
630 const irange &op2_range,
631 relation_kind rel) const final override;
632 void update_bitmask (irange &r, const irange &lh,
633 const irange &rh) const final override;
634
635 virtual bool overflow_free_p (const irange &lh, const irange &rh,
637 // Check compatibility of all operands.
638 bool operand_check_p (tree t1, tree t2, tree t3) const final override
639 { return range_compatible_p (t1, t2) && range_compatible_p (t1, t3); }
640private:
641 void wi_fold (irange &r, tree type, const wide_int &lh_lb,
642 const wide_int &lh_ub, const wide_int &rh_lb,
643 const wide_int &rh_ub) const final override;
644 void rv_fold (frange &r, tree type,
645 const REAL_VALUE_TYPE &lh_lb, const REAL_VALUE_TYPE &lh_ub,
646 const REAL_VALUE_TYPE &rh_lb, const REAL_VALUE_TYPE &rh_ub,
647 relation_kind) const final override;
648};
649
651{
652 public:
655 bool fold_range (irange &r, tree type,
656 const irange &op1, const irange &op2,
657 relation_trio rel = TRIO_VARYING) const final override;
658 bool fold_range (frange &r, tree type,
659 const frange &op1, const frange &op2,
660 relation_trio = TRIO_VARYING) const final override;
661
662 bool op1_range (irange &r, tree type,
663 const irange &lhs, const irange &op2,
664 relation_trio rel = TRIO_VARYING) const final override;
665 bool op1_range (frange &r, tree type,
666 const frange &lhs, const frange &op2,
667 relation_trio rel = TRIO_VARYING) const final override;
668 // Check compatibility of LHS and op1.
669 bool operand_check_p (tree t1, tree t2, tree) const final override
670 { return range_compatible_p (t1, t2); }
671};
672
673
675{
676public:
677 virtual bool wi_op_overflows (wide_int &r,
678 tree type,
679 const wide_int &,
680 const wide_int &) const = 0;
682 const wide_int &lh_lb,
683 const wide_int &lh_ub,
684 const wide_int &rh_lb,
685 const wide_int &rh_ub) const;
686};
687
689{
690public:
694 bool op1_range (irange &r, tree type,
695 const irange &lhs, const irange &op2,
696 relation_trio) const final override;
697 bool op1_range (frange &r, tree type,
698 const frange &lhs, const frange &op2,
699 relation_trio = TRIO_VARYING) const final override;
700
701 bool op2_range (irange &r, tree type,
702 const irange &lhs, const irange &op1,
703 relation_trio) const final override;
704 bool op2_range (frange &r, tree type,
705 const frange &lhs, const frange &op1,
706 relation_trio = TRIO_VARYING) const final override;
707
708 void update_bitmask (irange &r, const irange &lh,
709 const irange &rh) const final override;
710
711 void wi_fold (irange &r, tree type, const wide_int &lh_lb,
712 const wide_int &lh_ub, const wide_int &rh_lb,
713 const wide_int &rh_ub) const final override;
714 bool wi_op_overflows (wide_int &res, tree type, const wide_int &w0,
715 const wide_int &w1) const final override;
716
717 void rv_fold (frange &r, tree type,
718 const REAL_VALUE_TYPE &lh_lb, const REAL_VALUE_TYPE &lh_ub,
719 const REAL_VALUE_TYPE &rh_lb, const REAL_VALUE_TYPE &rh_ub,
720 relation_kind kind) const final override;
721 virtual bool overflow_free_p (const irange &lh, const irange &rh,
723 // Check compatibility of all operands.
724 bool operand_check_p (tree t1, tree t2, tree t3) const final override
725 { return range_compatible_p (t1, t2) && range_compatible_p (t1, t3); }
726};
727
729{
730public:
733 bool fold_range (irange &r, tree type,
734 const irange &op1, const irange &op2,
735 relation_trio rel = TRIO_VARYING) const final override;
736 bool op1_range (irange &r, tree type,
737 const irange &lhs, const irange &op2,
738 relation_trio rel = TRIO_VARYING) const final override;
739 bool op1_range (prange &r, tree type,
740 const prange &lhs, const prange &op2,
741 relation_trio rel = TRIO_VARYING) const final override;
742};
743
745{
746public:
750 bool fold_range (irange &r, tree type,
751 const irange &lh, const irange &rh,
752 relation_trio rel = TRIO_VARYING) const final override;
753 bool op1_range (irange &r, tree type,
754 const irange &lhs, const irange &op2,
755 relation_trio rel = TRIO_VARYING) const final override;
756 void update_bitmask (irange &r, const irange &lh,
757 const irange &rh) const final override;
758 // Check compatibility of all operands.
759 bool operand_check_p (tree t1, tree t2, tree t3) const final override
760 { return range_compatible_p (t1, t2) && range_compatible_p (t1, t3); }
761};
762
764{
765public:
770 bool op1_range (irange &r, tree type,
771 const irange &lhs, const irange &op2,
772 relation_trio rel = TRIO_VARYING) const final override;
773 bool op2_range (irange &r, tree type,
774 const irange &lhs, const irange &op1,
775 relation_trio rel = TRIO_VARYING) const final override;
776 bool op1_op2_relation_effect (irange &lhs_range,
777 tree type,
778 const irange &op1_range,
779 const irange &op2_range,
780 relation_kind rel) const final override;
781 void update_bitmask (irange &r, const irange &lh,
782 const irange &rh) const final override;
783 // Check compatibility of all operands.
784 bool operand_check_p (tree t1, tree t2, tree t3) const final override
785 { return range_compatible_p (t1, t2) && range_compatible_p (t1, t3); }
786private:
787 void wi_fold (irange &r, tree type, const wide_int &lh_lb,
788 const wide_int &lh_ub, const wide_int &rh_lb,
789 const wide_int &rh_ub) const final override;
790};
791
793{
794public:
800 bool fold_range (prange &r, tree type,
801 const prange &op1,
802 const prange &op2,
803 relation_trio) const final override;
804 bool op1_range (irange &r, tree type,
805 const irange &lhs, const irange &op2,
806 relation_trio rel = TRIO_VARYING) const override;
807 bool op2_range (irange &r, tree type,
808 const irange &lhs, const irange &op1,
809 relation_trio rel = TRIO_VARYING) const override;
811 const irange &op1, const irange &op2,
812 relation_kind) const override;
813 void update_bitmask (irange &r, const irange &lh,
814 const irange &rh) const override;
815 // Check compatibility of all operands.
816 bool operand_check_p (tree t1, tree t2, tree t3) const final override
817 { return range_compatible_p (t1, t2) && range_compatible_p (t1, t3); }
818protected:
819 void wi_fold (irange &r, tree type, const wide_int &lh_lb,
820 const wide_int &lh_ub, const wide_int &rh_lb,
821 const wide_int &rh_ub) const override;
823 const irange &lhs,
824 const irange &op2) const;
825};
826
828{
829public:
834
835 bool fold_range (prange &r, tree type,
836 const prange &op1,
837 const prange &op2,
838 relation_trio) const final override;
839 bool op1_range (irange &r, tree type,
840 const irange &lhs, const irange &op2,
841 relation_trio rel = TRIO_VARYING) const override;
842 bool op2_range (irange &r, tree type,
843 const irange &lhs, const irange &op1,
844 relation_trio rel = TRIO_VARYING) const override;
845 void update_bitmask (irange &r, const irange &lh,
846 const irange &rh) const override;
847 // Check compatibility of all operands.
848 bool operand_check_p (tree t1, tree t2, tree t3) const final override
849 { return range_compatible_p (t1, t2) && range_compatible_p (t1, t3); }
850protected:
851 void wi_fold (irange &r, tree type, const wide_int &lh_lb,
852 const wide_int &lh_ub, const wide_int &rh_lb,
853 const wide_int &rh_ub) const override;
854};
855
857{
858public:
861 bool fold_range (prange &r, tree type,
862 const prange &op1,
863 const prange &op2,
864 relation_trio) const final override;
865 void update_bitmask (irange &r, const irange &lh,
866 const irange &rh) const override;
867 // Check compatibility of all operands.
868 bool operand_check_p (tree t1, tree t2, tree t3) const final override
869 { return range_compatible_p (t1, t2) && range_compatible_p (t1, t3); }
870protected:
871 void wi_fold (irange &r, tree type, const wide_int &lh_lb,
872 const wide_int &lh_ub, const wide_int &rh_lb,
873 const wide_int &rh_ub) const override;
874};
875
877{
878public:
881 bool fold_range (prange &r, tree type,
882 const prange &op1,
883 const prange &op2,
884 relation_trio) const final override;
885 void update_bitmask (irange &r, const irange &lh,
886 const irange &rh) const override;
887 // Check compatibility of all operands.
888 bool operand_check_p (tree t1, tree t2, tree t3) const final override
889 { return range_compatible_p (t1, t2) && range_compatible_p (t1, t3); }
890protected:
891 void wi_fold (irange &r, tree type, const wide_int &lh_lb,
892 const wide_int &lh_ub, const wide_int &rh_lb,
893 const wide_int &rh_ub) const override;
894};
895#endif // GCC_RANGE_OP_MIXED_H
Definition range-op-mixed.h:675
void wi_cross_product(irange &r, tree type, const wide_int &lh_lb, const wide_int &lh_ub, const wide_int &rh_lb, const wide_int &rh_ub) const
Definition range-op.cc:2200
virtual bool wi_op_overflows(wide_int &r, tree type, const wide_int &, const wide_int &) const =0
Definition value-range.h:528
Definition value-range.h:274
Definition range-op-mixed.h:575
void update_bitmask(irange &r, const irange &lh, const irange &rh) const final override
Definition range-op.cc:4481
bool fold_range(frange &r, tree type, const frange &op1, const frange &, relation_trio=TRIO_VARYING) const final override
Definition range-op-float.cc:1525
bool operand_check_p(tree t1, tree t2, tree) const final override
Definition range-op-mixed.h:592
bool op1_range(irange &r, tree type, const irange &lhs, const irange &op2, relation_trio) const final override
Definition range-op.cc:4449
void wi_fold(irange &r, tree type, const wide_int &lh_lb, const wide_int &lh_ub, const wide_int &rh_lb, const wide_int &rh_ub) const final override
Definition range-op.cc:4375
Definition range-op-mixed.h:729
bool fold_range(irange &r, tree type, const irange &op1, const irange &op2, relation_trio rel=TRIO_VARYING) const final override
Definition range-op.cc:4568
bool op1_range(irange &r, tree type, const irange &lhs, const irange &op2, relation_trio rel=TRIO_VARYING) const final override
Definition range-op.cc:4587
Definition range-op-mixed.h:793
void update_bitmask(irange &r, const irange &lh, const irange &rh) const override
Definition range-op.cc:3319
bool op2_range(irange &r, tree type, const irange &lhs, const irange &op1, relation_trio rel=TRIO_VARYING) const override
Definition range-op.cc:3751
bool op1_range(irange &r, tree type, const irange &lhs, const irange &op2, relation_trio rel=TRIO_VARYING) const override
Definition range-op.cc:3688
bool operand_check_p(tree t1, tree t2, tree t3) const final override
Definition range-op-mixed.h:816
bool fold_range(prange &r, tree type, const prange &op1, const prange &op2, relation_trio) const final override
Definition range-op-ptr.cc:850
relation_kind lhs_op1_relation(const irange &lhs, const irange &op1, const irange &op2, relation_kind) const override
Definition range-op.cc:3351
void wi_fold(irange &r, tree type, const wide_int &lh_lb, const wide_int &lh_ub, const wide_int &rh_lb, const wide_int &rh_ub) const override
Definition range-op.cc:3504
void simple_op1_range_solver(irange &r, tree type, const irange &lhs, const irange &op2) const
Definition range-op.cc:3609
Definition range-op-mixed.h:745
bool fold_range(irange &r, tree type, const irange &lh, const irange &rh, relation_trio rel=TRIO_VARYING) const final override
Definition range-op.cc:4267
bool operand_check_p(tree t1, tree t2, tree t3) const final override
Definition range-op-mixed.h:759
bool op1_range(irange &r, tree type, const irange &lhs, const irange &op2, relation_trio rel=TRIO_VARYING) const final override
Definition range-op.cc:4285
void update_bitmask(irange &r, const irange &lh, const irange &rh) const final override
Definition range-op.cc:4300
Definition range-op-mixed.h:828
bool op2_range(irange &r, tree type, const irange &lhs, const irange &op1, relation_trio rel=TRIO_VARYING) const override
Definition range-op.cc:3927
bool fold_range(prange &r, tree type, const prange &op1, const prange &op2, relation_trio) const final override
Definition range-op-ptr.cc:442
bool op1_range(irange &r, tree type, const irange &lhs, const irange &op2, relation_trio rel=TRIO_VARYING) const override
Definition range-op.cc:3893
void update_bitmask(irange &r, const irange &lh, const irange &rh) const override
Definition range-op.cc:3830
bool operand_check_p(tree t1, tree t2, tree t3) const final override
Definition range-op-mixed.h:848
void wi_fold(irange &r, tree type, const wide_int &lh_lb, const wide_int &lh_ub, const wide_int &rh_lb, const wide_int &rh_ub) const override
Definition range-op.cc:3837
Definition range-op-mixed.h:764
bool op1_op2_relation_effect(irange &lhs_range, tree type, const irange &op1_range, const irange &op2_range, relation_kind rel) const final override
Definition range-op.cc:3989
void update_bitmask(irange &r, const irange &lh, const irange &rh) const final override
Definition range-op.cc:3936
bool op1_range(irange &r, tree type, const irange &lhs, const irange &op2, relation_trio rel=TRIO_VARYING) const final override
Definition range-op.cc:4017
bool operand_check_p(tree t1, tree t2, tree t3) const final override
Definition range-op-mixed.h:784
void wi_fold(irange &r, tree type, const wide_int &lh_lb, const wide_int &lh_ub, const wide_int &rh_lb, const wide_int &rh_ub) const final override
Definition range-op.cc:3943
bool op2_range(irange &r, tree type, const irange &lhs, const irange &op1, relation_trio rel=TRIO_VARYING) const final override
Definition range-op.cc:4055
Definition range-op-mixed.h:458
bool op1_range(irange &r, tree type, const irange &lhs, const irange &op2, relation_trio rel=TRIO_VARYING) const final override
Definition range-op.cc:3127
bool inside_domain_p(const wide_int &min, const wide_int &max, const irange &outer) const
Definition range-op.cc:3036
void fold_pair(irange &r, unsigned index, const irange &inner, const irange &outer) const
Definition range-op.cc:3053
bool fold_range(irange &r, tree type, const irange &op1, const irange &op2, relation_trio rel=TRIO_VARYING) const final override
Definition range-op.cc:3091
bool truncating_cast_p(const irange &inner, const irange &outer) const
Definition range-op.cc:3027
relation_kind lhs_op1_relation(const irange &lhs, const irange &op1, const irange &op2, relation_kind) const final override
Definition range-op.cc:2998
void update_bitmask(irange &r, const irange &lh, const irange &rh) const final override
Definition range-op.cc:3120
Definition range-op-mixed.h:442
bool fold_range(irange &r, tree type, const irange &op1, const irange &op2, relation_trio rel=TRIO_VARYING) const final override
Definition range-op.cc:4308
Definition range-op-mixed.h:108
bool operand_check_p(tree t1, tree t2, tree t3) const final override
Definition range-op-mixed.h:154
bool op2_range(irange &r, tree type, const irange &lhs, const irange &val, relation_trio=TRIO_VARYING) const final override
Definition range-op.cc:1144
relation_kind op1_op2_relation(const irange &lhs, const irange &, const irange &) const final override
Definition range-op.cc:1056
void update_bitmask(irange &r, const irange &lh, const irange &rh) const final override
Definition range-op.cc:1047
bool fold_range(irange &r, tree type, const irange &op1, const irange &op2, relation_trio=TRIO_VARYING) const final override
Definition range-op.cc:1073
bool op1_range(irange &r, tree type, const irange &lhs, const irange &val, relation_trio=TRIO_VARYING) const final override
Definition range-op.cc:1112
Definition range-op-mixed.h:359
bool op1_range(irange &r, tree type, const irange &lhs, const irange &op2, relation_trio=TRIO_VARYING) const final override
Definition range-op.cc:1664
bool operand_check_p(tree t1, tree t2, tree t3) const final override
Definition range-op-mixed.h:405
bool fold_range(irange &r, tree type, const irange &op1, const irange &op2, relation_trio=TRIO_VARYING) const final override
Definition range-op.cc:1643
relation_kind op1_op2_relation(const irange &lhs, const irange &, const irange &) const final override
Definition range-op.cc:1626
bool op2_range(irange &r, tree type, const irange &lhs, const irange &op1, relation_trio=TRIO_VARYING) const final override
Definition range-op.cc:1689
void update_bitmask(irange &r, const irange &lh, const irange &rh) const final override
Definition range-op.cc:1617
Definition range-op-mixed.h:309
relation_kind op1_op2_relation(const irange &lhs, const irange &, const irange &) const final override
Definition range-op.cc:1530
void update_bitmask(irange &r, const irange &lh, const irange &rh) const final override
Definition range-op.cc:1521
bool fold_range(irange &r, tree type, const irange &op1, const irange &op2, relation_trio=TRIO_VARYING) const final override
Definition range-op.cc:1547
bool operand_check_p(tree t1, tree t2, tree t3) const final override
Definition range-op-mixed.h:354
bool op2_range(irange &r, tree type, const irange &lhs, const irange &op1, relation_trio=TRIO_VARYING) const final override
Definition range-op.cc:1591
bool op1_range(irange &r, tree type, const irange &lhs, const irange &op2, relation_trio=TRIO_VARYING) const final override
Definition range-op.cc:1567
Definition range-op-mixed.h:410
relation_kind lhs_op1_relation(const irange &lhs, const irange &op1, const irange &op2, relation_kind rel) const final override
Definition range-op.cc:4321
bool fold_range(irange &r, tree type, const irange &op1, const irange &op2, relation_trio rel=TRIO_VARYING) const final override
Definition range-op.cc:4333
bool op1_range(irange &r, tree type, const irange &lhs, const irange &op2, relation_trio rel=TRIO_VARYING) const final override
Definition range-op.cc:4343
Definition range-op-mixed.h:258
bool op2_range(irange &r, tree type, const irange &lhs, const irange &op1, relation_trio=TRIO_VARYING) const final override
Definition range-op.cc:1495
void update_bitmask(irange &r, const irange &lh, const irange &rh) const final override
Definition range-op.cc:1423
bool fold_range(irange &r, tree type, const irange &op1, const irange &op2, relation_trio=TRIO_VARYING) const final override
Definition range-op.cc:1449
bool op1_range(irange &r, tree type, const irange &lhs, const irange &op2, relation_trio=TRIO_VARYING) const final override
Definition range-op.cc:1470
bool operand_check_p(tree t1, tree t2, tree t3) const final override
Definition range-op-mixed.h:304
relation_kind op1_op2_relation(const irange &lhs, const irange &, const irange &) const final override
Definition range-op.cc:1432
Definition range-op-mixed.h:210
bool operand_check_p(tree t1, tree t2, tree t3) const final override
Definition range-op-mixed.h:253
bool op1_range(irange &r, tree type, const irange &lhs, const irange &op2, relation_trio=TRIO_VARYING) const final override
Definition range-op.cc:1372
bool op2_range(irange &r, tree type, const irange &lhs, const irange &op1, relation_trio=TRIO_VARYING) const final override
Definition range-op.cc:1397
void update_bitmask(irange &r, const irange &lh, const irange &rh) const final override
Definition range-op.cc:1322
bool fold_range(irange &r, tree type, const irange &op1, const irange &op2, relation_trio=TRIO_VARYING) const final override
Definition range-op.cc:1348
relation_kind op1_op2_relation(const irange &lhs, const irange &, const irange &) const final override
Definition range-op.cc:1331
Definition range-op-mixed.h:877
bool operand_check_p(tree t1, tree t2, tree t3) const final override
Definition range-op-mixed.h:888
void update_bitmask(irange &r, const irange &lh, const irange &rh) const override
Definition range-op.cc:2168
void wi_fold(irange &r, tree type, const wide_int &lh_lb, const wide_int &lh_ub, const wide_int &rh_lb, const wide_int &rh_ub) const override
Definition range-op.cc:2175
bool fold_range(prange &r, tree type, const prange &op1, const prange &op2, relation_trio) const final override
Definition range-op-ptr.cc:807
Definition range-op-mixed.h:857
bool fold_range(prange &r, tree type, const prange &op1, const prange &op2, relation_trio) const final override
Definition range-op-ptr.cc:785
bool operand_check_p(tree t1, tree t2, tree t3) const final override
Definition range-op-mixed.h:868
void wi_fold(irange &r, tree type, const wide_int &lh_lb, const wide_int &lh_ub, const wide_int &rh_lb, const wide_int &rh_ub) const override
Definition range-op.cc:2156
void update_bitmask(irange &r, const irange &lh, const irange &rh) const override
Definition range-op.cc:2149
Definition range-op-mixed.h:602
virtual bool overflow_free_p(const irange &lh, const irange &rh, relation_trio=TRIO_VARYING) const
Definition range-op.cc:4663
bool operand_check_p(tree t1, tree t2, tree t3) const final override
Definition range-op-mixed.h:638
relation_kind lhs_op1_relation(const irange &lhs, const irange &op1, const irange &op2, relation_kind rel) const final override
Definition range-op.cc:2022
bool op1_op2_relation_effect(irange &lhs_range, tree type, const irange &op1_range, const irange &op2_range, relation_kind rel) const final override
Definition range-op.cc:2108
void wi_fold(irange &r, tree type, const wide_int &lh_lb, const wide_int &lh_ub, const wide_int &rh_lb, const wide_int &rh_ub) const final override
Definition range-op.cc:2006
bool op1_range(irange &r, tree type, const irange &lhs, const irange &op2, relation_trio) const final override
Definition range-op.cc:2118
void rv_fold(frange &r, tree type, const REAL_VALUE_TYPE &lh_lb, const REAL_VALUE_TYPE &lh_ub, const REAL_VALUE_TYPE &rh_lb, const REAL_VALUE_TYPE &rh_ub, relation_kind) const final override
Definition range-op-float.cc:2510
void update_bitmask(irange &r, const irange &lh, const irange &rh) const final override
Definition range-op.cc:1999
bool op2_range(irange &r, tree type, const irange &lhs, const irange &op1, relation_trio) const final override
Definition range-op.cc:2138
Definition range-op-mixed.h:689
bool op2_range(irange &r, tree type, const irange &lhs, const irange &op1, relation_trio) const final override
Definition range-op.cc:2276
void update_bitmask(irange &r, const irange &lh, const irange &rh) const final override
Definition range-op.cc:2242
bool operand_check_p(tree t1, tree t2, tree t3) const final override
Definition range-op-mixed.h:724
void wi_fold(irange &r, tree type, const wide_int &lh_lb, const wide_int &lh_ub, const wide_int &rh_lb, const wide_int &rh_ub) const final override
Definition range-op.cc:2304
bool op1_range(irange &r, tree type, const irange &lhs, const irange &op2, relation_trio) const final override
Definition range-op.cc:2249
virtual bool overflow_free_p(const irange &lh, const irange &rh, relation_trio=TRIO_VARYING) const
Definition range-op.cc:4694
void rv_fold(frange &r, tree type, const REAL_VALUE_TYPE &lh_lb, const REAL_VALUE_TYPE &lh_ub, const REAL_VALUE_TYPE &rh_lb, const REAL_VALUE_TYPE &rh_ub, relation_kind kind) const final override
Definition range-op-float.cc:2618
bool wi_op_overflows(wide_int &res, tree type, const wide_int &w0, const wide_int &w1) const final override
Definition range-op.cc:2284
Definition range-op-mixed.h:651
bool operand_check_p(tree t1, tree t2, tree) const final override
Definition range-op-mixed.h:669
bool fold_range(irange &r, tree type, const irange &op1, const irange &op2, relation_trio rel=TRIO_VARYING) const final override
Definition range-op.cc:4542
bool op1_range(irange &r, tree type, const irange &lhs, const irange &op2, relation_trio rel=TRIO_VARYING) const final override
Definition range-op.cc:4557
Definition range-op-mixed.h:159
bool op1_range(irange &r, tree type, const irange &lhs, const irange &op2, relation_trio=TRIO_VARYING) const final override
Definition range-op.cc:1220
bool operand_check_p(tree t0, tree t1, tree t2) const final override
Definition range-op-mixed.h:205
void update_bitmask(irange &r, const irange &lh, const irange &rh) const final override
Definition range-op.cc:1155
bool op2_range(irange &r, tree type, const irange &lhs, const irange &op1, relation_trio=TRIO_VARYING) const final override
Definition range-op.cc:1253
bool fold_range(irange &r, tree type, const irange &op1, const irange &op2, relation_trio=TRIO_VARYING) const final override
Definition range-op.cc:1181
relation_kind op1_op2_relation(const irange &lhs, const irange &, const irange &) const final override
Definition range-op.cc:1164
Definition range-op-mixed.h:529
bool op2_range(irange &r, tree type, const irange &lhs, const irange &op1, relation_trio) const final override
Definition range-op.cc:1924
bool operand_check_p(tree t1, tree t2, tree t3) const final override
Definition range-op-mixed.h:562
void rv_fold(frange &r, tree type, const REAL_VALUE_TYPE &lh_lb, const REAL_VALUE_TYPE &lh_ub, const REAL_VALUE_TYPE &rh_lb, const REAL_VALUE_TYPE &rh_ub, relation_kind) const final override
Definition range-op-float.cc:2447
relation_kind lhs_op1_relation(const irange &lhs, const irange &op1, const irange &op2, relation_kind rel) const final override
Definition range-op.cc:1725
bool op1_range(irange &r, tree type, const irange &lhs, const irange &op2, relation_trio) const final override
Definition range-op.cc:1904
void wi_fold(irange &r, tree type, const wide_int &lh_lb, const wide_int &lh_ub, const wide_int &rh_lb, const wide_int &rh_ub) const final override
Definition range-op.cc:1799
relation_kind lhs_op2_relation(const irange &lhs, const irange &op1, const irange &op2, relation_kind rel) const final override
Definition range-op.cc:1792
virtual bool overflow_free_p(const irange &lh, const irange &rh, relation_trio=TRIO_VARYING) const
Definition range-op.cc:4632
void update_bitmask(irange &r, const irange &lh, const irange &rh) const final override
Definition range-op.cc:1715
Definition value-range.h:385
Definition range-op.h:65
virtual bool op1_range(irange &r, tree type, const irange &lhs, const irange &op2, relation_trio=TRIO_VARYING) const
Definition range-op.cc:805
virtual bool op2_range(irange &r, tree type, const irange &lhs, const irange &op1, relation_trio=TRIO_VARYING) const
Definition range-op.cc:817
virtual bool fold_range(irange &r, tree type, const irange &lh, const irange &rh, relation_trio=TRIO_VARYING) const
Definition range-op.cc:708
virtual void update_bitmask(irange &, const irange &, const irange &) const
Definition range-op.cc:876
virtual relation_kind lhs_op2_relation(const irange &lhs, const irange &op1, const irange &op2, relation_kind=VREL_VARYING) const
Definition range-op.cc:838
virtual relation_kind lhs_op1_relation(const irange &lhs, const irange &op1, const irange &op2, relation_kind=VREL_VARYING) const
Definition range-op.cc:829
virtual relation_kind op1_op2_relation(const irange &lhs, const irange &op1, const irange &op2) const
Definition range-op.cc:847
virtual bool op1_op2_relation_effect(irange &lhs_range, tree type, const irange &op1_range, const irange &op2_range, relation_kind rel) const
Definition range-op.cc:857
Definition value-relation.h:336
relation_kind op1_op2()
Definition value-relation.h:410
Definition value-range.h:78
bool undefined_p() const
Definition value-range.h:1017
union tree_node * tree
Definition coretypes.h:97
tree_code
Definition genmatch.cc:1002
BINARY_PREDICATE le_p(const T1 &, const T2 &, signop)
hwi_with_prec zero(unsigned int)
Definition wide-int.h:2018
BINARY_PREDICATE ge_p(const T1 &, const T2 &, signop)
BINARY_PREDICATE eq_p(const T1 &, const T2 &)
poly_int< N, C > r
Definition poly-int.h:774
bool wi_includes_zero_p(tree type, const wide_int &wmin, const wide_int &wmax)
Definition range-op-mixed.h:34
bool empty_range_varying(vrange &r, tree type, const vrange &op1, const vrange &op2)
Definition range-op-mixed.h:59
bool wi_zero_p(tree type, const wide_int &wmin, const wide_int &wmax)
Definition range-op-mixed.h:43
bool_range_state get_bool_state(vrange &r, const vrange &lhs, tree val_type)
Definition range-op.cc:1021
void update_known_bitmask(vrange &, tree_code, const vrange &, const vrange &)
Definition range-op.cc:516
bool relop_early_resolve(irange &r, tree type, const vrange &op1, const vrange &op2, relation_trio trio, relation_kind my_rel)
Definition range-op-mixed.h:77
bool minus_op1_op2_relation_effect(irange &lhs_range, tree type, const irange &, const irange &, relation_kind rel)
Definition range-op.cc:2042
bool_range_state
Definition range-op-mixed.h:50
@ BRS_FALSE
Definition range-op-mixed.h:50
@ BRS_EMPTY
Definition range-op-mixed.h:50
@ BRS_FULL
Definition range-op-mixed.h:50
@ BRS_TRUE
Definition range-op-mixed.h:50
int_range< 1 > range_false(tree type=boolean_type_node)
Definition range.h:39
int_range< 1 > range_true(tree type=boolean_type_node)
Definition range.h:30
#define REAL_VALUE_TYPE
Definition real.h:68
signop
Definition signop.h:28
Definition gengtype.h:252
#define TYPE_PRECISION(NODE)
Definition tree.h:2325
#define TYPE_SIGN(NODE)
Definition tree.h:952
#define INTEGRAL_TYPE_P(TYPE)
Definition tree.h:613
bool range_compatible_p(tree type1, tree type2)
Definition value-range.h:1792
relation_kind relation_intersect(relation_kind r1, relation_kind r2)
Definition value-relation.cc:105
relation_kind relation_union(relation_kind r1, relation_kind r2)
Definition value-relation.cc:142
enum relation_kind_t relation_kind
@ VREL_UNDEFINED
Definition value-relation.h:66
#define TRIO_VARYING
Definition value-relation.h:355
generic_wide_int< wide_int_storage > wide_int
Definition wide-int.h:343