/usr/lib/ocaml/galax/df_analysis.mli is in libgalax-ocaml-dev 1.1-12.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* *)
(* Copyright 2001-2007. *)
(* Distributed only by permission. *)
(* *)
(***********************************************************************)
(* $Id: df_analysis.mli,v 1.2 2007/02/01 22:08:54 simeon Exp $ *)
(* Module: Df_analysis
Description:
This module provides
1) a concrete instantiation of the generic data flow graph defined in Df_graph
2) algorithms for deriving such an instance from a given XQuery core module.
Since the data flow analysis is a whole-program analysis by nature, the module
does not provide functions operating on individual parts of a query.
- Michael *)
open Xquery_common_ast
open Xquery_core_ast
(* Just storing a reference to the original XQuery core ast node does not
provide enough contextual information to uniquely determine the function
of a dfnode. For some acexpr kinds, additional hints must be stored in
addition to its origin. *)
type ac_hint =
(* flwor *)
| ACHFor of cvname
| ACHLet of cvname
| ACHOrderby
| ACHWhere
(* typeswitch *)
| ACHTsclause of cvname
(* module level *)
| ACHVar of cvname
type ac_handle = acexpr option * ac_hint option
(**********************************)
(* XQuery core data flow analysis *)
(**********************************)
val df_analysis_of_xmodule :
acxmodule -> (ac_handle, bool) Df_struct.dfgraph
(******************************************)
(* XQuery core data flow graph dot output *)
(******************************************)
val print_dot_dfgraph :
Format.formatter -> (ac_handle, bool) Df_struct.dfgraph -> unit
|