Notes |
|
(0001909)
|
pascal
|
2011-05-18 10:48
|
|
I forgot to include in the archive show_each.c, the source file that is compiled into show_each-x86_32.o. Here it is:
___
#include <stdio.h>
void Frama_C_show_each(unsigned int crc)
{
printf ("[value] Called Frama_C_show_each({%u})\n", crc);
}
void Frama_C_show_each_int(int c)
{
printf ("[value] Called Frama_C_show_each_int({%d})\n", c);
} |
|
|
(0001980)
|
Anne
|
2011-06-16 17:10
|
|
Here is a shorter example with the same problem :
int G;
int f (void) { G = 3; return 5; }
int main (void) { G = f (); return G; }
$ frama-c -slice-return main toto.c -slice-print
gives :
int G;
void f_slice_1(void) { G = 3; return; }
int main(void) { f_slice_1(); return (G); }
In the original program, main returns 5 while in the sliced one, it returns 3.
Don't know why yet :-( |
|
|
(0001981)
|
Anne
|
2011-06-16 17:43
|
|
It is a PDG problem : the return output is processed before the implicit outputs. So the dependencies are mixed-up... |
|
|
(0001983)
|
monate
|
2011-06-17 08:50
|
|
|
|
(0004772)
|
Anne
|
2014-02-12 16:59
|
|
Fix committed to stable/neon branch. |
|