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

tezos-18.1.tar.gz
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a

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.