Diffy: Inductive Reasoning of Array Programs using Difference Invariants

Supratik Chakraborty, Ashutosh Gupta, Divyesh Unadkat
5/31/2021
cs.PLcs.SE

Official code: divyeshunadkat/diffy-artifact (2 stars, C++, last commit 2021-11-05).

Abstract

We present a novel verification technique to prove interesting properties of a class of array programs with a symbolic parameter N denoting the size of arrays. The technique relies on constructing two slightly different versions of the same program.

Show full abstract

It infers difference relations between the corresponding variables at key control points of the joint control-flow graph of the two program versions. The desired post-condition is then proved by inducting on the program parameter $N$, wherein the difference invariants are crucially used in the inductive step. This contrasts with classical techniques that rely on finding potentially complex loop invaraints for each loop in the program. Our synergistic combination of inductive reasoning and finding simple difference invariants helps prove properties of programs that cannot be proved even by the winner of Arrays sub-category from SV-COMP 2021. We have implemented a prototype tool called diffy to demonstrate these ideas. We present results comparing the performance of diffy with that of state-of-the-art tools.

View on arXivView PDF

Code Implementations(1)

Artifact for the paper titled "Diffy: Inductive Reasoning of Array Programs using Difference Invariants" in CAV 2021

20C++, CApr 29, 20215 years ago

Similar Papers

Cite this paper

@article{chakraborty2021diffy,
  title  = {Diffy: Inductive Reasoning of Array Programs using Difference Invariants},
  author = {Supratik Chakraborty and Ashutosh Gupta and Divyesh Unadkat},
  year   = {2021},
  eprint = {2105.14748},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.14748}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2105.14748.svg)](https://codeofpaper.com/paper/2105.14748)

Discussion