summaryrefslogtreecommitdiffstats
path: root/src/proof
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2013-10-17 18:04:07 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2013-10-17 18:04:07 -0700
commitcb4631e64e9a95cafc4ef31a60f006c7f067cf91 (patch)
treeea7a351e796da886f3f91955207972cc2e166be0 /src/proof
parent9f2c4e998898a8485cd4afb89ffc268752b1b2e1 (diff)
downloadabc-cb4631e64e9a95cafc4ef31a60f006c7f067cf91.tar.gz
abc-cb4631e64e9a95cafc4ef31a60f006c7f067cf91.tar.bz2
abc-cb4631e64e9a95cafc4ef31a60f006c7f067cf91.zip
Compiler warnings.
Diffstat (limited to 'src/proof')
-rw-r--r--src/proof/llb/llb1Reach.c2
-rw-r--r--src/proof/llb/llb2Flow.c5
-rw-r--r--src/proof/llb/llb2Image.c3
3 files changed, 6 insertions, 4 deletions
diff --git a/src/proof/llb/llb1Reach.c b/src/proof/llb/llb1Reach.c
index 2acd3020..fae7bee2 100644
--- a/src/proof/llb/llb1Reach.c
+++ b/src/proof/llb/llb1Reach.c
@@ -46,7 +46,7 @@ DdNode * Llb_ManConstructOutBdd( Aig_Man_t * pAig, Aig_Obj_t * pNode, DdManager
{
DdNode * bBdd0, * bBdd1, * bFunc;
Vec_Ptr_t * vNodes;
- Aig_Obj_t * pObj;
+ Aig_Obj_t * pObj = NULL;
int i;
abctime TimeStop;
if ( Aig_ObjFanin0(pNode) == Aig_ManConst1(pAig) )
diff --git a/src/proof/llb/llb2Flow.c b/src/proof/llb/llb2Flow.c
index 9fa40b9e..64db32b3 100644
--- a/src/proof/llb/llb2Flow.c
+++ b/src/proof/llb/llb2Flow.c
@@ -32,7 +32,7 @@ static inline Aig_Obj_t * Llb_ObjGetPath( Aig_Obj_t * pObj )
static inline Aig_Obj_t * Llb_ObjGetFanoutPath( Aig_Man_t * p, Aig_Obj_t * pObj )
{
Aig_Obj_t * pFanout;
- int i, iFanout;
+ int i, iFanout = -1;
assert( Llb_ObjGetPath(pObj) );
Aig_ObjForEachFanout( p, pObj, pFanout, iFanout, i )
if ( Llb_ObjGetPath(pFanout) == pObj )
@@ -191,7 +191,8 @@ Vec_Ptr_t * Llb_ManCutMap( Aig_Man_t * p, Vec_Ptr_t * vResult, Vec_Ptr_t * vSupp
}
printf( "\n" );
- if ( fShowMatrix )
+ if ( !fShowMatrix )
+ return vMaps;
Aig_ManForEachObj( p, pObj, i )
{
if ( !Aig_ObjIsCi(pObj) && !Aig_ObjIsNode(pObj) )
diff --git a/src/proof/llb/llb2Image.c b/src/proof/llb/llb2Image.c
index 36ff2df5..e245ba36 100644
--- a/src/proof/llb/llb2Image.c
+++ b/src/proof/llb/llb2Image.c
@@ -81,7 +81,8 @@ Vec_Ptr_t * Llb_ImgSupports( Aig_Man_t * p, Vec_Ptr_t * vDdMans, Vec_Int_t * vSt
// print supports
assert( nSize == Aig_ManObjNumMax(p) );
- if ( fVerbose )
+ if ( !fVerbose )
+ return vSupps;
Aig_ManForEachObj( p, pObj, i )
{
int k, Counter = 0;