Type-based Enforcement of Infinitary Trace Properties for Java

Serdar Erbatur, Ulrich Schöpp, Chuangjie Xu
7/23/2021
cs.LOcs.PL

Official code: cj-xu/GuideForceJava (0 stars, Java, last commit 2022-02-06).

Abstract

A common approach to improve software quality is to use programming guidelines to avoid common kinds of errors. In this paper, we consider the problem of enforcing guidelines for Featherweight Java (FJ).

Show full abstract

We formalize guidelines as sets of finite or infinite execution traces and develop a region-based type and effect system for FJ that can enforce such guidelines. We build on the work by Erbatur, Hofmann and Zălinescu, who presented a type system for verifying the finite event traces of terminating FJ programs. We refine this type system, separating region typing from FJ typing, and use ideas of Hofmann and Chen to extend it to capture also infinite traces produced by non-terminating programs. Our type and effect system can express properties of both finite and infinite traces and can compute information about the possible infinite traces of FJ programs. Specifically, the set of infinite traces of a method is constructed as the greatest fixed point of the operator which calculates the possible traces of method bodies. Our type inference algorithm is realized by working with the finitary abstraction of the system based on Büchi automata.

View on arXivView PDF

Code Implementations(1)

A static analyzer for enforcing programming guidelines to Java programs

01JavaMay 14, 20214 years ago
javaprogramming-guidelinesstatic-analyzer

Similar Papers

Cite this paper

@article{erbatur2021typebased,
  title  = {Type-based Enforcement of Infinitary Trace Properties for Java},
  author = {Serdar Erbatur and Ulrich Schöpp and Chuangjie Xu},
  year   = {2021},
  eprint = {2107.11280},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.11280}
}

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/2107.11280.svg)](https://codeofpaper.com/paper/2107.11280)

Discussion