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
2dd6b978
Commit
2dd6b978
authored
Jul 13, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduced default growth rate of vectors in the SAT solver.
parent
6a020d6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/sat/bsat/satVec.h
+4
-2
No files found.
src/sat/bsat/satVec.h
View file @
2dd6b978
...
...
@@ -48,7 +48,8 @@ static inline void veci_resize (veci* v, int k) { v->size = k; } // only
static
inline
void
veci_push
(
veci
*
v
,
int
e
)
{
if
(
v
->
size
==
v
->
cap
)
{
int
newsize
=
v
->
cap
*
2
;
//+1;
// int newsize = v->cap * 2;//+1;
int
newsize
=
(
v
->
cap
<
4
)
?
v
->
cap
*
2
:
(
v
->
cap
/
2
)
*
3
;
v
->
ptr
=
ABC_REALLOC
(
int
,
v
->
ptr
,
newsize
);
v
->
cap
=
newsize
;
}
v
->
ptr
[
v
->
size
++
]
=
e
;
...
...
@@ -76,7 +77,8 @@ static inline void vecp_resize (vecp* v, int k) { v->size = k; } // only
static
inline
void
vecp_push
(
vecp
*
v
,
void
*
e
)
{
if
(
v
->
size
==
v
->
cap
)
{
int
newsize
=
v
->
cap
*
2
;
//+1;
// int newsize = v->cap * 2;//+1;
int
newsize
=
(
v
->
cap
<
4
)
?
v
->
cap
*
2
:
(
v
->
cap
/
2
)
*
3
;
v
->
ptr
=
ABC_REALLOC
(
void
*
,
v
->
ptr
,
newsize
);
v
->
cap
=
newsize
;
}
v
->
ptr
[
v
->
size
++
]
=
e
;
...
...
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