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
1bef28e6
Commit
1bef28e6
authored
Nov 10, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved DSD.
parent
ee789ba9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
7 deletions
+27
-7
src/map/if/ifMan.c
+2
-1
src/map/if/ifTruth.c
+18
-0
src/opt/dau/dauDsd.c
+1
-0
src/opt/dau/dauMerge.c
+6
-6
No files found.
src/map/if/ifMan.c
View file @
1bef28e6
...
...
@@ -32,7 +32,7 @@ static If_Obj_t * If_ManSetupObj( If_Man_t * p );
static
void
If_ManCutSetRecycle
(
If_Man_t
*
p
,
If_Set_t
*
pSet
)
{
pSet
->
pNext
=
p
->
pFreeList
;
p
->
pFreeList
=
pSet
;
}
static
If_Set_t
*
If_ManCutSetFetch
(
If_Man_t
*
p
)
{
If_Set_t
*
pTemp
=
p
->
pFreeList
;
p
->
pFreeList
=
p
->
pFreeList
->
pNext
;
return
pTemp
;
}
extern
clock_t
s_TimeComp
[
3
];
extern
clock_t
s_TimeComp
[
4
];
////////////////////////////////////////////////////////////////////////
/// FUNCTION DEFINITIONS ///
...
...
@@ -158,6 +158,7 @@ void If_ManStop( If_Man_t * p )
Abc_PrintTime
(
1
,
"Time0"
,
s_TimeComp
[
0
]
);
Abc_PrintTime
(
1
,
"Time1"
,
s_TimeComp
[
1
]
);
Abc_PrintTime
(
1
,
"Time2"
,
s_TimeComp
[
2
]
);
Abc_PrintTime
(
1
,
"Time3"
,
s_TimeComp
[
3
]
);
// Abc_NamPrint( p->pNamDsd );
Abc_NamStop
(
p
->
pNamDsd
);
}
...
...
src/map/if/ifTruth.c
View file @
1bef28e6
...
...
@@ -519,6 +519,15 @@ static inline int If_CutComputeTruth6( If_Man_t * p, If_Cut_t * pCut, If_Cut_t *
t0
=
If_TruthStretch6
(
t0
,
pCut
,
pCut0
);
t1
=
If_TruthStretch6
(
t1
,
pCut
,
pCut1
);
*
If_CutTruthW
(
pCut
)
=
t0
&
t1
;
if
(
0
)
{
word
pCopy
[
1024
];
char
pCanonPerm
[
16
];
memcpy
(
pCopy
,
If_CutTruthW
(
pCut
),
sizeof
(
word
)
*
1
);
Abc_TtCanonicize
(
pCopy
,
pCut
->
nLimit
,
pCanonPerm
);
}
if
(
p
->
pPars
->
fCutMin
)
return
If_CutTruthMinimize6
(
p
,
pCut
);
return
0
;
...
...
@@ -628,6 +637,15 @@ inline int If_CutComputeTruth2( If_Man_t * p, If_Cut_t * pCut, If_Cut_t * pCut0,
If_TruthStretch2
(
(
word
*
)
p
->
puTemp
[
0
],
pCut
,
pCut0
);
If_TruthStretch2
(
(
word
*
)
p
->
puTemp
[
1
],
pCut
,
pCut1
);
Abc_TtAnd
(
If_CutTruthW
(
pCut
),
(
word
*
)
p
->
puTemp
[
0
],
(
word
*
)
p
->
puTemp
[
1
],
nWords
,
0
);
if
(
0
)
{
word
pCopy
[
1024
];
char
pCanonPerm
[
16
];
memcpy
(
pCopy
,
If_CutTruthW
(
pCut
),
sizeof
(
word
)
*
nWords
);
Abc_TtCanonicize
(
pCopy
,
pCut
->
nLimit
,
pCanonPerm
);
}
if
(
p
->
pPars
->
fCutMin
)
return
If_CutTruthMinimize2
(
p
,
pCut
);
return
0
;
...
...
src/opt/dau/dauDsd.c
View file @
1bef28e6
...
...
@@ -1498,6 +1498,7 @@ void Dau_DsdTest44()
// Dau_DsdNormalize( pStr2 );
// Dau_DsdExtract( pStr, 2, 0 );
t
=
0
;
nNonDec
=
0
;
}
void
Dau_DsdTest33
()
...
...
src/opt/dau/dauMerge.c
View file @
1bef28e6
...
...
@@ -586,7 +586,7 @@ void Dau_DsdRemoveBraces( char * pDsd, int * pMatches )
}
clock_t
s_TimeComp
[
3
]
=
{
0
};
clock_t
s_TimeComp
[
4
]
=
{
0
};
/**Function*************************************************************
...
...
@@ -602,7 +602,7 @@ clock_t s_TimeComp[3] = {0};
char
*
Dau_DsdMerge
(
char
*
pDsd0i
,
int
*
pPerm0
,
char
*
pDsd1i
,
int
*
pPerm1
,
int
fCompl0
,
int
fCompl1
)
{
int
fVerbose
=
0
;
int
fCheck
=
1
;
int
fCheck
=
0
;
static
int
Counter
=
0
;
static
char
pRes
[
DAU_MAX_STR
];
char
pDsd0
[
DAU_MAX_STR
];
...
...
@@ -658,7 +658,6 @@ printf( "%s\n", pDsd0 );
if
(
fVerbose
)
printf
(
"%s
\n
"
,
pDsd1
);
//s_TimeComp[2] += clock() - clk;
if
(
fCheck
)
t0
=
Dau_Dsd6ToTruth
(
pDsd0
);
...
...
@@ -683,9 +682,10 @@ printf( "Normalized:\n" );
if
(
fVerbose
)
printf
(
"%s
\n
"
,
pRes
);
s_TimeComp
[
2
]
+=
clock
()
-
clk
;
s_TimeComp
[
0
]
+=
clock
()
-
clk
;
return
pRes
;
}
s_TimeComp
[
3
]
+=
clock
()
-
clk
;
// create variable mapping
nVarsTotal
=
Dau_DsdMergeCreateMaps
(
pVarPres
,
nVarsShared
,
pOld2New
,
pNew2Old
);
// perform variable replacement
...
...
@@ -766,9 +766,9 @@ printf( "%s\n", pRes );
printf
(
"Dau_DsdMerge(): Verification failed!
\n
"
);
if
(
Status
==
0
)
s_TimeComp
[
0
]
+=
clock
()
-
clk
;
else
s_TimeComp
[
1
]
+=
clock
()
-
clk
;
else
s_TimeComp
[
2
]
+=
clock
()
-
clk
;
return
pRes
;
}
...
...
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