1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071(**************************************************************************)(* *)(* This file is part of Frama-C. *)(* *)(* Copyright (C) 2007-2023 *)(* CEA (Commissariat à l'énergie atomique et aux énergies *)(* alternatives) *)(* *)(* you can redistribute it and/or modify it under the terms of the GNU *)(* Lesser General Public License as published by the Free Software *)(* Foundation, version 2.1. *)(* *)(* It is distributed in the hope that it will be useful, *)(* but WITHOUT ANY WARRANTY; without even the implied warranty of *)(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *)(* GNU Lesser General Public License for more details. *)(* *)(* See the GNU Lesser General Public License version 2.1 *)(* for more details (enclosed in the file licenses/LGPLv2.1). *)(* *)(**************************************************************************)(** 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