A new structural coverage criterion for dynamic detection of program invariants

Authors:
  • NGN. Gupta
    N. Gupta
  • ZHZ.V. Heidepriem
    Z.V. Heidepriem

Abstract
Dynamic detection of program invariants is emerg- ing as an important research area with many challeng- ing problems. Generating suitable test cases that sup- port accurate detection of program invariants is cru- cial to the dynamic approach for invariant detection. In this paper, we propose a new structural coverage crite- rion called Invariant-coverage criterion for dynamic de- tection of program invariants. We also show how the invariant-coverage criterion can be used to improve the accuracy of dynamically detected invariants. We rst used the Daikon tool to report likely program invari- ants using the branch coverage and all denition-use pair coverage test suites for several programs. We then generated invariant-coverage suites for these likely in- variants. When Daikon was run with the invariant- coverage suites, several spurious invariants reported earlier by the branch coverage and denition-use pair coverage test suites were removed from the reported in- variants. Our approach also produced more meaningful invariants than randomly generated test suites.