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
a02be725
Commit
a02be725
authored
Apr 11, 2016
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates to Exorcism package
parent
03dc5136
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
19 deletions
+18
-19
src/base/exor/exor.c
+15
-16
src/base/exor/exor.h
+3
-3
No files found.
src/base/exor/exor.c
View file @
a02be725
...
...
@@ -83,7 +83,6 @@ int ReduceEsopCover()
// SIMPLIFICATION
////////////////////////////////////////////////////////////////////
long
clk1
=
clock
();
int
nIterWithoutImprovement
=
0
;
int
nIterCount
=
0
;
int
GainTotal
;
...
...
@@ -186,7 +185,7 @@ int ReduceEsopCover()
printf( "\nShallow simplification time is ";
cout << (float)(clk2 - clk1)/(float)(CLOCKS_PER_SEC) << " sec\n" );
printf( "Deep simplification time is ";
cout << (float)(
c
lock() - clk2)/(float)(CLOCKS_PER_SEC) << " sec\n" );
cout << (float)(
Abc_C
lock() - clk2)/(float)(CLOCKS_PER_SEC) << " sec\n" );
printf( "Cover after iterative simplification = " << s_nCubesInUse << endl;
printf( "Reduced by initial cube writing = " << g_CoverInfo.nCubesBefore-nCubesAfterWriting << endl;
printf( "Reduced by shallow simplification = " << nCubesAfterWriting-nCubesAfterShallow << endl;
...
...
@@ -212,7 +211,7 @@ int ReduceEsopCover()
// quite a good script
//////////////////////////////////////////////////////////////////
/*
long clk1 =
c
lock();
long clk1 =
Abc_C
lock();
int nIterWithoutImprovement = 0;
do
{
...
...
@@ -254,7 +253,7 @@ int ReduceEsopCover()
/*
// alu4 - 439
long clk1 =
c
lock();
long clk1 =
Abc_C
lock();
int nIterWithoutImprovement = 0;
do
{
...
...
@@ -296,7 +295,7 @@ int ReduceEsopCover()
/*
// alu4 - 412 cubes, 700 sec
long clk1 =
c
lock();
long clk1 =
Abc_C
lock();
int nIterWithoutImprovement = 0;
int nIterCount = 0;
do
...
...
@@ -351,7 +350,7 @@ int ReduceEsopCover()
// pretty good script
// alu4 = 424 in 250 sec
long clk1 =
c
lock();
long clk1 =
Abc_C
lock();
int nIterWithoutImprovement = 0;
int nIterCount = 0;
do
...
...
@@ -406,7 +405,7 @@ int ReduceEsopCover()
/*
alu4 = 435 70 secs
long clk1 =
c
lock();
long clk1 =
Abc_C
lock();
int nIterWithoutImprovement = 0;
int nIterCount = 0;
...
...
@@ -445,7 +444,7 @@ alu4 = 435 70 secs
/*
// the best previous
long clk1 =
c
lock();
long clk1 =
Abc_C
lock();
int nIterWithoutImprovement = 0;
int nIterCount = 0;
int GainTotal;
...
...
@@ -510,7 +509,7 @@ alu4 = 435 70 secs
/*
// the last tried
long clk1 =
c
lock();
long clk1 =
Abc_C
lock();
int nIterWithoutImprovement = 0;
int nIterCount = 0;
int GainTotal;
...
...
@@ -653,7 +652,7 @@ void AddCubesToStartingCover( Vec_Wec_t * vEsop )
***********************************************************************/
int
Exorcism
(
Vec_Wec_t
*
vEsop
,
int
nIns
,
int
nOuts
,
char
*
pFileNameOut
)
{
long
clk1
;
abctime
clk1
;
int
RemainderBits
;
int
TotalWords
;
int
MemTemp
,
MemTotal
;
...
...
@@ -678,10 +677,10 @@ int Exorcism( Vec_Wec_t * vEsop, int nIns, int nOuts, char * pFileNameOut )
g_CoverInfo
.
cIDs
=
1
;
// cubes
clk1
=
c
lock
();
clk1
=
Abc_C
lock
();
// g_CoverInfo.nCubesBefore = CountTermsInPseudoKroneckerCover( g_Func.dd, nOuts );
g_CoverInfo
.
nCubesBefore
=
Vec_WecSize
(
vEsop
);
g_CoverInfo
.
TimeStart
=
c
lock
()
-
clk1
;
g_CoverInfo
.
TimeStart
=
Abc_C
lock
()
-
clk1
;
if
(
g_CoverInfo
.
Verbosity
)
{
...
...
@@ -738,7 +737,7 @@ int Exorcism( Vec_Wec_t * vEsop, int nIns, int nOuts, char * pFileNameOut )
// STEP 3: write the cube cover into the allocated storage
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
clk1
=
c
lock
();
clk1
=
Abc_C
lock
();
if
(
g_CoverInfo
.
Verbosity
)
printf
(
"Generating the starting cover...
\n
"
);
AddCubesToStartingCover
(
vEsop
);
...
...
@@ -749,10 +748,10 @@ int Exorcism( Vec_Wec_t * vEsop, int nIns, int nOuts, char * pFileNameOut )
///////////////////////////////////////////////////////////////////////
if
(
g_CoverInfo
.
Verbosity
)
printf
(
"Performing minimization...
\n
"
);
clk1
=
c
lock
();
clk1
=
Abc_C
lock
();
ReduceEsopCover
();
g_CoverInfo
.
TimeMin
=
c
lock
()
-
clk1
;
// g_Func.TimeMin = (float)(
c
lock() - clk1)/(float)(CLOCKS_PER_SEC);
g_CoverInfo
.
TimeMin
=
Abc_C
lock
()
-
clk1
;
// g_Func.TimeMin = (float)(
Abc_C
lock() - clk1)/(float)(CLOCKS_PER_SEC);
if
(
g_CoverInfo
.
Verbosity
)
{
printf
(
"
\n
Minimization time is %.2f sec
\n
"
,
TICKS_TO_SECONDS
(
g_CoverInfo
.
TimeMin
)
);
...
...
src/base/exor/exor.h
View file @
a02be725
...
...
@@ -111,9 +111,9 @@ typedef struct cinfo_tag
int
Verbosity
;
// verbosity level
int
Quality
;
// quality
int
TimeRead
;
// reading time
int
TimeStart
;
// starting cover computation time
int
TimeMin
;
// pure minimization time
abctime
TimeRead
;
// reading time
abctime
TimeStart
;
// starting cover computation time
abctime
TimeMin
;
// pure minimization time
}
cinfo
;
// representation of one cube (24 bytes + bit info)
...
...
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