DocumentCode :
3117957
Title :
Assertion-based Slicing and Slice Graphs
Author :
Barros, José Bernardo ; da Cruz, Daniela ; Henriques, Pedro Rangel ; Pinto, Jorge Sousa
Author_Institution :
Dept. de Inf., Univ. do Minho, Braga, Portugal
fYear :
2010
fDate :
13-18 Sept. 2010
Firstpage :
93
Lastpage :
102
Abstract :
This paper revisits the idea of slicing programs based on their axiomatic semantics, rather than using criteria based on control/data dependencies. We show how the forward propagation of preconditions and the backward propagation of post conditions can be combined in a new slicing algorithm that is more precise than the existing specification-based algorithms. The algorithm is based on (i) a precise test for removable statements, and (ii) the construction of a slice graph, a program control flow graph extended with semantic labels. It improves on previous approaches in two aspects: it does not fail to identify removable commands; and it produces the smallest possible slice that can be obtained (in a sense that will be made precise). The paper also reviews in detail, through examples, the ideas behind the use of preconditions and post conditions for slicing programs.
Keywords :
graph theory; program debugging; assertion based slicing; axiomatic semantics; backward propagation; control dependencies; data dependencies; forward propagation; removable statements; slice graphs; slicing programs; specification based algorithms; Contracts; Programming; Semantics; Software; Software engineering; Syntactics; Systematics; Program slicing; control flow graphs; program analysis; verification conditions;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Software Engineering and Formal Methods (SEFM), 2010 8th IEEE International Conference on
Conference_Location :
Pisa
Print_ISBN :
978-1-4244-8289-4
Type :
conf
DOI :
10.1109/SEFM.2010.18
Filename :
5637413
Link To Document :
بازگشت