package octez-libs

  1. Overview
  2. Docs
A package that contains multiple base libraries used by the Octez suite

Install

Dune Dependency

Authors

Maintainers

Sources

octez-19.0.tar.gz
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13

doc/octez-libs.plompiler/Plompiler/LibCircuit/Bool/index.html

Module LibCircuit.BoolSource

Sourcetype scalar = scalar

Element of the native scalar field.

Sourcetype 'a repr = 'a repr

Representation of values.

Sourcetype 'a t = 'a t

Plompiler program.

Sourceval band : bool repr -> bool repr -> bool repr t

band a b returns the conjunction of a and b.

Sourceval xor : bool repr -> bool repr -> bool repr t

xor a b returns the exclusive disjunction of a and b.

Sourceval bor : bool repr -> bool repr -> bool repr t

bor a b returns the disjunction of a and b.

Sourceval bnot : bool repr -> bool repr t

bnot a returns the negation of a.

Sourceval ifthenelse : bool repr -> 'a repr -> 'a repr -> 'a repr t

ifthenelse c t e returns t if c is true and e otherwise.

Sourceval swap : bool repr -> 'a repr -> 'a repr -> ('a * 'a) repr t

swap c a b returns the pair (b, a) if c is true and (a, b) otherwise.

Sourceval assert_true : bool repr -> unit repr t

assert_true a asserts that a is true.

Sourceval assert_false : bool repr -> unit repr t

assert_false a asserts that a is false.

Sourceval constant : bool -> bool repr t

constant kb returns the constant kb as a Plompiler value.

Sourceval band_list : bool repr list -> bool repr t

band_list bs returns the conjunction of the list of booleans bs.

Sourcemodule Internal : sig ... end
Sourceval full_adder : bool repr -> bool repr -> bool repr -> (bool * bool) repr t

Returns the pair (s, c_out), as per https://en.wikipedia.org/wiki/Adder_(electronics)#Full_adder

OCaml

Innovation. Community. Security.