A novel data-driven approach on inferring loop invariants for C programs

被引:0
|
作者
Lu, Hong [1 ,2 ]
Wang, Huitao [3 ]
Gui, Jiacheng [1 ]
Chen, Panfeng [4 ]
Huang, Hao [1 ]
机构
[1] Nanjing Univ, Dept Comp Sci & Technol, Nanjing 210023, Peoples R China
[2] Nanjing Univ Sci & Technol, Zijin Coll, Nanjing 210023, Peoples R China
[3] Natl Univ Def Technol, Coll Informat & Commun, Wuhan 430019, Peoples R China
[4] Guizhou Univ, Dept Comp Sci & Technol, Guiyang 550025, Peoples R China
关键词
Loop invariants; Software verification; Polynomial equations; Inequalities; Nested loops; POLYNOMIAL INVARIANTS; GENERATION;
D O I
10.1016/j.cola.2022.101135
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Inspired by the procedure that experts construct loop invariants, we propose a novel data-driven approach to automatically infer loop invariants. The approach consists of two phases, data-driven inference of candidate invariants and validity check of loop invariants. Inspired by the procedure that experts construct loop invariants, we propose a novel data-driven approach to automatically infer loop invariants for C programs. The approach consists of two phases, data-driven inference of candidate invariants and validity check of loop invariants. The first phase generates candidate invariants by solving polynomial equations and synthesizing the extended loop conditions. The second phase prunes out spurious predicates and redundant predicates in the candidate invariants. The experimental results demonstrate that the proposed approach generates valid invariants for 35 benchmarks out of 38. The proposed approach costs less time to generate more informative and precise invariants than the state-of-the-art methods.
引用
收藏
页数:16
相关论文
共 50 条
  • [21] On Analysing Student Resilience In Higher Education Programs using a Data-Driven Approach
    Widjaja, Audrey Tedja
    Lim, Ee-Peng
    Gunawan, Ady
    [J]. IEEE TALE2021: IEEE INTERNATIONAL CONFERENCE ON ENGINEERING, TECHNOLOGY AND EDUCATION, 2021, : 261 - 267
  • [22] Closed-loop data-driven simulation
    Markovsky, Ivan
    [J]. INTERNATIONAL JOURNAL OF CONTROL, 2010, 83 (10) : 2134 - 2139
  • [23] Data-Driven Invariant Learning for Probabilistic Programs
    Bao, Jialu
    Trivedi, Nitesh
    Pathak, Drashti
    Hsu, Justin
    Roy, Subhajit
    [J]. COMPUTER AIDED VERIFICATION (CAV 2022), PT I, 2022, 13371 : 33 - 54
  • [24] Data-Driven Planning for Ground Delay Programs
    Estes, Alexander
    Ball, Michael
    [J]. TRANSPORTATION RESEARCH RECORD, 2017, (2603) : 13 - 20
  • [25] Data-Driven Synthesis of Full Probabilistic Programs
    Chasins, Sarah
    Phothilimthana, Phitchaya Mangpo
    [J]. COMPUTER AIDED VERIFICATION, CAV 2017, PT I, 2017, 10426 : 279 - 304
  • [26] Data-Driven Quality and Safety Programs in Radiology
    Anaskevich, Leslie K.
    Kanal, Kalpana M.
    Zhang, Jie
    [J]. RADIOLOGIC TECHNOLOGY, 2022, 93 (06) : 566 - 572
  • [27] Data-Driven Predictive Control Using Closed-Loop Data: An Instrumental Variable Approach
    Wang, Yibo
    Qiu, Yiwen
    Sader, Malika
    Huang, Dexian
    Shang, Chao
    [J]. IEEE CONTROL SYSTEMS LETTERS, 2023, 7 : 3639 - 3644
  • [28] A Data-Driven Approach to Vibrotactile Data Compression
    Liu, Xun
    Dohler, Mischa
    [J]. PROCEEDINGS OF THE 2019 IEEE INTERNATIONAL WORKSHOP ON SIGNAL PROCESSING SYSTEMS (SIPS 2019), 2019, : 341 - 346
  • [29] Predicting the spatiotemporal characteristics of atmospheric rivers: A novel data-driven approach
    Meghani, Samarth
    Singh, Shivam
    Kumar, Nagendra
    Goyal, Manish Kumar
    [J]. GLOBAL AND PLANETARY CHANGE, 2023, 231
  • [30] A Novel Adaptive Iterative Learning Control via Data-driven Approach
    Chi Ronghu
    Liu Xiaohe
    Hou Zhongsheng
    Chien Chiang-Ju
    [J]. PROCEEDINGS OF THE 35TH CHINESE CONTROL CONFERENCE 2016, 2016, : 3147 - 3151