package qbf

  1. Overview
  2. Docs
On This Page
  1. a QBF literal
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Qbf.LitSource

a QBF literal

Sourcetype t = private int

A boolean literal is only a non-zero integer

Sourceval make : int -> t

Build a literal out of an integer.

Sourceval neg : t -> t

Negation (i.e. opposite)

Sourceval to_int : t -> int

The underlying atom, or name (strictly positive integer)

Sourceval abs : t -> t

Remove sign

Sourceval sign : t -> bool

Remove sign

Get sign

Sourceval apply_sign : bool -> t -> t

Get sign

Swap sign iff the bool is false

Sourceval set_sign : bool -> t -> t

Swap sign iff the bool is false

Positive if true, negative otherwise

Sourceval fresh : unit -> t

Generator for fresh, unique lits

Sourceval equal : t -> t -> bool
Sourceval compare : t -> t -> int
Sourceval hash : t -> int
Sourceval hash_fun : t -> int64 -> int64
Sourceval print : Format.formatter -> t -> unit
OCaml

Innovation. Community. Security.