Commit 8e39116
committed
__CPROVER_enum_is_in_range should not yield redundant assertions
The assertions generated by --enum-range-check must not apply to
the expansion of __CPROVER_enum_is_in_range, for those would assert
exactly the same. Also, those expressions are rather costly: for N enum
values, N assertions would be generated.1 parent 7597f90 commit 8e39116
File tree
2 files changed
+4
-0
lines changed- regression/cbmc/enum_is_in_range
- src/goto-programs
2 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
| 641 | + | |
641 | 642 | | |
642 | 643 | | |
643 | 644 | | |
| |||
0 commit comments