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
3b838b95
Commit
3b838b95
authored
Sep 18, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tuning SAT solver for QBF instances.
parent
c30a0af7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
7 deletions
+22
-7
src/base/abci/abc.c
+12
-3
src/proof/fra/fraCec.c
+1
-1
src/sat/cnf/cnfUtil.c
+9
-3
No files found.
src/base/abci/abc.c
View file @
3b838b95
...
...
@@ -21828,7 +21828,8 @@ int Abc_CommandDSat( Abc_Frame_t * pAbc, int argc, char ** argv )
if
(
argc
==
globalUtilOptind
+
1
)
{
extern
int
Cnf_DataSolveFromFile
(
char
*
pFileName
,
int
nConfLimit
,
int
fVerbose
);
int
*
pModel
=
NULL
;
extern
int
Cnf_DataSolveFromFile
(
char
*
pFileName
,
int
nConfLimit
,
int
nLearnedStart
,
int
nLearnedDelta
,
int
nLearnedPerce
,
int
fVerbose
,
int
**
ppModel
);
// get the input file name
char
*
pFileName
=
argv
[
globalUtilOptind
];
FILE
*
pFile
=
fopen
(
pFileName
,
"rb"
);
...
...
@@ -21838,10 +21839,18 @@ int Abc_CommandDSat( Abc_Frame_t * pAbc, int argc, char ** argv )
return
0
;
}
fclose
(
pFile
);
Cnf_DataSolveFromFile
(
pFileName
,
nConfLimit
,
fVerbose
);
Cnf_DataSolveFromFile
(
pFileName
,
nConfLimit
,
nLearnedStart
,
nLearnedDelta
,
nLearnedPerce
,
fVerbose
,
&
pModel
);
if
(
pModel
&&
pNtk
)
{
int
*
pSimInfo
=
Abc_NtkVerifySimulatePattern
(
pNtk
,
pModel
);
if
(
pSimInfo
[
0
]
!=
1
)
Abc_Print
(
1
,
"ERROR in Abc_NtkMiterSat(): Generated counter example is invalid.
\n
"
);
ABC_FREE
(
pSimInfo
);
pAbc
->
pCex
=
Abc_CexCreate
(
0
,
Abc_NtkPiNum
(
pNtk
),
pNtk
->
pModel
,
0
,
0
,
0
);
}
ABC_FREE
(
pModel
);
return
0
;
}
if
(
pNtk
==
NULL
)
{
Abc_Print
(
-
1
,
"Empty network.
\n
"
);
src/proof/fra/fraCec.c
View file @
3b838b95
...
...
@@ -194,7 +194,7 @@ int Fra_FraigSat( Aig_Man_t * pMan, ABC_INT64_T nConfLimit, ABC_INT64_T nInsLimi
}
if
(
nLearnedStart
)
pSat
->
nLearntStart
=
nLearnedStart
;
pSat
->
nLearntStart
=
pSat
->
nLearntMax
=
nLearnedStart
;
if
(
nLearnedDelta
)
pSat
->
nLearntDelta
=
nLearnedDelta
;
if
(
nLearnedPerce
)
...
...
src/sat/cnf/cnfUtil.c
View file @
3b838b95
...
...
@@ -399,7 +399,7 @@ finish:
SeeAlso []
***********************************************************************/
int
Cnf_DataSolveFromFile
(
char
*
pFileName
,
int
nConfLimit
,
int
fVerbose
)
int
Cnf_DataSolveFromFile
(
char
*
pFileName
,
int
nConfLimit
,
int
nLearnedStart
,
int
nLearnedDelta
,
int
nLearnedPerce
,
int
fVerbose
,
int
**
ppModel
)
{
abctime
clk
=
Abc_Clock
();
Cnf_Dat_t
*
pCnf
=
Cnf_DataReadFromFile
(
pFileName
);
...
...
@@ -420,9 +420,15 @@ int Cnf_DataSolveFromFile( char * pFileName, int nConfLimit, int fVerbose )
printf
(
"The problem is trivially UNSAT.
\n
"
);
return
1
;
}
if
(
nLearnedStart
)
pSat
->
nLearntStart
=
pSat
->
nLearntMax
=
nLearnedStart
;
if
(
nLearnedDelta
)
pSat
->
nLearntDelta
=
nLearnedDelta
;
if
(
nLearnedPerce
)
pSat
->
nLearntRatio
=
nLearnedPerce
;
if
(
fVerbose
)
pSat
->
fVerbose
=
fVerbose
;
// solve the miter
// if ( fVerbose )
// pSat->verbosity = 1;
status
=
sat_solver_solve
(
pSat
,
NULL
,
NULL
,
(
ABC_INT64_T
)
nConfLimit
,
0
,
(
ABC_INT64_T
)
0
,
(
ABC_INT64_T
)
0
);
if
(
status
==
l_Undef
)
RetValue
=
-
1
;
...
...
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