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
3f0cb631
Commit
3f0cb631
authored
Feb 18, 2017
by
Bruno Schmitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New function to retrieve polarity value of a variable.
parent
ac409b31
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
src/sat/satoko/solver.c
+1
-1
src/sat/satoko/solver.h
+5
-0
No files found.
src/sat/satoko/solver.c
View file @
3f0cb631
...
...
@@ -195,7 +195,7 @@ static inline unsigned solver_decide(solver_t *s)
if
(
solver_has_marks
(
s
)
&&
!
var_mark
(
s
,
next_var
))
next_var
=
UNDEF
;
}
return
var2lit
(
next_var
,
v
ec_char_at
(
s
->
polarity
,
next_var
));
return
var2lit
(
next_var
,
v
ar_polarity
(
s
,
next_var
));
}
static
inline
void
solver_new_decision
(
solver_t
*
s
,
unsigned
lit
)
...
...
src/sat/satoko/solver.h
View file @
3f0cb631
...
...
@@ -132,6 +132,11 @@ static inline char var_value(solver_t *s, unsigned var)
return
vec_char_at
(
s
->
assigns
,
var
);
}
static
inline
char
var_polarity
(
solver_t
*
s
,
unsigned
var
)
{
return
vec_char_at
(
s
->
polarity
,
var
);
}
static
inline
unsigned
var_dlevel
(
solver_t
*
s
,
unsigned
var
)
{
return
vec_uint_at
(
s
->
levels
,
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