Assertion generation through active learning

Published: 2017, Last Modified: 07 Nov 2025ICSE (Companion Volume) 2017EveryoneRevisionsBibTeXCC BY-SA 4.0
Abstract: Program assertions are useful for many program analysis tasks. They are however often missing in practice. In this work, we develop a novel approach for generating likely assertions automatically based on active learning. Our target is complex Java programs which cannot be symbolically executed (yet). Our key idea is to generate candidate assertions based on test cases and then apply active learning techniques to iteratively improve them. The experiments show that active learning really helps to improve the generated assertions.
Loading