Commit 7597f90
Do not generate enum-value checks for function call left-hand sides
We already disabled these checks for assignment left-hand sides, but
need to do the same for function calls. Else we'd be asserting validity
before the value has been assigned.
Fixes: #6586, #6451
Co-authored-by: Ilia Levin <eli@literatecode.com>1 parent 8c0644d commit 7597f90
File tree
2 files changed
+16
-3
lines changed- regression/cbmc/enum_is_in_range
- src/analyses
2 files changed
+16
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
520 | | - | |
521 | | - | |
| 520 | + | |
522 | 521 | | |
523 | 522 | | |
524 | 523 | | |
| |||
2148 | 2147 | | |
2149 | 2148 | | |
2150 | 2149 | | |
2151 | | - | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
2152 | 2157 | | |
2153 | 2158 | | |
2154 | 2159 | | |
| |||
0 commit comments