Enum dimacs::Instance [] [src]

pub enum Instance {
    Cnf {
        num_vars: u64,
        clauses: Box<[Clause]>,
    },
    Sat {
        num_vars: u64,
        extensions: Extensions,
        formula: Formula,
    },
}

Represents a SAT instance for .cnf or .sat files.

Variants

A .cnf SAT instance with clauses.

Fields of Cnf

The number of unique variables used within this .cnf SAT instance.

The clauses within this .cnf SAT instance formula.

A .sat SAT instance with an underlying formula and extensions.

Fields of Sat

The number of unique variables used within this .sat SAT instance.

Extensions (e.g. XOR or EQ) being used in this SAT instance.

The underlying formula of this SAT instance.

Methods

impl Instance
[src]

Creates a new SAT instance for .cnf files with given clauses.

Creates a new SAT instance for .sat files with given extensions and an underlying formula.

Trait Implementations

impl Debug for Instance
[src]

Formats the value using the given formatter.

impl Clone for Instance
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Instance
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Instance
[src]