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

#include <SimpSolver.h>

+ Collaboration diagram for Minisat::SimpSolver::ElimLt:

Public Member Functions

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

Data Fields

const LMap< int > & n_occ
 

Detailed Description

Definition at line 111 of file SimpSolver.h.

Constructor & Destructor Documentation

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

Definition at line 113 of file SimpSolver.h.

113 : n_occ(no) {}
const LMap< int > & n_occ
Definition: SimpSolver.h:112

Member Function Documentation

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

Definition at line 117 of file SimpSolver.h.

117 { return (uint64_t)n_occ[mkLit(x)] * (uint64_t)n_occ[~mkLit(x)]; }
Lit mkLit(Var var, bool sign=false)
Definition: SolverTypes.h:63
const LMap< int > & n_occ
Definition: SimpSolver.h:112

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool Minisat::SimpSolver::ElimLt::operator() ( Var  x,
Var  y 
) const
inline

Definition at line 118 of file SimpSolver.h.

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

+ Here is the call graph for this function:

Field Documentation

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

Definition at line 112 of file SimpSolver.h.


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