package mc2
A mcsat-based SMT solver in pure OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
v0.1.tar.gz
md5=92de696251ec76fbf3eba6ee917fd80f
sha512=e88ba0cfc23186570a52172a0bd7c56053273941eaf3cda0b80fb6752e05d1b75986b01a4e4d46d9711124318e57cba1cd92d302e81d34f9f1ae8b49f39114f0
doc/src/mc2.core/ID.ml.html
Source file ID.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
module Fmt = CCFormat type t = { id: int; name: string; } let make = let n = ref 0 in fun name -> let x = { id= !n; name; } in incr n; x let makef fmt = CCFormat.ksprintf ~f:make fmt let copy {name;_} = make name let id {id;_} = id let to_string id = id.name let equal a b = a.id=b.id let compare a b = CCInt.compare a.id b.id let hash a = CCHash.int a.id let pp out a = Format.fprintf out "%s/%d" a.name a.id let pp_name out a = Fmt.string out a.name let to_string_full a = Printf.sprintf "%s/%d" a.name a.id module AsKey = struct type t_ = t type t = t_ let equal = equal let compare = compare let hash = hash end module Map = CCMap.Make(AsKey) module Set = CCSet.Make(AsKey) module Tbl = CCHashtbl.Make(AsKey) module Smtlib = struct let needs_escaping_ = CCString.exists (function | '|' | ' ' | '(' | ')' -> true | _ -> false) let pp out i = if needs_escaping_ i.name then Fmt.fprintf out "|%s|" i.name else Fmt.string out i.name end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>