package hardcaml_verify
Hardcaml Verification Tools
Install
Dune Dependency
Authors
Maintainers
Sources
v0.17.0.tar.gz
sha256=a09a904776ad848f685afb4ebe85e0d449acb81f6f2425fccc52a3c5b76be629
doc/src/hardcaml_verify.kernel/comb_gates.ml.html
Source file comb_gates.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
open Base open Hardcaml include Bits_list.Make (Basic_gates) let input name width = let label = Label.create name ~width in List.init width ~f:(fun bit -> Basic_gates.var label.(bit)) |> List.rev ;; let cofactor ~var v ~f = let cofactor_f f = List.fold2_exn var v ~init:f ~f:(fun f var v -> Basic_gates.cofactor ~var v ~f) in List.map f ~f:cofactor_f ;; let forall x ~f = let forall_f f = List.fold_right x ~init:f ~f:(fun var f -> Basic_gates.forall var ~f) in List.map f ~f:forall_f ;; let exists x ~f = let exists_f f = List.fold_right x ~init:f ~f:(fun var f -> Basic_gates.exists var ~f) in List.map f ~f:exists_f ;; let cnf = Basic_gates.cnf
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>