Fusion: A Fold and Unfold Annotation Synthesis Tool for Viper-Based Verification
Viper is a verification infrastructure for permission-based reasoning and serves as a common back-end for verifiers targeting multiple programming languages. In Viper, predicates package heap resources into reusable abstractions. To prevent SMT solvers from unfolding recursive predicates indefinitely, Viper treats predicates isorecursively: a predicate instance is not automatically interchangeable with the resources described by its body. Consequently, users must provide explicit fold/unfold annotations to transition between abstraction levels. To address this issue, we present Fusion, a Viper-based tool that synthesizes missing fold/unfold annotations, built around a novel graph-based synthesis method. Given a verification failure due to a missing resource, Fusion constructs a predicate dependency graph from Viper predicate definitions and finds potential ways to obtain the missing resource from available resources, thereby formulating annotation synthesis as a pathfinding problem over the graph. It uses the resulting paths to synthesize candidate sequences of fold/unfold annotations that potentially provide the missing resource, and uses the verifier to validate the annotations. Our evaluation on a large real-world verification project shows that Fusion successfully synthesizes annotations for 93 of 149 benchmark functions (62.4%) within a 20-minute per-function budget, demonstrating its potential to reduce the annotation burden in practical verification workflows.
- Link
- https://www.semanticscholar.org/paper/e48dfe645a8c85daf56fa5c490de31be9de043ef
- Found by
- Semantic Scholar
- Authors
- J. Lee, Nicolas Klose, Seokhyun Lee, P. Müller, Hakjoo Oh
- Categories
- benchmark, evaluation
- Published
- 2026-10-03
- Last seen by the radar
- 2026-10-05
- Citations
- 0
- Influential citations
- 0
- Radar score
- 35.50 / 100 (how it is scored)
- Why it scored so
- Matched: benchmark, evaluat; Primary record: Semantic Scholar
- Related links
- https://doi.org/10.1145/3837729.3840481