package frama-c
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Platform dedicated to the analysis of source code written in C
Install
dune-project
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
-
FFabien Siron
-
NNicolas Stouls
-
HHugo Thievenaz
-
KKostyantyn Vorobyov
-
BBoris Yakobowski
Maintainers
Sources
frama-c-32.0-beta-Germanium.tar.gz
sha256=868d57ef8007fe6c0836cd151d8c294003af34aa678285eff9547662cad36aa3
doc/src/frama-c-wp.core/wpRTE.ml.html
Source file wpRTE.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(**************************************************************************) (* *) (* SPDX-License-Identifier LGPL-2.1 *) (* Copyright (C) *) (* CEA (Commissariat à l'énergie atomique et aux énergies alternatives) *) (* *) (**************************************************************************) let dkey = Wp_parameters.register_category "rte" type t = { name : string ; cint : bool ; kernel : (unit -> bool) ; option : string ; status : unit -> RteGen.Generator.status_accessor ; } let option name = try name = "" || Dynamic.Parameter.Bool.get name () with _ -> false let status db kf = try let (_,_,get) = db () in get kf with Failure _ -> Wp_parameters.warning ~once:true "Missing RTE plug-in: can not generate conditions" ; false let always _ = true let configure ~update ~generate kf cint rte = if not rte.cint || rte.kernel () then begin (* need RTE guard, but kernel option is set *) if not (status rte.status kf) then begin if option rte.option then let msg = if generate then "generate" else "missing" in Wp_parameters.debug ~dkey "function %a: %s rte for %s" Kernel_function.pretty kf msg rte.name ; else Wp_parameters.warning ~once:true ~current:false "-wp-rte can annotate %s because %s is not set" rte.name rte.option ; update := true ; end end else if generate then match cint with | Cint.Machine -> () (* RTE has been set *) | Cint.Natural -> Wp_parameters.warning ~once:true ~current:false "-wp-rte and model nat require kernel to warn against %s" rte.name let generator = [ { name = "memory access" ; kernel = always ; option = "-rte-mem" ; cint = false ; status = (fun () -> RteGen.Generator.Mem_access.accessor) } ; { name = "division by zero" ; kernel = always ; option = "-rte-div" ; cint = false ; status = (fun () -> RteGen.Generator.Div_mod.accessor) } ; { name = "signed overflow" ; cint = true ; kernel = Kernel.SignedOverflow.get ; option = "" ; status = (fun () -> RteGen.Generator.Signed_overflow.accessor) } ; { name = "unsigned overflow" ; cint = true ; kernel = Kernel.UnsignedOverflow.get ; option = "" ; status = (fun () -> RteGen.Generator.Unsigned_overflow.accessor) } ; { name = "signed downcast" ; cint = true ; option = "" ; kernel = Kernel.SignedDowncast.get ; status = (fun () -> RteGen.Generator.Signed_downcast.accessor) } ; { name = "unsigned downcast" ; cint = true ; option = "" ; kernel = Kernel.UnsignedDowncast.get ; status = (fun () -> RteGen.Generator.Unsigned_downcast.accessor) } ; { name = "invalid bool value" ; cint = false ; option = "-warn-invalid-bool" ; kernel = Kernel.InvalidBool.get ; status = (fun () -> RteGen.Generator.Bool_value.accessor) } ; ] let generate model kf = let update = ref false in let cint = WpContext.on_context (model,WpContext.Kf kf) Cint.current () in List.iter (configure ~update ~generate:true kf cint) generator ; if !update then let flags = { (RteGen.Flags.default ()) with pointer_alignment = false } in RteGen.Visit.annotate ~flags kf let generate_all model = Wp_parameters.iter_kf (generate model) let missing_guards model kf = let update = ref false in let cint = WpContext.on_context (model,WpContext.Kf kf) Cint.current () in List.iter (configure ~update ~generate:false kf cint) generator ; !update (* -------------------------------------------------------------------------- *)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>