package idd

  1. Overview
  2. Docs

Module Idd_.VarSource

Boolean variable on which a DD can branch. Morally just an integer, but modeled as a record for type safety.

Sourcetype t
include Ppx_compare_lib.Comparable.S with type t := t
Sourceval compare : t -> t -> int
include Sexplib0.Sexpable.S with type t := t
Sourceval t_of_sexp : Sexplib0.Sexp.t -> t
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
include Ppx_hash_lib.Hashable.S with type t := t
Sourceval hash_fold_t : Base.Hash.state -> t -> Base.Hash.state
Sourceval leaf_idx : int
Sourceval inp : int -> t
Sourceval out : int -> t
Sourceval is_inp : t -> bool
Sourceval is_out : t -> bool
Sourceval index : t -> int
Sourceval to_out : t -> t
Sourceval is_in_out_pair : t -> t -> bool
Sourcetype closer_to_root =
  1. | Left
  2. | Right
  3. | Equal
    (*

    closer_to_root v0 v1 says whether, if v0 and v1 were to appear in the same, ordered IDD, v0 or v1 would appear closer to the root.

    *)
Sourceval closer_to_root : t -> t -> closer_to_root
Sourceval idx_strictly_closer_to_root : int -> int -> bool

closer_to_root idx0 idx1 is whether or not a variable with index idx0 goes closer to the root of an ordered IDD than a variable with index idx1

Sourceval to_string : t -> string
OCaml

Innovation. Community. Security.