Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
SaltoIL.PatternCopyright © Inria 2022-2025
get_mutable_flag f fields returns Immutable if all fields are immutable, or Mutable otherwise
module Construct : sig ... endtype t = | Bot| Any of Types.type_expr_
*)| Var of Salto_id.Id.t * Types.type_exprx
*)| Alias of t * Salto_id.Id.t * Types.type_exprP as a
*)| Constant of Asttypes.constant1, 'a', "true", 1.0, 1l, 1L, 1n
*)| Construct of Construct.t * t list| Lazy of tlazy P
*)| Plus of t * t * Types.row_desc option| Compl of t * ttyp of extended patterns
val same_any : t -> boolsame_any p checks if p is equivalent to the pattern Any
same p1 p2 checks if p1 and p2 are equivalent patterns (assuming p1 and p2 have the same type)
val get_variables : t -> (Salto_id.Id.t * Types.type_expr) listget_variables p returns the lists of variable names and types in the pattern p
val free_other_variables : t -> Salto_id.Id.t list -> tfree_other_variables p xs returns the pattern p where all variables not in xs have been freed (i.e. replaced by Any)
val is_immutable : t -> boolis_immutable p checks if the pattern p contains some information (not equivalent to the pattern Any) on mutable fields, or array elements