inria-00305302, version 3
Efficient Static Analysis of XML Paths and Types
Pierre Genevès
a, 1Nabil Layaïda
a, 1Alan Schmitt
a, 2
N° RR-6590 (2008)
Abstract: We present an algorithm to solve XPath decision problems under regular tree type constraints and show its use to statically type-check XPath queries. To this end, we prove the decidability of a logic with converse for finite ordered trees whose time complexity is a simple exponential of the size of a formula. The logic corresponds to the alternation free modal mu-calculus without greatest fixpoint, restricted to finite trees, and where formulas are cycle-free. Our proof method is based on two auxiliary results. First, XML regular tree types and XPath expressions have a linear translation to cycle-free formulas. Second, the least and greatest fixpoints are equivalent for finite trees, hence the logic is closed under negation. Building on these results, we describe a practical, effective system for solving the satisfiability of a formula. The system has been experimented with some decision problems such as XPath emptiness, containment, overlap, and coverage, with or without type constraints. The benefit of the approach is that our system can be effectively used in static analyzers for programming languages manipulating both XPath expressions and XML type annotations (as input and output types).
- a – INRIA
- 1: WAM (INRIA Grenoble Rhône-Alpes / LIG Laboratoire d'Informatique de Grenoble)
- INRIA – Institut National Polytechnique de Grenoble - INPG – Université Joseph Fourier - Grenoble I – Université Pierre Mendès-France - Grenoble II – CNRS : UMR5217
- 2: SARDES (INRIA Grenoble Rhône-Alpes / LIG Laboratoire d'Informatique de Grenoble)
- INRIA – Institut National Polytechnique de Grenoble - INPG – Université Joseph Fourier - Grenoble I – Université Pierre Mendès-France - Grenoble II – CNRS : UMR5217
- Domain : Computer Science/Databases
Computer Science/Programming Languages
Computer Science/Web - Keywords : Mu-calculus – satisfiability – trees – XPath – queries – XML – types – regular tree grammars – static analysis
- Internal note : RR-6590
- Available versions : v1 (2008-07-23) v2 (2008-07-23) v3 (2008-07-24)
- inria-00305302, version 3
- http://hal.inria.fr/inria-00305302
- oai:hal.inria.fr:inria-00305302
- From: Pierre Genevès
- Submitted on: Thursday, 24 July 2008 11:08:04
- Updated on: Wednesday, 6 August 2008 11:14:55






Associated documents
Export