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
0cfc97b9
Commit
0cfc97b9
authored
Nov 26, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Started experiments with a new solver.
parent
8ac9515d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
src/sat/bsat/satSolver2.c
+10
-3
No files found.
src/sat/bsat/satSolver2.c
View file @
0cfc97b9
...
...
@@ -30,7 +30,7 @@ ABC_NAMESPACE_IMPL_START
#define SAT_USE_ANALYZE_FINAL
//
#define SAT_USE_WATCH_ARRAYS
#define SAT_USE_WATCH_ARRAYS
//=================================================================================================
// Debug:
...
...
@@ -79,7 +79,9 @@ struct clause_t
{
int
size_learnt
;
unsigned
act
;
#ifndef SAT_USE_WATCH_ARRAYS
clause
*
pNext
[
2
];
#endif
lit
lits
[
0
];
};
...
...
@@ -253,6 +255,8 @@ static inline void act_clause_decay(sat_solver2* s) { s->cla_inc += (s->cla_inc
//=================================================================================================
// Clause functions:
#ifndef SAT_USE_WATCH_ARRAYS
static
inline
void
clause_watch_
(
sat_solver2
*
s
,
clause
*
c
,
lit
Lit
)
{
if
(
c
->
lits
[
0
]
==
Lit
)
...
...
@@ -354,6 +358,8 @@ static inline void clause_watch( sat_solver2* s, clause* c, lit Lit )
s
->
pWatches
[
lit_neg
(
Lit
)]
=
c
;
}
#endif
static
clause
*
clause_new
(
sat_solver2
*
s
,
lit
*
begin
,
lit
*
end
,
int
learnt
)
{
clause
*
c
;
...
...
@@ -855,6 +861,7 @@ static void sat_solver2_analyze(sat_solver2* s, clause* c, veci* learnt)
#endif
}
#ifndef SAT_USE_WATCH_ARRAYS
static
inline
clause
*
clause_propagate__
(
sat_solver2
*
s
,
lit
Lit
)
{
...
...
@@ -937,7 +944,6 @@ clause* sat_solver2_propagate_new__( sat_solver2* s )
return
NULL
;
}
static
inline
clause
*
clause_propagate
(
sat_solver2
*
s
,
lit
Lit
,
clause
**
ppHead
,
clause
**
ppTail
)
{
clause
**
ppPrev
=
ppHead
;
...
...
@@ -1080,6 +1086,7 @@ clause* sat_solver2_propagate_new( sat_solver2* s )
return
NULL
;
}
#endif
clause
*
sat_solver2_propagate
(
sat_solver2
*
s
)
{
...
...
@@ -1473,7 +1480,7 @@ int sat_solver2_addclause(sat_solver2* s, lit* begin, lit* end)
int
sat_solver2_simplify
(
sat_solver2
*
s
)
{
clause
**
reasons
;
int
type
;
//
int type;
int
Counter
=
0
;
assert
(
sat_solver2_dlevel
(
s
)
==
0
);
...
...
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