Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
1bb91816
Commit
1bb91816
authored
Jul 28, 2016
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Serious bug fix in 'scorr -F <num>' with <num> > 1.
parent
9895f30d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
8 deletions
+38
-8
src/aig/aig/aigDfs.c
+14
-0
src/aig/aig/aigUtil.c
+21
-8
src/proof/ssw/sswSweep.c
+3
-0
No files found.
src/aig/aig/aigDfs.c
View file @
1bb91816
...
@@ -199,6 +199,20 @@ void Aig_ManDfsAll_rec( Aig_Man_t * p, Aig_Obj_t * pObj, Vec_Ptr_t * vNodes )
...
@@ -199,6 +199,20 @@ void Aig_ManDfsAll_rec( Aig_Man_t * p, Aig_Obj_t * pObj, Vec_Ptr_t * vNodes )
Aig_ManDfsAll_rec
(
p
,
Aig_ObjFanin1
(
pObj
),
vNodes
);
Aig_ManDfsAll_rec
(
p
,
Aig_ObjFanin1
(
pObj
),
vNodes
);
Vec_PtrPush
(
vNodes
,
pObj
);
Vec_PtrPush
(
vNodes
,
pObj
);
}
}
Vec_Ptr_t
*
Aig_ManDfsArray
(
Aig_Man_t
*
p
,
Aig_Obj_t
**
pNodes
,
int
nNodes
)
{
Vec_Ptr_t
*
vNodes
;
int
i
;
Aig_ManIncrementTravId
(
p
);
vNodes
=
Vec_PtrAlloc
(
Aig_ManObjNumMax
(
p
)
);
// add constant
Aig_ObjSetTravIdCurrent
(
p
,
Aig_ManConst1
(
p
)
);
Vec_PtrPush
(
vNodes
,
Aig_ManConst1
(
p
)
);
// collect nodes reachable in the DFS order
for
(
i
=
0
;
i
<
nNodes
;
i
++
)
Aig_ManDfsAll_rec
(
p
,
pNodes
[
i
],
vNodes
);
return
vNodes
;
}
/**Function*************************************************************
/**Function*************************************************************
...
...
src/aig/aig/aigUtil.c
View file @
1bb91816
...
@@ -653,23 +653,36 @@ void Aig_ObjPrintVerilog( FILE * pFile, Aig_Obj_t * pObj, Vec_Vec_t * vLevels, i
...
@@ -653,23 +653,36 @@ void Aig_ObjPrintVerilog( FILE * pFile, Aig_Obj_t * pObj, Vec_Vec_t * vLevels, i
void
Aig_ObjPrintVerbose
(
Aig_Obj_t
*
pObj
,
int
fHaig
)
void
Aig_ObjPrintVerbose
(
Aig_Obj_t
*
pObj
,
int
fHaig
)
{
{
assert
(
!
Aig_IsComplement
(
pObj
)
);
assert
(
!
Aig_IsComplement
(
pObj
)
);
printf
(
"Node %
p : "
,
pObj
);
printf
(
"Node %
d : "
,
pObj
->
Id
);
if
(
Aig_ObjIsConst1
(
pObj
)
)
if
(
Aig_ObjIsConst1
(
pObj
)
)
printf
(
"constant 1"
);
printf
(
"constant 1"
);
else
if
(
Aig_ObjIsCi
(
pObj
)
)
else
if
(
Aig_ObjIsCi
(
pObj
)
)
printf
(
"
P
I"
);
printf
(
"
C
I"
);
else
if
(
Aig_ObjIsCo
(
pObj
)
)
else
if
(
Aig_ObjIsCo
(
pObj
)
)
{
{
printf
(
"
PO
"
);
printf
(
"
CO(
"
);
printf
(
"%
p%s
"
,
printf
(
"%
d%s )
"
,
Aig_ObjFanin0
(
pObj
),
(
Aig_ObjFaninC0
(
pObj
)
?
"
\'
"
:
" "
)
);
Aig_ObjFanin0
(
pObj
)
->
Id
,
(
Aig_ObjFaninC0
(
pObj
)
?
"
\'
"
:
" "
)
);
}
}
else
else
printf
(
"AND( %
p%s, %p
%s )"
,
printf
(
"AND( %
d%s, %d
%s )"
,
Aig_ObjFanin0
(
pObj
),
(
Aig_ObjFaninC0
(
pObj
)
?
"
\'
"
:
" "
),
Aig_ObjFanin0
(
pObj
)
->
Id
,
(
Aig_ObjFaninC0
(
pObj
)
?
"
\'
"
:
" "
),
Aig_ObjFanin1
(
pObj
),
(
Aig_ObjFaninC1
(
pObj
)
?
"
\'
"
:
" "
)
);
Aig_ObjFanin1
(
pObj
)
->
Id
,
(
Aig_ObjFaninC1
(
pObj
)
?
"
\'
"
:
" "
)
);
printf
(
" (refs = %3d)"
,
Aig_ObjRefs
(
pObj
)
);
printf
(
" (refs = %3d)"
,
Aig_ObjRefs
(
pObj
)
);
}
}
void
Aig_ObjPrintVerboseCone
(
Aig_Man_t
*
p
,
Aig_Obj_t
*
pRoot
,
int
fHaig
)
{
extern
Vec_Ptr_t
*
Aig_ManDfsArray
(
Aig_Man_t
*
p
,
Aig_Obj_t
**
pNodes
,
int
nNodes
);
Vec_Ptr_t
*
vNodes
;
Aig_Obj_t
*
pObj
;
int
i
;
vNodes
=
Aig_ManDfsArray
(
p
,
&
pRoot
,
1
);
Vec_PtrForEachEntry
(
Aig_Obj_t
*
,
vNodes
,
pObj
,
i
)
Aig_ObjPrintVerbose
(
pObj
,
fHaig
),
printf
(
"
\n
"
);
printf
(
"
\n
"
);
Vec_PtrFree
(
vNodes
);
}
/**Function*************************************************************
/**Function*************************************************************
...
...
src/proof/ssw/sswSweep.c
View file @
1bb91816
...
@@ -287,6 +287,9 @@ clk = Abc_Clock();
...
@@ -287,6 +287,9 @@ clk = Abc_Clock();
Ssw_ObjSetFrame
(
p
,
Aig_ManConst1
(
p
->
pAig
),
f
,
Aig_ManConst1
(
p
->
pFrames
)
);
Ssw_ObjSetFrame
(
p
,
Aig_ManConst1
(
p
->
pAig
),
f
,
Aig_ManConst1
(
p
->
pFrames
)
);
Saig_ManForEachPi
(
p
->
pAig
,
pObj
,
i
)
Saig_ManForEachPi
(
p
->
pAig
,
pObj
,
i
)
Ssw_ObjSetFrame
(
p
,
pObj
,
f
,
Aig_ObjCreateCi
(
p
->
pFrames
)
);
Ssw_ObjSetFrame
(
p
,
pObj
,
f
,
Aig_ObjCreateCi
(
p
->
pFrames
)
);
// sweep flops
Saig_ManForEachLo
(
p
->
pAig
,
pObj
,
i
)
p
->
fRefined
|=
Ssw_ManSweepNode
(
p
,
pObj
,
f
,
1
,
NULL
);
// sweep internal nodes
// sweep internal nodes
Aig_ManForEachNode
(
p
->
pAig
,
pObj
,
i
)
Aig_ManForEachNode
(
p
->
pAig
,
pObj
,
i
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment