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/p4spectec.backend_testgen_neg/target.ml.html
Source file target.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 33open Domain.Lib open Lang open Sl (* Get filenames per target phantom *) let parse_line (line : string) : iid * string list = let data = String.split_on_char ' ' line in match data with | iid :: filenames -> let iid = int_of_string iid in let filenames = filenames in (iid, filenames) | _ -> assert false let rec parse_lines (targets : string list IIdMap.t) (ic : in_channel) : string list IIdMap.t = try let line = input_line ic in let iid, filenames = parse_line line in let targets = match IIdMap.find_opt iid targets with | Some filenames' -> IIdMap.add iid (filenames @ filenames') targets | None -> IIdMap.add iid filenames targets in parse_lines targets ic with End_of_file -> targets let init (filename_target : string) : string list IIdMap.t = let ic = open_in filename_target in let targets = parse_lines IIdMap.empty ic in close_in ic; targets
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>