package frama-c
Platform dedicated to the analysis of source code written in C
Install
Dune Dependency
Authors
-
MMichele Alberti
-
TThibaud Antignac
-
GGergö Barany
-
PPatrick Baudin
-
NNicolas Bellec
-
TThibaut Benjamin
-
AAllan Blanchard
-
LLionel Blatter
-
FFrançois Bobot
-
RRichard Bonichon
-
VVincent Botbol
-
QQuentin Bouillaguet
-
DDavid Bühler
-
ZZakaria Chihani
-
SSylvain Chiron
-
LLoïc Correnson
-
JJulien Crétin
-
PPascal Cuoq
-
ZZaynah Dargaye
-
BBasile Desloges
-
JJean-Christophe Filliâtre
-
PPhilippe Herrmann
-
MMaxime Jacquemin
-
BBenjamin Jorge
-
FFlorent Kirchner
-
AAlexander Kogtenkov
-
RRemi Lazarini
-
TTristan Le Gall
-
KKilyan Le Gallic
-
JJean-Christophe Léchenet
-
MMatthieu Lemerre
-
DDara Ly
-
DDavid Maison
-
CClaude Marché
-
AAndré Maroneze
-
TThibault Martin
-
FFonenantsoa Maurica
-
MMelody Méaulle
-
BBenjamin Monate
-
YYannick Moy
-
PPierre Nigron
-
AAnne Pacalet
-
VValentin Perrelle
-
GGuillaume Petiot
-
DDario Pinto
-
VVirgile Prevosto
-
AArmand Puccetti
-
FFélix Ridoux
-
VVirgile Robles
-
JJan Rochel
-
MMuriel Roger
-
CCécile Ruet-Cros
-
JJulien Signoles
-
NNicolas Stouls
-
KKostyantyn Vorobyov
-
BBoris Yakobowski
Maintainers
Sources
frama-c-31.0-beta-Gallium.tar.gz
sha256=095ffbb3086a6cd963a03e3defab4f0dc32e9a43f026e552ec9ae346a6e20522
doc/src/frama-c-eva.core/self.ml.html
Source file self.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
(**************************************************************************) (* *) (* This file is part of Frama-C. *) (* *) (* Copyright (C) 2007-2025 *) (* CEA (Commissariat à l'énergie atomique et aux énergies *) (* alternatives) *) (* *) (* you can redistribute it and/or modify it under the terms of the GNU *) (* Lesser General Public License as published by the Free Software *) (* Foundation, version 2.1. *) (* *) (* It is distributed in the hope that it will be useful, *) (* but WITHOUT ANY WARRANTY; without even the implied warranty of *) (* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *) (* GNU Lesser General Public License for more details. *) (* *) (* See the GNU Lesser General Public License version 2.1 *) (* for more details (enclosed in the file licenses/LGPLv2.1). *) (* *) (**************************************************************************) include Plugin.Register (struct let name = "Eva" let shortname = "eva" let help = "automatically computes variation domains for the variables of the program" end) let () = add_plugin_output_aliases ~visible:false ~deprecated:true [ "value" ; "val" ] (* Do not add dependencies to Kernel parameters here, but at the top of Parameters. *) let kernel_dependencies = [ Ast.self; Alarms.self; Annotations.code_annot_state; ] let proxy = State_builder.Proxy.(create "eva" Forward kernel_dependencies) let state = State_builder.Proxy.get proxy (* Current state of the analysis *) type computation_state = NotComputed | Computing | Computed | Aborted module ComputationState = struct let to_string = function | NotComputed -> "NotComputed" | Computing -> "Computing" | Computed -> "Computed" | Aborted -> "Aborted" module Prototype = struct include Datatype.Serializable_undefined type t = computation_state let name = "Eva.Analysis.ComputationState" let pretty fmt s = Format.pp_print_string fmt (to_string s) let reprs = [ NotComputed ; Computing ; Computed ; Aborted ] let dependencies = [ state ] let default () = NotComputed end module Datatype' = Datatype.Make (Prototype) include (State_builder.Ref (Datatype') (Prototype)) end exception Abort let is_computed () = match ComputationState.get () with | Computed | Aborted -> true | NotComputed | Computing -> false (* Debug categories. *) let dkey_initial_state = register_category "initial-state" ~help:"at the start of the analysis, \ print the initial value of global variables" let dkey_final_states = register_category "final-states" ~help:"at the end of the analysis, print final values inferred \ at the return point of each analyzed function " let dkey_summary = register_category "summary" ~help:"print a summary of the analysis at the end, including coverage \ and alarm numbers" let dkey_pointer_comparison = register_category "pointer-comparison" ~help:"messages about the evaluation of pointer comparisons" let dkey_cvalue_domain = register_category "d-cvalue" ~help:"print states of the cvalue domain on some user directives" let dkey_iterator = register_category "iterator" ~help:"debug messages about the fixpoint engine on the control-flow graph \ of functions" let dkey_widening = register_category "widening" ~help:"print a message at each point where the analysis applies a widening" let dkey_partition = register_category "partition" ~help:"messages about states partitioning" let dkey_split_return = register_category "split-return" ~help:"messages related to option -eva-split-return" let dkey_precision_settings = register_category "precision-settings" ~help:"messages about the automatic configuration of the analysis by \ option -eva-precision" let () = let activate dkey = add_debug_keys dkey in List.iter activate [dkey_initial_state; dkey_final_states; dkey_summary; dkey_cvalue_domain; dkey_partition; dkey_split_return; dkey_precision_settings] (* Warning categories. *) let wkey_alarm = register_warn_category "alarm" let wkey_locals_escaping = register_warn_category "locals-escaping" let wkey_garbled_mix_write = register_warn_category "garbled-mix:write" let () = set_warn_status wkey_garbled_mix_write Log.Wfeedback let wkey_garbled_mix_assigns = register_warn_category "garbled-mix:assigns" let () = set_warn_status wkey_garbled_mix_assigns Log.Wfeedback let wkey_garbled_mix_summary = register_warn_category "garbled-mix:summary" let () = set_warn_status wkey_garbled_mix_summary Log.Wfeedback let wkey_builtins_missing_spec = register_warn_category "builtins:missing-spec" let wkey_builtins_override = register_warn_category "builtins:override" let wkey_libc_unsupported_spec = register_warn_category "libc:unsupported-spec" let wkey_loop_unroll_auto = register_warn_category "loop-unroll:auto" let () = set_warn_status wkey_loop_unroll_auto Log.Wfeedback let wkey_loop_unroll_partial = register_warn_category "loop-unroll:partial" let () = set_warn_status wkey_loop_unroll_partial Log.Wfeedback let wkey_missing_loop_unroll = register_warn_category "loop-unroll:missing" let () = set_warn_status wkey_missing_loop_unroll Log.Winactive let wkey_missing_loop_unroll_for = register_warn_category "loop-unroll:missing:for" let () = set_warn_status wkey_missing_loop_unroll_for Log.Winactive let wkey_signed_overflow = register_warn_category "signed-overflow" let wkey_invalid_assigns = register_warn_category "assigns:invalid-location" let () = set_warn_status wkey_invalid_assigns Log.Wfeedback let wkey_missing_assigns = register_warn_category "assigns:missing" let () = set_warn_status wkey_missing_assigns Log.Werror let wkey_missing_assigns_result = register_warn_category "assigns:missing-result" let wkey_experimental = register_warn_category "experimental" let wkey_unknown_size = register_warn_category "unknown-size" let wkey_ensures_false = register_warn_category "ensures-false" let wkey_watchpoint = register_warn_category "watchpoint" let () = set_warn_status wkey_watchpoint Log.Wfeedback let wkey_recursion = register_warn_category "recursion" let () = set_warn_status wkey_recursion Log.Wfeedback
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>