Static analysis in datalog extensions

  • Authors:
  • Alon Y. Halevy;Inderpal Singh Mumick;Yehoshua Sagiv;Oded Shmueli

  • Affiliations:
  • University of Washington, Seattle, Washington;Kirusa, Inc., Berkeley Heights, New Jersey;Hebrew University, Jerusalem, Israel;Technion---Israel Institute of Technology, Haifa, Israel

  • Venue:
  • Journal of the ACM (JACM)
  • Year:
  • 2001

Quantified Score

Hi-index 0.01

Visualization

Abstract

We consider the problems of containment, equivalence, satisfiability and query-reachability for datalog programs with negation. These problems are important for optimizing datalog programs. We show that both query-reachability and satisfiability are decidable for programs with stratified negation provided that negation is applied only to EDB predicates or that all EDB predicates are unary. In the latter case, we show that equivalence is also decidable. The algorithms we present can also be used to push constraints from a given query to the EDB predicates. In showing our decidability results we describe a powerful tool, the query-tree, which is used for several optimization problems for datalog programs. Finally, we show that satisfiability is undecidable for datalog programs with unary IDB predicates, stratified negation and the interpreted predicate ≠.