package hardcaml_verify

  1. Overview
  2. Docs
Hardcaml Verification Tools

Install

Dune Dependency

Authors

Maintainers

Sources

hardcaml_verify-v0.16.0.tar.gz
sha256=b475dc8e540d9855b438309de3cf1984b28d29e7cd8a4d2b76d58a68894a8749

doc/hardcaml_verify.kernel/Hardcaml_verify_kernel/Is_one_hot/index.html

Module Hardcaml_verify_kernel.Is_one_hotSource

Computes information about the one-hotness of a vector. In addition it can compute if no bits are set or more than 1 bit is set.

In actual hardware using popcount might be better as it can be formulated as a tree with log depth. This implementation has depth O(width vector) but is small and simple.

It's primary purpose is as an efficient check for proving SAT properties.

Sourcemodule Make (Comb : Hardcaml.Comb.S) : sig ... end
OCaml

Innovation. Community. Security.