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
56cc5734
Commit
56cc5734
authored
Jan 12, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix related to not properly resizing SAT solver's model array.
parent
fadde52d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
src/sat/bsat/satSolver.c
+1
-0
src/sat/bsat/satSolver2.c
+1
-0
No files found.
src/sat/bsat/satSolver.c
View file @
56cc5734
...
@@ -1035,6 +1035,7 @@ void sat_solver_setnvars(sat_solver* s,int n)
...
@@ -1035,6 +1035,7 @@ void sat_solver_setnvars(sat_solver* s,int n)
s
->
tags
[
var
]
=
0
;
s
->
tags
[
var
]
=
0
;
s
->
orderpos
[
var
]
=
veci_size
(
&
s
->
order
);
s
->
orderpos
[
var
]
=
veci_size
(
&
s
->
order
);
s
->
reasons
[
var
]
=
0
;
s
->
reasons
[
var
]
=
0
;
s
->
model
[
var
]
=
0
;
/* does not hold because variables enqueued at top level will not be reinserted in the heap
/* does not hold because variables enqueued at top level will not be reinserted in the heap
assert(veci_size(&s->order) == var);
assert(veci_size(&s->order) == var);
...
...
src/sat/bsat/satSolver2.c
View file @
56cc5734
...
@@ -1296,6 +1296,7 @@ void sat_solver2_setnvars(sat_solver2* s,int n)
...
@@ -1296,6 +1296,7 @@ void sat_solver2_setnvars(sat_solver2* s,int n)
#else
#else
s
->
activity
[
var
]
=
(
1
<<
10
);
s
->
activity
[
var
]
=
(
1
<<
10
);
#endif
#endif
s
->
model
[
var
]
=
0
;
// does not hold because variables enqueued at top level will not be reinserted in the heap
// does not hold because variables enqueued at top level will not be reinserted in the heap
// assert(veci_size(&s->order) == var);
// assert(veci_size(&s->order) == var);
veci_push
(
&
s
->
order
,
var
);
veci_push
(
&
s
->
order
,
var
);
...
...
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