Frama-C:
Plug-ins:
Libraries:

Frama-C API - Builtins_malloc

Dynamic allocation related builtins. Most functionality is exported as builtins.

val fold_dynamic_bases : (Frama_c_kernel.Base.t -> Callstack.t -> 'a -> 'a) -> 'a -> 'a

fold_dynamic_bases f init folds f to each dynamically allocated base, with initial accumulator init. Note that this also includes bases created by alloca and VLAs.

Performs the equivalent of free for each location that was allocated via alloca() in the current function (as per Eva_utils.call_stack ()). This function must be called during finalization of a function call.

Evaluates the ACSL predicate \freeable(value): holds if and only if the value points to an allocated memory block that can be safely released using the C function free. Note that \freeable(\null) does not hold, despite NULL being a valid argument to the C function free.