Commit 5bc1d55
committed
C and Java nondet factories: use unique symbol names
The nondet symbol factory uses "tmp" as a default basename prefix, and
in all other places already generated unique names using
`get_fresh_aux_symbol`. This function, however, will happily use exactly
that basename when there wouldn't be a conflict. The code fixed in this
commit, however, did not yet use this facility, and just assumed that
each parameter of the target function would result in a unique local
name. A parameter named "tmp," then, resulted in a conflict.
Consistently using `get_fresh_aux_symbol` addresses this problem.
Fixes: #6566
Co-authored-by: Matthias Güdemann <matthias.guedemann@hm.edu>
fixup! C nondet factory: Ensure parameter initialisers use unique symbol names1 parent 08d5056 commit 5bc1d55
File tree
4 files changed
+30
-31
lines changed- jbmc/src/java_bytecode
- regression/cbmc/pointer-function-parameters
- src/ansi-c
4 files changed
+30
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
1551 | 1552 | | |
1552 | 1553 | | |
1553 | 1554 | | |
1554 | | - | |
1555 | | - | |
1556 | | - | |
1557 | | - | |
1558 | | - | |
1559 | | - | |
1560 | | - | |
1561 | | - | |
1562 | | - | |
1563 | | - | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
1564 | 1563 | | |
1565 | 1564 | | |
1566 | 1565 | | |
1567 | 1566 | | |
1568 | | - | |
1569 | | - | |
1570 | | - | |
1571 | | - | |
1572 | 1567 | | |
1573 | 1568 | | |
1574 | 1569 | | |
| |||
1583 | 1578 | | |
1584 | 1579 | | |
1585 | 1580 | | |
1586 | | - | |
| 1581 | + | |
1587 | 1582 | | |
1588 | 1583 | | |
1589 | 1584 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 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 | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
204 | 205 | | |
205 | 206 | | |
206 | 207 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
218 | 215 | | |
219 | 216 | | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | 217 | | |
225 | 218 | | |
226 | 219 | | |
| |||
231 | 224 | | |
232 | 225 | | |
233 | 226 | | |
234 | | - | |
| 227 | + | |
235 | 228 | | |
236 | 229 | | |
237 | 230 | | |
| |||
0 commit comments