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_ids.ml.html
Source file mt_ids.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(**************************************************************************) (* *) (* SPDX-License-Identifier LGPL-2.1 *) (* Copyright (C) *) (* CEA (Commissariat à l'énergie atomique et aux énergies alternatives) *) (* *) (**************************************************************************) open Mt_memory.Types type id_type = IdThread | IdMutex | IdQueue let to_string = function | IdThread -> "thread" | IdMutex -> "mutex" | IdQueue -> "queue" type raw_id = id_type * int let pretty_raw_id fmt (idt, offset) = Format.fprintf fmt "%s_%d" (to_string idt) offset let array_of_idt = function | IdThread -> Mt_lib.array_threads () | IdMutex -> Mt_lib.array_mutexes () | IdQueue -> Mt_lib.array_queues () let pointer_of_id ((idt, offset): raw_id) : pointer = assert (offset > 0); let array = array_of_idt idt and offset = (offset - 1) * (Machine.Sizeof.int ()) (* Let us not lose the first cell of the array *) in array, offset let read_id_state state raw_id = let p = pointer_of_id raw_id in Mt_memory.read_int_pointer p state let read_id_state_enumerate cardinal state raw_id = read_id_state state raw_id |> Mt_memory.extract_int_list ~cardinal |> Result.map_error (fun s -> Format.asprintf "Id %a contains %s" pretty_raw_id raw_id s) let write_id_state state raw_id v = let p = pointer_of_id raw_id in Mt_memory.write_int_pointer p v state let replace_id_value state raw_id ~before ~after = let p = pointer_of_id raw_id in Mt_memory.replace_value_at_int_pointer p ~before ~after state let of_thread th = IdThread, Thread.id th let of_mutex m = IdMutex, Mutex.id m let of_queue q = IdQueue, Mqueue.id q
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>