123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657(**************************************************************************)(* *)(* SPDX-License-Identifier LGPL-2.1 *)(* Copyright (C) *)(* CEA (Commissariat à l'énergie atomique et aux énergies alternatives) *)(* *)(**************************************************************************)(** Computations of the statements that write a given memory zone. *)include(structmoduleWrites=WritesmoduleReads=Readsend:sigmoduleWrites:sigtypet=|AssignofCil_types.stmt(** Direct assignment. *)|CallDirectofCil_types.stmt(** Modification by a called leaf function. *)|CallIndirectofCil_types.stmt(** Modification inside the body of a called function. *)|GlobalInitofCil_types.varinfo*Cil_types.initinfo(** Initialization of a global variable. *)|FormalInitofCil_types.varinfo*(Cil_types.kernel_function*Cil_types.stmtlist)list(** Initialization of a formal parameter, with a list of callsites. *)valcompare:t->t->intvalcompute:Locations.Zone.t->tlist(** [compute z] finds all the statements that modifies [z], and for each
statement, indicates whether the modification is direct or indirect. *)end(** Computations of the statements that read a given memory zone. *)moduleReads:sigtypet=|DirectofCil_types.stmt(** Direct read by a statement. *)|IndirectofCil_types.stmt(** Indirect read through a function call. *)valcompute:Locations.Zone.t->tlist(** [compute z] finds all the statements that read [z]. The [effects]
information indicates whether the read occur on the given statement,
or through an inner call for [Call] instructions. *)endend)(** {2 Internal use only} *)moduleOptions=Options