From Datalog to flix: a declarative language for fixed points on lattices
Authors:
Open Access
- 2 June 2016
- journal article
- conference paper
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 51 (6) , 194-208
Abstract
We present Flix, a declarative programming language for specifying and solving least fixed point problems, particularly static program analyses. Flix is inspired by Datalog and extends it with lattices and monotone functions. Using Flix, implementors of static analyses can express a broader range of analyses than is currently possible in pure Datalog, while retaining its familiar rule-based syntax. We define a model-theoretic semantics of Flix as a natural extension of the Datalog semantics. This semantics captures the declarative meaning of Flix programs without imposing any specific evaluation strategy. An efficient strategy is semi-naive evaluation which we adapt for Flix. We have implemented a compiler and runtime for Flix, and used it to express several well-known static analyses, including the IFDS and IDE algorithms. The declarative nature of Flix clearly exposes the similarity between these two algorithms.Keywords
This publication has 55 references indexed in Scilit:
- Points-to analysis with efficient strong updatesACM SIGPLAN Notices, 2011
- The DLV system for knowledge representation and reasoningACM Transactions on Computational Logic, 2006
- Cloning-based context-sensitive pointer alias analysis using binary decision diagramsACM SIGPLAN Notices, 2004
- Fixpoint semantics for logic programming a surveyTheoretical Computer Science, 2002
- Complexity and expressive power of logic programmingACM Computing Surveys, 2001
- PAG - an efficient program analyzer generatorInternational Journal on Software Tools for Technology Transfer, 1998
- Precise interprocedural dataflow analysis with applications to constant propagationTheoretical Computer Science, 1996
- Query evaluation techniques for large databasesACM Computing Surveys, 1993
- Compile-time derivation of variable dependency using abstract interpretationThe Journal of Logic Programming, 1992
- Negation in logic programmingThe Journal of Logic Programming, 1987