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
bacc1bc1
Commit
bacc1bc1
authored
Mar 20, 2017
by
Yen-Sheng Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added callbacks to bmc3 and sat solver
parent
245532ca
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
src/sat/bmc/bmcBmc3.c
+2
-0
src/sat/bsat/satSolver.c
+2
-0
src/sat/bsat/satSolver.h
+4
-0
No files found.
src/sat/bmc/bmcBmc3.c
View file @
bacc1bc1
...
@@ -1416,6 +1416,8 @@ int Saig_ManBmcScalable( Aig_Man_t * pAig, Saig_ParBmc_t * pPars )
...
@@ -1416,6 +1416,8 @@ int Saig_ManBmcScalable( Aig_Man_t * pAig, Saig_ParBmc_t * pPars )
p
->
pSat
->
nLearntRatio
=
p
->
pPars
->
nLearnedPerce
;
p
->
pSat
->
nLearntRatio
=
p
->
pPars
->
nLearnedPerce
;
p
->
pSat
->
nLearntMax
=
p
->
pSat
->
nLearntStart
;
p
->
pSat
->
nLearntMax
=
p
->
pSat
->
nLearntStart
;
p
->
pSat
->
fNoRestarts
=
p
->
pPars
->
fNoRestarts
;
p
->
pSat
->
fNoRestarts
=
p
->
pPars
->
fNoRestarts
;
p
->
pSat
->
RunId
=
p
->
pPars
->
RunId
;
p
->
pSat
->
pFuncStop
=
p
->
pPars
->
pFuncStop
;
if
(
pPars
->
fSolveAll
&&
p
->
vCexes
==
NULL
)
if
(
pPars
->
fSolveAll
&&
p
->
vCexes
==
NULL
)
p
->
vCexes
=
Vec_PtrStart
(
Saig_ManPoNum
(
pAig
)
);
p
->
vCexes
=
Vec_PtrStart
(
Saig_ManPoNum
(
pAig
)
);
if
(
pPars
->
fVerbose
)
if
(
pPars
->
fVerbose
)
...
...
src/sat/bsat/satSolver.c
View file @
bacc1bc1
...
@@ -1956,6 +1956,8 @@ int sat_solver_solve_internal(sat_solver* s)
...
@@ -1956,6 +1956,8 @@ int sat_solver_solve_internal(sat_solver* s)
break
;
break
;
if
(
s
->
nRuntimeLimit
&&
Abc_Clock
()
>
s
->
nRuntimeLimit
)
if
(
s
->
nRuntimeLimit
&&
Abc_Clock
()
>
s
->
nRuntimeLimit
)
break
;
break
;
if
(
s
->
pFuncStop
&&
s
->
pFuncStop
(
s
->
RunId
)
)
break
;
}
}
if
(
s
->
verbosity
>=
1
)
if
(
s
->
verbosity
>=
1
)
printf
(
"==============================================================================
\n
"
);
printf
(
"==============================================================================
\n
"
);
...
...
src/sat/bsat/satSolver.h
View file @
bacc1bc1
...
@@ -196,6 +196,10 @@ struct sat_solver_t
...
@@ -196,6 +196,10 @@ struct sat_solver_t
// CNF loading
// CNF loading
void
*
pCnfMan
;
// external CNF manager
void
*
pCnfMan
;
// external CNF manager
int
(
*
pCnfFunc
)(
void
*
p
,
int
);
// external callback
int
(
*
pCnfFunc
)(
void
*
p
,
int
);
// external callback
// termination callback
int
RunId
;
// SAT id in this run
int
(
*
pFuncStop
)(
int
);
// callback to terminate
};
};
static
inline
clause
*
clause_read
(
sat_solver
*
s
,
cla
h
)
static
inline
clause
*
clause_read
(
sat_solver
*
s
,
cla
h
)
...
...
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