A Formal Study of Slicing for Multi-threaded Programs with JVM Concurrency Primitives

  • John Hatcliff
  • James Corbett
  • Matthew Dwyer
  • Stefan Sokolowski
  • Hongjun Zheng
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 1694)


Previous work has shown that program slicing can be a useful step in model-checking software systems. We are interested in applying these techniques to construct models of multi-threaded Java programs. Past work does not address the concurrency primitives found in Java, nor does it provide the rigorous notions of slice correctness that are necessary for reasoning about programs with non-deterministic behaviour and potentially infinite computation traces.

In this paper, we define the semantics of a simple multi-threaded language with concurrency primitives matching those found in the Java Virtual Machine, we propose a bisimulation-based notion of correctness for slicing in this setting, we identify notions of dependency that are relevant for slicing multi-threaded Java programs, and we use these dependencies to specify a program slicer for the language presented in the paper. Finally, we discuss how these dependencies can be refined to take into account common programming idioms of concurrent Java software.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Jingde Cheng. Slicing concurrent programs–a graph-theoretical approach. In Proceedings of the First International Workshop on Automated and Algoritmic Debugging, number 749 in LNCS, pages 223–240, 1993.CrossRefGoogle Scholar
  2. 2.
    E.M. Clarke, M. Fujita, S.P. Rajan, T. Reps, S. Shankar, and T. Teitelbaum. Program slicing for design automation: An automatic technique for speeding-up hardware design, simulation, testing, and verification. Technical report, 1999.Google Scholar
  3. 3.
    Matthew Dwyer and John Hatcliff. Slicing software for model construction. In Olivier Danvy, editor, Proceedings of the 1999 ACM Workshop on Partial Evaluation and Program Manipulation (PEPM’99), January 1999. BRICS Notes Series NS-99-1.Google Scholar
  4. 4.
    Matthew B. Dwyer, James C. Corbett, John Hatcliff, Stefan Sokolowski, and Hongjun Zheng. Slicing multi-threaded java programs: A case study. Technical Report 99-7, Kansas State University, Department of Computing and Information Sciences, March 1999.Google Scholar
  5. 5.
    G.J. Holzmann. The model checker spin. IEEE Transactions on Software Engineering, 23(5):279–294, May 1997.CrossRefMathSciNetGoogle Scholar
  6. 6.
    Lynette I. Millett and Tim Teitelbaum. Slicing promela and its applications to model checking, simulation, and protocol understanding. In Proceedings of the 4th International SPIN Workshop, 1998.Google Scholar
  7. 7.
    Jens Krinke. Static slicing of threaded programs. In Proc. ACM SIG-PLAN/SIGFSOFT Workshop on Program Analysis for Software Tools and Engineering (PASTE’98), pages 35–42, 1998.Google Scholar
  8. 8.
    Tim Lindholm and Frank Yellin. The Java Virtual Machine Specification. Addison-Wesley, 1997.Google Scholar
  9. 9.
    K.L. McMillan. Symbolic Model Checking. Kluwer Academic Publishers, 1993.Google Scholar
  10. 10.
    Robin Milner. Communication and Concurrecy. Prentice Hall, 1989.Google Scholar
  11. 11.
    S.S. Muchnick. Advanced Compiler Design and Implementation. Morgan Kaufmann Publishers, 1997.Google Scholar
  12. 12.
    F. Tip. A survey of program slicing techniques. Journal of programming languages, 3:121–189, 1995.Google Scholar
  13. 13.
    Mark Weiser. Program slicing. IEEE Transaction on Software Engineering, 1984.Google Scholar
  14. 14.
    Jianjun Zhao. Slicing concurrent java programs. In Proceedings of the Seventh IEEE International Workshop on Program Comprehension, pages 126–133, may 1999.Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 1999

Authors and Affiliations

  • John Hatcliff
    • 1
  • James Corbett
    • 2
  • Matthew Dwyer
    • 1
  • Stefan Sokolowski
    • 1
  • Hongjun Zheng
    • 1
  1. 1.SAnToS LaboratoryKansas State UniversityManhattanUSA
  2. 2.University of HawaiiUSA

Personalised recommendations