package mc2

  1. Overview
  2. Docs
A mcsat-based SMT solver in pure OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

v0.1.tar.gz
md5=92de696251ec76fbf3eba6ee917fd80f
sha512=e88ba0cfc23186570a52172a0bd7c56053273941eaf3cda0b80fb6752e05d1b75986b01a4e4d46d9711124318e57cba1cd92d302e81d34f9f1ae8b49f39114f0

doc/mc2.core/Mc2_core/Atom/index.html

Module Mc2_core.AtomSource

Sourcetype t
Sourceval equal : t -> t -> bool
Sourceval compare : t -> t -> int
Sourceval hash : t -> int
Sourceval same_term : t -> t -> bool

same term, ignoring sign?

Sourceval is_pos : t -> bool

Positive atom?

Sourceval is_neg : t -> bool

Positive atom?

Negative atom?

Sourceval neg : t -> t

Negative atom?

Negation

Sourceval abs : t -> t

Negation

Positive version

Sourceval value : t -> Mc2_core__.Solver_types.value option

Positive version

Sourceval mark : t -> unit

Mark the atom as seen, using fields in the variable.

Sourceval marked : t -> bool

Mark the atom as seen, using fields in the variable.

Returns wether the atom has been marked as seen.

Sourceval unmark : t -> unit

Returns wether the atom has been marked as seen.

Sourceval mark_neg : t -> unit

Mark negation of the atom

Sourceval unmark_neg : t -> unit

Mark negation of the atom

Unmark negation of the atom

Sourceval level : t -> int

decision level of the variable

Sourceval reason : t -> Mc2_core__.Solver_types.reason option

decision level of the variable

Sourceval reason_exn : t -> Mc2_core__.Solver_types.reason
Sourceval is_true : t -> bool

True in current model?

Sourceval is_false : t -> bool

True in current model?

Sourceval is_undef : t -> bool
Sourceval has_some_value : t -> bool
Sourceval eval : t -> Mc2_core__.Solver_types.eval_res

Semantically evaluate atom

Sourceval is_absurd : t -> bool

Semantically evaluate atom

Sourceval can_eval_to_false : t -> bool
Sourceval term : t -> Mc2_core__.Solver_types.term
Sourceval watched : t -> Mc2_core__.Solver_types.clause Mc2_core__.Vec.t

nice printer

nice printer

very verbose printer

Sourcemodule Tbl : CCHashtbl.S with type key = t
Sourcemodule Set : CCSet.S with type elt = t
OCaml

Innovation. Community. Security.