14403: last slicing bug (csmith)
ID0000905:
**This issue was created automatically from Mantis Issue 905. Further discussion may take place here.**
---
| **Id** | **Project** | **Category** | **View** | **Due Date** | **Updated** |
| --- | --- | --- | --- | --- | --- |
| ID0000905 | Frama-C | Plug-in > slicing | public | 2011-07-31 | 2011-12-19 |
| | | | | | |
| --- | --- | --- | --- | --- | --- |
| **Reporter** | pascal | **Assigned To** | Anne | **Resolution** | fixed |
| **Priority** | normal | **Severity** | minor | **Reproducibility** | have not tried |
| **Platform** | - | **OS** | - | **OS Version** | - |
| **Product Version** | Frama-C GIT, precise the release id | **Target Version** | - | **Fixed in Version** | Frama-C Nitrogen-20111001 |
### Description :
The value analysis does not find any alarm and finds the values below
~/ppc/bin/toplevel.opt -val-signed-overflow-alarms -no-val-show-progress -cpp-command "gcc -m32 -E -C -I runtime -D__FRAMAC" -no-results -slevel 100000 -machdep x86_32 s.31013054.p.c -val
[value] Called Frama_C_show_each({3781742995})
[value] Called Frama_C_show_each({4095739724})
[value] Called Frama_C_show_each({550094235})
[value] Called Frama_C_show_each({252820852})
[value] Called Frama_C_show_each({624713289})
[value] Called Frama_C_show_each({1426802424})
[value] Called Frama_C_show_each({397183221})
[value] Called Frama_C_show_each({320991826})
[value] Called Frama_C_show_each({1015897994})
[value] Called Frama_C_show_each({3069753974})
[value] Called Frama_C_show_each({4276963908})
[value] Called Frama_C_show_each({1968234281})
[value] Called Frama_C_show_each({1968234281})
Executing (32-bit) finds the same values as above.
But the program sliced with:
~/ppc/bin/toplevel.opt -val-signed-overflow-alarms -no-val-show-progress s.31013054.p.i -slice-calls Frama_C_show_each -slevel 5000 -slevel-function crc32_gentab:0 -then-on 'Slicing export' -print -ocode res.c
$ gcc -m32 res.c show_each.c
$ ./a.out
[value] Called Frama_C_show_each({3781742995})
[value] Called Frama_C_show_each({4095739724})
[value] Called Frama_C_show_each({550094235})
[value] Called Frama_C_show_each({252820852})
[value] Called Frama_C_show_each({624713289})
[value] Called Frama_C_show_each({1426802424})
[value] Called Frama_C_show_each({397183221})
[value] Called Frama_C_show_each({320991826})
[value] Called Frama_C_show_each({1015897994})
[value] Called Frama_C_show_each({1148365541})
[value] Called Frama_C_show_each({3051573531})
[value] Called Frama_C_show_each({2309422687})
[value] Called Frama_C_show_each({2309422687})
### Additional Information :
Le bug a pris 36h * 5 processeurs pour se montrer, ce sera presque sûrement le dernier, sauf si tu en introduis un nouveau en corrigeant celui-ci :)
1015897994 est la dernière valeur correcte. Cela indique une différence dans la valeur finale de g_89[2].
## Attachments
- [p.tgz](/uploads/bb1ca13c3c893dc54600c9d571283708/p.tgz)
issue