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
bafd2a78
Commit
bafd2a78
authored
Sep 07, 2021
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disabling command print_mint when CUDD is not used.
parent
9d89faa8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/base/abci/abc.c
+7
-0
No files found.
src/base/abci/abc.c
View file @
bafd2a78
...
@@ -86,7 +86,9 @@ static int Abc_CommandPrintMffc ( Abc_Frame_t * pAbc, int argc, cha
...
@@ -86,7 +86,9 @@ static int Abc_CommandPrintMffc ( Abc_Frame_t * pAbc, int argc, cha
static
int
Abc_CommandPrintFactor
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandPrintFactor
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandPrintLevel
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandPrintLevel
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandPrintSupport
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandPrintSupport
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
#ifdef ABC_USE_CUDD
static
int
Abc_CommandPrintMint
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandPrintMint
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
#endif
static
int
Abc_CommandPrintSymms
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandPrintSymms
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandPrintUnate
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandPrintUnate
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandPrintAuto
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandPrintAuto
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
...
@@ -827,7 +829,9 @@ void Abc_Init( Abc_Frame_t * pAbc )
...
@@ -827,7 +829,9 @@ void Abc_Init( Abc_Frame_t * pAbc )
Cmd_CommandAdd
(
pAbc
,
"Printing"
,
"print_factor"
,
Abc_CommandPrintFactor
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Printing"
,
"print_factor"
,
Abc_CommandPrintFactor
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Printing"
,
"print_level"
,
Abc_CommandPrintLevel
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Printing"
,
"print_level"
,
Abc_CommandPrintLevel
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Printing"
,
"print_supp"
,
Abc_CommandPrintSupport
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Printing"
,
"print_supp"
,
Abc_CommandPrintSupport
,
0
);
#ifdef ABC_USE_CUDD
Cmd_CommandAdd
(
pAbc
,
"Printing"
,
"print_mint"
,
Abc_CommandPrintMint
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Printing"
,
"print_mint"
,
Abc_CommandPrintMint
,
0
);
#endif
Cmd_CommandAdd
(
pAbc
,
"Printing"
,
"print_symm"
,
Abc_CommandPrintSymms
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Printing"
,
"print_symm"
,
Abc_CommandPrintSymms
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Printing"
,
"print_unate"
,
Abc_CommandPrintUnate
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Printing"
,
"print_unate"
,
Abc_CommandPrintUnate
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Printing"
,
"print_auto"
,
Abc_CommandPrintAuto
,
0
);
Cmd_CommandAdd
(
pAbc
,
"Printing"
,
"print_auto"
,
Abc_CommandPrintAuto
,
0
);
...
@@ -2109,6 +2113,7 @@ usage:
...
@@ -2109,6 +2113,7 @@ usage:
SeeAlso []
SeeAlso []
***********************************************************************/
***********************************************************************/
#ifdef ABC_USE_CUDD
int
Abc_CommandPrintMint
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
int
Abc_CommandPrintMint
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
{
Abc_Ntk_t
*
pNtk
=
Abc_FrameReadNtk
(
pAbc
);
Abc_Ntk_t
*
pNtk
=
Abc_FrameReadNtk
(
pAbc
);
...
@@ -2147,6 +2152,7 @@ int Abc_CommandPrintMint( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -2147,6 +2152,7 @@ int Abc_CommandPrintMint( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print
(
-
1
,
"This command works only for logic networks with local functions represented by BDDs.
\n
"
);
Abc_Print
(
-
1
,
"This command works only for logic networks with local functions represented by BDDs.
\n
"
);
return
1
;
return
1
;
}
}
Abc_NtkForEachNode
(
pNtk
,
pObj
,
c
)
Abc_NtkForEachNode
(
pNtk
,
pObj
,
c
)
printf
(
"ObjId %3d : SuppSize = %5d MintCount = %32.0f
\n
"
,
c
,
Abc_ObjFaninNum
(
pObj
),
printf
(
"ObjId %3d : SuppSize = %5d MintCount = %32.0f
\n
"
,
c
,
Abc_ObjFaninNum
(
pObj
),
Cudd_CountMinterm
((
DdManager
*
)
pNtk
->
pManFunc
,
(
DdNode
*
)
pObj
->
pData
,
Abc_ObjFaninNum
(
pObj
))
);
Cudd_CountMinterm
((
DdManager
*
)
pNtk
->
pManFunc
,
(
DdNode
*
)
pObj
->
pData
,
Abc_ObjFaninNum
(
pObj
))
);
...
@@ -2159,6 +2165,7 @@ usage:
...
@@ -2159,6 +2165,7 @@ usage:
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
return
1
;
return
1
;
}
}
#endif
/**Function*************************************************************
/**Function*************************************************************
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