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
c497acde
Commit
c497acde
authored
Sep 08, 2018
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expriments with functions.
parent
8638b13e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
src/base/abci/abc.c
+7
-7
src/opt/dau/dauNpn.c
+0
-0
No files found.
src/base/abci/abc.c
View file @
c497acde
...
@@ -22991,7 +22991,7 @@ int Abc_CommandFunEnum( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -22991,7 +22991,7 @@ int Abc_CommandFunEnum( Abc_Frame_t * pAbc, int argc, char ** argv )
extern
void
Dau_FunctionEnum
(
int
nInputs
,
int
nVars
,
int
fVerbose
);
extern
void
Dau_FunctionEnum
(
int
nInputs
,
int
nVars
,
int
fVerbose
);
int
c
,
nInputs
=
4
,
nVars
=
4
,
fVerbose
=
0
;
int
c
,
nInputs
=
4
,
nVars
=
4
,
fVerbose
=
0
;
Extra_UtilGetoptReset
();
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"S
N
vh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"S
I
vh"
)
)
!=
EOF
)
{
{
switch
(
c
)
switch
(
c
)
{
{
...
@@ -23006,10 +23006,10 @@ int Abc_CommandFunEnum( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -23006,10 +23006,10 @@ int Abc_CommandFunEnum( Abc_Frame_t * pAbc, int argc, char ** argv )
if
(
nInputs
<
0
)
if
(
nInputs
<
0
)
goto
usage
;
goto
usage
;
break
;
break
;
case
'
N
'
:
case
'
I
'
:
if
(
globalUtilOptind
>=
argc
)
if
(
globalUtilOptind
>=
argc
)
{
{
Abc_Print
(
-
1
,
"Command line switch
\"
-
N
\"
should be followed by an integer.
\n
"
);
Abc_Print
(
-
1
,
"Command line switch
\"
-
I
\"
should be followed by an integer.
\n
"
);
goto
usage
;
goto
usage
;
}
}
nVars
=
atoi
(
argv
[
globalUtilOptind
]);
nVars
=
atoi
(
argv
[
globalUtilOptind
]);
...
@@ -23029,12 +23029,12 @@ int Abc_CommandFunEnum( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -23029,12 +23029,12 @@ int Abc_CommandFunEnum( Abc_Frame_t * pAbc, int argc, char ** argv )
}
}
if
(
nVars
<
2
||
nVars
>
6
)
if
(
nVars
<
2
||
nVars
>
6
)
{
{
Abc_Print
(
-
1
,
"The number of inputs should be 2 <=
N
<= 6.
\n
"
);
Abc_Print
(
-
1
,
"The number of inputs should be 2 <=
I
<= 6.
\n
"
);
goto
usage
;
goto
usage
;
}
}
if
(
nInputs
<
nVars
||
nInputs
>
6
)
if
(
nInputs
<
nVars
||
nInputs
>
6
)
{
{
Abc_Print
(
-
1
,
"The intermediate support size should be
N
<= S <= 6.
\n
"
);
Abc_Print
(
-
1
,
"The intermediate support size should be
I
<= S <= 6.
\n
"
);
goto
usage
;
goto
usage
;
}
}
...
@@ -23042,10 +23042,10 @@ int Abc_CommandFunEnum( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -23042,10 +23042,10 @@ int Abc_CommandFunEnum( Abc_Frame_t * pAbc, int argc, char ** argv )
return
0
;
return
0
;
usage:
usage:
Abc_Print
(
-
2
,
"usage: funenum [-S
N
num] [-vh]
\n
"
);
Abc_Print
(
-
2
,
"usage: funenum [-S
I
num] [-vh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
enumerates minimum 2-input-gate implementations
\n
"
);
Abc_Print
(
-
2
,
"
\t
enumerates minimum 2-input-gate implementations
\n
"
);
Abc_Print
(
-
2
,
"
\t
-S num : the maximum intermediate support size [default = %d]
\n
"
,
nInputs
);
Abc_Print
(
-
2
,
"
\t
-S num : the maximum intermediate support size [default = %d]
\n
"
,
nInputs
);
Abc_Print
(
-
2
,
"
\t
-
N
num : the number of inputs of Boolean functions [default = %d]
\n
"
,
nVars
);
Abc_Print
(
-
2
,
"
\t
-
I
num : the number of inputs of Boolean functions [default = %d]
\n
"
,
nVars
);
Abc_Print
(
-
2
,
"
\t
-v : toggle verbose output [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle verbose output [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
return
1
;
return
1
;
src/opt/dau/dauNpn.c
View file @
c497acde
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