package hardcaml_verify
Hardcaml Verification Tools
Install
Dune Dependency
Authors
Maintainers
Sources
hardcaml_verify-v0.15.0.tar.gz
sha256=a469d63c76bd86fbd04aa38d391dc736d4bc291ad5ffe0090b31cc4ae3ba6622
doc/src/hardcaml_verify.kernel/label.ml.html
Source file label.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
open Base module Uid = Uid.Int module T = struct type = { name : string ; bit_pos : int ; uid : Uid.t ; : bool } [@@deriving fields] let to_string t = String.concat ~sep:"/" [ t.name; Int.to_string t.bit_pos; Uid.to_string t.uid ] ^ if t.hidden then "?" else "" ;; let compare a b = let uid = Uid.compare a.uid b.uid in if uid <> 0 then uid else Int.compare a.bit_pos b.bit_pos ;; let sexp_of_t t = sexp_of_string (to_string t) end include T let new_uid = Staged.unstage (Uid.create 1) let create ?(width = 1) ?( = false) name = assert (width > 0); let uid = new_uid () in Array.init width ~f:(fun bit_pos -> { name; bit_pos; uid; hidden }) ;; let create1 ? name = (create ?hidden name).(0) include Comparable.Make (T)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>