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
94174d0f
Commit
94174d0f
authored
Dec 23, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Transforming the solver to use different clause representation.
parent
9d289304
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/sat/bsat/satSolver2.c
+2
-2
src/sat/bsat/satSolver2.h
+2
-2
No files found.
src/sat/bsat/satSolver2.c
View file @
94174d0f
...
...
@@ -72,7 +72,7 @@ static const int var0 = 1;
static
const
int
var1
=
0
;
static
const
int
varX
=
3
;
struct
varinfo_t
struct
varinfo
2
_t
{
// unsigned val : 2; // variable value
unsigned
pol
:
1
;
// last polarity
...
...
@@ -1263,7 +1263,7 @@ void sat_solver2_setnvars(sat_solver2* s,int n)
while
(
s
->
cap
<
n
)
s
->
cap
=
s
->
cap
*
2
+
1
;
s
->
wlists
=
ABC_REALLOC
(
veci
,
s
->
wlists
,
s
->
cap
*
2
);
s
->
vi
=
ABC_REALLOC
(
varinfo
,
s
->
vi
,
s
->
cap
);
s
->
vi
=
ABC_REALLOC
(
varinfo
2
,
s
->
vi
,
s
->
cap
);
s
->
levels
=
ABC_REALLOC
(
int
,
s
->
levels
,
s
->
cap
);
s
->
assigns
=
ABC_REALLOC
(
char
,
s
->
assigns
,
s
->
cap
);
s
->
trail
=
ABC_REALLOC
(
lit
,
s
->
trail
,
s
->
cap
);
...
...
src/sat/bsat/satSolver2.h
View file @
94174d0f
...
...
@@ -80,7 +80,7 @@ extern void Sat_ProofCheck( sat_solver2 * s );
// Solver representation:
struct
varinfo_t
;
typedef
struct
varinfo
_t
varinfo
;
typedef
struct
varinfo
2_t
varinfo2
;
struct
sat_solver2_t
{
...
...
@@ -125,7 +125,7 @@ struct sat_solver2_t
veci
claProofs
;
// clause proofs
// internal state
varinfo
*
vi
;
// variable information
varinfo
2
*
vi
;
// variable information
int
*
levels
;
//
char
*
assigns
;
//
lit
*
trail
;
// sequence of assignment and implications
...
...
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