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
542f84d2
Commit
542f84d2
authored
Feb 06, 2017
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small changes to compile satoko on Windows.
parent
6ae1f35f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
88 additions
and
4 deletions
+88
-4
abclib.dsp
+84
-0
src/sat/satoko/act_clause.h
+2
-2
src/sat/satoko/cnf_reader.c
+1
-1
src/sat/satoko/solver.c
+1
-1
No files found.
abclib.dsp
View file @
542f84d2
...
@@ -1994,6 +1994,90 @@ SOURCE=.\src\sat\xsat\xsatUtils.h
...
@@ -1994,6 +1994,90 @@ SOURCE=.\src\sat\xsat\xsatUtils.h
SOURCE=.\src\sat\xsat\xsatWatchList.h
SOURCE=.\src\sat\xsat\xsatWatchList.h
# End Source File
# End Source File
# End Group
# End Group
# Begin Group "satoko"
# PROP Default_Filter ""
# Begin Source File
SOURCE=.\src\sat\satoko\act_clause.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\act_var.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\utils\b_queue.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\cdb.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\clause.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\cnf_reader.c
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\utils\heap.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\utils\mem.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\utils\misc.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\satoko.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\solver.c
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\solver.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\solver_api.c
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\utils\sort.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\types.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\utils\vec\vec_char.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\utils\vec\vec_dble.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\utils\vec\vec_int.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\utils\vec\vec_uint.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\watch_list.h
# End Source File
# End Group
# End Group
# End Group
# Begin Group "opt"
# Begin Group "opt"
...
...
src/sat/satoko/act_clause.h
View file @
542f84d2
...
@@ -26,9 +26,9 @@ static inline void clause_act_rescale(solver_t *s)
...
@@ -26,9 +26,9 @@ static inline void clause_act_rescale(solver_t *s)
vec_uint_foreach
(
s
->
learnts
,
cref
,
i
)
{
vec_uint_foreach
(
s
->
learnts
,
cref
,
i
)
{
clause
=
clause_read
(
s
,
cref
);
clause
=
clause_read
(
s
,
cref
);
clause
->
data
[
clause
->
size
].
act
*=
1e-20
;
clause
->
data
[
clause
->
size
].
act
*=
(
float
)
1e-20
;
}
}
s
->
clause_act_inc
*=
1e-20
;
s
->
clause_act_inc
*=
(
float
)
1e-20
;
}
}
/** Increment the activity value of one clause ('clause')
/** Increment the activity value of one clause ('clause')
...
...
src/sat/satoko/cnf_reader.c
View file @
542f84d2
...
@@ -97,7 +97,7 @@ static void read_clause(char **token, vec_uint_t *lits)
...
@@ -97,7 +97,7 @@ static void read_clause(char **token, vec_uint_t *lits)
break
;
break
;
sign
=
(
var
>
0
);
sign
=
(
var
>
0
);
var
=
abs
(
var
)
-
1
;
var
=
abs
(
var
)
-
1
;
vec_uint_push_back
(
lits
,
var2lit
((
unsigned
)
var
,
!
sign
));
vec_uint_push_back
(
lits
,
var2lit
((
unsigned
)
var
,
(
char
)
!
sign
));
}
}
}
}
...
...
src/sat/satoko/solver.c
View file @
542f84d2
...
@@ -330,7 +330,7 @@ static inline int solver_rst(solver_t *s)
...
@@ -330,7 +330,7 @@ static inline int solver_rst(solver_t *s)
static
inline
int
solver_block_rst
(
solver_t
*
s
)
static
inline
int
solver_block_rst
(
solver_t
*
s
)
{
{
return
s
->
stats
.
n_conflicts
>
s
->
opts
.
fst_block_rst
&&
return
s
->
stats
.
n_conflicts
>
(
int
)
s
->
opts
.
fst_block_rst
&&
b_queue_is_valid
(
s
->
bq_lbd
)
&&
b_queue_is_valid
(
s
->
bq_lbd
)
&&
((
long
)
vec_uint_size
(
s
->
trail
)
>
(
s
->
opts
.
b_rst
*
(
long
)
b_queue_avg
(
s
->
bq_trail
)));
((
long
)
vec_uint_size
(
s
->
trail
)
>
(
s
->
opts
.
b_rst
*
(
long
)
b_queue_avg
(
s
->
bq_trail
)));
}
}
...
...
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