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
eb4bee3e
Commit
eb4bee3e
authored
Feb 20, 2018
by
Bruno Schmitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fix in satoko.
parent
76b00a2d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
3 deletions
+1
-3
src/sat/satoko/solver.c
+0
-1
src/sat/satoko/solver.h
+1
-2
No files found.
src/sat/satoko/solver.c
View file @
eb4bee3e
...
...
@@ -521,7 +521,6 @@ void solver_cancel_until(solver_t *s, unsigned level)
for
(
i
=
vec_uint_size
(
s
->
trail
);
i
-->
vec_uint_at
(
s
->
trail_lim
,
level
);)
{
unsigned
var
=
lit2var
(
vec_uint_at
(
s
->
trail
,
i
));
vec_char_assign
(
s
->
polarity
,
var
,
vec_char_at
(
s
->
assigns
,
var
));
vec_char_assign
(
s
->
assigns
,
var
,
SATOKO_VAR_UNASSING
);
vec_uint_assign
(
s
->
reasons
,
var
,
UNDEF
);
if
(
!
heap_in_heap
(
s
->
var_order
,
var
))
...
...
src/sat/satoko/solver.h
View file @
eb4bee3e
...
...
@@ -209,8 +209,7 @@ static inline int solver_enqueue(solver_t *s, unsigned lit, unsigned reason)
unsigned
var
=
lit2var
(
lit
);
vec_char_assign
(
s
->
assigns
,
var
,
lit_polarity
(
lit
));
if
(
solver_dlevel
(
s
)
==
0
)
vec_char_assign
(
s
->
polarity
,
var
,
lit_polarity
(
lit
));
vec_char_assign
(
s
->
polarity
,
var
,
lit_polarity
(
lit
));
vec_uint_assign
(
s
->
levels
,
var
,
solver_dlevel
(
s
));
vec_uint_assign
(
s
->
reasons
,
var
,
reason
);
vec_uint_push_back
(
s
->
trail
,
lit
);
...
...
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