package octez-libs

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

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.