Commit 82eead08 by Alan Mishchenko

Experiments with memory abstraction.

parent f86cfc93
...@@ -2188,7 +2188,7 @@ Gia_Man_t * Wlc_NtkBitBlast( Wlc_Ntk_t * p, Wlc_BstPar_t * pParIn ) ...@@ -2188,7 +2188,7 @@ Gia_Man_t * Wlc_NtkBitBlast( Wlc_Ntk_t * p, Wlc_BstPar_t * pParIn )
for ( i = 0; i < Length; i++ ) for ( i = 0; i < Length; i++ )
{ {
char Buffer[100]; char Buffer[100];
sprintf( Buffer, "%c%s", p->pInits[i], Vec_PtrEntry(pNew->vNamesIn, NameStart+i) ); sprintf( Buffer, "%c%s", p->pInits[i], (char *)Vec_PtrEntry(pNew->vNamesIn, NameStart+i) );
assert( Vec_PtrEntry(pNew->vNamesIn, NullStart+i) == NULL ); assert( Vec_PtrEntry(pNew->vNamesIn, NullStart+i) == NULL );
Vec_PtrWriteEntry( pNew->vNamesIn, NullStart+i, Abc_UtilStrsav(Buffer) ); Vec_PtrWriteEntry( pNew->vNamesIn, NullStart+i, Abc_UtilStrsav(Buffer) );
} }
......
...@@ -1811,7 +1811,7 @@ usage: ...@@ -1811,7 +1811,7 @@ usage:
int Abc_CommandTest( Abc_Frame_t * pAbc, int argc, char ** argv ) int Abc_CommandTest( Abc_Frame_t * pAbc, int argc, char ** argv )
{ {
extern void Wlc_NtkSimulateTest( Wlc_Ntk_t * p ); extern void Wlc_NtkSimulateTest( Wlc_Ntk_t * p );
Wlc_Ntk_t * pNtk = Wlc_AbcGetNtk(pAbc); //Wlc_Ntk_t * pNtk = Wlc_AbcGetNtk(pAbc);
int c, fVerbose = 0; int c, fVerbose = 0;
Extra_UtilGetoptReset(); Extra_UtilGetoptReset();
while ( ( c = Extra_UtilGetopt( argc, argv, "vh" ) ) != EOF ) while ( ( c = Extra_UtilGetopt( argc, argv, "vh" ) ) != EOF )
......
...@@ -44,7 +44,7 @@ extern int Ndr_TypeWlc2Ndr( int Type ); ...@@ -44,7 +44,7 @@ extern int Ndr_TypeWlc2Ndr( int Type );
SeeAlso [] SeeAlso []
***********************************************************************/ ***********************************************************************/
char * Wln_ConstFromBits( unsigned * pBits, int nBits ) char * Wln_ConstFromBits( int * pBits, int nBits )
{ {
char * pBuffer = ABC_ALLOC( char, nBits+100 ); int i, Len; char * pBuffer = ABC_ALLOC( char, nBits+100 ); int i, Len;
sprintf( pBuffer, "%d\'b", nBits ); sprintf( pBuffer, "%d\'b", nBits );
......
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