package octez-plompiler

  1. Overview
  2. Docs

Module LibCircuit.BoolSource

Sourcetype scalar = scalar
Sourcetype 'a repr = 'a repr
Sourcetype 'a t = 'a t
Sourceval band : bool repr -> bool repr -> bool repr t
Sourceval xor : bool repr -> bool repr -> bool repr t
Sourceval bor : bool repr -> bool repr -> bool repr t
Sourceval bor_lookup : bool repr -> bool repr -> bool repr t
Sourceval bnot : bool repr -> bool repr t
Sourceval ifthenelse : bool repr -> 'a repr -> 'a repr -> 'a repr t
Sourceval swap : bool repr -> 'a repr -> 'a repr -> ('a * 'a) repr t
Sourceval assert_true : bool repr -> unit repr t
Sourceval assert_false : bool repr -> unit repr t
Sourceval constant_bool : bool -> bool repr t
Sourceval band_list : bool repr list -> bool repr t
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.