Template-Guided Loop Invariant Synthesis Driven by Program Comprehension

Automated loop invariant synthesis is crucial for program verification. While template-guided generation brings new opportunities to this field, the lack of sufficient domain knowledge often results in templates with mismatched complexity, leading to high-degree polynomial terms and ineffective searches. Additionally, current utilizations of counterexamples are inadequate, further limiting the effectiveness of the sub-template. Therefore, we propose the Glue method, which combines static analysis with data learning techniques to enhance synthesis efficiency. We develop a k-GCN to predict template complexity and employ Unsat Core analysis to pinpoint conflicts at a finer clause level. Glue outperforms the existing baseline method in experiments on linear benchmarks with a 17 % increase in successful samples, reducing processing time, decreasing the number of counterexamples, and optimizing iteration efficiency. Ablation studies further confirm the critical roles of our analysis in the success of synthesis.

Authors

Institutions

Publication Details

Published
2024-12-06
DOI
https://doi.org/10.1109/iaecst64597.2024.11117547
Primary Topic
Embedded Systems Design Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Template-Guided Loop Invariant Synthesis Driven by Program Comprehension

Hanpin Wang, Xinyu Zhang
Embedded Systems Design Techniques
article

Template-Guided Loop Invariant Synthesis Driven by Program Comprehension

Hanpin Wang, Xinyu Zhang
article en

Abstract

Automated loop invariant synthesis is crucial for program verification. While template-guided generation brings new opportunities to this field, the lack of sufficient domain knowledge often results in templates with mismatched complexity, leading to high-degree polynomial terms and ineffective searches. Additionally, current utilizations of counterexamples are inadequate, further limiting the effectiveness of the sub-template. Therefore, we propose the Glue method, which combines static analysis with data learning techniques to enhance synthesis efficiency. We develop a k-GCN to predict template complexity and employ Unsat Core analysis to pinpoint conflicts at a finer clause level. Glue outperforms the existing baseline method in experiments on linear benchmarks with a 17 % increase in successful samples, reducing processing time, decreasing the number of counterexamples, and optimizing iteration efficiency. Ablation studies further confirm the critical roles of our analysis in the success of synthesis.

Peking University (CN), Guangzhou University (CN)
Openalex Percentile: Top 66%
Embedded Systems Design Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Template-Guided Loop Invariant Synthesis Driven by Program Comprehension — Hanpin Wang, Xinyu Zhang · (2024) | TGRS Research Map | TGRS