Module WpReached

module WpReached: sig .. end

Reachability for Smoke Tests


type reachability 

control flow graph dedicated to smoke tests

val is_predicate : bool -> Cil_types.predicate -> bool

If returns true the predicate has always the given boolean value.

val is_dead_annot : Cil_types.code_annotation -> bool

False assertions and loop invariant. Hence, also includes completely unrolled loop.

val is_dead_code : Cil_types.stmt -> bool

Checks whether the stmt has a dead-code annotation.

val reachability : Kernel_function.t -> reachability

memoized reached cfg for function

val smoking : reachability -> Cil_types.stmt -> bool

Returns whether a stmt need a smoke tests to avoid being unreachable. This is restricted to assignments, returns and calls not dominated another smoking statement.

val dump : dir:Datatype.Filepath.t ->
Kernel_function.t -> reachability -> unit
val set_doomed : Emitter.t -> WpPropId.prop_id -> unit
val unreachable_proved : int Stdlib.ref
val unreachable_failed : int Stdlib.ref
val set_unreachable : WpPropId.prop_id -> unit