package msat

  1. Overview
  2. Docs
Library containing a SAT solver that can be parametrized by a theory

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.8.2.tar.gz
md5=c02d63bf45357aa1d1b85846da373f48
sha512=e6f0d7f6e4fe69938ec2cc3233b0cb72dd577bfb4cc4824afe8247f5db0b6ffea2d38d73a65e7ede500d21ff8db27ed12f2c4f3245df4451d02864260ae2ddaf

doc/msat.backtrack/Msat_backtrack/Ref/index.html

Module Msat_backtrack.RefSource

Backtrackable ref

Sourcetype 'a t
Sourceval create : ?copy:('a -> 'a) -> 'a -> 'a t

Create a backtrackable reference holding the given value initially.

  • parameter copy

    if provided, will be used to copy the value when push_level is called.

Sourceval set : 'a t -> 'a -> unit

Set the reference's current content

Sourceval get : 'a t -> 'a

Get the reference's current content

Sourceval update : 'a t -> ('a -> 'a) -> unit

Update the reference's current content

Sourceval push_level : _ t -> unit

Push a backtracking level, copying the current value on top of some stack. The copy function will be used if it was provided in create.

Sourceval n_levels : _ t -> int

Number of saved values

Sourceval pop_levels : _ t -> int -> unit

Pop n levels, restoring to the value the reference was storing n calls to push_level earlier.

OCaml

Innovation. Community. Security.

On This Page
  1. Backtrackable ref