Attribute manipulation in Propositions (i.e., Symbolic Heaps)
val add : InferIR.Tenv.t ‑> ?footprint:bool ‑> ?polarity:bool ‑> Prop.normal Prop.t ‑> InferIR.PredSymb.t ‑> InferIR.Exp.t list ‑> Prop.normal Prop.t
Add an attribute associated to the argument expressions
val add_or_replace : InferIR.Tenv.t ‑> Prop.normal Prop.t ‑> InferIR.Sil.atom ‑> Prop.normal Prop.t
Replace an attribute associated to the expression
val add_or_replace_check_changed : InferIR.Tenv.t ‑> (InferIR.PredSymb.t ‑> InferIR.PredSymb.t ‑> unit) ‑> Prop.normal Prop.t ‑> InferIR.Sil.atom ‑> Prop.normal Prop.t
Replace an attribute associated to the expression, and call the given function with new and old attributes if they changed.
val get_for_exp : InferIR.Tenv.t ‑> 'a Prop.t ‑> InferIR.Exp.t ‑> InferIR.Sil.atom list
Get the attributes associated to the expression, if any
val get_objc_null : InferIR.Tenv.t ‑> 'a Prop.t ‑> InferIR.Exp.t ‑> InferIR.Sil.atom option
Get the objc null attribute associated to the expression, if any
val get_observer : InferIR.Tenv.t ‑> 'a Prop.t ‑> InferIR.Exp.t ‑> InferIR.Sil.atom option
Get the observer attribute associated to the expression, if any
val get_resource : InferIR.Tenv.t ‑> 'a Prop.t ‑> InferIR.Exp.t ‑> InferIR.Sil.atom option
Get the resource attribute associated to the expression, if any
val get_undef : InferIR.Tenv.t ‑> 'a Prop.t ‑> InferIR.Exp.t ‑> InferIR.Sil.atom option
Get the undef attribute associated to the expression, if any
val get_wontleak : InferIR.Tenv.t ‑> 'a Prop.t ‑> InferIR.Exp.t ‑> InferIR.Sil.atom option
Get the wontleak attribute associated to the expression, if any
val has_dangling_uninit : InferIR.Tenv.t ‑> 'a Prop.t ‑> InferIR.Exp.t ‑> bool
Test for existence of an Adangling DAuninit attribute associated to the exp
val remove : InferIR.Tenv.t ‑> Prop.normal Prop.t ‑> InferIR.Sil.atom ‑> Prop.normal Prop.t
Remove an attribute
val remove_for_attr : InferIR.Tenv.t ‑> Prop.normal Prop.t ‑> InferIR.PredSymb.t ‑> Prop.normal Prop.t
Remove all attributes for the given attr
val remove_resource : InferIR.Tenv.t ‑> InferIR.PredSymb.res_act_kind ‑> InferIR.PredSymb.resource ‑> Prop.normal Prop.t ‑> Prop.normal Prop.t
Remove all attributes for the given resource and kind
val map_resource : InferIR.Tenv.t ‑> Prop.normal Prop.t ‑> (InferIR.Exp.t ‑> InferIR.PredSymb.res_action ‑> InferIR.PredSymb.res_action) ‑> Prop.normal Prop.t
Apply f to every resource attribute in the prop
val replace_objc_null : InferIR.Tenv.t ‑> Prop.normal Prop.t ‑> InferIR.Exp.t ‑> InferIR.Exp.t ‑> Prop.normal Prop.t
replace_objc_null lhs rhs
.
If rhs has the objc_null attribute, replace the attribute and set the lhs = 0
val nullify_exp_with_objc_null : InferIR.Tenv.t ‑> Prop.normal Prop.t ‑> InferIR.Exp.t ‑> Prop.normal Prop.t
For each Var subexp of the argument with an Aobjc_null attribute, remove the attribute and conjoin an equality to zero.
val mark_vars_as_undefined : InferIR.Tenv.t ‑> Prop.normal Prop.t ‑> ret_exp:InferIR.Exp.t ‑> undefined_actuals_by_ref:InferIR.Exp.t list ‑> InferIR.Typ.Procname.t ‑> InferIR.Annot.Item.t ‑> InferBase.Location.t ‑> InferIR.PredSymb.path_pos ‑> Prop.normal Prop.t
mark Exp.Var's or Exp.Lvar's as undefined
val find_arithmetic_problem : InferIR.Tenv.t ‑> InferIR.PredSymb.path_pos ‑> Prop.normal Prop.t ‑> InferIR.Exp.t ‑> arith_problem option * Prop.normal Prop.t
Look for an arithmetic problem in exp
val deallocate_stack_vars : InferIR.Tenv.t ‑> Prop.normal Prop.t ‑> InferIR.Pvar.t list ‑> InferIR.Pvar.t list * Prop.normal Prop.t
Deallocate the stack variables in pvars
, and replace them by normal variables.
Return the list of stack variables whose address was still present after deallocation.
val find_equal_formal_path : InferIR.Tenv.t ‑> InferIR.Exp.t ‑> 'a Prop.t ‑> InferIR.Exp.t option