(* * Copyright (c) 2009 - 2013 Monoidics ltd. * Copyright (c) 2013 - present Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. *) (** Re-arrangement and extension of structures with fresh variables *) (* TODO: this description is not clear *) exception ARRAY_ACCESS (** Check for dereference errors: dereferencing 0, a freed value, or an undefined value *) val check_dereference_error : Cfg.Procdesc.t -> Prop.normal Prop.t -> Sil.exp -> Sil.location -> unit (** Check that an expression representing an objc block can be null and raise a [B1] null exception.*) (** It's used to check that we don't call possibly null blocks *) val check_call_to_objc_block_error : Cfg.Procdesc.t -> Prop.normal Prop.t -> Sil.exp -> Sil.location -> unit (** [rearrange lexp prop] rearranges [prop] into the form [prop' * lexp|->strexp:typ]. It returns an iterator with [lexp |-> strexp: typ] as current predicate and the path (an [offsetlist]) which leads to [lexp] as the iterator state. *) val rearrange : Cfg.Procdesc.t -> Sil.tenv -> Sil.exp -> Sil.typ -> Prop.normal Prop.t -> Sil.location -> (Sil.offset list) Prop.prop_iter list