Frama-C-discuss mailing list archives
This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Frama-c-discuss] question about slicer
- Subject: [Frama-c-discuss] question about slicer
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- Date: Tue, 16 Mar 2010 10:35:27 +0100
- In-reply-to: <4B98F65C.80805@adelard.com>
- References: <4B98E6B9.1050101@adelard.com> <b15d09071003110501s41ea163ao167336353d4bde13@mail.gmail.com> <4B98EB0C.3010706@sophia.inria.fr> <4B98F65C.80805@adelard.com>
Hello, > The program is of an interrupt > driven device and each thread modifies a shared global variable > ErrorStatus. So you can imagine many |= and &= type assignments to the > variable from the threads and the some nested if tests. There is a main > function with an infinite loop(i dont know whether that is significant > for code slicing). My aim is to slice the threads and the main function > giving me a reduced set of instructions that each thread performs on > ErrorStatus. I get no output from attempting to slice the main loop so I > added fake assignments such as ErrorStatus=someconstant to see how far > it gets. It gets to a certain point in the main loop even under the > infinite while loop but it stops just before one assignment. Out of curiosity, what happens if you make it look as if the infinite loop might terminate (such a transformed program has all the behaviors of the original program and then some more, so this won't make any code that should have been kept disappear)? Say, replacing while(1) with: while(unknown_condition()) where no code is provided for the function unknown_condition(). Pascal
- References:
- [Frama-c-discuss] question about slicer
- From: dak at adelard.com (Damien Karkinsky)
- [Frama-c-discuss] question about slicer
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- [Frama-c-discuss] question about slicer
- From: anne.pacalet at sophia.inria.fr (Anne Pacalet)
- [Frama-c-discuss] question about slicer
- From: dak at adelard.com (Damien Karkinsky)
- [Frama-c-discuss] question about slicer
- Prev by Date: [Frama-c-discuss] Collisions using //@ or /*@
- Next by Date: [Frama-c-discuss] Collisions using //@ or /*@
- Previous by thread: [Frama-c-discuss] question about slicer
- Next by thread: [Frama-c-discuss] Jessie failure: "Unexpected internal region in logic"
- Index(es):