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
3048be2c
Commit
3048be2c
authored
Feb 28, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to LUT mappers.
parent
8f485489
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
src/map/if/ifDsd.c
+3
-6
No files found.
src/map/if/ifDsd.c
View file @
3048be2c
...
...
@@ -342,8 +342,7 @@ void If_DsdManPrintOne( FILE * pFile, If_DsdMan_t * p, int iObjId, unsigned char
void
If_DsdManPrint
(
If_DsdMan_t
*
p
,
char
*
pFileName
,
int
fVerbose
)
{
If_DsdObj_t
*
pObj
;
int
DsdMax
=
0
,
CountUsed
=
0
,
CountNonDsdStr
=
0
;
int
i
,
clk
=
Abc_Clock
();
int
i
,
DsdMax
=
0
,
CountUsed
=
0
,
CountNonDsdStr
=
0
;
FILE
*
pFile
;
pFile
=
pFileName
?
fopen
(
pFileName
,
"wb"
)
:
stdout
;
if
(
pFileName
&&
pFile
==
NULL
)
...
...
@@ -367,10 +366,8 @@ void If_DsdManPrint( If_DsdMan_t * p, char * pFileName, int fVerbose )
fprintf
(
pFile
,
"Memory used for objects = %8.2f MB.
\n
"
,
1
.
0
*
Mem_FlexReadMemUsage
(
p
->
pMem
)
/
(
1
<<
20
)
);
fprintf
(
pFile
,
"Memory used for hash table = %8.2f MB.
\n
"
,
1
.
0
*
sizeof
(
int
)
*
p
->
nBins
/
(
1
<<
20
)
);
fprintf
(
pFile
,
"Memory used for array = %8.2f MB.
\n
"
,
1
.
0
*
sizeof
(
void
*
)
*
Vec_PtrCap
(
p
->
vObjs
)
/
(
1
<<
20
)
);
// Abc_PrintTime( 1, "Time", Abc_Clock() - clk );
// If_DsdManHashProfile( p );
// If_DsdManDump( p );
// return;
if
(
!
fVerbose
)
return
;
If_DsdVecForEachObj
(
p
->
vObjs
,
pObj
,
i
)
...
...
@@ -628,7 +625,7 @@ If_DsdMan_t * If_DsdManLoad( char * pFileName )
pObj
=
(
If_DsdObj_t
*
)
Mem_FlexEntryFetch
(
p
->
pMem
,
sizeof
(
word
)
*
Num
);
fread
(
pObj
,
sizeof
(
word
)
*
Num
,
1
,
pFile
);
Vec_PtrWriteEntry
(
p
->
vObjs
,
i
,
pObj
);
pSpot
=
If_DsdObjHashLookup
(
p
,
pObj
->
Type
,
pObj
->
pFans
,
pObj
->
nFans
,
If_DsdObjTruthId
(
p
,
pObj
)
);
pSpot
=
If_DsdObjHashLookup
(
p
,
pObj
->
Type
,
(
int
*
)
pObj
->
pFans
,
pObj
->
nFans
,
If_DsdObjTruthId
(
p
,
pObj
)
);
assert
(
*
pSpot
==
0
);
*
pSpot
=
pObj
->
Id
;
}
...
...
@@ -856,7 +853,7 @@ int If_DsdManComputeFirstArray( If_DsdMan_t * p, int * pLits, int nLits, int * p
}
int
If_DsdManComputeFirst
(
If_DsdMan_t
*
p
,
If_DsdObj_t
*
pObj
,
int
*
pFirsts
)
{
return
If_DsdManComputeFirstArray
(
p
,
pObj
->
pFans
,
pObj
->
nFans
,
pFirsts
);
return
If_DsdManComputeFirstArray
(
p
,
(
int
*
)
pObj
->
pFans
,
pObj
->
nFans
,
pFirsts
);
}
int
If_DsdManOperation
(
If_DsdMan_t
*
p
,
int
Type
,
int
*
pLits
,
int
nLits
,
unsigned
char
*
pPerm
,
word
*
pTruth
)
{
...
...
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