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
b8bd21c8
Commit
b8bd21c8
authored
Oct 10, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvements to ISOP.
parent
5cf92f32
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
5 deletions
+11
-5
src/base/abci/abc.c
+4
-0
src/base/abci/abcDec.c
+6
-4
src/bool/kit/kitIsop.c
+1
-1
src/misc/util/utilIsop.c
+0
-0
No files found.
src/base/abci/abc.c
View file @
b8bd21c8
...
...
@@ -10802,6 +10802,10 @@ int Abc_CommandTest( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_FrameReplaceCurrentNetwork( pAbc, pNtkRes );
}
*/
{
extern
void
Abc_IsopTestNew
();
Abc_IsopTestNew
();
}
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: test [-CKDNM] [-aovwh] <file_name>
\n
"
);
src/base/abci/abcDec.c
View file @
b8bd21c8
...
...
@@ -499,12 +499,13 @@ void Abc_TruthDecPerform( Abc_TtStore_t * p, int DecType, int fVerbose )
Vec_Str_t
*
vStr
;
char
*
pSopStr
;
vStr
=
Vec_StrAlloc
(
10000
);
vCover
=
Vec_IntAlloc
(
1
<<
16
);
vCover
=
Vec_IntAlloc
(
1
<<
20
);
for
(
i
=
0
;
i
<
p
->
nFuncs
;
i
++
)
{
// extern int Abc_IsopTest( word * pFunc, int nVars, Vec_Int_t * vCover );
// Abc_IsopTest( p->pFuncs[i], p->nVars, vCover );
// continue;
extern
int
Abc_IsopTest
(
word
*
pFunc
,
int
nVars
,
Vec_Int_t
*
vCover
);
if
(
i
==
0
)
printf
(
"
\n
"
);
Abc_IsopTest
(
p
->
pFuncs
[
i
],
p
->
nVars
,
vCover
);
continue
;
if
(
fVerbose
)
printf
(
"%7d : "
,
i
);
pSopStr
=
Kit_PlaFromTruthNew
(
(
unsigned
*
)
p
->
pFuncs
[
i
],
p
->
nVars
,
vCover
,
vStr
);
...
...
@@ -600,6 +601,7 @@ void Abc_TruthDecTest( char * pFileName, int DecType, int nVarNum, int fVerbose
// allocate data-structure
p
=
Abc_TtStoreLoad
(
pFileName
,
nVarNum
);
if
(
p
==
NULL
)
return
;
// consider functions from the file
Abc_TruthDecPerform
(
p
,
DecType
,
fVerbose
);
...
...
src/bool/kit/kitIsop.c
View file @
b8bd21c8
...
...
@@ -58,7 +58,7 @@ int Kit_TruthIsop( unsigned * puTruth, int nVars, Vec_Int_t * vMemory, int fTryB
Kit_Sop_t
cRes2
,
*
pcRes2
=
&
cRes2
;
unsigned
*
pResult
;
int
RetValue
=
0
;
assert
(
nVars
>=
0
&&
nVars
<
16
);
assert
(
nVars
>=
0
&&
nVars
<
=
16
);
// if nVars < 5, make sure it does not depend on those vars
// for ( i = nVars; i < 5; i++ )
// assert( !Kit_TruthVarInSupport(puTruth, 5, i) );
...
...
src/misc/util/utilIsop.c
View file @
b8bd21c8
This diff is collapsed.
Click to expand it.
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