Module IR__Instrs
type reversedtype not_reversedtype _ ttype not_reversed_t= not_reversed tdefined for convenience: we can write
Instrs.not_reversed_tin other modules instead ofInstrs.not_reversed Instrs.t
val empty : _ tval singleton : IR.Sil.instr -> _ tval append_list : not_reversed t -> IR.Sil.instr list -> not_reversed tval of_list : IR.Sil.instr list -> not_reversed tval filter_map : not_reversed t -> f:(IR.Sil.instr -> IR.Sil.instr option) -> not_reversed tval map : not_reversed t -> f:(IR.Sil.instr -> IR.Sil.instr) -> not_reversed treplace every instruction
instrwithf instr. Preserve physical equality. *
val map_and_fold : not_reversed t -> f:('a -> IR.Sil.instr -> 'a * IR.Sil.instr) -> init:'a -> not_reversed treplace every instruction
instrwithsnd (f context instr). The context is computed by foldingfoninitand previous instructions (beforeinstr) in the collection. Preserve physical equality. *
val concat_map_and_fold : not_reversed t -> f:('a -> IR.Sil.instr -> 'a * IR.Sil.instr array) -> init:'a -> not_reversed tLike
map_and_foldbut replace every instructioninstrwith the listsnd (f context instr)by threading an accumulator. Preserve physical equality. *
val concat_map : not_reversed t -> f:(IR.Sil.instr -> IR.Sil.instr array) -> not_reversed treplace every instruction
instrwith the listf instr. Preserve physical equality. *
val reverse_order : not_reversed t -> reversed tval is_empty : _ t -> boolval count : _ t -> intval exists : _ t -> f:(IR.Sil.instr -> bool) -> boolval for_all : _ t -> f:(IR.Sil.instr -> bool) -> boolval nth_exists : _ t -> int -> boolval nth_exn : _ t -> int -> IR.Sil.instrval last : _ t -> IR.Sil.instr optionval find_map : _ t -> f:(IR.Sil.instr -> 'a option) -> 'a optionval pp : IStdlib.Pp.env -> Stdlib.Format.formatter -> _ t -> unitval fold : (_ t, IR.Sil.instr, 'a) IStdlib.IStd.Container.foldval foldi : _ t -> init:'a -> f:(int -> 'a -> IR.Sil.instr -> 'a) -> 'aval iter : (_ t, IR.Sil.instr) IStdlib.IStd.Container.iterval get_underlying_not_reversed : not_reversed t -> IR.Sil.instr arrayval instrs_get_normal_vars : not_reversed t -> IR.Ident.t list