ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
CaDiCaL::score_smaller Struct Reference

#include <score.hpp>

Collaboration diagram for CaDiCaL::score_smaller:

Public Member Functions

 score_smaller (Internal *i)
 
bool operator() (unsigned a, unsigned b)
 

Public Attributes

Internalinternal
 

Detailed Description

Definition at line 10 of file score.hpp.

Constructor & Destructor Documentation

◆ score_smaller()

CaDiCaL::score_smaller::score_smaller ( Internal * i)
inline

Definition at line 12 of file score.hpp.

12: internal (i) {}
Internal * internal
Definition score.hpp:11
Here is the caller graph for this function:

Member Function Documentation

◆ operator()()

void bool CaDiCaL::score_smaller::operator() ( unsigned a,
unsigned b )
inline

Definition at line 1745 of file internal.hpp.

1745 {
1746
1747 // Avoid computing twice 'abs' in 'score ()'.
1748 //
1749 CADICAL_assert (1 <= a);
1750 CADICAL_assert (a <= (unsigned) internal->max_var);
1751 CADICAL_assert (1 <= b);
1752 CADICAL_assert (b <= (unsigned) internal->max_var);
1753 double s = internal->stab[a];
1754 double t = internal->stab[b];
1755
1756 if (s < t)
1757 return true;
1758 if (s > t)
1759 return false;
1760
1761 return a > b;
1762}
#define CADICAL_assert(ignore)
Definition global.h:14
Here is the call graph for this function:

Member Data Documentation

◆ internal

Internal* CaDiCaL::score_smaller::internal

Definition at line 11 of file score.hpp.


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