package p4spectec
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
P4-SpecTec: A mechanization toolchain for the P4 Programming Language
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.1.2.tar.gz
md5=1a3bc0a385fe1ecf403c019f49aa6de6
sha512=5d20b5821f33e2a3a5419b208606f27c01511994c2b3b1e1cdf4c077056dfd0aa81682af0720e1060ee2bfb0341918fcc4c53159820205a2bc32b725e5c1a714
doc/src/inst/value_dependency.ml.html
Source file value_dependency.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 44module Value = Runtime.Value module Dep = Runtime.Testgen_neg.Dep let make_deriving ~(cache_on : unit -> unit) ~(cache_off : unit -> unit) = (* Value dependency graph and a reader for it *) let vdg = ref (Dep.Graph.empty ()) in let read () = !vdg in (* Instruction coverage measurement handler *) let module H : Handler.HANDLER = struct include Handler.Default let init_spec (_spec : Handler.spec) : unit = cache_off () let finish () : unit = cache_on () let on_program (value_program : Value.t) : unit = vdg := Dep.Graph.assemble_graph value_program let on_value (value : Value.t) : unit = Dep.Graph.add_node ~taint:false !vdg value let on_value_dependency (value : Value.t) (value_dep : Value.t) (label : Dep.Edges.label) : unit = Dep.Graph.add_edge !vdg value value_dep label end in (* Return the handler and the reader *) ((module H : Handler.HANDLER), read) let make_non_deriving () = (* Value dependency graph and a reader for it *) let vdg = ref (Dep.Graph.empty ()) in let read () = !vdg in (* Instruction coverage measurement handler *) let module H : Handler.HANDLER = struct include Handler.Default let on_program (value_program : Value.t) : unit = vdg := Dep.Graph.assemble_graph value_program end in (* Return the handler and the reader *) ((module H : Handler.HANDLER), read) let make ~(derive : bool) ~(cache_on : unit -> unit) ~(cache_off : unit -> unit) = if derive then make_deriving ~cache_on ~cache_off else make_non_deriving ()
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>