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
27caed8d
Commit
27caed8d
authored
Feb 18, 2017
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Experiments with SAT sweeping.
parent
3f0cb631
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
2 deletions
+12
-2
src/base/abci/abc.c
+1
-1
src/proof/cec/cecSat.c
+0
-0
src/sat/satoko/solver.c
+1
-0
src/sat/satoko/solver_api.c
+9
-0
src/sat/satoko/watch_list.h
+1
-1
No files found.
src/base/abci/abc.c
View file @
27caed8d
...
...
@@ -43019,7 +43019,7 @@ int Abc_CommandAbc9Test( Abc_Frame_t * pAbc, int argc, char ** argv )
// Jf_ManTestCnf( pAbc->pGia );
// Gia_ManCheckFalseTest( pAbc->pGia, nFrames );
// Gia_ParTest( pAbc->pGia, nWords, nProcs );
Cec2_ManSimulateTest
(
pAbc
->
pGia
);
// printf( "\nThis command is currently disabled.\n\n" );
return
0
;
usage:
src/proof/cec/cecSat.c
View file @
27caed8d
This diff is collapsed.
Click to expand it.
src/sat/satoko/solver.c
View file @
27caed8d
...
...
@@ -364,6 +364,7 @@ static inline void solver_analyze_final(solver_t *s, unsigned lit)
{
int
i
;
vec_uint_clear
(
s
->
final_conflict
);
vec_uint_push_back
(
s
->
final_conflict
,
lit
);
if
(
solver_dlevel
(
s
)
==
0
)
return
;
...
...
src/sat/satoko/solver_api.c
View file @
27caed8d
...
...
@@ -356,10 +356,15 @@ void satoko_rollback(satoko_t *s)
vec_uint_shrink
(
s
->
originals
,
s
->
book_cl_orig
);
vec_uint_shrink
(
s
->
learnts
,
s
->
book_cl_lrnt
);
/* Shrink variable related vectors */
for
(
i
=
s
->
book_vars
;
i
<
2
*
vec_char_size
(
s
->
assigns
);
i
++
)
vec_wl_at
(
s
->
watches
,
i
)
->
size
=
0
;
s
->
watches
->
size
=
s
->
book_vars
;
vec_act_shrink
(
s
->
activity
,
s
->
book_vars
);
vec_uint_shrink
(
s
->
levels
,
s
->
book_vars
);
vec_uint_shrink
(
s
->
reasons
,
s
->
book_vars
);
vec_uint_shrink
(
s
->
stamps
,
s
->
book_vars
);
vec_char_shrink
(
s
->
assigns
,
s
->
book_vars
);
vec_char_shrink
(
s
->
seen
,
s
->
book_vars
);
vec_char_shrink
(
s
->
polarity
,
s
->
book_vars
);
solver_rebuild_order
(
s
);
/* Rewind solver and cancel level 0 assignments to the trail */
...
...
@@ -369,6 +374,10 @@ void satoko_rollback(satoko_t *s)
s
->
book_cl_lrnt
=
0
;
s
->
book_vars
=
0
;
s
->
book_trail
=
0
;
if
(
!
s
->
book_vars
)
{
s
->
all_clauses
->
size
=
0
;
s
->
all_clauses
->
wasted
=
0
;
}
}
void
satoko_mark_cone
(
satoko_t
*
s
,
int
*
pvars
,
int
n_vars
)
...
...
src/sat/satoko/watch_list.h
View file @
27caed8d
...
...
@@ -154,7 +154,7 @@ static inline vec_wl_t *vec_wl_alloc(unsigned cap)
static
inline
void
vec_wl_free
(
vec_wl_t
*
vec_wl
)
{
unsigned
i
;
for
(
i
=
0
;
i
<
vec_wl
->
size
;
i
++
)
for
(
i
=
0
;
i
<
vec_wl
->
cap
;
i
++
)
watch_list_free
(
vec_wl
->
watch_lists
+
i
);
satoko_free
(
vec_wl
->
watch_lists
);
satoko_free
(
vec_wl
);
...
...
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