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
d514029e
Commit
d514029e
authored
Oct 09, 2021
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Experiments with SAT solving.
parent
1afd156d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
3 deletions
+27
-3
abclib.dsp
+4
-0
src/aig/gia/giaCSat3.c
+0
-0
src/aig/gia/module.make
+1
-0
src/base/abci/abc.c
+22
-3
No files found.
abclib.dsp
View file @
d514029e
...
...
@@ -4903,6 +4903,10 @@ SOURCE=.\src\aig\gia\giaCSat2.c
# End Source File
# Begin Source File
SOURCE=.\src\aig\gia\giaCSat3.c
# End Source File
# Begin Source File
SOURCE=.\src\aig\gia\giaCSatOld.c
# End Source File
# Begin Source File
...
...
src/aig/gia/giaCSat3.c
0 → 100644
View file @
d514029e
This diff is collapsed.
Click to expand it.
src/aig/gia/module.make
View file @
d514029e
...
...
@@ -14,6 +14,7 @@ SRC += src/aig/gia/giaAig.c \
src/aig/gia/giaCSatOld.c
\
src/aig/gia/giaCSat.c
\
src/aig/gia/giaCSat2.c
\
src/aig/gia/giaCSat3.c
\
src/aig/gia/giaCTas.c
\
src/aig/gia/giaCut.c
\
src/aig/gia/giaDecs.c
\
...
...
src/base/abci/abc.c
View file @
d514029e
...
...
@@ -36673,13 +36673,14 @@ usage:
int
Abc_CommandAbc9Sat
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
extern
Vec_Int_t
*
Cbs2_ManSolveMiterNc
(
Gia_Man_t
*
pAig
,
int
nConfs
,
Vec_Str_t
**
pvStatus
,
int
fVerbose
);
extern
Vec_Int_t
*
Cbs3_ManSolveMiterNc
(
Gia_Man_t
*
pAig
,
int
nConfs
,
int
nRestarts
,
Vec_Str_t
**
pvStatus
,
int
fVerbose
);
Cec_ParSat_t
ParsSat
,
*
pPars
=
&
ParsSat
;
Gia_Man_t
*
pTemp
;
int
c
;
int
fNewSolver
=
0
,
f
CSat
=
0
,
f0Proved
=
0
;
int
fNewSolver
=
0
,
f
NewSolver2
=
0
,
fCSat
=
0
,
f0Proved
=
0
,
nRestarts
=
1
;
Cec_ManSatSetDefaultParams
(
pPars
);
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"JC
SNanmtcx
zvh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"JC
RSNanmtcxy
zvh"
)
)
!=
EOF
)
{
switch
(
c
)
{
...
...
@@ -36705,6 +36706,17 @@ int Abc_CommandAbc9Sat( Abc_Frame_t * pAbc, int argc, char ** argv )
if
(
pPars
->
nBTLimit
<
0
)
goto
usage
;
break
;
case
'R'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-R
\"
should be followed by an integer.
\n
"
);
goto
usage
;
}
nRestarts
=
atoi
(
argv
[
globalUtilOptind
]);
globalUtilOptind
++
;
if
(
nRestarts
<
0
)
goto
usage
;
break
;
case
'S'
:
if
(
globalUtilOptind
>=
argc
)
{
...
...
@@ -36745,6 +36757,9 @@ int Abc_CommandAbc9Sat( Abc_Frame_t * pAbc, int argc, char ** argv )
case
'x'
:
fNewSolver
^=
1
;
break
;
case
'y'
:
fNewSolver2
^=
1
;
break
;
case
'z'
:
f0Proved
^=
1
;
break
;
...
...
@@ -36766,6 +36781,8 @@ int Abc_CommandAbc9Sat( Abc_Frame_t * pAbc, int argc, char ** argv )
Vec_Str_t
*
vStatus
;
if
(
fNewSolver
)
vCounters
=
Cbs2_ManSolveMiterNc
(
pAbc
->
pGia
,
pPars
->
nBTLimit
,
&
vStatus
,
pPars
->
fVerbose
);
else
if
(
fNewSolver2
)
vCounters
=
Cbs3_ManSolveMiterNc
(
pAbc
->
pGia
,
pPars
->
nBTLimit
,
nRestarts
,
&
vStatus
,
pPars
->
fVerbose
);
else
if
(
pPars
->
fLearnCls
)
vCounters
=
Tas_ManSolveMiterNc
(
pAbc
->
pGia
,
pPars
->
nBTLimit
,
&
vStatus
,
pPars
->
fVerbose
);
else
if
(
pPars
->
fNonChrono
)
...
...
@@ -36789,10 +36806,11 @@ int Abc_CommandAbc9Sat( Abc_Frame_t * pAbc, int argc, char ** argv )
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: &sat [-JCSN <num>] [-anmctxzvh]
\n
"
);
Abc_Print
(
-
2
,
"usage: &sat [-JC
R
SN <num>] [-anmctxzvh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
performs SAT solving for the combinational outputs
\n
"
);
Abc_Print
(
-
2
,
"
\t
-J num : the SAT solver type [default = %d]
\n
"
,
pPars
->
SolverType
);
Abc_Print
(
-
2
,
"
\t
-C num : the max number of conflicts at a node [default = %d]
\n
"
,
pPars
->
nBTLimit
);
Abc_Print
(
-
2
,
"
\t
-R num : the max number of restarts at a node [default = %d]
\n
"
,
nRestarts
);
Abc_Print
(
-
2
,
"
\t
-S num : the min number of variables to recycle the solver [default = %d]
\n
"
,
pPars
->
nSatVarMax
);
Abc_Print
(
-
2
,
"
\t
-N num : the min number of calls to recycle the solver [default = %d]
\n
"
,
pPars
->
nCallsRecycle
);
Abc_Print
(
-
2
,
"
\t
-a : toggle solving all outputs and saving counter-examples [default = %s]
\n
"
,
pPars
->
fSaveCexes
?
"yes"
:
"no"
);
...
...
@@ -36801,6 +36819,7 @@ usage:
Abc_Print
(
-
2
,
"
\t
-c : toggle using circuit-based SAT solver [default = %s]
\n
"
,
fCSat
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-t : toggle using learning in curcuit-based solver [default = %s]
\n
"
,
pPars
->
fLearnCls
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-x : toggle using new solver [default = %s]
\n
"
,
fNewSolver
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-y : toggle using new solver [default = %s]
\n
"
,
fNewSolver2
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-z : toggle replacing proved cones by const0 [default = %s]
\n
"
,
f0Proved
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle printing verbose information [default = %s]
\n
"
,
pPars
->
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
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