Precise slicing of interprocedural concurrent programs

Xiaofang QI, Zhenliang JIANG

PDF(654 KB)
PDF(654 KB)
Front. Comput. Sci. ›› 2017, Vol. 11 ›› Issue (6) : 971-986. DOI: 10.1007/s11704-017-6189-3
RESEARCH ARTICLE

Precise slicing of interprocedural concurrent programs

Author information +
History +

Abstract

Program slicing is an effective technique for analyzing concurrent programs. However, when a conventional closure-based slicing algorithmfor sequential programs is applied to a concurrent interprocedural program, the slice is usually imprecise owing to the intransitivity of interference dependence. Interference dependence arises when a statement uses a variable defined in another statement executed concurrently. In this study, we propose a global dependence analysis approach based on a program reachability graph, and construct a novel dependence graph calledmarking-statement dependence graph (MSDG), in which each vertex is a 2-tuple of program state and statement. In contrast to the conventional program dependence graph where the vertex is a statement, the dependence relation in MSDG is transitive. When traversing MSDG, a precise slice will be obtained. To enhance the slicing efficiency without loss of precision, our slicing algorithm adopts a hybrid strategy. The procedures containing interaction statements between threads are inlined and sliced by the slicing algorithm based on program reachability graphs while allowing other procedures to be sliced as sequential programs. We have implemented our algorithm and three other representative slicing algorithms, and conducted an empirical study on concurrent Java programs. The experimental results show that our algorithm computes more precise slices than the other algorithms. Using partial-order reduction techniques, which are effective for reducing the size of a program reachability graph without loss of precision, our algorithm is optimized, thereby improving its performance to some extent.

Keywords

program slicing / concurrent programs / reachability analysis / context sensitivity / dependence analysis

Cite this article

Download citation ▾
Xiaofang QI, Zhenliang JIANG. Precise slicing of interprocedural concurrent programs. Front. Comput. Sci., 2017, 11(6): 971‒986 https://doi.org/10.1007/s11704-017-6189-3

References

[1]
BurnsA, WellingsA.Real-Time Systems and Programming Languages: Ada, Real-Time Java and C/Real-Time POSIX. 4th Ed. Boston: Addison Wesley Longman, 2009
[2]
XuB W, QianJ, ZhangX F, WuZ Q, ChenL. A brief survey of program slicing. ACM SIGSOFT Software Engineering Notes, 2005, 30(2): 1–36
CrossRef Google scholar
[3]
SilvaJ. A vocabulary of program slicing-based techniques. ACMComputing Surveys, 2012, 44(3): 12
CrossRef Google scholar
[4]
HorwitzS, RepsT, BinkleyD. Inter-procedural slicing using dependence graphs. ACM SIGPLAN Notices, 2004, 39(4): 229–243.
CrossRef Google scholar
[5]
KrinkeJ. Context-sensitive slicing of concurrent programs. ACM SIGSOFT Software Engineering Notes, 2003, 28(5): 178–187
CrossRef Google scholar
[6]
NandaM G, RameshS. Inter-procedural slicing of multithreaded programs with applications to Java. ACM Transaction on Programming Language Systems, 2006, 28(6): 1088–1144
CrossRef Google scholar
[7]
GiffhornD, HammerC. Precise slicing of concurrent programs. Journal of Automated Software Engineering, 2009, 16(2): 197–234
CrossRef Google scholar
[8]
GiffhornD. Advanced chopping of sequential and concurrent programs. Software Quality Journal, 2011, 19(2): 239–294
CrossRef Google scholar
[9]
GiffhornD. Slicing of concurrent programs and its application to Information flow control. Dissertation for the Doctoral Degree. Karlsruhe: University of Karlsruhe, 2012
[10]
ChenZ Q, XuB W. Slicing concurrent Java programs. ACMSIGPLAN Notices, 2001, 36(4): 41–47
CrossRef Google scholar
[11]
QiX F, ZhouX Y, XuX J, ZhangY Z. Slicing concurrent programs based on program reachability graph. In: Proceedings of the 10th International Conference on Quality Software. 2010, 248–253
CrossRef Google scholar
[12]
QiX F, XuB W, ZhouX Y. An approach to analyzing dependence of concurrent programs based on program reachability graphs. Acta Electronica Sinica, 2007, 35(2): 287–291
[13]
QiX F, XuX J, JiangZ L, WangP. Slicing concurrent programs based on program reachability graphs with partial-order reduction. Chinese Journal of Computer, 2014, 37(3): 568–579
[14]
QiX F, XuX J, WangP. Slicing concurrent inter-procedural programs based on program reachability graphs. In: Proceedings of the 24th International Conference on Software Engineering and Knowledge Engineering. 2012, 293–298
[15]
PezzeM, TaylorR N, YoungM. Graph models for reachability analysis of concurrent programs. ACMTransaction on Software Engineering and Methodology, 1995, 4(2): 171–213
CrossRef Google scholar
[16]
NielsonF, NielsonH R, HankinC. Principles of Program Analysis. Berlin: Springer, 2015
[17]
GodefroidP, PeledD, StaskauskasM. Using partial-order methods in the formal validation of industrial concurrent programs. IEEE Transaction on Software Engineering, 1996, 22(7): 496–507
CrossRef Google scholar
[18]
JaghooriM M, SirjaniM, MousaviM R, KhamespanahE, MovagharA. Symmetry and partial order reduction techniques in model checking Rebeca. Acta Information, 2010, 47(1): 33–66
CrossRef Google scholar
[19]
ZhaoJ J. Multithreaded dependence graphs for concurrent Java programs. In: Proceedings of International Symposium on Software Engineering for Parallel and Distributed Systems. 1999, 13–23
CrossRef Google scholar
[20]
ChengJ. Task dependence nets for concurrent systems with Ada 95 and its applications. In: Proceedings of ACM TRI-Ada International Conference. 1997, 67–78
CrossRef Google scholar
[21]
HatcliffJ. A formal study of slicing for multi-threaded programs with JVM concurrency primitives. In: Proceedings of International Symposium on Static Analysis. 1999, 1–18
CrossRef Google scholar
[22]
ZhangJ, JinC Z. Control-flow-based static slicing algorithm of threaded programs. Journal of Jilin University, 2003, 41(4): 481–486
[23]
ZhangY Z. Research on program slicing techniques based on modular monadic semantics. Dissertation for the Doctoral Degree. Nanjing: Southeast University, 2006
[24]
RamalingamG. Context-sensitive synchronization-sensitive analysis is undecidable. ACM Transactions on Programming Language Systems, 2000, 22(2): 416–430
CrossRef Google scholar
[25]
LeuschelM, LlorensbM, OliverJ, SilvaJ, TamaritS. Static slicing of explicitly synchronized languages. Information and Computation, 2012, 214: 10–46
CrossRef Google scholar

RIGHTS & PERMISSIONS

2017 Higher Education Press and Springer-Verlag Berlin Heidelberg
AI Summary AI Mindmap
PDF(654 KB)

Accesses

Citations

Detail

Sections
Recommended

/