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
998aeff1
Commit
998aeff1
authored
Jun 07, 2016
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvement to CNF encoding of cardinality constraints proposed by Mathias Soaken.
parent
31b2e8be
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/aig/gia/giaSatMap.c
+6
-0
No files found.
src/aig/gia/giaSatMap.c
View file @
998aeff1
...
...
@@ -314,6 +314,12 @@ static inline void Sbm_AddCardinConstrMerge( sat_solver * p, int * pVars, int lo
Sbm_AddCardinConstrMerge
(
p
,
pVars
,
lo
+
r
,
hi
,
step
,
pnVars
);
for
(
i
=
lo
+
r
;
i
<
hi
-
r
;
i
+=
step
)
Sbm_AddSorter
(
p
,
pVars
,
i
,
i
+
r
,
pnVars
);
for
(
i
=
lo
+
r
;
i
<
hi
-
r
-
1
;
i
+=
r
)
{
lit
Lits
[
2
]
=
{
Abc_Var2Lit
(
pVars
[
i
],
0
),
Abc_Var2Lit
(
pVars
[
i
+
r
],
1
)
};
int
Cid
=
sat_solver_addclause
(
p
,
Lits
,
Lits
+
2
);
assert
(
Cid
);
}
}
}
static
inline
void
Sbm_AddCardinConstrRange
(
sat_solver
*
p
,
int
*
pVars
,
int
lo
,
int
hi
,
int
*
pnVars
)
...
...
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