Arrow Research search
Back to FSCD

FSCD 2020

Data-Flow Analyses as Effects and Graded Monads

Conference Paper Accepted Paper Logic in Computer Science ยท Theoretical Computer Science

Abstract

In static analysis, two frameworks have been studied extensively: monotone data-flow analysis and type-and-effect systems. Whilst both are seen as general analysis frameworks, their relationship has remained unclear. Here we show that monotone data-flow analyses can be encoded as effect systems in a uniform way, via algebras of transfer functions. This helps to answer questions about the most appropriate structure for general effect algebras, especially with regards capturing control-flow precisely. Via the perspective of capturing data-flow analyses, we show the recent suggestion of using effect quantales is not general enough as it excludes non-distributive analyses e. g. , constant propagation. By rephrasing the McCarthy transformation, we then model monotone data-flow effects via graded monads. This provides a model of data-flow analyses that can be used to reason about analysis correctness at the semantic level, and to embed data-flow analyses into type systems.

Authors

Keywords

  • data-flow analysis
  • effect systems
  • graded monads
  • correctness

Context

Venue
International Conference on Formal Structures for Computation and Deduction
Archive span
2020-2025
Indexed papers
208
Paper id
55087136898361727
v2026.09.13