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/module-type-LIB/Bool/index.html

Module LIB.Bool

type scalar = scalar

Element of the native scalar field.

type 'a repr = 'a repr

Representation of values.

type 'a t = 'a t

Plompiler program.

val band : bool repr -> bool repr -> bool repr t

band a b returns the conjunction of a and b.

val xor : bool repr -> bool repr -> bool repr t

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

val bor : bool repr -> bool repr -> bool repr t

bor a b returns the disjunction of a and b.

val bnot : bool repr -> bool repr t

bnot a returns the negation of a.

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

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

val 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.

val assert_true : bool repr -> unit repr t

assert_true a asserts that a is true.

val assert_false : bool repr -> unit repr t

assert_false a asserts that a is false.

val constant : bool -> bool repr t

constant kb returns the constant kb as a Plompiler value.

val band_list : bool repr list -> bool repr t

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

module Internal : sig ... end
val 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.