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/coverage_dangling.ml.html
Source file coverage_dangling.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 29open Domain.Lib module DCov = Coverage.Dangling.Single module Value = Runtime.Value let make () = (* Dangling coverage and a reader for it *) let coverage = ref DCov.empty in let coverage_backup = ref DCov.empty in let read () = !coverage in (* Instruction coverage measurement handler *) let module H : Handler.HANDLER = struct include Handler.Default let init_spec (spec : Handler.spec) : unit = match spec with SL spec_sl -> coverage := DCov.init spec_sl | _ -> () let backup () : unit = coverage_backup := !coverage let restore () : unit = coverage := !coverage_backup; coverage_backup := DCov.empty let on_instr_dangling (hit : bool) (iid : IId.t) (value_cond : Value.t) : unit = if hit then coverage := DCov.hit !coverage iid else coverage := DCov.miss !coverage iid value_cond.note.vid end in (* Return the handler and the reader *) ((module H : Handler.HANDLER), read)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>