HackerPapers

arXiv:1007.4446cs.PL

Abstracting Abstract Machines

David Van Horn, Matthew Might

Abstract

We describe a derivational approach to abstract interpretation that yields novel and transparently sound static analyses when applied to well-established abstract machines. To demonstrate the technique and support our claim, we transform the CEK machine of Felleisen and Friedman, a lazy variant of Krivine's machine, and the stack-inspecting CM machine of Clements and Felleisen into abstract interpretations of themselves. The resulting analyses bound temporal ordering of program events; predict return-flow and stack-inspection behavior; and approximate the flow and evaluation of by-need parameters. For all of these machines, we find that a series of well-known concrete machine refactorings, plus a technique we call store-allocated continuations, leads to machines that abstract into static analyses simply by bounding their stores. We demonstrate that the technique scales up uniformly to allow static analysis of realistic language features, including tail calls, conditionals, side effects, exceptions, first-class continuations, and even garbage collection.

arXiv comments
The 15th ACM SIGPLAN International Conference on Functional Programming (ICFP'10), Baltimore, Maryland, September, 2010
Journal reference
DOI
Subjects
cs.PLProgramming Languages

On Hacker News

Linked by 2 identifiable commenters in 2 comments across 2 threads, from Mar 2016 to Apr 2016.

Comments linking this paper, per year.

Discussed in comments2 threads

    • This was posted once before by HN user 'ingve' but didn't get much attention [1]. Though the most recent and largest (39 pages) JFP paper, "Systematic Abstraction of Abstract Machines", is probably the best version to read, the earlier "Abstracting Abstract Machines" may also be…

      jcrView on HNParent context

  1. Interview with Matt Might 1 comment
    • A little disappointing to see the links to his favourite paper going to paywalls. Here are arxiv/free links: 39 page JFP version: http://arxiv.org/pdf/1107.3539v1.pdf 12 pager from ICFP: http://arxiv.org/pdf/1007.4446.pdf 8 page CACM highlight…

      qewrffewqwfqewView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.