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
6f598455
Commit
6f598455
authored
Mar 31, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating command &satfx.
parent
5ebe403a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
13 deletions
+26
-13
src/base/abci/abc.c
+25
-10
src/sat/bmc/bmcFx.c
+1
-3
No files found.
src/base/abci/abc.c
View file @
6f598455
...
...
@@ -36666,22 +36666,36 @@ usage:
int
Abc_CommandAbc9SatFx
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
extern
int
Bmc_FxCompute
(
Gia_Man_t
*
p
);
extern
int
Bmc_FxComputeOne
(
Gia_Man_t
*
p
);
int
c
,
nFrames
=
1000
,
fDec
=
0
,
fVerbose
=
0
;
extern
int
Bmc_FxComputeOne
(
Gia_Man_t
*
p
,
int
nIterMax
,
int
nDiv2Add
);
int
nIterMax
=
5
;
int
nDiv2Add
=
10
;
int
c
,
fDec
=
1
;
int
fVerbose
=
0
;
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"
F
dvh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"
ID
dvh"
)
)
!=
EOF
)
{
switch
(
c
)
{
case
'
F
'
:
case
'
I
'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-
F
\"
should be followed by an integer.
\n
"
);
Abc_Print
(
-
1
,
"Command line switch
\"
-
I
\"
should be followed by an integer.
\n
"
);
goto
usage
;
}
n
Frames
=
atoi
(
argv
[
globalUtilOptind
]);
n
IterMax
=
atoi
(
argv
[
globalUtilOptind
]);
globalUtilOptind
++
;
if
(
nFrames
<
0
)
if
(
nIterMax
<
0
)
goto
usage
;
break
;
case
'D'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-D
\"
should be followed by an integer.
\n
"
);
goto
usage
;
}
nDiv2Add
=
atoi
(
argv
[
globalUtilOptind
]);
globalUtilOptind
++
;
if
(
nDiv2Add
<
0
)
goto
usage
;
break
;
case
'd'
:
...
...
@@ -36702,15 +36716,16 @@ int Abc_CommandAbc9SatFx( Abc_Frame_t * pAbc, int argc, char ** argv )
return
0
;
}
if
(
fDec
)
Bmc_FxComputeOne
(
pAbc
->
pGia
);
Bmc_FxComputeOne
(
pAbc
->
pGia
,
nIterMax
,
nDiv2Add
);
else
Bmc_FxCompute
(
pAbc
->
pGia
);
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: &satfx [-
F
num] [-dvh]
\n
"
);
Abc_Print
(
-
2
,
"usage: &satfx [-
ID
num] [-dvh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
performs SAT based shared logic extraction
\n
"
);
Abc_Print
(
-
2
,
"
\t
-F num : the number of timeframes [default = %d]
\n
"
,
nFrames
);
Abc_Print
(
-
2
,
"
\t
-I num : the number of iterations of divisor extraction [default = %d]
\n
"
,
nIterMax
);
Abc_Print
(
-
2
,
"
\t
-D num : the number of divisors to extract in each iteration [default = %d]
\n
"
,
nDiv2Add
);
Abc_Print
(
-
2
,
"
\t
-d : toggles decomposing the first output [default = %s]
\n
"
,
fDec
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggles printing verbose information [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
src/sat/bmc/bmcFx.c
View file @
6f598455
...
...
@@ -670,11 +670,9 @@ void Bmc_FxAddClauses( sat_solver * pSat, Vec_Int_t * vDivs, int iCiVarBeg, int
else
assert
(
0
);
}
}
int
Bmc_FxComputeOne
(
Gia_Man_t
*
p
)
int
Bmc_FxComputeOne
(
Gia_Man_t
*
p
,
int
nIterMax
,
int
nDiv2Add
)
{
int
Extra
=
1000
;
int
nIterMax
=
5
;
int
nDiv2Add
=
15
;
// create SAT solver
Cnf_Dat_t
*
pCnf
=
Mf_ManGenerateCnf
(
p
,
8
,
0
,
0
,
0
);
sat_solver
*
pSat
=
(
sat_solver
*
)
Cnf_DataWriteIntoSolver
(
pCnf
,
1
,
0
);
...
...
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