Module InferModules__PulseOperations

module AbstractAddress = InferModules.PulseDomain.AbstractAddress
type t = InferModules.PulseAbductiveDomain.t
type 'a access_result = ('aInferModules.PulseDiagnostic.t) InferStdlib.IStd.result
module Closures : sig ... end
val eval : InferBase.Location.t -> InferIR.Exp.t -> t -> (t * InferModules.PulseDomain.AddrTracePair.t) access_result

Use the stack and heap to evaluate the given expression down to an abstract address representing its value.

Return an error state if it traverses some known invalid address or if the end destination is known to be invalid.

val eval_deref : InferBase.Location.t -> InferIR.Exp.t -> t -> (t * InferModules.PulseDomain.AddrTracePair.t) access_result

Like eval but evaluates *exp.

val eval_access : InferBase.Location.t -> InferModules.PulseDomain.AddrTracePair.t -> InferModules.PulseDomain.Memory.Access.t -> t -> (t * InferModules.PulseDomain.AddrTracePair.t) access_result

Like eval but starts from an address instead of an expression, checks that it is valid, and if so dereferences it according to the access.

val havoc_id : InferIR.Ident.t -> InferModules.PulseDomain.ValueHistory.t -> t -> t
val havoc_deref : InferBase.Location.t -> InferModules.PulseDomain.AddrTracePair.t -> InferModules.PulseDomain.ValueHistory.t -> t -> t access_result
val havoc_field : InferBase.Location.t -> InferModules.PulseDomain.AddrTracePair.t -> InferIR.Typ.Fieldname.t -> InferModules.PulseDomain.ValueHistory.t -> t -> t access_result
val realloc_var : InferIR.Var.t -> InferBase.Location.t -> t -> t
val write_id : InferIR.Ident.t -> InferModules.PulseDomain.Stack.value -> t -> t
val write_deref : InferBase.Location.t -> ref:InferModules.PulseDomain.AddrTracePair.t -> obj:InferModules.PulseDomain.AddrTracePair.t -> t -> t access_result

write the edge ref --*--> obj

val invalidate : InferBase.Location.t -> InferModules.PulseDomain.Invalidation.t InferModules.PulseDomain.InterprocAction.t -> InferModules.PulseDomain.AddrTracePair.t -> t -> t access_result

record that the address is invalid

val invalidate_deref : InferBase.Location.t -> InferModules.PulseDomain.Invalidation.t InferModules.PulseDomain.InterprocAction.t -> InferModules.PulseDomain.AddrTracePair.t -> t -> t access_result

record that what the address points to is invalid

val invalidate_array_elements : InferBase.Location.t -> InferModules.PulseDomain.Invalidation.t InferModules.PulseDomain.InterprocAction.t -> InferModules.PulseDomain.AddrTracePair.t -> t -> t access_result

record that all the array elements that address points to is invalid

val shallow_copy : InferBase.Location.t -> InferModules.PulseDomain.AddrTracePair.t -> t -> (t * AbstractAddress.t) access_result

returns the address of a new cell with the same edges as the original

val remove_vars : InferIR.Var.t list -> InferBase.Location.t -> t -> t
val check_address_escape : InferBase.Location.t -> InferIR.Procdesc.t -> AbstractAddress.t -> InferModules.PulseDomain.ValueHistory.t -> t -> t access_result
val call : caller_summary:InferModules.Summary.t -> InferBase.Location.t -> InferIR.Typ.Procname.t -> ret:(InferIR.Ident.t * InferIR.Typ.t) -> actuals:((AbstractAddress.t * InferModules.PulseDomain.ValueHistory.t) * InferIR.Typ.t) list -> t -> t list access_result

perform an interprocedural call: apply the summary for the call proc name passed as argument if it exists