(* helpers *****************************************************************)
-let stat x = M.Fun (["stat"], [], [x])
let diff x y = M.Fun (["diff"], [], [x; y])
let union xl = M.Fun (["union"], [], xl)
let const s = M.Const [(s, [])]
let query =
M.Property (true, M.RefineExact, ["objectName"], [], [], [], [],
false, (const s))
- in stat query
+ in query
let unreferred target_pattern source_pattern =
let query =
M.Property (false, M.RefineExact, ["refObj"], ["h:occurrence"],
[], [], [], true, (const source_pattern))
)
- in stat query
+ in query
let compose cl =
let letin = ref [] in
let f (vvar, msval) x = M.Let (Some vvar, msval, x) in
iter f (fun x y z -> x (y z)) ! letin
in
- stat (letin_query (select_query must_query))
+ letin_query (select_query must_query)
(* high-level functions ****************************************************)