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
e2af27f1
Commit
e2af27f1
authored
Nov 01, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sweeper internal dumping.
parent
74893bf3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
src/aig/gia/gia.h
+1
-0
src/aig/gia/giaSweeper.c
+32
-0
No files found.
src/aig/gia/gia.h
View file @
e2af27f1
...
...
@@ -1192,6 +1192,7 @@ extern Vec_Int_t * Gia_SweeperCondVector( Gia_Man_t * p );
extern
int
Gia_SweeperCondCheckUnsat
(
Gia_Man_t
*
p
);
extern
int
Gia_SweeperCheckEquiv
(
Gia_Man_t
*
p
,
int
ProbeId1
,
int
ProbeId2
);
extern
Gia_Man_t
*
Gia_SweeperExtractUserLogic
(
Gia_Man_t
*
p
,
Vec_Int_t
*
vProbeIds
,
Vec_Ptr_t
*
vInNames
,
Vec_Ptr_t
*
vOutNames
);
extern
void
Gia_SweeperLogicDump
(
Gia_Man_t
*
p
,
Vec_Int_t
*
vProbeIds
,
int
fDumpConds
,
char
*
pFileName
);
extern
Gia_Man_t
*
Gia_SweeperCleanup
(
Gia_Man_t
*
p
,
char
*
pCommLime
);
extern
Vec_Int_t
*
Gia_SweeperGraft
(
Gia_Man_t
*
pDst
,
Vec_Int_t
*
vProbes
,
Gia_Man_t
*
pSrc
);
extern
int
Gia_SweeperFraig
(
Gia_Man_t
*
p
,
Vec_Int_t
*
vProbeIds
,
char
*
pCommLime
,
int
nWords
,
int
nConfs
,
int
fVerify
,
int
fVerbose
);
...
...
src/aig/gia/giaSweeper.c
View file @
e2af27f1
...
...
@@ -416,6 +416,38 @@ Gia_Man_t * Gia_SweeperExtractUserLogic( Gia_Man_t * p, Vec_Int_t * vProbeIds, V
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void
Gia_SweeperLogicDump
(
Gia_Man_t
*
p
,
Vec_Int_t
*
vProbeIds
,
int
fDumpConds
,
char
*
pFileName
)
{
Gia_Man_t
*
pGiaOuts
;
pGiaOuts
=
Gia_SweeperExtractUserLogic
(
p
,
vProbeIds
,
NULL
,
NULL
);
if
(
fDumpConds
)
{
Vec_Int_t
*
vProbeConds
=
Gia_SweeperCondVector
(
p
);
Gia_Man_t
*
pGiaCond
=
Gia_SweeperExtractUserLogic
(
p
,
vProbeConds
,
NULL
,
NULL
);
Gia_ManDupAppendShare
(
pGiaOuts
,
pGiaCond
);
pGiaOuts
->
nConstrs
=
Gia_ManPoNum
(
pGiaCond
);
Gia_ManHashStop
(
pGiaOuts
);
Gia_ManStop
(
pGiaCond
);
}
Gia_AigerWrite
(
pGiaOuts
,
pFileName
,
0
,
0
);
Gia_ManStop
(
pGiaOuts
);
printf
(
"Dumped logic cones"
);
if
(
fDumpConds
)
printf
(
" and conditions"
);
printf
(
" into file
\"
%s
\"
.
\n
"
,
pFileName
);
}
/**Function*************************************************************
Synopsis [Sweeper cleanup.]
Description [Returns new GIA with sweeper defined, which is the same
...
...
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