Commit 1afd156d by Alan Mishchenko

New command &stochsyn for stochastic synthesis.

parent e56a7676
...@@ -303,6 +303,15 @@ static inline void Vec_WecPush( Vec_Wec_t * p, int Level, int Entry ) ...@@ -303,6 +303,15 @@ static inline void Vec_WecPush( Vec_Wec_t * p, int Level, int Entry )
} }
Vec_IntPush( Vec_WecEntry(p, Level), Entry ); Vec_IntPush( Vec_WecEntry(p, Level), Entry );
} }
static inline void Vec_WecPushTwo( Vec_Wec_t * p, int Level, int Entry1, int Entry2 )
{
if ( p->nSize < Level + 1 )
{
Vec_WecGrow( p, Abc_MaxInt(2*p->nSize, Level + 1) );
p->nSize = Level + 1;
}
Vec_IntPushTwo( Vec_WecEntry(p, Level), Entry1, Entry2 );
}
static inline Vec_Int_t * Vec_WecPushLevel( Vec_Wec_t * p ) static inline Vec_Int_t * Vec_WecPushLevel( Vec_Wec_t * p )
{ {
if ( p->nSize == p->nCap ) if ( p->nSize == p->nCap )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment