cprover
literalt Class Reference

#include <literal.h>

Public Types

typedef unsigned var_not
 

Public Member Functions

 literalt ()
 
 literalt (var_not v, bool sign)
 
bool operator== (const literalt other) const
 
bool operator!= (const literalt other) const
 
bool operator< (const literalt other) const
 
literalt operator^ (const bool b) const
 
literalt operator! () const
 
literalt operator^= (const bool a)
 
var_not var_no () const
 
bool sign () const
 
void set (var_not _l)
 
void set (var_not v, bool sign)
 
var_not get () const
 
void invert ()
 
int dimacs () const
 
void from_dimacs (int d)
 
void clear ()
 
void swap (literalt &x)
 
void make_true ()
 
void make_false ()
 
bool is_true () const
 
bool is_false () const
 
bool is_constant () const
 

Static Public Member Functions

static var_not const_var_no ()
 
static var_not unused_var_no ()
 

Protected Attributes

var_not l
 

Detailed Description

Definition at line 24 of file literal.h.

Member Typedef Documentation

◆ var_not

typedef unsigned literalt::var_not

Definition at line 30 of file literal.h.

Constructor & Destructor Documentation

◆ literalt() [1/2]

literalt::literalt ( )
inline

Definition at line 33 of file literal.h.

◆ literalt() [2/2]

literalt::literalt ( var_not  v,
bool  sign 
)
inline

Definition at line 38 of file literal.h.

Member Function Documentation

◆ clear()

void literalt::clear ( void  )
inline

Definition at line 134 of file literal.h.

◆ const_var_no()

static var_not literalt::const_var_no ( )
inlinestatic

Definition at line 170 of file literal.h.

◆ dimacs()

int literalt::dimacs ( ) const
inline

Definition at line 116 of file literal.h.

◆ from_dimacs()

void literalt::from_dimacs ( int  d)
inline

Definition at line 126 of file literal.h.

◆ get()

var_not literalt::get ( ) const
inline

Definition at line 102 of file literal.h.

◆ invert()

void literalt::invert ( )
inline

Definition at line 107 of file literal.h.

◆ is_constant()

bool literalt::is_constant ( ) const
inline

Definition at line 165 of file literal.h.

◆ is_false()

bool literalt::is_false ( ) const
inline

Definition at line 160 of file literal.h.

◆ is_true()

bool literalt::is_true ( ) const
inline

Definition at line 155 of file literal.h.

◆ make_false()

void literalt::make_false ( )
inline

Definition at line 150 of file literal.h.

◆ make_true()

void literalt::make_true ( )
inline

Definition at line 145 of file literal.h.

◆ operator!()

literalt literalt::operator! ( ) const
inline

Definition at line 68 of file literal.h.

◆ operator!=()

bool literalt::operator!= ( const literalt  other) const
inline

Definition at line 48 of file literal.h.

◆ operator<()

bool literalt::operator< ( const literalt  other) const
inline

Definition at line 54 of file literal.h.

◆ operator==()

bool literalt::operator== ( const literalt  other) const
inline

Definition at line 43 of file literal.h.

◆ operator^()

literalt literalt::operator^ ( const bool  b) const
inline

Definition at line 60 of file literal.h.

◆ operator^=()

literalt literalt::operator^= ( const bool  a)
inline

Definition at line 75 of file literal.h.

◆ set() [1/2]

void literalt::set ( var_not  _l)
inline

Definition at line 92 of file literal.h.

◆ set() [2/2]

void literalt::set ( var_not  v,
bool  sign 
)
inline

Definition at line 97 of file literal.h.

◆ sign()

bool literalt::sign ( ) const
inline

Definition at line 87 of file literal.h.

◆ swap()

void literalt::swap ( literalt x)
inline

Definition at line 139 of file literal.h.

◆ unused_var_no()

static var_not literalt::unused_var_no ( )
inlinestatic

Definition at line 175 of file literal.h.

◆ var_no()

var_not literalt::var_no ( ) const
inline

Definition at line 82 of file literal.h.

Member Data Documentation

◆ l

var_not literalt::l
protected

Definition at line 181 of file literal.h.


The documentation for this class was generated from the following file: