diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2011-12-23 10:23:45 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2011-12-23 10:23:45 -0800 |
commit | 7facbc3cc932bf72581d164a0d2d5ea60ab9aa2d (patch) | |
tree | 05366f3357f42c1c8604d2e700466c3348eabc37 /src/sat/bsat/vecRec.h | |
parent | 94174d0f041819a273208c5b5bbe3aee7a16e698 (diff) | |
download | abc-7facbc3cc932bf72581d164a0d2d5ea60ab9aa2d.tar.gz abc-7facbc3cc932bf72581d164a0d2d5ea60ab9aa2d.tar.bz2 abc-7facbc3cc932bf72581d164a0d2d5ea60ab9aa2d.zip |
Transforming the solver to use different clause representation.
Diffstat (limited to 'src/sat/bsat/vecRec.h')
-rw-r--r-- | src/sat/bsat/vecRec.h | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/src/sat/bsat/vecRec.h b/src/sat/bsat/vecRec.h index fd0cc242..87a168b0 100644 --- a/src/sat/bsat/vecRec.h +++ b/src/sat/bsat/vecRec.h @@ -128,9 +128,9 @@ static inline void Vec_RecAlloc_( Vec_Rec_t * p ) SeeAlso [] ***********************************************************************/ -static inline int Vec_RecEntryNum( Vec_Rec_t * p ) +static inline int Vec_RecChunk( int i ) { - return p->nEntries; + return i>>16; } /**Function************************************************************* @@ -144,9 +144,9 @@ static inline int Vec_RecEntryNum( Vec_Rec_t * p ) SeeAlso [] ***********************************************************************/ -static inline int Vec_RecChunk( int i ) +static inline int Vec_RecShift( int i ) { - return i>>16; + return i&0xFFFF; } /**Function************************************************************* @@ -160,9 +160,25 @@ static inline int Vec_RecChunk( int i ) SeeAlso [] ***********************************************************************/ -static inline int Vec_RecShift( int i ) +static inline int Vec_RecSize( Vec_Rec_t * p ) { - return i&0xFFFF; + return Vec_RecChunk(p->hCurrent) * (1 << p->LogSize); +} + +/**Function************************************************************* + + Synopsis [] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ +static inline int Vec_RecEntryNum( Vec_Rec_t * p ) +{ + return p->nEntries; } /**Function************************************************************* |