Journal of Functional Programming · 2001 · 49 citations · 53 references
Schubert CalculusEngineeringType TheoryStandard Type SystemSoftware SystemsComputational ComplexitySoftware AnalysisFormal VerificationPolyvariant Flow InformationGeneric ProgrammingDependently Typed ProgrammingCompilersProgramming LanguagesPolymorphic SplittingPolymorphism (Computer Science)Computer ScienceType SystemFlow-type SystemProgram AnalysisAutomated ReasoningFormal MethodsMathematical Foundations
Many polyvariant program analyses have been studied in the 1990s, including k -CFA, polymorphic splitting, and the cartesian product algorithm. The idea of polyvariance is to analyze functions more than once and thereby obtain better precision for each call site. In this paper we present an equivalence theorem which relates a co-inductively-defined family of polyvariant flow analyses and a standard type system. The proof embodies a way of understanding polyvariant flow information in terms of union and intersection types, and, conversely, a way of understanding union and intersection types in terms of polyvariant flow information. We use the theorem as basis for a new flow-type system in the spirit of the λ CIL -calculus of Wells, Dimock, Muller and Turbak, in which types are annotated with flow information. A flow-type system is useful as an interface between a flow-analysis algorithm and a program optimizer. Derived systematically via our equivalence theorem, our flow-type system should be a good interface to the family of polyvariant analyses that we study.
53
A Syntactic Approach to Type Soundness
Andy Wright, Matthias Felleisen · Information and Computation · 1994 · 1.1K citations
Syntax, Type Soundness, Type Theory +10