Frama-C API - WpReached
Reachability for Smoke Tests
val is_predicate : bool -> Frama_c_kernel.Cil_types.predicate -> boolIf returns true the predicate has always the given boolean value.
val is_dead_annot : Frama_c_kernel.Cil_types.code_annotation -> boolFalse assertions and loop invariant. Hence, also includes completely unrolled loop.
val is_dead_code : Frama_c_kernel.Cil_types.stmt -> boolChecks whether the stmt has a dead-code annotation.
val reachability : Frama_c_kernel.Kernel_function.t -> reachabilitymemoized reached cfg for function
val smoking : reachability -> Frama_c_kernel.Cil_types.stmt -> boolReturns 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:Frama_c_kernel.Filepath.t -> Frama_c_kernel.Kernel_function.t -> reachability -> unitval set_doomed : Frama_c_kernel.Emitter.t -> WpPropId.prop_id -> unitval set_unreachable : WpPropId.prop_id -> unit