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
f0d44a4a
Commit
f0d44a4a
authored
Dec 04, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Proof-logging in the updated solver.
parent
09d3e1ff
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
src/sat/bsat/satSolver.c
+3
-0
src/sat/bsat/satSolver2.c
+0
-0
src/sat/bsat/satSolver2.h
+6
-5
No files found.
src/sat/bsat/satSolver.c
View file @
f0d44a4a
...
...
@@ -1460,6 +1460,9 @@ int sat_solver_solve(sat_solver* s, lit* begin, lit* end, ABC_INT64_T nConfLimit
{
veci_resize
(
&
s
->
conf_final
,
0
);
veci_push
(
&
s
->
conf_final
,
lit_neg
(
p
));
// the two lines below are a bug fix by Siert Wieringa
if
(
s
->
levels
[
lit_var
(
p
)]
>
0
)
veci_push
(
&
s
->
conf_final
,
p
);
}
sat_solver_canceluntil
(
s
,
0
);
return
l_False
;
...
...
src/sat/bsat/satSolver2.c
View file @
f0d44a4a
This diff is collapsed.
Click to expand it.
src/sat/bsat/satSolver2.h
View file @
f0d44a4a
...
...
@@ -93,8 +93,7 @@ struct sat_solver2_t
// clauses
veci
clauses
;
// clause memory
veci
*
wlists
;
// watcher lists (for each literal)
int
iLearnt
;
// the first learnt clause
int
iLast
;
// the last learnt clause
int
iFirstLearnt
;
// the first learnt clause
// activities
#ifdef USE_FLOAT_ACTIVITY
...
...
@@ -113,9 +112,10 @@ struct sat_solver2_t
// internal state
varinfo
*
vi
;
// variable information
cla
*
reasons
;
lit
*
trail
;
lit
*
trail
;
// sequence of assignment and implications
int
*
orderpos
;
// Index in variable order.
cla
*
reasons
;
// reason clauses
cla
*
units
;
// unit clauses
veci
tagged
;
// (contains: var)
veci
stack
;
// (contains: var)
...
...
@@ -132,7 +132,8 @@ struct sat_solver2_t
// proof logging
veci
proof_clas
;
// sequence of proof clauses
veci
proof_vars
;
// sequence of proof variables
int
iStartChain
;
// beginning of the chain
int
iStartChain
;
// temporary variable to remember beginning of the current chain in proof logging
int
fLastConfId
;
// in proof-logging mode, the ID of the final conflict clause (conf_final)
// statistics
stats_t
stats
;
...
...
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