Commit fe89774
committed
Simplify overflow-result: preserve sizeof annotation
We already did this for various other expressions, but failed to do so
for overflow-result simplification. Consequently, calls to our modelled
calloc (which uses overflow-result multiplication) failed to pick up the
sizeof information, which in turn yields byte arrays even when more type
information would have been available.1 parent aeda79a commit fe89774
File tree
3 files changed
+33
-5
lines changed- regression/cbmc-library/calloc-01
- src/util
3 files changed
+33
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2645 | 2645 | | |
2646 | 2646 | | |
2647 | 2647 | | |
| 2648 | + | |
| 2649 | + | |
| 2650 | + | |
| 2651 | + | |
| 2652 | + | |
| 2653 | + | |
| 2654 | + | |
| 2655 | + | |
| 2656 | + | |
| 2657 | + | |
| 2658 | + | |
| 2659 | + | |
| 2660 | + | |
2648 | 2661 | | |
2649 | 2662 | | |
2650 | 2663 | | |
| |||
2662 | 2675 | | |
2663 | 2676 | | |
2664 | 2677 | | |
| 2678 | + | |
| 2679 | + | |
| 2680 | + | |
| 2681 | + | |
| 2682 | + | |
2665 | 2683 | | |
2666 | 2684 | | |
2667 | 2685 | | |
2668 | 2686 | | |
2669 | 2687 | | |
2670 | 2688 | | |
2671 | 2689 | | |
2672 | | - | |
2673 | | - | |
| 2690 | + | |
2674 | 2691 | | |
2675 | 2692 | | |
2676 | 2693 | | |
2677 | 2694 | | |
2678 | | - | |
2679 | | - | |
| 2695 | + | |
2680 | 2696 | | |
2681 | 2697 | | |
2682 | 2698 | | |
| |||
0 commit comments