Module Biabduction.Abs

type rules

Abstraction rules discovered

val abstract : BiabductionSummary.t Absint.InterproceduralAnalysis.t -> Prop.normal Prop.t -> Prop.normal Prop.t

Abstract a proposition.

val abstract_spec : BiabductionSummary.t Absint.InterproceduralAnalysis.t -> Prop.normal BiabductionSummary.spec -> BiabductionSummary.NormSpec.t

Normalizes names and applies simplifications, soem of which require looking at both pre and post.

val abstract_junk : BiabductionSummary.t Absint.InterproceduralAnalysis.t -> Prop.normal Prop.t -> Prop.normal Prop.t

Check whether the prop contains junk. If it does, and Config.allowleak is true, remove the junk, otherwise raise a Leak exception.

val abstract_no_symop : BiabductionSummary.t Absint.InterproceduralAnalysis.t -> Prop.normal Prop.t -> Prop.normal Prop.t

Abstract a proposition but don't pay a SymOp

val get_current_rules : unit -> rules

Get the current rules discoveres

val lifted_abstract : BiabductionSummary.t Absint.InterproceduralAnalysis.t -> Propset.t -> Propset.t

Abstract each proposition in propset

val remove_redundant_array_elements : BiabductionSummary.t Absint.InterproceduralAnalysis.t -> Prop.normal Prop.t -> Prop.normal Prop.t

Remove redundant elements in an array, and check for junk afterwards

val reset_current_rules : unit -> unit

Reset the abstraction rules discovered

val set_current_rules : rules -> unit

Set the current rules discovered