summaryrefslogtreecommitdiffstats
path: root/src/proof/ssw/sswUnique.c
diff options
context:
space:
mode:
authorNiklas Een <niklas@een.se>2012-10-29 15:35:02 -0700
committerNiklas Een <niklas@een.se>2012-10-29 15:35:02 -0700
commitc3168ba661a06022654aae11693f08368ec15acc (patch)
tree36d4240080f59bf8b081a7ef9d8181794a1dc0a6 /src/proof/ssw/sswUnique.c
parent1e8565eee3ec0c2e7d4a6dea448d019ba6854508 (diff)
downloadabc-c3168ba661a06022654aae11693f08368ec15acc.tar.gz
abc-c3168ba661a06022654aae11693f08368ec15acc.tar.bz2
abc-c3168ba661a06022654aae11693f08368ec15acc.zip
Replaced printfs with Abc_Print
Diffstat (limited to 'src/proof/ssw/sswUnique.c')
-rw-r--r--src/proof/ssw/sswUnique.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/proof/ssw/sswUnique.c b/src/proof/ssw/sswUnique.c
index 1bd44a03..9fad9060 100644
--- a/src/proof/ssw/sswUnique.c
+++ b/src/proof/ssw/sswUnique.c
@@ -61,7 +61,7 @@ void Ssw_UniqueRegisterPairInfo( Ssw_Man_t * p )
// Vec_IntPush( p->vDiffPairs, 1 );
else if ( Aig_ObjPhaseReal(pObj0) != Aig_ObjPhaseReal(pObj1) )
Vec_IntPush( p->vDiffPairs, 1 );
- else
+ else
{
RetValue = Ssw_NodesAreEquiv( p, Aig_Regular(pObj0), Aig_Regular(pObj1) );
Vec_IntPush( p->vDiffPairs, RetValue!=1 );
@@ -72,7 +72,7 @@ void Ssw_UniqueRegisterPairInfo( Ssw_Man_t * p )
Counter = 0;
Vec_IntForEachEntry( p->vDiffPairs, RetValue, i )
Counter += RetValue;
-// printf( "The number of different register pairs = %d.\n", Counter );
+// Abc_Print( 1, "The number of different register pairs = %d.\n", Counter );
}
@@ -96,7 +96,7 @@ int Ssw_ManUniqueOne( Ssw_Man_t * p, Aig_Obj_t * pRepr, Aig_Obj_t * pObj, int fV
assert( p->vDiffPairs && Vec_IntSize(p->vDiffPairs) == Saig_ManRegNum(p->pAig) );
// compute the first support in terms of LOs
- ppObjs[0] = pRepr;
+ ppObjs[0] = pRepr;
ppObjs[1] = pObj;
Aig_SupportNodes( p->pAig, ppObjs, 2, p->vCommon );
// keep only LOs
@@ -116,7 +116,7 @@ int Ssw_ManUniqueOne( Ssw_Man_t * p, Aig_Obj_t * pRepr, Aig_Obj_t * pObj, int fV
Vec_PtrShrink( p->vCommon, k );
if ( fVerbose )
- printf( "Node = %5d : Supp = %3d. Regs = %3d. Feasible = %s. ",
+ Abc_Print( 1, "Node = %5d : Supp = %3d. Regs = %3d. Feasible = %s. ",
Aig_ObjId(pObj), RetValue, Vec_PtrSize(p->vCommon),
fFeasible? "yes": "no " );
@@ -129,10 +129,10 @@ int Ssw_ManUniqueOne( Ssw_Man_t * p, Aig_Obj_t * pRepr, Aig_Obj_t * pObj, int fV
if ( Value0 != Value1 )
RetValue = 0;
if ( fVerbose )
- printf( "%d", Value0 ^ Value1 );
+ Abc_Print( 1, "%d", Value0 ^ Value1 );
}
if ( fVerbose )
- printf( "\n" );
+ Abc_Print( 1, "\n" );
return RetValue && fFeasible;
}
@@ -166,7 +166,7 @@ int Ssw_ManUniqueAddConstraint( Ssw_Man_t * p, Vec_Ptr_t * vCommon, int f1, int
}
if ( Aig_ObjIsConst1(Aig_Regular(pTotal)) )
{
-// printf( "Skipped\n" );
+// Abc_Print( 1, "Skipped\n" );
return 0;
}
// create CNF
@@ -194,4 +194,3 @@ int Ssw_ManUniqueAddConstraint( Ssw_Man_t * p, Vec_Ptr_t * vCommon, int f1, int
ABC_NAMESPACE_IMPL_END
-