abc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Minisat::SimpSolver::ElimLt Struct Reference

#include <SimpSolver.h>

Public Member Functions

 ElimLt (const vec< int > &no)
 
uint64_t cost (Var x) const
 
bool operator() (Var x, Var y) const
 

Data Fields

const vec< int > & n_occ
 

Detailed Description

Definition at line 103 of file SimpSolver.h.

Constructor & Destructor Documentation

Minisat::SimpSolver::ElimLt::ElimLt ( const vec< int > &  no)
inlineexplicit

Definition at line 105 of file SimpSolver.h.

105 : n_occ(no) {}
const vec< int > & n_occ
Definition: SimpSolver.h:104

Member Function Documentation

uint64_t Minisat::SimpSolver::ElimLt::cost ( Var  x) const
inline

Definition at line 109 of file SimpSolver.h.

109 { return (uint64_t)n_occ[toInt(mkLit(x))] * (uint64_t)n_occ[toInt(~mkLit(x))]; }
Lit mkLit(Var var, bool sign)
Definition: SolverTypes.h:58
const vec< int > & n_occ
Definition: SimpSolver.h:104
int toInt(Var v)
Definition: SolverTypes.h:65
bool Minisat::SimpSolver::ElimLt::operator() ( Var  x,
Var  y 
) const
inline

Definition at line 110 of file SimpSolver.h.

110 { return cost(x) < cost(y); }
uint64_t cost(Var x) const
Definition: SimpSolver.h:109

Field Documentation

const vec<int>& Minisat::SimpSolver::ElimLt::n_occ

Definition at line 104 of file SimpSolver.h.


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