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
f4066b5b
Commit
f4066b5b
authored
Dec 03, 2010
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial implementation of AnalyseFinal
parent
002ad0f9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
src/sat/bsat/satSolver.c
+1
-1
src/sat/bsat/satSolver.h
+8
-0
No files found.
src/sat/bsat/satSolver.c
View file @
f4066b5b
...
@@ -976,7 +976,7 @@ static lbool sat_solver_search(sat_solver* s, ABC_INT64_T nof_conflicts, ABC_INT
...
@@ -976,7 +976,7 @@ static lbool sat_solver_search(sat_solver* s, ABC_INT64_T nof_conflicts, ABC_INT
#endif
#endif
s
->
stats
.
conflicts
++
;
conflictC
++
;
s
->
stats
.
conflicts
++
;
conflictC
++
;
if
(
sat_solver_dlevel
(
s
)
==
s
->
root_level
){
if
(
sat_solver_dlevel
(
s
)
==
s
->
root_level
){
//
lit p = clause_is_lit(confl)? clause_read_lit(confl) : clause_begin(confl)[0];
lit
p
=
clause_is_lit
(
confl
)
?
clause_read_lit
(
confl
)
:
clause_begin
(
confl
)[
0
];
// sat_solver_analyze_final(s, lit_neg(p), &s->conf_final);
// sat_solver_analyze_final(s, lit_neg(p), &s->conf_final);
veci_delete
(
&
learnt_clause
);
veci_delete
(
&
learnt_clause
);
return
l_False
;
return
l_False
;
...
...
src/sat/bsat/satSolver.h
View file @
f4066b5b
...
@@ -85,6 +85,8 @@ extern int sat_solver_nconflicts(sat_solver* s);
...
@@ -85,6 +85,8 @@ extern int sat_solver_nconflicts(sat_solver* s);
extern
void
sat_solver_setnvars
(
sat_solver
*
s
,
int
n
);
extern
void
sat_solver_setnvars
(
sat_solver
*
s
,
int
n
);
extern
int
sat_solver_final
(
sat_solver
*
s
,
int
**
ppArray
);
struct
stats_t
struct
stats_t
{
{
ABC_INT64_T
starts
,
decisions
,
propagations
,
inspects
,
conflicts
;
ABC_INT64_T
starts
,
decisions
,
propagations
,
inspects
,
conflicts
;
...
@@ -214,6 +216,12 @@ static void sat_solver_compress(sat_solver* s)
...
@@ -214,6 +216,12 @@ static void sat_solver_compress(sat_solver* s)
}
}
}
}
static
int
sat_solver_final
(
sat_solver
*
s
,
int
**
ppArray
)
{
*
ppArray
=
s
->
conf_final
.
ptr
;
return
s
->
conf_final
.
size
;
}
ABC_NAMESPACE_HEADER_END
ABC_NAMESPACE_HEADER_END
...
...
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