Skip to content

Commit 6f5c466

Browse files
committed
Fixing another non-reproducibility issue.
1 parent 6534475 commit 6f5c466

File tree

3 files changed

+12
-24
lines changed

3 files changed

+12
-24
lines changed

src/base/abc/abc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ extern ABC_DLL Vec_Int_t * Abc_NtkFanoutCounts( Abc_Ntk_t * pNtk );
10461046
extern ABC_DLL Vec_Ptr_t * Abc_NtkCollectObjects( Abc_Ntk_t * pNtk );
10471047
extern ABC_DLL Vec_Int_t * Abc_NtkGetCiIds( Abc_Ntk_t * pNtk );
10481048
extern ABC_DLL void Abc_NtkReassignIds( Abc_Ntk_t * pNtk );
1049-
extern ABC_DLL int Abc_ObjPointerCompare( void ** pp1, void ** pp2 );
1049+
// extern ABC_DLL int Abc_ObjPointerCompare( void ** pp1, void ** pp2 );
10501050
extern ABC_DLL void Abc_NtkTransferCopy( Abc_Ntk_t * pNtk );
10511051
extern ABC_DLL void Abc_NtkInvertConstraints( Abc_Ntk_t * pNtk );
10521052
extern ABC_DLL void Abc_NtkPrintCiLevels( Abc_Ntk_t * pNtk );

src/base/abc/abcUtil.c

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1925,25 +1925,16 @@ void Abc_NtkDetectMatching( Abc_Ntk_t * pNtk )
19251925
}
19261926

19271927

1928-
/**Function*************************************************************
1929-
1930-
Synopsis [Compares the pointers.]
1931-
1932-
Description []
1933-
1934-
SideEffects []
1935-
1936-
SeeAlso []
1937-
1938-
***********************************************************************/
1939-
int Abc_ObjPointerCompare( void ** pp1, void ** pp2 )
1940-
{
1941-
if ( *pp1 < *pp2 )
1942-
return -1;
1943-
if ( *pp1 > *pp2 )
1944-
return 1;
1945-
return 0;
1946-
}
1928+
/// The legacy `Abc_ObjPointerCompare()` comparator is unused; keep the code here
1929+
/// commented to document its previous behavior without exposing a prototype.
1930+
// int Abc_ObjPointerCompare( void ** pp1, void ** pp2 )
1931+
// {
1932+
// if ( *pp1 < *pp2 )
1933+
// return -1;
1934+
// if ( *pp1 > *pp2 )
1935+
// return 1;
1936+
// return 0;
1937+
// }
19471938

19481939
/**Function*************************************************************
19491940
@@ -3564,4 +3555,3 @@ void Abc_NtkATMap( int nXVars, int nYVars, int nAdder, char ** pGPCs0, int nGPCs
35643555

35653556

35663557
ABC_NAMESPACE_IMPL_END
3567-

src/base/abci/abcSweep.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -885,10 +885,9 @@ int Abc_NtkReplaceAutonomousLogic( Abc_Ntk_t * pNtk )
885885
continue;
886886
}
887887
assert( !Abc_ObjIsLatch(pFanin) );
888-
Vec_PtrPush( vNodes, pFanin );
888+
Vec_PtrPushUnique( vNodes, pFanin );
889889
}
890890
}
891-
Vec_PtrUniqify( vNodes, (int (*)(const void *, const void *))Abc_ObjPointerCompare );
892891
// replace these nodes by the PIs
893892
Vec_PtrForEachEntry( Abc_Obj_t *, vNodes, pNode, i )
894893
{
@@ -1027,4 +1026,3 @@ int Abc_NtkSweepBufsInvs( Abc_Ntk_t * pNtk, int fVerbose )
10271026

10281027

10291028
ABC_NAMESPACE_IMPL_END
1030-

0 commit comments

Comments
 (0)