TRANSIT: Specifying Protocols with Concolic Snippets

被引:98
|
作者
Udupa, Abhishek [1 ]
Raghavan, Arun [1 ]
Deshmukh, Jyotirmoy V. [1 ]
Mador-Haim, Sela [1 ]
Martin, Milo M. K. [1 ]
Alur, Rajeev [1 ]
机构
[1] Univ Penn, Philadelphia, PA 19104 USA
关键词
Program Synthesis; Distributed Protocol Synthesis; Cache Coherence Protocols; Programming by Example; VERIFICATION;
D O I
10.1145/2499370.2462174
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
With the maturing of technology for model checking and constraint solving, there is an emerging opportunity to develop programming tools that can transform the way systems are specified. In this paper, we propose a new way to program distributed protocols using concolic snippets. Concolic snippets are sample execution fragments that contain both concrete and symbolic values. The proposed approach allows the programmer to describe the desired system partially using the traditional model of communicating extended finite-state-machines (EFSM), along with high-level invariants and concrete execution fragments. Our synthesis engine completes an EFSM skeleton by inferring guards and updates from the given fragments which is then automatically analyzed using a model checker with respect to the desired invariants. The counterexamples produced by the model checker can then be used by the programmer to add new concrete execution fragments that describe the correct behavior in the specific scenario corresponding to the counterexample. We describe TRANSIT, a language and prototype implementation of the proposed specification methodology for distributed protocols. Experimental evaluations of TRANSIT to specify cache coherence protocols show that (1) the algorithm for expression inference from concolic snippets can synthesize expressions of size 15 involving typical operators over commonly occurring types, (2) for a classical directory-based protocol, TRANSIT automatically generates, in a few seconds, a complete implementation from a specification consisting of the EFSM structure and a few concrete examples for every transition, and (3) a published partial description of the SGI Origin cache coherence protocol maps directly to symbolic examples and leads to a complete implementation in a few iterations, with the programmer correcting counterexamples resulting from underspecified transitions by adding concrete examples in each iteration.
引用
收藏
页码:287 / 296
页数:10
相关论文
共 35 条
  • [31] Relationship between gastrointestinal transit time and anesthetic fasting protocols in the captive chimpanzee, Pan troglodytes
    Ardente, A.
    Chinnadurai, S.
    De Voe, R.
    Stringer, E.
    Webb, T.
    Ireland, J.
    Saker, K.
    [J]. JOURNAL OF MEDICAL PRIMATOLOGY, 2011, 40 (03) : 181 - 187
  • [32] Examination of optimized protocols for pCASL: Sensitivity to macrovascular contamination, flow dispersion, and prolonged arterial transit time
    Zhang, Logan X.
    Woods, Joseph G.
    Okell, Thomas W.
    Chappell, Michael A.
    [J]. MAGNETIC RESONANCE IN MEDICINE, 2021, 86 (04) : 2208 - 2219
  • [33] Models, protocols, and pathways, towards a social perspective in the mental health care of migrants in transit through Mexico
    Santillanes Allande, Nadia Irina
    [J]. JOURNAL OF MIGRATION AND HEALTH, 2022, 6
  • [34] Equine piroplasmosis treatment protocols: Specific effect on orocaecal transit time as measured by the lactose 13C-ureide breath test
    Kutscha, J.
    Sutton, D. G. M.
    Preston, T.
    Guthrie, A. J.
    [J]. EQUINE VETERINARY JOURNAL, 2012, 44 : 62 - 67
  • [35] Examining the impacts of public transit on healthy aging through a natural experiment: study protocols and lessons learned from the Active El Paso project
    Li, Wei
    Lee, Chanam
    Zhong, Sinan
    Xu, Minjie
    Towne Jr, Samuel D. D.
    Zhu, Xuemei
    Lee, Sungmin
    Wang, Suojin
    Aldrete, Rafael
    Garcia, Eufemia B.
    Whigham, Leah
    Toney, Ashley M.
    Ibarra, Jorge
    Ory, Marcia G.
    [J]. FRONTIERS IN PUBLIC HEALTH, 2023, 11