Formally Verified C Code Generation from Hybrid Communicating Sequential Processes

被引:0
|
作者
Wang, Shuling [1 ]
Ji, Zekun [1 ,2 ]
Xu, Xiong [1 ]
Zhan, Bohua [1 ,2 ]
Gao, Qiang [1 ,2 ]
Zhan, Naijun [1 ,2 ]
机构
[1] Chinese Acad Sci, Inst Software, State Key Lab Comp Sci, Beijing, Peoples R China
[2] Univ Chinese Acad Sci, Beijing, Peoples R China
基金
国家重点研发计划;
关键词
D O I
10.1109/ICCPS61052.2024.00018
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Hybrid Communicating Sequential Processes (HCSP) is a formal model for hybrid systems, including primitives for evolution along an ordinary differential equation (ODE), communication, and parallel composition. Code generation is needed to convert HCSP models into code that can be executed in practice, and the correctness of this conversion is essential to ensure that the generated code accurately reflects the formal model. In this paper, we propose a code generation algorithm from HCSP to C with POSIX library for concurrency. The main difficulties include how to bridge the gap between the synchronized communication model in HCSP and the use of mutexes for synchronization in C, and how to discretize evolution along ODEs and support interrupt of ODE evolution by communication. To prove the correctness of code generation, we define a formal semantics for POSIX C, and build transition system models for both HCSP and C programs. We then define an approximate bisimulation relation between traces of transition systems, and show that under certain robustness conditions for HCSP, the generated C program is approximately bisimilar to the original model. Finally, we evaluate the code generation algorithm on a detailed model for automatic cruise control, showing its utility on real-world examples.
引用
收藏
页码:123 / 134
页数:12
相关论文
共 39 条
  • [31] CODE GENERATION FOR THE MPEG RECONFIGURABLE VIDEO CODING FRAMEWORK: FROM CAL ACTIONS TO C FUNCTIONS
    Wipliez, Matthieu
    Roquier, Ghislain
    Raulet, Mickael
    Nezan, Jean-Francois
    Deforges, Olivier
    2008 IEEE INTERNATIONAL CONFERENCE ON MULTIMEDIA AND EXPO, VOLS 1-4, 2008, : 1049 - 1052
  • [32] Enhanced Second-Harmonic Generation from Sequential Capillarity-Assisted Particle Assembly of Hybrid Nanodimers
    Timpu, Flavia
    Hendricks, Nicholas R.
    Petrov, Mihail
    Ni, Songbo
    Renaut, Claude
    Wolf, Heiko
    Isa, Lucio
    Kivshar, Yuri
    Grange, Rachel
    NANO LETTERS, 2017, 17 (09) : 5381 - 5388
  • [33] Code Generation from a Domain-specific Language for C-based HLS of Hardware Accelerators
    Reiche, Oliver
    Schmid, Moritz
    Hannig, Frank
    Membarth, Richard
    Teich, Juergen
    2014 INTERNATIONAL CONFERENCE ON HARDWARE/SOFTWARE CODESIGN AND SYSTEM SYNTHESIS (CODES+ISSS), 2014,
  • [34] A critical review over the removal of paracetamol (acetaminophen) from synthetic waters and real wastewaters by direct, hybrid catalytic, and sequential ozonation processes
    Manuel Peralta-Hernandez, Juan
    Brillas, Enric
    CHEMOSPHERE, 2023, 313
  • [35] Kinetic Investigation of Thermal Formation Processes of SiOC Glasses Derived from C-Containing Hybrid Polymeric Networks
    Godoy, Naiara V.
    Segatelli, Mariana G.
    JOURNAL OF THE BRAZILIAN CHEMICAL SOCIETY, 2015, 26 (05) : 899 - 909
  • [36] Water storage changes as a marker for base flow generation processes in a tropical humid basement catchment (Benin): Insights from hybrid gravimetry
    Hector, Basile
    Seguis, Luc
    Hinderer, Jacques
    Cohard, Jean-Martial
    Wubda, Maxime
    Descloitres, Marc
    Benarrosh, Nathalie
    Boy, Jean-Paul
    WATER RESOURCES RESEARCH, 2015, 51 (10) : 8331 - 8361
  • [37] Shape-controlled fabrication of MnO/C hybrid nanoparticle from waste polyester for solar evaporation and thermoelectricity generation
    Fan, Zifen
    Ren, Jiaxin
    Bai, Huiying
    He, Panpan
    Hao, Liang
    Liu, Ning
    Chen, Bingyu
    Niu, Ran
    Gong, Jiang
    CHEMICAL ENGINEERING JOURNAL, 2023, 451
  • [38] Co-generation of synthesis gas and C2+ hydrocarbons from methane and carbon dioxide in a hybrid catalytic-plasma reactor:: A review
    Istadi
    Amin, NAS
    FUEL, 2006, 85 (5-6) : 577 - 592
  • [39] Comparison of tetraploid blastocyst microinjection of outbred Crl:CD1(ICR), hybrid B6D2F1/Tac, and inbred C57BL/6NTac embryos for generation of mice derived from embryonic stem cells
    Kirchain, Sharron M.
    Hayward, Alison M.
    Mkandawire, John M.
    Qi, Peimin
    Burds, Aurora A.
    COMPARATIVE MEDICINE, 2008, 58 (02) : 145 - 150