L2C2: Logic-based LSC Consistency Checking
2010, arXiv (Cornell University)
Abstract
Live sequence charts (LSCs) have been proposed as an interobject scenario-based specification and visual programming language for reactive systems. In this paper, we introduce a logic-based framework to check the consistency of an LSC specification. An LSC simulator has been implemented in logic programming, utilizing a memoized depth-first search strategy, to show how a reactive system in LSCs would response to a set of external event sequences. A formal notation is defined to specify external event sequences, extending the regular expression with a parallel operator and a testing control. The parallel operator allows interleaved parallel external events to be tested in LSCs simultaneously; while the testing control provides users to a new approach to specify and test certain temporal properties (e.g., CTL formula) in a form of LSC. Our framework further provides either a state transition graph or a failure trace to justify the consistency checking results.
References (32)
- GT : global variable to record seen IDs
- Bool, Σ * ) mdf t((Q, W, R, B):ID, T r:Σ * )
- return (True,T r); %% violation 5. if (W is λ)
- if ((Q, W, R, B) ∈ GT )
- GT ← GT ∪ {(Q, W, R, B)};
- Let W = AW1; %% A is the first char 11. if (A is an external event)
- T r ← A + T r; %% concatenation 13. for each (Q1, R1, B1) ∈ ∇((Q, R, B), A)
- V, T r1) ← mdf t((Q1, W1, R1, B1), T r);
- else %% if A is a nonterminal variable 18. for each A → D1 • • • Dn, where n ≥ 0
- V, T r1) ← mdf t((Q, D1 • • • DnW1, R, B), T r);
- References
- Harvey Abramson: Definite Clause Translation Grammars. International Sympo- sium on Logic Programming, pp. 233-240., 1984.
- A. Bunker, G. Gopalakrishnan, and K. Slind: Live Sequence Charts Applied to Hardware Requirements Specification and Verification: A VCI Bus Interface Model. Software Tools for Technology Transfer, 7(4):341-350, 2005.
- Y. Bontemps, P. Heymans: Turning high-level live sequence charts into automata. Proceedings of Scenarios and State-Machines: Models, Algorithms, and Tools, 2002.
- Y. Bontemps, P. Heymans, H. Kugler: Applying LSCs to the specification of an air traffic control system. Workshop on Scenarios and State Machines: Models, Algorithms and Tools, 2003.
- J. Bohn, W. Damm, J. Klose, A. Moik, and H. Wittke: Modeling and validat- ing train system applications using statemate and live sequence charts. The 6th Biennial World Conference on Integrated Design and Process Technology, 2002.
- E.M. Clarke, O. Grumberg, and D.A. Peled: Model Checking. The MIT Press, 2001.
- P. Combes, D. Harel, and H. Kugler: Modeling and Verification of a Telecommu- nication Application using Live Sequence Charts and the Play-Engine Tool. The 3rd Int. Symp. on Automated Technology for Verification and Analysis, 2008.
- Werner Damm and David Harel: LSCs: Breathing Life into Message Sequence Charts. Proc. 3rd IFIP Int. Conf. on Formal Methods for Open Object-based Dis- tributed Systems, pp. 293-312, 1999.
- David Harel: From Play-In Scenarios to Code: An Achievable Dream. Proc. Fun- damental Approaches to Software Engineering (FASE), pp. 22-34, 2000.
- David Harel and Hillel Kugler: Synthesizing State-based object systems from LSC specifications. Int. Journal of Foundations of Computer Science, 13(1): 5-51, 2002.
- David Harel and Rami Marelly: Come, Let's Play: Scenario-Based Programming Using LSCs and the Play-Engine. Springer-Verlag, 2003.
- D. Harel, S. Maoz, and I Segall: Some results on the expressive power and com- plexity of LSCs. LNCS 4800, pp. 351-366, 2008.
- H. Kugler, D. Harel, A. Pnueli, Y. Lu, and Y. Bontemps: Temporal logic for scenario-based specifications. In TACAS 2005, pp. 445-460.
- R. Kumar and E. Mercer: Improving translation of live sequence charts to temporal logic. Int. conf. on automated verification of critical systems, pp. 183-197, 2007.
- R. Kumar and E. Mercer: Improving live sequence chart to automata translation for verification. Electronic Communications of the EASST, 2008.
- J. Klose, T. Toben, B. Westphal, and H. Wittke: Check It Out: On the Efficient Formal Verification of Live Sequence Charts. 18th International Conference on Computer Aided Verification (CAV), pp. 219-233, 2006.
- Jun Sun and Jin Song Dong: Model checking live sequence charts. The 10th IEEE int. conf. on Engineering of complex computer systems, 2005.
- T. Toben and B. Westphal: On the expressive power of LSCs. The 32nd Conf. on Current Trends in Theory and Practice of Computer Science, pp. 33-43, 2006.
- The Object Management Group (OMG): Documentation of the Unified Modeling Language. http://www.omg.org.
- UML: Unified Modeling Languages Superstructure Specification, v2.0. http://www.uml.org/, OMG specification, 2005.
- Z.120 ITU-T Recommendation: Message Sequence Chart (MSC). ITU-T, 1996.