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
25b1a0d8
Commit
25b1a0d8
authored
Dec 16, 2021
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing a rare problem with choice nodes.
parent
f1b64be8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
src/aig/gia/giaAig.c
+26
-0
No files found.
src/aig/gia/giaAig.c
View file @
25b1a0d8
...
...
@@ -611,6 +611,27 @@ Gia_Man_t * Gia_ManCompress2( Gia_Man_t * p, int fUpdateLevel, int fVerbose )
SeeAlso []
***********************************************************************/
int
Gia_ManTestChoices
(
Gia_Man_t
*
p
)
{
Gia_Obj_t
*
pObj
;
int
i
;
Vec_Int_t
*
vPointed
=
Vec_IntStart
(
Gia_ManObjNum
(
p
)
);
Gia_ManForEachAnd
(
p
,
pObj
,
i
)
if
(
Gia_ObjSibl
(
p
,
i
)
)
Vec_IntWriteEntry
(
vPointed
,
Gia_ObjSibl
(
p
,
i
),
1
);
Gia_ManCreateRefs
(
p
);
Gia_ManForEachAnd
(
p
,
pObj
,
i
)
if
(
Vec_IntEntry
(
vPointed
,
i
)
&&
Gia_ObjRefNumId
(
p
,
i
)
>
0
)
{
printf
(
"Gia_ManCheckChoices: Member %d"
,
i
);
printf
(
" of a choice node has %d fanouts.
\n
"
,
Gia_ObjRefNumId
(
p
,
i
)
);
ABC_FREE
(
p
->
pRefs
);
Vec_IntFree
(
vPointed
);
return
0
;
}
ABC_FREE
(
p
->
pRefs
);
Vec_IntFree
(
vPointed
);
return
1
;
}
Gia_Man_t
*
Gia_ManPerformDch
(
Gia_Man_t
*
p
,
void
*
pPars
)
{
int
fUseMapping
=
0
;
...
...
@@ -628,6 +649,11 @@ Gia_Man_t * Gia_ManPerformDch( Gia_Man_t * p, void * pPars )
// pGia = Gia_ManFromAig( pNew );
pGia
=
Gia_ManFromAigChoices
(
pNew
);
Aig_ManStop
(
pNew
);
if
(
!
p
->
pManTime
&&
!
Gia_ManTestChoices
(
pGia
)
)
{
Gia_ManStop
(
pGia
);
pGia
=
Gia_ManDup
(
p
);
}
Gia_ManTransferTiming
(
pGia
,
p
);
return
pGia
;
}
...
...
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