Type inference against races

  • Authors:
  • Cormac Flanagan;Stephen N. Freund

  • Affiliations:
  • Computer Science Department, University of California at Santa Cruz, Santa Cruz, CA 95064, United States;Computer Science Department, Williams College, Williamstown, MA 01267, United States

  • Venue:
  • Science of Computer Programming
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

The race condition checker rccjava uses a formal type system to statically identify potential race conditions in concurrent Java programs, but it requires programmer-supplied type annotations. This paper describes a type inference algorithm for rccjava. Due to the interaction of parameterized classes and dependent types, this type inference problem is NP-complete. This complexity result motivates our new approach to type inference, which is via reduction to propositional satisfiability. This paper describes our type inference algorithm and its performance on programs of up to 30,000 lines of code.