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/mthread/mt_interferences.ml.html
Source file mt_interferences.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(**************************************************************************) (* *) (* SPDX-License-Identifier LGPL-2.1 *) (* Copyright (C) *) (* CEA (Commissariat à l'énergie atomique et aux énergies alternatives) *) (* *) (**************************************************************************) let concurrent_writes = let module Analyzer = (val Analysis.current_analyzer ()) in match Analyzer.Dom.get Mt_domain.Domain.key with (* Domain disabled, no information about writes *) | None -> Position.Local.Set.empty (* Domain enabled *) | Some _extract -> let add_pos stmt cs _state acc = let pos = Position.local stmt cs in (* TODO: Maybe take the memory read/written for all callstacks of the given statement? (can be done directly by Inout_access). *) let filter = Inout_access.keep_globals_only in let accesses = Inout_access.at ~filter pos in let written_bases = Locations.Zone.get_bases accesses.write in if Base.SetLattice.(intersects (inject shared_bases) written_bases) then Position.Local.Set.add (stmt, cs) acc else acc in let add_stmt acc stmt = let is_write_stmt = match stmt.Cil_types.skind with | Cil_types.Instr (Set _ | Call _ | Local_init _) -> true | _ -> false in if is_write_stmt then match Analyzer.get_stmt_state_by_callstack ~after:true stmt with | `Top | `Bottom -> acc (* TODO: handle Tops *) | `Value table -> Callstack.Hashtbl.fold (add_pos stmt) table acc else acc in let add_kf kf acc = match kf.Cil_types.fundec with | Declaration _ -> acc | Definition (fundec,_) -> List.fold_left add_stmt acc fundec.Cil_types.sallstmts in Globals.Functions.fold add_kf Position.Local.Set.empty let analysis_state = let = analysis_state.Mt_thread.concurrent_accesses in match Locations.Zone.get_bases shared_zones with | Top -> assert false | Set zones -> zones let add_last_analysis analysis_state = let module Analyzer = (val Analysis.current_analyzer ()) in let bases = shared_bases analysis_state in let writes = concurrent_writes bases in let thread = analysis_state.curr_thread.th_eva_thread in match Analyzer.Interferences.add_last_analysis thread writes bases with | Updated -> Mt_thread.iter_threads analysis_state (fun th -> Mt_thread.ThreadState.recompute_because th InterferencesChanged) | NoChanges -> ()
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>