Commit e969911
Hannes Steffenhagen
Fix bug in constant propagator
Before it was using the index operator. However, since there is no
initialisation, this caused an error if there was unreachable code in
the goto model. This can be fixed by simply using abstract_state_before
which will always return a valid domain state (bottom for unreachable
code) instead.1 parent 99741b3 commit e969911
File tree
3 files changed
+27
-2
lines changed- regression/goto-instrument/constant_propagator_unreachable
- src/analyses
3 files changed
+27
-2
lines changedLines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
751 | 751 | | |
752 | 752 | | |
753 | 753 | | |
754 | | - | |
755 | | - | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
756 | 758 | | |
757 | 759 | | |
758 | 760 | | |
| |||
0 commit comments