From 1afd156dbdf4a0845610bbfd2159e930944b1f57 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Thu, 7 Oct 2021 20:34:58 -0700 Subject: New command &stochsyn for stochastic synthesis. --- src/misc/vec/vecWec.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/misc/vec') diff --git a/src/misc/vec/vecWec.h b/src/misc/vec/vecWec.h index 2be08d04..a97f1ceb 100644 --- a/src/misc/vec/vecWec.h +++ b/src/misc/vec/vecWec.h @@ -303,6 +303,15 @@ static inline void Vec_WecPush( Vec_Wec_t * p, int Level, int 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 ) { if ( p->nSize == p->nCap ) -- cgit v1.2.3